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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x543d20]
cmp byte [eax + 0xc], 0
je 0x4564dd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4564d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x544b9c], 0
jne 0x4563c4
push 0x4564e4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4564ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544b9c], eax
cmp dword [0x539f28], 0
jne 0x4564bf
push 0x4564fc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x539f28], eax
cmp dword [0x539f28], 0
je 0x4564bf
push 0x456508
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544ba0], eax
push 0x456518
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544ba4], eax
push 0x45652c
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544ba8], eax
push 0x456544
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bac], eax
push 0x45655c
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bb0], eax
push 0x456570
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bb4], eax
push 0x456588
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bb8], eax
push 0x4565a0
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bbc], eax
push 0x4565bc
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bc0], eax
push 0x4565c8
mov eax, dword [0x539f28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x544bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564dd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404c90
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45a8bb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462050]
test si, 4
je 0x462014
or bl, 1
test si, 8
je 0x46201e
or bl, 4
test si, 1
je 0x462028
or bl, 8
test si, 2
je 0x462032
or bl, 0x10
test si, 0x10
je 0x46203c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46204b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x462054
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46208c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46206d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46207c
or bl, 4
test esi, 0x20000000
je 0x462087
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x468734
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x468746
add esp, 0xfffffff0
call fcn.004040e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427f30
mov eax, dword [0x5430e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x468ad8
mov eax, dword [0x543108]
mov dword [eax + 4], ebx
mov dword [eax], 0x468ae4
mov eax, ebx
call fcn.00468af0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
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, 0x464f0c
push eax
push 0
push 0
mov eax, dword [0x5435dc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42a118]
call fcn.0042b8b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42a118]
call fcn.0042b8b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42a118]
call fcn.0042b8b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00468fa0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468e34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468e34
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468e34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468883
call fcn.00404138
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x468c18
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 0x468dc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x468da4
mov dl, 1
mov eax, dword [0x41c0c4]
call fcn.00403d4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x468d93
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.004566d0
test al, al
je 0x468d86
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, 0x468dd4
lea eax, [ebp - 0x254]
call fcn.0040b478
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x468d86
xor eax, eax
push ebp
push 0x468d7f
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 0x468e0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x468d68
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
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 0x468d68
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468d86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x468c89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042187c
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 0x468dca
lea eax, [ebp - 0x260]
call fcn.00404c90
ret

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

Disassembly:
push ecx
mov eax, dword [0x544be8]
cmp byte [eax + 0xa5], 0
jne 0x4697b1
cmp dword [0x544c00], 0
jne 0x469772
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4696fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x544c00], eax
cmp dword [0x544bfc], 0
jne 0x46978d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x544bfc], eax
cmp dword [0x544c04], 0
jne 0x4697b1
push esp
push 0
push 0
push 0x4696a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x544c04], eax
pop edx
ret
Function at 0x4698a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4698bf
add esp, 0xfffffff0
call fcn.004040e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427f30
mov eax, dword [0x5435a4]
cmp word [eax + 2], 0
jne 0x4698e7
mov eax, dword [0x5435a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046aeac
mov eax, dword [0x54383c]
cmp word [eax + 2], 0
jne 0x469901
mov eax, dword [0x54383c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b0a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b8b4]
call fcn.00403d4c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42abf8]
call fcn.0043296c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x469a88
mov eax, dword [0x543268]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432d78
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46b644
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x543268]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f3d0
test eax, eax
je 0x4699f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040aa90
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f3f8
test eax, eax
je 0x469a0a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f00
mov eax, dword [0x542d78]
cmp byte [eax], 0
jne 0x469a3e
mov eax, ebx
call fcn.00469bb0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046b820
mov eax, ebx
call fcn.0046c1e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469a7e
call fcn.00404138
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469e30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x544be8]
cmp dword [eax + 0x30], 0
je 0x469eda
cmp dword [ebx + 0x94], 0
jne 0x469ed4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469dc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469ed4
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 0x469e9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469ed4
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.0041e7e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469ea9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46aa3c
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 0x46aa71
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.00404d80
jmp 0x46aa7e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ce4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46b9fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46ba3d
mov eax, esi
call fcn.00451cf0
test al, al
je 0x46ba3d
mov eax, dword [ebx + 0x84]
call fcn.004519ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46ba3d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004519ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46cd28
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405140
xor eax, eax
push ebp
push 0x46cda6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405150
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x46cd71
mov eax, dword [ebx + 4]
call fcn.00405150
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cdad
lea eax, [ebp - 4]
call fcn.00404c90
ret
Function at 0x46dda8
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46df45
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402d28
cmp word [ebx + 0xa2], 0
je 0x46ddf1
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x46de05
lea esi, [ebp - 8]
jmp 0x46de07
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x46de14
xor edi, edi
jmp 0x46de21
mov eax, dword [ebx + 0x80]
call fcn.00405150
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00405150
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0046d4e0
mov eax, dword [ebp - 0x14]
call fcn.00405150
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00405150
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405150
push eax
mov eax, ebx
call fcn.0046d614
push eax
mov eax, ebx
call fcn.0046d5e8
push eax
mov eax, ebx
call fcn.0046d59c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0046d3ac
mov eax, dword [ebp - 0x18]
call fcn.00405150
push eax
mov eax, dword [ebx + 8]
call fcn.00405150
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x46deaa
call fcn.0040fc5c
xor edx, edx
push ebp
push 0x46df23
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x46dee8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x46dede
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46df0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46df2a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x46df54
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x46df80
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405150
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46dfa5
call fcn.0040fc5c
xor eax, eax
push ebp
push 0x46dfdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x46dfc5
call fcn.0040fc5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dfe3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x470828
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x470999
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470974
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404e78
lea eax, [ebp - 0x118]
mov edx, 0x4709b0
call fcn.00404f58
mov eax, dword [ebp - 0x118]
call fcn.00405150
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4708e6
lea eax, [ebp - 0x111]
call fcn.0040aa54
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404d80
jmp 0x4708ed
mov eax, esi
call fcn.00404c90
cmp bl, 0x61
jae 0x47090e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f2a4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404ce4
jmp 0x470928
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f218
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404ce4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4709bc
call fcn.0040b4f8
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47097b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x47d79c
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 0x47d97c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00481530
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x53b758], eax
mov eax, dword [ebp - 0xc]
mov dword [0x53b75c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x53b760], eax
mov eax, dword [0x543cfc]
cmp dword [eax], 2
sete byte [0x53af10]
push 0x47d988
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00480618
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x53af10], 0
jne 0x47d82b
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0048075c
test al, al
je 0x47d82b
mov eax, dword [ebp - 0x4c]
mov dword [0x545198], eax
jmp 0x47d832
xor eax, eax
mov dword [0x545198], eax
call fcn.0047d4d4
and eax, 0x7f
cmp eax, 0x12
ja case.0x47d843.0
jmp dword [eax*4 + 0x47d84a]
mov byte [0x53aefc], 1
jmp case.0x47d843.0
mov byte [0x53af00], 1
jmp case.0x47d843.0
mov byte [0x53af04], 1
jmp case.0x47d843.0
mov byte [0x53af08], 1
jmp case.0x47d843.0
mov byte [0x53af0c], 1
jmp case.0x47d843.0
mov byte [0x53af14], 1
mov byte [0x53af18], 1
jmp case.0x47d843.0
mov byte [0x53af14], 1
mov byte [0x53af1c], 1
jmp case.0x47d843.0
mov byte [0x53af14], 1
mov byte [0x53af1c], 1
mov byte [0x53af20], 1
jmp case.0x47d843.0
mov byte [0x53af24], 1
jmp case.0x47d843.0
mov byte [0x53af28], 1
jmp case.0x47d843.0
mov byte [0x53af2c], 1
jmp case.0x47d843.0
mov byte [0x53af30], 1
jmp case.0x47d843.0
mov byte [0x53af34], 1
jmp case.0x47d843.0
mov byte [0x53af38], 1
jmp case.0x47d843.0
mov byte [0x53af3c], 1
jmp case.0x47d843.0
mov byte [0x53af40], 1
jmp case.0x47d843.0
mov byte [0x53af44], 1
jmp case.0x47d843.0
mov byte [0x53af48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d983
lea eax, [ebp - 4]
call fcn.00404c90
ret

Function at 0x47f844
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 0x47f8a8
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.00404f00
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409e30
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f8af
lea eax, [ebp - 0xc]
call fcn.00404c90
ret
Function at 0x47feb4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x543c84]
mov al, byte [eax]
xor al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x48003e
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 0x480037
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
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 0x47ff3d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x47ff3d
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 0x47fffd
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
mov eax, dword [0x543970]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
call fcn.0040fcf8
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 0x47ff8d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x47ff92
call fcn.0040fc5c
mov eax, dword [ebp - 0x10]
call fcn.00409608
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.0040fcf8
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x47fffd
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*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
je 0x47fff9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x10
cmp eax, 0x10
setne byte [ebp - 1]
jmp 0x47fffd
inc ebx
dec esi
jne 0x47ffc6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48003e
cmp dword [ebp - 0x14], 0
je 0x480018
mov eax, dword [ebp - 0x14]
call fcn.004028a0
cmp byte [ebp - 0x15], 0
je 0x480027
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
je 0x480036
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405150
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4804ad
test al, 0x10
jne 0x4804b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret