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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x4ec7b4]
cmp byte [eax + 0xc], 0
je 0x499d62
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x499d5b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eed78], 0
jne 0x499c49
push 0x499d68
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x499d70
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed78], eax
cmp dword [0x4eb030], 0
jne 0x499d44
push 0x499d80
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4eb030], eax
cmp dword [0x4eb030], 0
je 0x499d44
push 0x499d8c
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed7c], eax
push 0x499d9c
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed80], eax
push 0x499db0
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed84], eax
push 0x499dc8
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed88], eax
push 0x499de0
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed8c], eax
push 0x499df4
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed90], eax
push 0x499e0c
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed94], eax
push 0x499e24
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed98], eax
push 0x499e40
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eed9c], eax
push 0x499e4c
mov eax, dword [0x4eb030]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eeda0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499d62
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x49ed68
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00404b1c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49edc1
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404d8c
mov esp, ebp
pop ebp
ret
Function at 0x4a7a94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x4a7aec]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x4a7aae
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x4a7ab8
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x4a7ac2
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x4a7acc
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x4a7ad6
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a7ae6
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x4a7af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x4a7b34]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a7b11
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a7b21
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x4a7b2b
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4afaa4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4afab6
add esp, 0xfffffff0
call fcn.00403f64
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046b120
mov eax, dword [0x4ec3b0]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4b0014
mov eax, dword [0x4ec3bc]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4b0034
mov eax, dword [ebp - 4]
call fcn.004b0054
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x46187c]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x46187c]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x46187c]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x46187c]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x46187c]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x4ab464
push eax
push 0
push 0
mov eax, dword [0x4ec548]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x46d348]
call fcn.0046ed10
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x46d348]
call fcn.0046ed10
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x46d348]
call fcn.0046ed10
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.004b0680
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4b0468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4b0468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4b0468
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4afc3e
call fcn.00403fbc
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b0220
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b03eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4b03c9
mov dl, 1
mov eax, dword [0x461c98]
call fcn.00403bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b1c
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4b03b2
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.00499f90
test al, al
je 0x4b03a6
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x4b03fc
lea eax, [ebp - 0x25c]
call fcn.00454970
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b03a6
xor eax, eax
push ebp
push 0x4b039f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x4b0434
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b0388
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404d8c
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4b0388
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404d8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b03a6
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x4b0295
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.00466428
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b03f2
lea eax, [ebp - 0x268]
call fcn.00404b1c
ret
Function at 0x4b0f88
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4eedc4]
cmp byte [eax + 0xa5], 0
jne 0x4b0fff
cmp dword [0x4eeddc], 0
jne 0x4b0fbd
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4b0f44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4eeddc], eax
cmp dword [0x4eedd8], 0
jne 0x4b0fd8
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4eedd8], eax
cmp dword [0x4eede0], 0
jne 0x4b0fff
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4b0ee4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4eede0], eax
pop ecx
pop ebp
ret

Function at 0x4b10c8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.004b1060
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4b10e9
xor eax, eax
call fcn.004b1098
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x4b1103
mov al, 1
call fcn.004b1098
mov esp, ebp
pop ebp
ret

Function at 0x4b17cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x4eedc4]
cmp dword [eax + 0x30], 0
je 0x4b1896
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x4b188d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x4b174c
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x4b188d
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4b1847
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4b188d
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.004640e0
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4b185c
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x4b25ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x4b25f1
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00404c0c
jmp 0x4b2602
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00404b70
mov esp, ebp
pop ebp
ret
Function at 0x4b3b94
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x4b3be7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004943e8
test al, al
je 0x4b3be7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00493f68
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b3be7
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00493f68
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x4bb1c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x42a258]
call fcn.00405590
xor eax, eax
push ebp
push 0x4bb313
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eb288], 0
jne 0x4bb216
mov ecx, dword [0x4ec2d8]
mov dl, 1
mov eax, dword [0x4525c8]
call fcn.00457864
call fcn.00404490
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.004034c4
mov eax, dword [ebp - 4]
call fcn.004053dc
mov dword [ebp - 0x2c], eax
mov esi, 0x4bb324
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.00406814
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.004053ec
test eax, eax
jle 0x4bb2b1
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4bb2a8
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.00404da4
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x50]
mov ecx, 0x10
call fcn.00404d8c
mov eax, dword [ebp - 0x58]
pop edx
call fcn.0045353c
test eax, eax
jne 0x4bb2a8
mov dword [ebp - 0x10], 0x15
jmp 0x4bb2b8
mov dword [ebp - 0x10], 0x10
jmp 0x4bb2b8
mov dword [ebp - 0x10], 0x15
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x4eb288]
call fcn.004bb0f0
mov eax, dword [ebp - 0x18]
call fcn.004bb0f0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.0040682c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb31a
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00404b40
lea eax, [ebp - 0x20]
mov edx, dword [0x42a258]
call fcn.00405660
ret
Function at 0x4bc180
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 0x4bc227
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404fdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4bc211
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405168
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404fdc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4bc211
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4bc238
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4bc211
cmp dword [ebp - 8], 0x34
jne 0x4bc211
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 0x4bc22e
lea eax, [ebp - 0x10]
call fcn.00404b1c
ret

