joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446d0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446d44]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446d25
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446d34
or bl, 4
test esi, 0x20000000
je 0x446d3f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d3ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d3fe
add esp, 0xfffffff0
call fcn.00403404
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f84
mov eax, dword [0x452e44]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d790
mov eax, dword [0x452e50]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d79c
mov eax, ebx
call fcn.0044d7a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
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, 0x449bc4
push eax
push 0
push 0
mov eax, dword [0x452f90]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41a9a8]
call fcn.0041bdec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41a9a8]
call fcn.0041bdec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41a9a8]
call fcn.0041bdec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044dbc8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44daa4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44daa4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44daa4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d53b
call fcn.0040345c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d888
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 0x44da33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44da14
mov dl, 1
mov eax, dword [0x411698]
call fcn.004030c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e30
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44da03
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.0043b894
test al, al
je 0x44d9f6
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, 0x44da44
lea eax, [ebp - 0x254]
call fcn.004087a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d9f6
xor eax, eax
push ebp
push 0x44d9ef
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 0x44da7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d9d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040a0
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 0x44d9d8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d9f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d8f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415174
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 0x44da3a
lea eax, [ebp - 0x260]
call fcn.00403e30
ret

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

Disassembly:
push ecx
mov eax, dword [0x454bb0]
cmp byte [eax + 0xa5], 0
jne 0x44e3d9
cmp dword [0x454bc8], 0
jne 0x44e39a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e324
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x454bc8], eax
cmp dword [0x454bc4], 0
jne 0x44e3b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x454bc4], eax
cmp dword [0x454bcc], 0
jne 0x44e3d9
push esp
push 0
push 0
push 0x44e2c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x454bcc], eax
pop edx
ret
Function at 0x44e4d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e4e7
add esp, 0xfffffff0
call fcn.00403404
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f84
mov eax, dword [0x452f7c]
cmp word [eax + 2], 0
jne 0x44e50f
mov eax, dword [0x452f7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044fba8
mov eax, dword [0x453024]
cmp word [eax + 2], 0
jne 0x44e529
mov eax, dword [0x453024]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044fda0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41127c]
call fcn.004030c8
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 [0x41b158]
call fcn.00420ddc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44e6b0
mov eax, dword [0x452ea4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004211ac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450340
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452ea4]
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.0040be20
test eax, eax
je 0x44e61e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040819c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040be48
test eax, eax
je 0x44e632
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.004040a0
mov eax, dword [0x452da4]
cmp byte [eax], 0
jne 0x44e666
mov eax, ebx
call fcn.0044e7d8
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.0045051c
mov eax, ebx
call fcn.00450ee0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e6a6
call fcn.0040345c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ea58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454bb0]
cmp dword [eax + 0x30], 0
je 0x44eb02
cmp dword [ebx + 0x94], 0
jne 0x44eafc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e9e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44eafc
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 0x44eac2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44eafc
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.004135e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ead1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f664
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 0x44f699
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.00403f20
jmp 0x44f6a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e84
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4506f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450739
mov eax, esi
call fcn.00436e7c
test al, al
je 0x450739
mov eax, dword [ebx + 0x84]
call fcn.00436b78
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450739
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436b78
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x411556
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.user32.dll_LoadIconA]
push 0
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call sub.psapi.dll_GetModuleInformation
mov word [ebp - 0x20], 0x16
movzx eax, word [ebp - 0x20]
or eax, eax
je 0x4115c3
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004112be
add esp, 4
call fcn.00411391
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.kernel32.dll_DeleteTimerQueue]
push 0x96
call fcn.00411b0f
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
cmp dword [ebp - 8], 0
je 0x4115fd
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00411b0a
add esp, 4
sub eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411b66
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x418180
call fcn.00413010
mov edi, 0x94
push edi
pop eax
call fcn.00413060
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x455a0c], ecx
mov eax, dword [esi + 4]
mov dword [0x455a18], eax
mov edx, dword [esi + 8]
mov dword [0x455a1c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x455a10], esi
cmp ecx, 2
je 0x411bc6
or esi, 0x8000
mov dword [0x455a10], esi
shl eax, 8
add eax, edx
mov dword [0x455a14], eax
sub esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411c01
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411c01
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411c19
cmp eax, 0x20b
je 0x411c06
mov dword [ebp - 0x1c], esi
jmp 0x411c2d
cmp dword [ecx + 0x84], 0xe
jbe 0x411c01
sub eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411c27
cmp dword [ecx + 0x74], 0xe
jbe 0x411c01
sub eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412fbc
pop ecx
or eax, eax
jne 0x411c41
push 0x1c
call fcn.00411b42
pop ecx
call fcn.00412f33
or eax, eax
jne 0x411c52
push 0x10
call fcn.00411b42
pop ecx
call fcn.00412e1c
mov dword [ebp - 4], esi
call fcn.00412c1e
or eax, eax
jge 0x411c6b
push 0x1b
call fcn.00411b1d
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4561f0], eax
call fcn.00412afc
mov dword [0x4559fc], eax
call fcn.00412a5a
or eax, eax
jge 0x411c91
push 8
call fcn.00411b1d
pop ecx
call fcn.00412827
or eax, eax
jge 0x411ca2
push 9
call fcn.00411b1d
pop ecx
call fcn.00412332
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x411cb5
push eax
call fcn.00411b1d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004127be
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x411cd6
movzx eax, word [ebp - 0x34]
jmp 0x411cd9
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00411556
push eax
pop edi
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411cf7
push edi
call fcn.0041246a
call fcn.0041248c
jmp 0x411d29
or dword [ebp - 4], 0xffffffff
push edi
pop eax
lea esp, [ebp - 0x7c]
call fcn.0041304b
ret
Function at 0x412397
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00413f23
sub esi, esi
inc esi
cmp dword [0x455a4c], esi
pop ecx
jne 0x4123bf
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x455a48], esi
mov byte [0x455a44], al
jne 0x412425
mov ecx, dword [0x4561e8]
or ecx, ecx
je 0x412406
mov eax, dword [0x4561e4]
sub eax, 4
cmp eax, ecx
jmp 0x4123ff
mov eax, dword [eax]
or eax, eax
je 0x4123f1
call eax
mov eax, dword [0x4561e4]
sub eax, 4
cmp eax, dword [0x4561e8]
mov dword [0x4561e4], eax
jae 0x4123e9
mov eax, 0x41a01c
mov esi, 0x41a020
cmp eax, esi
push eax
pop edi
jae 0x412425
mov eax, dword [edi]
or eax, eax
je 0x41241e
call eax
add edi, 4
cmp edi, esi
jb 0x412416
mov eax, 0x41a024
mov esi, 0x41a028
cmp eax, esi
push eax
pop edi
jae 0x412444
mov eax, dword [edi]
or eax, eax
je 0x41243d
call eax
add edi, 4
cmp edi, esi
jb 0x412435
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x412455
push 8
call fcn.00413e8f
jmp 0x412467
push dword [ebp + 8]
mov dword [0x455a4c], 1
call fcn.004122f0
pop ecx
pop ebp
ret
Function at 0x4124aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x454f90]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
sub edx, edx
push edi
sub eax, eax
cmp ecx, dword [eax*8 + 0x454e00]
je 0x4124d7
inc eax
cmp eax, 0x12
jb 0x4124c8
push eax
pop esi
shl esi, 3
cmp ecx, dword [esi + 0x454e00]
jne 0x41260b
mov eax, dword [0x455a04]
cmp eax, 1
je 0x4125e6
cmp eax, edx
jne 0x412507
cmp dword [0x454de4], 1
je 0x4125e6
cmp ecx, 0xfc
je 0x41260b
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
or eax, eax
jne 0x412540
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00413940
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004138b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412582
lea eax, [ebp - 0x10c]
push eax
call fcn.004138b0
push eax
pop edi
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x418560
push edi
call fcn.00414c80
add esp, 0x10
push edi
call fcn.004138b0
push dword [esi + 0x454e04]
push eax
pop ebx
call fcn.004138b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413060
mov ebx, esp
push str.7pt58hbp646rmv_n_nProgram:
push ebx
call fcn.00413940
push edi
push ebx
call fcn.00413950
push 0x418540
push ebx
call fcn.00413950
push dword [esi + 0x454e04]
push ebx
call fcn.00413950
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414b84
add esp, 0x2c
jmp 0x41260b
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x454e04]
push dword [esi]
call fcn.004138b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00413c0c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412afc
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x455b60]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
sub ebx, ebx
sub esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x412b45
call edi
push eax
pop esi
cmp esi, ebx
je 0x412b2c
mov dword [0x455b60], 1
jmp 0x412b4a
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x412b40
mov eax, ebp
mov dword [0x455b60], eax
jmp 0x412b45
mov eax, dword [0x455b60]
cmp eax, 1
jne 0x412bc7
cmp esi, ebx
jne 0x412b56
call edi
push eax
pop esi
cmp esi, ebx
je 0x412bcf
cmp word [esi], bx
push esi
pop eax
je 0x412b6b
add eax, ebp
cmp word [eax], bx
jne 0x412b5d
add eax, ebp
cmp word [eax], bx
jne 0x412b5d
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sbb eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x412bbc
push ebp
call fcn.004122de
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x412bbc
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x412bb8
push dword [esp + 0x10]
call fcn.004121c6
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x412c17
cmp eax, ebp
je 0x412bd3
cmp eax, ebx
je 0x412bd3
sub eax, eax
jmp 0x412c17
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push eax
pop esi
cmp esi, ebx
je 0x412bcf
cmp byte [esi], bl
je 0x412bed
inc eax
cmp byte [eax], bl
jne 0x412be3
inc eax
cmp byte [eax], bl
jne 0x412be3
sbb eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004122de
push eax
pop edi
cmp edi, ebx
pop ecx
jne 0x412c03
sub edi, edi
jmp 0x412c0e
push ebp
push esi
push edi
call fcn.004152e0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push edi
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x414b84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
sub ebx, ebx
cmp dword [0x455cc0], ebx
push esi
push edi
jne 0x414c04
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
je 0x414c3f
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
or eax, eax
mov dword [0x455cc0], eax
je 0x414c3f
push str.GetActiveWindow
push edi
call esi
push 0x4185f0
push edi
mov dword [0x455cc4], eax
call esi
cmp dword [0x455a0c], 2
mov dword [0x455cc8], eax
jne 0x414c04
push str.GetUserObjectInformationA
push edi
call esi
or eax, eax
mov dword [0x455cd0], eax
je 0x414c04
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x455ccc], eax
mov eax, dword [0x455ccc]
or eax, eax
je 0x414c49
call eax
or eax, eax
je 0x414c30
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x455cd0]
or eax, eax
je 0x414c30
test byte [ebp - 8], 1
jne 0x414c49
cmp dword [0x455a18], 4
jb 0x414c43
or byte [ebp + 0x12], 0x20
jmp 0x414c68
sub eax, eax
jmp 0x414c78
or byte [ebp + 0x12], 4
jmp 0x414c68
mov eax, dword [0x455cc4]
or eax, eax
je 0x414c68
call eax
push eax
pop ebx
or ebx, ebx
je 0x414c68
mov eax, dword [0x455cc8]
or eax, eax
je 0x414c68
push ebx
call eax
push eax
pop ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x455cc0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417456
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413060
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
or eax, eax
je 0x4174eb
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sbb esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x455a0c]
push eax
pop ecx
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4174eb
cmp eax, 1
je 0x417503
push edi
pop ebx
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
or eax, eax
je 0x4174eb
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4174c0
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4174e7
sub eax, eax
inc eax
jmp 0x41751f
cmp esi, ebx
jae 0x4174ef
sub eax, eax
jmp 0x41751f
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x455a0c]
jmp 0x417505
push esi
pop ebx
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret