joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cb24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x542bac]
cmp byte [eax + 0xc], 0
je 0x46cc91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cc8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x545f54], 0
jne 0x46cb78
push 0x46cc98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46cca0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f54], eax
cmp dword [0x53bbdc], 0
jne 0x46cc73
push 0x46ccb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x53bbdc], eax
cmp dword [0x53bbdc], 0
je 0x46cc73
push 0x46ccbc
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f58], eax
push 0x46cccc
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f5c], eax
push 0x46cce0
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f60], eax
push 0x46ccf8
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f64], eax
push 0x46cd10
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f68], eax
push 0x46cd24
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f6c], eax
push 0x46cd3c
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f70], eax
push 0x46cd54
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f74], eax
push 0x46cd70
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f78], eax
push 0x46cd7c
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f7c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cc91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x475bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475c00]
test si, 4
je 0x475bc4
or bl, 1
test si, 8
je 0x475bce
or bl, 4
test si, 1
je 0x475bd8
or bl, 8
test si, 2
je 0x475be2
or bl, 0x10
test si, 0x10
je 0x475bec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475bfb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x475c04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475c3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475c1d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475c2c
or bl, 4
test esi, 0x20000000
je 0x475c37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47c300
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47c312
add esp, 0xfffffff0
call fcn.0040407c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00428f84
mov eax, dword [0x5421e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x47c6a4
mov eax, dword [0x5421fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x47c6b0
mov eax, ebx
call fcn.0047c6bc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41d7d4]
call fcn.00403cc0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41d7d4]
call fcn.00403cc0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41d7d4]
call fcn.00403cc0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41d7d4]
call fcn.00403cc0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41d7d4]
call fcn.00403cc0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x478ad4
push eax
push 0
push 0
mov eax, dword [0x5425b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42efdc]
call fcn.00430838
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42efdc]
call fcn.00430838
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42efdc]
call fcn.00430838
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047cc08
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ca88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ca88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ca88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47c44f
call fcn.004040d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47c86c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ca17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47c9f8
mov dl, 1
mov eax, dword [0x41dfac]
call fcn.00403cc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b14
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47c9e7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0046cf88
test al, al
je 0x47c9da
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47ca28
lea eax, [ebp - 0x254]
call fcn.0040c8ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47c9da
xor eax, eax
push ebp
push 0x47c9d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x47ca60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47c9bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x47c9bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c9da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47c8dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00422f64
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca1e
lea eax, [ebp - 0x260]
call fcn.00404b14
ret

Function at 0x47d3a8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x545f90]
cmp byte [eax + 0xa5], 0
jne 0x47d419
cmp dword [0x545fa8], 0
jne 0x47d3da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47d364
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x545fa8], eax
cmp dword [0x545fa4], 0
jne 0x47d3f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x545fa4], eax
cmp dword [0x545fac], 0
jne 0x47d419
push esp
push 0
push 0
push 0x47d308
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x545fac], eax
pop edx
ret
Function at 0x47dad8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x545f90]
cmp dword [eax + 0x30], 0
je 0x47db82
cmp dword [ebx + 0x94], 0
jne 0x47db7c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47da68
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47db7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47db42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47db7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00420260
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47db51
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47e6e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47e715
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c04
jmp 0x47e722
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b68
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47f8dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47f91d
mov eax, esi
call fcn.00468408
test al, al
je 0x47f91d
mov eax, dword [ebx + 0x84]
call fcn.00468104
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47f91d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00468104
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48a444
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41cd14]
call fcn.0040582c
xor eax, eax
push ebp
push 0x48a588
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53becc], 0
jne 0x48a497
mov ecx, dword [0x541f54]
mov dl, 1
mov eax, dword [0x40a1ec]
call fcn.0040ff30
call fcn.004044e4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040360c
mov eax, ebx
call fcn.0040544c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x48a598
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406ccc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040545c
test eax, eax
jle 0x48a52f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48a528
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404d9c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404d84
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040b210
test eax, eax
jne 0x48a528
mov ebx, 0x15
jmp 0x48a534
mov ebx, 0x10
jmp 0x48a534
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x53becc]
call fcn.0048a39c
mov eax, dword [ebp - 8]
call fcn.0048a39c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a58f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404b38
lea eax, [ebp - 0x10]
mov edx, dword [0x41cd14]
call fcn.004058fc
ret
Function at 0x49d978
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49dbd8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49d9db
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00410880
cmp al, 1
jne 0x49d9db
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049d758
test al, al
je 0x49db67
cmp dword [ebp - 8], 0
jge 0x49d9f9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x210]
call fcn.00404dd4
cmp ebx, eax
jge 0x49da43
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x542b78]
and eax, 0xff
bt dword [edx], eax
jae 0x49da43
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49da57
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049d954
cmp ebx, dword [ebp - 8]
je 0x49db59
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49da83
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49db46
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49db4d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49dbba
cmp dword [ebp - 8], 0
jge 0x49db72
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x218]
call fcn.00404dd4
cmp eax, dword [ebp - 8]
jg 0x49dbac
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x21c]
call fcn.00404dd4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049d954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dbdf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404b38
ret
Function at 0x4b71c8
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
lea edx, [esp + 4]
mov eax, esp
call fcn.004b7098
cmp dword [esp], 0
je 0x4b71e6
cmp dword [esp + 4], 0
jne 0x4b71f5
push 0x4b729c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4b7293
mov eax, dword [esp + 4]
mov ebx, dword [eax]
xor esi, esi
test ebx, ebx
je 0x4b724f
mov edi, dword [ebx]
mov eax, dword [esp]
mov eax, dword [eax]
mov edx, ebx
call fcn.004b7198
cmp eax, 0x13a
jne 0x4b7247
mov eax, ebx
mov ecx, eax
add ecx, 0xffc
dec ecx
mov edx, dword [esp]
xchg edx, eax
call fcn.004b7158
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
mov ebx, esi
test esi, esi
jne 0x4b7245
mov eax, dword [esp + 4]
mov dword [eax], edi
jmp 0x4b7247
mov dword [esi], edi
mov esi, ebx
mov ebx, edi
test ebx, ebx
jne 0x4b7201
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x4b7293
cmp byte [0x546071], 0
jne 0x4b7293
mov eax, fcn.0041f7f8
call fcn.004b653c
call fcn.004065dc
cmp eax, dword [0x543668]
jne 0x4b7293
mov byte [0x546071], 1
mov ecx, 0x54606c
mov edx, 0x4b72d4
mov eax, fcn.0041f7f8
call fcn.004b6574
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b7c1c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4b7c5b
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4b7c5b
cmp dword [eax + 0x3c], 0
je 0x4b7c5b
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4b7c59
cmp dword [esi], 0x4550
je 0x4b7c5b
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4c0338
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4c039c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d84
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c03a3
lea eax, [ebp - 0xc]
call fcn.00404b14
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fd4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4c0b95
test al, 0x10
jne 0x4c0b99
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x4c0bbe
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4c0bb6
test al, 0x10
je 0x4c0bba
xor eax, eax
jmp 0x4c0bc0
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4c0d08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c0dbe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404fd4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4c0da8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405160
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404fd4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4c0da8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c0dd0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4c0da8
cmp dword [ebp - 8], 0x34
jne 0x4c0da8
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0dc5
lea eax, [ebp - 0x10]
call fcn.00404b14
ret

Function at 0x4c2590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c2621
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x542b98]
cmp dword [eax], 2
jne 0x4c25d0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
jmp 0x4c2603
lea eax, [ebp - 8]
mov edx, esi
call fcn.00405378
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404d9c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00404fd4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2628
lea eax, [ebp - 8]
call fcn.00405220
lea eax, [ebp - 4]
call fcn.00404b14
ret

Function at 0x4c2ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00404fd4
mov edx, eax
mov eax, ebx
call fcn.004c22e4
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.004c2538
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4c2b32
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4c3b54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3dce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004c3014
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x53e1d4], eax
mov eax, dword [ebp - 0xc]
mov dword [0x53e1d8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x53e1dc], eax
mov eax, dword [0x542b98]
cmp dword [eax], 2
sete byte [0x53d964]
push 0x4c3ddc
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004c0bc4
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x53d964], 0
jne 0x4c3be3
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004c0d08
test al, al
je 0x4c3be3
mov eax, dword [ebp - 0x4c]
mov dword [0x547bdc], eax
jmp 0x4c3bea
xor eax, eax
mov dword [0x547bdc], eax
call fcn.004c3218
and eax, 0x7f
cmp eax, 0x1c
ja case.0x4c3bfb.0
jmp dword [eax*4 + 0x4c3c02]
mov byte [0x53d950], 1
jmp case.0x4c3bfb.0
mov byte [0x53d954], 1
jmp case.0x4c3bfb.0
mov byte [0x53d958], 1
jmp case.0x4c3bfb.0
mov byte [0x53d95c], 1
jmp case.0x4c3bfb.0
mov byte [0x53d960], 1
jmp case.0x4c3bfb.0
mov byte [0x53d968], 1
mov byte [0x53d96c], 1
jmp case.0x4c3bfb.0
mov byte [0x53d968], 1
mov byte [0x53d970], 1
jmp case.0x4c3bfb.0
mov byte [0x53d968], 1
mov byte [0x53d970], 1
mov byte [0x53d974], 1
jmp case.0x4c3bfb.0
mov byte [0x53d978], 1
jmp case.0x4c3bfb.0
mov byte [0x53d97c], 1
jmp case.0x4c3bfb.0
mov byte [0x53d980], 1
jmp case.0x4c3bfb.0
mov byte [0x53d984], 1
jmp case.0x4c3bfb.0
mov byte [0x53d988], 1
jmp case.0x4c3bfb.0
mov byte [0x53d98c], 1
jmp case.0x4c3bfb.0
mov byte [0x53d990], 1
jmp case.0x4c3bfb.0
mov byte [0x53d994], 1
jmp case.0x4c3bfb.0
mov byte [0x53d998], 1
jmp case.0x4c3bfb.0
mov byte [0x53d99c], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9a0], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9a4], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9a8], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9ac], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9b0], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9b4], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9b8], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9bc], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9c0], 1
jmp case.0x4c3bfb.0
mov byte [0x53d9c4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3dd5
lea eax, [ebp - 4]
call fcn.00404b14
ret

Function at 0x4c5150
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4c51b4
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d84
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c51bb
lea eax, [ebp - 0xc]
call fcn.00404b14
ret