Function at 0x4bc2cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4bc3bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00404b70
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.004bc2ac
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bc3a5
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404fdc
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bc39c
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x4bc39c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405168
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bc39c
mov eax, dword [ebp - 0x10]
call fcn.00404fdc
call fcn.00454224
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405168
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404b70
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc3c2
lea eax, [ebp - 0x10]
call fcn.00404b1c
ret
Function at 0x4bdf30
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 0x4be0b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004034c4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4eb364], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4eb368], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4eb36c], eax
mov eax, dword [0x4ec7ac]
cmp dword [eax], 2
sete byte [0x4eb2cc]
push 0x4be0c4
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004bc150
cmp byte [0x4eb2cc], 0
jne 0x4bdfbc
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004bc180
test al, al
je 0x4bdfbc
mov eax, dword [ebp - 0x4c]
mov dword [0x4ef394], eax
jmp 0x4bdfc3
xor eax, eax
mov dword [0x4ef394], eax
call fcn.004bc4c8
and eax, 0x7f
cmp eax, 0xd
ja case.0x4bdfd4.0
jmp dword [eax*4 + 0x4bdfdb]
mov byte [0x4eb2b8], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2bc], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2c0], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2c4], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2c8], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2d0], 1
mov byte [0x4eb2d4], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2d0], 1
mov byte [0x4eb2d8], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2d0], 1
mov byte [0x4eb2dc], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2e0], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2e4], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2e8], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2ec], 1
jmp case.0x4bdfd4.0
mov byte [0x4eb2f0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be0bd
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x4be1b8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x4be313
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4be228
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4be228
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x4be2d9
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
mov eax, dword [0x4ec668]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
call fcn.00459378
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4be27c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x4be281
call fcn.004592cc
mov eax, dword [ebp - 0x10]
call fcn.00453204
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
call fcn.00459378
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x4be2d9
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4be2d9
inc esi
dec ebx
jne 0x4be2b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be31a
cmp dword [ebp - 0x14], 0
je 0x4be2f4
mov eax, dword [ebp - 0x14]
call fcn.00402b20
cmp byte [ebp - 0x15], 0
je 0x4be303
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
je 0x4be312
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
Function at 0x4cf454
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00404b1c
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404fdc
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4cf4fb
xor eax, eax
push ebp
push 0x4cf4f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405168
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404fdc
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fdc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4cf4d6
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00405168
jmp 0x4cf4dd
mov eax, ebx
call fcn.00404b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf4fb
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d0544
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
mov ebx, eax
lea esi, [ebp - 4]
push 0x105
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [0x4ed668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 5
lea eax, [ebp - 9]
push eax
push 3
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x10e]
push eax
call sub.kernel32.dll_lstrlenA_1
lea edx, [ebp - 0x10e]
add eax, edx
mov dword [esi], eax
jmp 0x4d0593
dec dword [esi]
mov eax, dword [esi]
cmp byte [eax], 0x2e
je 0x4d05a4
lea eax, [ebp - 0x10e]
cmp eax, dword [esi]
jne 0x4d0591
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0x10e]
cmp edx, dword [esi]
je 0x4d05fa
inc dword [esi]
cmp byte [ebp - 9], 0
je 0x4d05fa
lea eax, [ebp - 9]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x10e]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
jne 0x4d05fa
mov byte [ebp - 7], 0
lea eax, [ebp - 9]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x10e]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
je 0x4d0605
call fcn.004d04e4
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret