joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495b90
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x518c41
call fcn.004db753
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040ce6d
push 0
push 0x534080
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00451703
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x495bfa
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00411714
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, esi
call fcn.004db71c
ret

Function at 0x495ed4
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x495f58
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x495f63
mov eax, dword [ebp + 0x30]
jmp 0x495f67
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00410910
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004dab44
add esp, 0x2c
ret
Function at 0x49628a
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x518cbb
call fcn.004db753
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x545078
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004a7be0
mov ecx, dword [ebp - 0x20]
call fcn.00496044
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x49631a
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x496311
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x496311
cmp dword [ebp + 8], 0x103
jne 0x496311
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004db71c
ret 4
Function at 0x497533
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x518ef4
call fcn.004db753
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x497554
xor eax, eax
jmp 0x497627
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x533e68
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x49760b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov ebx, dword [ebp + 0x10]
add eax, edi
and dword [ebp - 0x20], 0
sub ebx, edi
push 0
push ecx
push eax
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x49760b
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.00451703
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4975d7
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d64d
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975ff
cmp dword [ebp - 0x10], 0
je 0x4975ff
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.004a2407
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test esi, esi
je 0x497625
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004db71c
ret 0xc

Function at 0x49a652
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51955d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x218]
xor ecx, ecx
mov esi, dword [ebp + 0x214]
mov edi, ecx
push ecx
push ecx
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp]
push eax
push ecx
jmp 0x49a6e4
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d91c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.004706a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
inc edi
call fcn.0040d133
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push esi
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x49a6ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004dab44
add ebp, 0x20c
leave
ret 8
Function at 0x49a71a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x49a780
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d74e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.004116fd
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00410c89
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x49a78c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x5195da
call fcn.004db787
mov esi, ecx
mov dword [ebp - 0x294], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004783b0
lea ecx, [ebp - 0x288]
call fcn.0040ce6d
lea eax, [ebp - 0x288]
xor ebx, ebx
push eax
push dword [ebp - 0x28c]
inc ebx
lea eax, [ebp + 8]
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call fcn.0040713a
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.0049aa08
test al, al
je 0x49a84d
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.00473150
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.00473420
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004706a0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d133
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049ab8f
test al, al
je 0x49a84d
xor ebx, ebx
jmp 0x49a854
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x49a85b
mov edi, ebx
jmp 0x49a9b1
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004de9a0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.0040713a
mov esi, 0x53ea28
mov byte [ebp - 4], 4
push esi
call fcn.004e0c46
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.00410f2f
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x49a8bc
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040d64d
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x29c], 0x53ea34
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, 0xffffffff
je 0x49a981
lea ecx, [ebp - 0x27c]
call fcn.0049a9df
test al, al
je 0x49a96b
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.00454aa6
pop ecx
push dword [ebp - 0x290]
lea eax, [edi - 1]
mov byte [ebp - 4], 6
push dword [ebp - 0x28c]
push eax
push ecx
lea eax, [ebp - 0x280]
mov dword [ebp - 0x2a0], esp
mov ecx, esp
push eax
call fcn.0040713a
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0049a78c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x49a9d6
call fcn.0040d133
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x49a8f7
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x53ea34
test esi, esi
je 0x49a9a3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x298], 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], bl
call fcn.0040d133
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d133
mov eax, edi
call fcn.004db731
ret 0x10
call fcn.0040d133
xor edi, edi
jmp 0x49a983
Function at 0x49acc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5196bf
call fcn.004db753
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x49ad1b
mov dl, byte [ebp + 0xc]
call fcn.0049ac3a
mov ecx, 0x540320
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x49acfa
test eax, eax
setne bl
jmp 0x49acff
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49ad14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49ade1
push 0x5c
push dword [ecx]
call fcn.004dee47
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x49adcf
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x49adcf
push esi
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ecx, eax
call fcn.00406f8c
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dl, byte [ebp + 0xc]
call fcn.0049ac3a
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x540320
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49adaa
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00406e54
push edi
push edi
push edi
push edi
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.0040d133
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x540320
test eax, eax
je 0x49adc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
cmp byte [ebp + 0x14], 0
je 0x49addc
test ebx, ebx
sete al
jmp 0x49ade1
test ebx, ebx
setne al
call fcn.004db71c
ret 0x10
Function at 0x49b2ea
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x49b42f
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x49b32e
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x49b31f
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x49b362
cmp word [esp + 0x22], di
jne 0x49b362
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x49b36e
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x49b38f
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49b383
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49b399
test al, al
je 0x49b3ac
jmp 0x49b3a4
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x49b415
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49b3f1
cmp word [esi], cx
je 0x49b3f9
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x49b3e9
cmp esi, edi
jb 0x49b42f
cmp byte [esp + 0xf], 0
jne 0x49b408
cmp esi, edi
jne 0x49b40b
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49b3b5
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x49b429
jb 0x49b42b
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x49b42b
xor bl, bl
mov al, bl
jmp 0x49b431
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dab44
mov esp, ebp
pop ebp
ret
Function at 0x49bb19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004dbe80
push 0xffffffffffffffff
push 0x5198c3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x49bb6e
xor al, al
jmp 0x49bbe6
mov ecx, eax
call fcn.004571e1
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x49bbd8
mov esi, dword [ebp - 0x10]
call fcn.0040d32d
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040707c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.004706a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d133
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x49bb77
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004dab44
add ebp, 0x8004
leave
ret 4
Function at 0x49bded
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x519947
call fcn.004db753
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004db29c
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x49be28
add dword [ebp - 0x10], 2
push esi
call fcn.004db29c
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0048ba38
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x49be19
test eax, eax
je 0x49be60
xor eax, eax
mov bl, al
jmp 0x49bf1d
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x49be90
cmp eax, 2
je 0x49be90
cmp eax, 7
je 0x49be90
cmp eax, 4
jne 0x49be57
push dword [esi]
push 0x5425d8
push dword [ebp + 8]
call fcn.00411714
add esp, 0xc
jmp 0x49bf1d
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x49bea9
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49bea5
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d32d
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040707c
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x49bf10
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49bf04
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49bf04
mov ecx, edi
call fcn.004070e1
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d635
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x49bf10
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d89e
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db29c
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004db71c
ret

Function at 0x49c017
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x57f524
call fcn.0040dd49
cmp byte [0x57f52c], 0
je 0x49c03e
push dword [0x57f528]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49c06e
cmp dword [0x57f528], 0
je 0x49c06e
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x57f520
push 0x49c090
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x57f530
call fcn.0040e076
pop ebp
ret 4
Function at 0x49c139
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x51997a
call fcn.004db753
push edx
lea ecx, [ebp - 0x10]
call fcn.0040713a
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004dee47
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49c222
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x49c222
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406e54
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.00473af0
and dword [ebp - 0x18], 0
mov esi, 0x540320
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x18], 0
je 0x49c200
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x49c207
inc ebx
cmp dword [ebp - 0x18], eax
je 0x49c1ef
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d133
jmp 0x49c15a
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0
je 0x49c216
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, ebx
call fcn.004db71c
ret

Function at 0x49c2fb
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x515a88
call fcn.004db753
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x533e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49c33a
mov edi, ebx
or esi, eax
jmp 0x49c344
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test esi, esi
je 0x49c35d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004db71c
ret
Function at 0x49c365
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x5199d2
call fcn.004db753
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004de9a0
mov dword [ebp - 0x6c], edi
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
add esp, 0xc
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
inc ebx
cmp byte [ebp + 0x10], 0
je 0x49c3bc
call fcn.004a4591
mov eax, dword [0x57f328]
test eax, eax
je 0x49c3bc
lea ecx, [ebp - 0x18]
push ecx
call eax
mov byte [ebp - 0x14], bl
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [edx]
xor eax, eax
cmp dword [ecx - 0xc], eax
push eax
push eax
push dword [ebp + 0xc]
push eax
push eax
push eax
cmovne eax, ecx
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49c402
mov esi, dword [ebp + 8]
test esi, esi
je 0x49c3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor bl, bl
jmp 0x49c428
cmp dword [ebp + 8], 0
je 0x49c41f
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x49c44e
call fcn.004a4591
mov ecx, dword [0x57f324]
test ecx, ecx
je 0x49c44e
lea eax, [ebp - 0x18]
push eax
call ecx
mov byte [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.004db71c
ret
Function at 0x49c45a
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x519a27
call fcn.004db753
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004de9a0
mov edi, dword [edi]
mov eax, 0x400
mov dword [ebp - 0x54], esi
add esp, 0xc
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.0047a490
test al, al
je 0x49c4ab
add edi, 8
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x49c4ed
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00478b70
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x49c500
push ecx
lea ecx, [ebp + 0x10]
call fcn.0040713a
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040713a
mov dword [ebp - 4], 3
test bl, 2
je 0x49c520
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040d133
mov byte [ebp - 4], 4
test bl, 1
je 0x49c531
lea ecx, [ebp + 0x18]
call fcn.0040d133
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0047a490
test al, al
je 0x49c543
add edi, 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x49c564
test esi, esi
je 0x49c560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x49c594
test esi, esi
je 0x49c583
cmp dword [ebp - 0x1c], 0
je 0x49c592
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], 0
je 0x49c592
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d133
mov al, bl
call fcn.004db71c
ret