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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x473604]
cmp byte [eax + 0xc], 0
je 0x441425
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44141e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474b94], 0
jne 0x44130c
push 0x44142c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441434
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b94], eax
cmp dword [0x472b90], 0
jne 0x441407
push 0x441444
call sub.kernel32.dll_LoadLibraryA
mov dword [0x472b90], eax
cmp dword [0x472b90], 0
je 0x441407
push 0x441450
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b98], eax
push 0x441460
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b9c], eax
push 0x441474
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474ba0], eax
push 0x44148c
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474ba4], eax
push 0x4414a4
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474ba8], eax
push 0x4414b8
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474bac], eax
push 0x4414d0
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474bb0], eax
push 0x4414e8
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474bb4], eax
push 0x441504
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474bb8], eax
push 0x441510
mov eax, dword [0x472b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441425
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4452b0
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.004044e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4452ff
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.00404758
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cb20]
test si, 4
je 0x44cae4
or bl, 1
test si, 8
je 0x44caee
or bl, 4
test si, 1
je 0x44caf8
or bl, 8
test si, 2
je 0x44cb02
or bl, 0x10
test si, 0x10
je 0x44cb0c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44cb24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cb5c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb3d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb4c
or bl, 4
test esi, 0x20000000
je 0x44cb57
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453220
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453232
add esp, 0xfffffff0
call fcn.00403a10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a914
mov eax, dword [0x473244]
mov dword [eax + 4], ebx
mov dword [eax], 0x4535c4
mov eax, dword [0x473254]
mov dword [eax + 4], ebx
mov dword [eax], 0x4535d0
mov eax, ebx
call fcn.004535dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412514]
call fcn.004036a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412514]
call fcn.004036a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412514]
call fcn.004036a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412514]
call fcn.004036a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412514]
call fcn.004036a8
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, 0x44f9f4
push eax
push 0
push 0
mov eax, dword [0x4733cc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c380]
call fcn.0041db40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c380]
call fcn.0041db40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c380]
call fcn.0041db40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453a2c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538f4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538f4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45336f
call fcn.00403a68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4536d8
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 0x453883
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453864
mov dl, 1
mov eax, dword [0x412930]
call fcn.004036a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453853
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.00441618
test al, al
je 0x453846
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, 0x453894
lea eax, [ebp - 0x254]
call fcn.00409668
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453846
xor eax, eax
push ebp
push 0x45383f
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 0x4538cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453828
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404758
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 0x453828
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453846
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453749
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004164f4
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 0x45388a
lea eax, [ebp - 0x260]
call fcn.004044e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x474be0]
cmp byte [eax + 0xa5], 0
jne 0x45423d
cmp dword [0x474bf8], 0
jne 0x4541fe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454188
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x474bf8], eax
cmp dword [0x474bf4], 0
jne 0x454219
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x474bf4], eax
cmp dword [0x474bfc], 0
jne 0x45423d
push esp
push 0
push 0
push 0x45412c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x474bfc], eax
pop edx
ret
Function at 0x4548d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x474be0]
cmp dword [eax + 0x30], 0
je 0x45497a
cmp dword [ebx + 0x94], 0
jne 0x454974
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454860
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454974
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 0x45493a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454974
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.004148d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454949
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4554d8
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 0x45550d
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.004045d8
jmp 0x45551a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040453c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456654
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456695
mov eax, esi
call fcn.0043cc94
test al, al
je 0x456695
mov eax, dword [ebx + 0x84]
call fcn.0043c990
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456695
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c990
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457290
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 0x4572f4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
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.00404758
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408898
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4572fb
lea eax, [ebp - 0xc]
call fcn.004044e8
ret
Function at 0x457f2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45804c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x45802c
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x10], eax
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x458025
xor eax, eax
push ebp
push 0x45801e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x14], eax
test edi, 0xffff0000
jne 0x457fb0
mov dword [ebp - 0x18], edi
jmp 0x457fc5
lea eax, [ebp - 0x20]
mov edx, edi
call fcn.00404d14
mov eax, dword [ebp - 0x20]
call fcn.00404d90
mov dword [ebp - 0x18], eax
test dword [ebp + 0xc], 0xffff0000
jne 0x457fd6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x457fec
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 0xc]
call fcn.00404d14
mov eax, dword [ebp - 0x24]
call fcn.00404d90
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00457db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458031
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeResource
ret
call fcn.0040d5f0
jmp 0x458031
call fcn.0040d5f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458053
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404c0c
ret

Function at 0x458060
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
push 2
push 0
mov eax, edi
call fcn.004049a8
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458112
xor eax, eax
push ebp
push 0x45810b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
mov edx, dword [eax]
call dword [edx + 8]
test esi, esi
jne 0x4580b6
push ebx
push 0x457d60
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceTypesA
jmp 0x4580f4
cmp esi, 0xe
jne 0x4580ce
push ebx
push 0x457d30
push 3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesA
jmp 0x4580e4
cmp esi, 0xc
jne 0x4580e4
push ebx
push 0x457d30
push 1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesA
push ebx
push 0x457d30
push esi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_EnumResourceNamesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458117
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
call fcn.0040d5f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458798
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45886e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x20]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x458853
inc esi
xor ebx, ebx
mov eax, dword [edi + 0x20]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [eax + 0x18]
mov edx, 0x458884
call fcn.004048f4
jne 0x45884b
lea edx, [ebp - 0xc]
mov eax, 0x4588a8
call fcn.004583f8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00458434
mov eax, dword [edi + 0x20]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.00416ca0
mov dl, 1
mov eax, dword [0x412930]
call fcn.004036a8
mov esi, eax
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, esi
call fcn.004036d8
mov eax, dword [ebp - 8]
call fcn.004049a8
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x458853
inc ebx
dec esi
jne 0x4587cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458875
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040450c
ret

Function at 0x458b7c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404998
xor eax, eax
push ebp
push 0x458ca4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4732ec]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.004049a8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004049a8
mov dword [ebp - 8], eax
xor eax, eax
mov al, bl
cmp eax, 4
ja case.default.0x458bc6
jmp dword [eax*4 + 0x458bcd]
mov si, 4
jmp case.default.0x458bc6
mov si, 2
jmp case.default.0x458bc6
mov si, 1
jmp case.default.0x458bc6
mov si, 8
jmp case.default.0x458bc6
mov si, 0x10
mov al, byte [ebp + 8]
sub al, 1
jb 0x458c10
je 0x458c14
dec al
je 0x458c1b
dec al
je 0x458c22
jmp 0x458c27
xor edi, edi
jmp 0x458c27
mov edi, 1
jmp 0x458c27
mov edi, 2
jmp 0x458c27
mov edi, 3
xor edx, edx
push ebp
push 0x458c78
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4732ec]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004049a8
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov ebx, eax
test ebx, ebx
je 0x458c68
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 2
push 0
push edi
push 0
push esi
push ebx
call sub.advapi32.dll_ReportEventA
push ebx
call sub.advapi32.dll_DeregisterEventSource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458c8e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458cab
lea eax, [ebp - 4]
call fcn.004044e8
ret
Function at 0x458f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x458f98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.004091fc
mov dword [ebp - 4], eax
push 0x104
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004046e0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x458fac
call fcn.004047f4
mov eax, dword [ebp - 8]
call fcn.00458cb4
mov eax, dword [ebp - 8]
call fcn.00458de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f9f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040450c
ret

Function at 0x45910c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
call fcn.00404998
xor eax, eax
push ebp
push 0x4592f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov byte [esi], 0
mov dword [ebp - 0xa4], 0x9c
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xa0], 5
jb 0x459292
cmp dword [ebp - 0xa0], 5
jne 0x4591cf
cmp dword [ebp - 0x9c], 0
jne 0x4591cf
lea ecx, [ebp - 0xa8]
mov edx, 0x45930c
mov eax, dword [ebp - 4]
call fcn.004157a4
mov eax, dword [ebp - 0xa8]
xor edx, edx
call fcn.00408898
test eax, eax
jne 0x4591b7
lea eax, [ebp - 8]
mov edx, 0x45933c
call fcn.00404580
jmp 0x4591cf
cmp word [ebp - 0x10], 4
jae 0x4591cd
lea eax, [ebp - 8]
mov edx, 0x459378
call fcn.00404580
jmp 0x4591cf
mov bl, 1
cmp dword [ebp - 0xa0], 5
jne 0x45920a
cmp dword [ebp - 0x9c], 1
jne 0x45920a
cmp word [ebp - 0x10], 3
jae 0x459208
mov edx, 0x4593ac
mov eax, dword [ebp + 8]
call fcn.0042bd84
test al, al
je 0x459208
lea eax, [ebp - 8]
mov edx, 0x4593bc
call fcn.00404580
jmp 0x45920a
mov bl, 1
mov edi, dword [ebp - 0xa0]
cmp edi, 5
jne 0x45923d
cmp dword [ebp - 0x9c], 2
jne 0x45923d
cmp byte [ebp - 0xa], 1
je 0x45923d
cmp word [ebp - 0x10], 2
setae bl
test bl, bl
jne 0x45923d
lea eax, [ebp - 8]
mov edx, 0x4593ec
call fcn.00404580
cmp edi, 6
jne 0x459292
mov byte [esi], 1
cmp dword [ebp - 0x9c], 0
jne 0x459290
lea ecx, [ebp - 0xac]
mov edx, 0x459424
mov eax, dword [ebp - 4]
call fcn.004157a4
mov eax, dword [ebp - 0xac]
mov edx, 1
call fcn.00408898
test eax, eax
jne 0x459290
cmp word [ebp - 0x10], 0
seta bl
test bl, bl
jne 0x459292
lea eax, [ebp - 8]
mov edx, 0x459454
call fcn.00404580
jmp 0x459292
mov bl, 1
test bl, bl
jne 0x4592c3
push 0x30
push 0x45948c
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 8]
mov edx, 0x4594a8
call fcn.004047f4
mov eax, dword [ebp - 0xb0]
call fcn.004049a8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4592f8
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.0040450c
lea eax, [ebp - 8]
call fcn.004044e8
lea eax, [ebp + 8]
call fcn.004044e8
ret
Function at 0x4594d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404998
xor eax, eax
push ebp
push 0x45958b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.004049a8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.00402a38
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45959c
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x24], ecx
and edx, 0xffff
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0xc]
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x1c], ecx
and edx, 0xffff
mov dword [ebp - 0x18], edx
mov edx, ebx
mov eax, esi
call fcn.00402a68
mov eax, dword [ebp - 8]
mov edi, eax
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459592
lea eax, [ebp - 4]
call fcn.004044e8
ret

Function at 0x45ee44
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x45ee95
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x45ee7c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x45ee6c
jmp 0x45ee95
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x45ee7d
pop ebx
mov esp, ebp
pop ebp
ret