joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x49c279
jmp 0x49c30e
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 1
je 0x49c2a8
cmp dword [ebp - 8], 2
je 0x49c2a8
jmp 0x49c30e
mov ecx, dword [ebp + 0xc]
call fcn.0040b2e0
mov eax, dword [ebp - 0xc]
shr eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402f40
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49c2ef
jmp 0x49c30e
mov ecx, dword [ebp - 0xc]
shr ecx, 1
mov edx, dword [ebp - 4]
mov word [edx + ecx*2], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0043d440
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x49c600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x49c61c
jmp 0x49c659
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00524b18
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49c652
jmp 0x49c659
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec358
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x4a4850
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4a485c
mov al, 1
jmp 0x4a49ff
mov dword [ebp - 0x10], 8
call fcn.004a8320
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004a8320
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004a8330
add esp, 8
movzx eax, al
test eax, eax
je 0x4a489f
xor al, al
jmp 0x4a49ff
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004a41e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.0049e5b0
mov ecx, eax
call fcn.004a43d0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00446b40
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0049e5b0
mov ecx, eax
call fcn.004a43d0
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.004a5820
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a491a
cmp dword [ebp - 0x6c], 1
je 0x4a4921
cmp dword [ebp - 0x6c], 3
je 0x4a49bb
jmp 0x4a49d3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0049e5b0
mov ecx, eax
call fcn.004a43d0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4a4984
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.0049e5b0
mov ecx, eax
call fcn.004a43d0
push eax
call fcn.0052a93f
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4a4984
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d60
mov al, byte [ebp - 0x61]
jmp 0x4a49ff
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4a49a7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d60
mov al, byte [ebp - 0x62]
jmp 0x4a49ff
cmp dword [ebp - 0x38], 0
jne 0x4a49b9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0049b160
jmp 0x4a49eb
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d60
mov al, byte [ebp - 0x63]
jmp 0x4a49ff
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401d60
mov al, byte [ebp - 0x64]
jmp 0x4a49ff
jmp 0x4a48b2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret
Function at 0x4aac70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ebc18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x4aacd1
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402050
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
jmp 0x4aad94
push str.CityCondition::GetConditionDesc
lea ecx, [ebp - 0x10]
call fcn.004092b0
mov dword [ebp - 4], 0
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.00455390
sub eax, 1
mov dword [ebp - 0x14], eax
jns 0x4aad21
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.004092b0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp + 8]
jmp 0x4aad94
lea ecx, [ebp - 0x10]
call fcn.0040c900
test eax, eax
jg 0x4aad58
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402050
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp + 8]
jmp 0x4aad94
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040ede0
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp + 8]
jmp 0x4aad94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ae300
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ae34d
jmp 0x4ae3d8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00521888
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ae384
jmp 0x4ae3d8
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x63bf54
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ae3b7
cmp dword [ebp - 8], 0
jne 0x4ae3bb
jmp 0x4ae3d8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 4], 0
je 0x4ae3f0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00523d11
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x4ae400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f19d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0057a5e0
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
push str.data_floatwinsetting.ini
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403270
lea ecx, [ebp - 0x10]
call fcn.00493020
push eax
push 1
push str.kxetray_floatwin_show
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b8a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4b8a09
xor ecx, ecx
jne 0x4b8a09
cmp dword [ebp + 0xc], 0
je 0x4b8a29
mov edx, dword [ebp + 0x10]
cmp dword [edx], 2
jae 0x4b8a29
mov eax, 0x7a
jmp 0x4b8ad4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b8a68
mov eax, dword [ebp - 0xc]
jmp 0x4b8ad4
cmp dword [ebp - 4], 7
je 0x4b8a75
mov eax, 0xd
jmp 0x4b8ad4
cmp dword [ebp + 0xc], 0
je 0x4b8ac8
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4b8ac1
mov edx, dword [ebp - 8]
shr edx, 1
cmp edx, 1
jb 0x4b8ac1
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
jne 0x4b8ac1
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 1
jbe 0x4b8ac8
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx*2 - 4]
test eax, eax
je 0x4b8ac8
mov eax, 0xd
jmp 0x4b8ad4
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c53b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4c53c9
mov eax, 1
jmp 0x4c542f
mov ecx, dword [ebp + 8]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4c53e8
xor eax, eax
jmp 0x4c542f
push 0x3fe0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c5421
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov dword [edx], 0
xor eax, eax
jmp 0x4c542f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x318], 0
push 0x206
push 0
lea eax, [ebp - 0x316]
push eax
call fcn.00524800
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00447330
push eax
call fcn.004c3cf0
push eax
push str._s_s
push 0x104
lea ecx, [ebp - 0x318]
push ecx
call fcn.004cd890
add esp, 0x14
mov dword [ebp - 0x31c], 0
lea edx, [ebp - 0x31c]
push edx
push 0x20219
push 0
lea eax, [ebp - 0x318]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x4c54dd
mov eax, 0xe00c0012
jmp 0x4c55a2
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x320], 0
mov word [ebp - 0x108], 0
push 0xfe
push 0
lea ecx, [ebp - 0x106]
push ecx
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x320], 0xfe
lea edx, [ebp - 0x108]
mov dword [ebp - 0x324], edx
lea eax, [ebp - 0x320]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push str.Name
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x4c5585
cmp dword [ebp - 0x10c], 1
jne 0x4c5585
push str..Pipe_
mov ecx, dword [ebp + 0xc]
call fcn.004481c0
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00446920
jmp 0x4c558f
mov dword [ebp - 0x328], 0xe00c001f
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x328]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 8

Function at 0x4c5c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
je 0x4c5ca8
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c5c9d
mov eax, 0xe00c0009
jmp 0x4c5caa
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x4c5c5b
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c5cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x4c5d18
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c5d0d
mov eax, 0xe00c000b
jmp 0x4c5d1a
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x4c5ccb
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4dcde0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040b2e0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.0057a5e0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ee60
movzx edx, al
test edx, edx
je 0x4dce53
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp - 0x18]
jmp 0x4dceca
push str.datakbootnf.dat
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ca60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov ecx, dword [ebp + 8]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
and ecx, 0x10
neg ecx
sbb ecx, ecx
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e2650
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f37c6
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x31c], ecx
mov word [ebp - 0x30c], 0
push 0xd2
push 0
lea eax, [ebp - 0x30a]
push eax
call fcn.00524800
add esp, 0xc
lea ecx, [ebp - 0x30c]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x4e26c5
xor eax, eax
jmp 0x4e27f0
mov eax, dword [ebp - 0x230]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x14], eax
mov word [ebp - 0x22c], 0
push 0x208
push 0
lea edx, [ebp - 0x22a]
push edx
call fcn.00524800
add esp, 0xc
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x24], 0
mov ecx, dword [ebp - 0x31c]
add ecx, 4
call fcn.00466650
mov dword [ebp - 0x310], 0
jmp 0x4e272e
mov ecx, dword [ebp - 0x310]
add ecx, 1
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x310]
cmp edx, dword [ebp - 0x14]
jge 0x4e27eb
mov eax, dword [ebp - 0x10]
mov word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4e27dd
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x314]
call fcn.004092b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x314]
push ecx
mov ecx, dword [ebp - 0x31c]
add ecx, 4
call fcn.0043d980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
call fcn.00403270
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x318]
call fcn.004092b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x31c]
add ecx, 4
call fcn.0043d980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x318]
call fcn.00403270
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov dword [ebp - 0x10], ecx
jmp 0x4e271f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret

Function at 0x4ecf00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xc
call fcn.0052325f
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ecf23
xor eax, eax
jmp 0x4ecf56
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4ed860
push 0
push 0
call fcn.005277fd
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x51cb30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalA2A6806D_262C_4aa2_B401_75770C2ADD3DClosePopEvent
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.004ae4b0
test eax, eax
je 0x51cb58
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.004e8220
jmp 0x51cb6c
push 0
push 0
push str.GlobalA2A6806D_262C_4aa2_B401_75770C2ADD3DClosePopEvent
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.0044ba60
push 0
push 0
push str.Global00966E60_47F4_4a0b_97B3_E6455C5ECD9FAvoidPopEvent
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.0044ba60
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.0044ba60
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x51cc40
push 0
push 0
call fcn.005277fd
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x51cfa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalA2A6806D_262C_4aa2_B401_75770C2ADD3DClosePopEvent
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.004ae4b0
test eax, eax
je 0x51cfc8
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.004e8220
jmp 0x51cfdc
push 0
push 0
push str.GlobalA2A6806D_262C_4aa2_B401_75770C2ADD3DClosePopEvent
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.0044ba60
push 0
push 0
push str.Global00966E60_47F4_4a0b_97B3_E6455C5ECD9FAvoidPopEvent
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.0044ba60
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.0044ba60
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x51d0b0
push 0
push 0
call fcn.005277fd
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x5227e9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00522728
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00524800
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x522838
cmp dword [ebp - 0x1c], 5
jb 0x522850
jmp 0x52284c
cmp dword [ebp - 0x10], 1
jne 0x522850
cmp dword [ebp - 0x1c], 4
ja 0x52284c
jne 0x522850
cmp dword [ebp - 0x18], 0
jbe 0x522850
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5fc1dc
call fcn.00473cb0
test eax, eax
jge 0x522871
mov byte [0x67e2e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005236f2
add ebp, 0x78
leave
ret
Function at 0x522a23
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x67d0b8], 0
push esi
jne 0x522996
call fcn.005228c1
test eax, eax
je 0x5229d9
mov eax, dword [0x67d0b8]
cmp eax, 1
jne 0x5229b7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5229d9
pop esi
ret
push eax
call dword [0x67d0c0]
test eax, eax
jne 0x522a21
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5229dd
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x67d0b8]
call dword [0x67d0c0]
mov edi, eax
test edi, edi
je 0x522a04
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x522a20
lea edi, [esi + 0xff0]
push esi
push dword [0x67d0b8]
call dword [0x67d0bc]
add esi, 0x10
cmp esi, edi
jb 0x522a0a
mov eax, esi
pop edi
pop esi
ret
jmp 0x522983

Function at 0x5236f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x676580]
jne 0x5236fc
repz ret
jmp fcn.0053247a

Function at 0x5275d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5275fd
call fcn.0052e7a4
mov dword [eax], esi
call fcn.0052e791
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00523807
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5275d9
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x52762c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052e7b7
pop ecx
call fcn.0052e791
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x527653
test al, 1
je 0x527653
test byte [esp + 0xc], 2
je 0x527653
call fcn.0052e7a4
mov dword [eax], 5
call fcn.0052e791
mov dword [eax], 0xd
jmp 0x527623
xor eax, eax
pop esi
ret