joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431864
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x431880
cmp dword [esi + 4], 0
je 0x4318ad
test byte [ebx + 0x55], 1
jne 0x43189f
mov eax, ebx
call fcn.004304bc
test eax, eax
jne 0x43189f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4319bd
mov edx, esi
mov eax, ebx
call fcn.00431384
jmp 0x4319bd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4319b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433634
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042e1a8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00431864
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433634
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4319bd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437d14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44ef20]
cmp byte [eax + 0xc], 0
je 0x437e81
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437e7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x44fbb8], 0
jne 0x437d68
push 0x437e88
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x437e90
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbb8], eax
cmp dword [0x44e984], 0
jne 0x437e63
push 0x437ea0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44e984], eax
cmp dword [0x44e984], 0
je 0x437e63
push 0x437eac
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbbc], eax
push 0x437ebc
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbc0], eax
push 0x437ed0
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbc4], eax
push 0x437ee8
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbc8], eax
push 0x437f00
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbcc], eax
push 0x437f14
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbd0], eax
push 0x437f2c
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbd4], eax
push 0x437f44
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbd8], eax
push 0x437f60
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbdc], eax
push 0x437f6c
mov eax, dword [0x44e984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fbe0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437e81
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43ba94
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.004041f8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43bae3
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.00404460
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443924
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443974]
test si, 4
je 0x443938
or bl, 1
test si, 8
je 0x443942
or bl, 4
test si, 1
je 0x44394c
or bl, 8
test si, 2
je 0x443956
or bl, 0x10
test si, 0x10
je 0x443960
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44396f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x443978
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4439b0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443991
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4439a0
or bl, 4
test esi, 0x20000000
je 0x4439ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449fb4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x449fc6
add esp, 0xfffffff0
call fcn.004037f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b140
mov eax, dword [0x44ec5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44a358
mov eax, dword [0x44ec68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44a364
mov eax, ebx
call fcn.0044a370
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
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, 0x446838
push eax
push 0
push 0
mov eax, dword [0x44ed7c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cad0]
call fcn.0041ded4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cad0]
call fcn.0041ded4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cad0]
call fcn.0041ded4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044a790
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44a66c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44a66c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44a66c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a103
call fcn.00403848
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44a450
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 0x44a5fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44a5dc
mov dl, 1
mov eax, dword [0x411690]
call fcn.00403474
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44a5cb
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.00438074
test al, al
je 0x44a5be
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, 0x44a60c
lea eax, [ebp - 0x254]
call fcn.00408cd8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44a5be
xor eax, eax
push ebp
push 0x44a5b7
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 0x44a644
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44a5a0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404460
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 0x44a5a0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a5be
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44a4c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004157d8
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 0x44a602
lea eax, [ebp - 0x260]
call fcn.004041f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x44fbfc]
cmp byte [eax + 0xa5], 0
jne 0x44afa1
cmp dword [0x44fc14], 0
jne 0x44af62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44aeec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44fc14], eax
cmp dword [0x44fc10], 0
jne 0x44af7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44fc10], eax
cmp dword [0x44fc18], 0
jne 0x44afa1
push esp
push 0
push 0
push 0x44ae90
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44fc18], eax
pop edx
ret
Function at 0x44b098
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b0af
add esp, 0xfffffff0
call fcn.004037f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b140
mov eax, dword [0x44ed6c]
cmp word [eax + 2], 0
jne 0x44b0d7
mov eax, dword [0x44ed6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c6cc
mov eax, dword [0x44edf0]
cmp word [eax + 2], 0
jne 0x44b0f1
mov eax, dword [0x44edf0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c8c4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111a0]
call fcn.00403474
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], 0x80000018
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 [0x41d280]
call fcn.00422e8c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44b278
mov eax, dword [0x44ecb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042325c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44ce34
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44ecb0]
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]

Function at 0x44b614
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbfc]
cmp dword [eax + 0x30], 0
je 0x44b6be
cmp dword [ebx + 0x94], 0
jne 0x44b6b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44b5a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44b6b8
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 0x44b67e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44b6b8
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.00413840
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44b68d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c19c
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 0x44c1d1
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.004042e8
jmp 0x44c1de
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040424c
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x44d1ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d22d
mov eax, esi
call fcn.00433938
test al, al
je 0x44d22d
mov eax, dword [ebx + 0x84]
call fcn.00433634
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d22d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433634
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401600
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
push eax
push 1
lea ecx, [esi + 0x70]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
lea eax, [esi + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
lea ecx, [esi + 0xd4]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x401662
mov dword [esi + 4], 1
pop edi
pop esi
pop ecx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ecx
ret

Function at 0x401670
Capabilities:
Copy file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x300
mov eax, dword [edx]
push ebx
push esi
cmp eax, 1
push edi
jne 0x40176b
cmp dword [edx + 4], 1
jne 0x40176b
mov edi, str.wc3dsmax.drv
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x20c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [edx + 8]
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
jne 0x4016ce
lea ebx, [esp + 0xc]
mov edi, str.V3wc3dsmax.drv
jmp 0x4016e0
cmp eax, 4
jne 0x40176b
lea ebx, [esp + 0xc]
mov edi, str.V4wc3dsmax.drv
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x210]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
add esp, 0x300
ret
Function at 0x401a90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405108
push 0x402db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4089f8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4089f4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4089f0], ecx
shr eax, 0x10
mov dword [0x4089ec], eax
call fcn.00402c80
test eax, eax
jne 0x401afa
push 0x1c
call fcn.00401c60
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402a80
call fcn.00402a70
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408ed4], eax
call fcn.00402430
mov dword [0x4089d4], eax
test eax, eax
je 0x401b2d
mov eax, dword [0x408ed4]
test eax, eax
jne 0x401b37
push 0xffffffffffffffff
call fcn.00401d90
add esp, 4
call fcn.00402180
call fcn.00402090
call fcn.00401d60
mov esi, dword [0x408ed4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401c16
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401b7e
test al, al
je 0x401b7e
and eax, 0xff
push eax
call fcn.00402030
add esp, 4
test eax, eax
je 0x401b58
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b58
cmp byte [esi], 0x22
jne 0x401b87
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401b97
cmp al, 0x20
ja 0x401b97
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b87
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401bb8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401bbd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401d90
jmp 0x401bfb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401b87
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c16

Function at 0x401c60
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4089dc], 1
jne 0x401c6e
call fcn.00402e90
mov eax, dword [esp + 4]
push eax
call fcn.00402ed0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408a28]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401def
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408a24], 1
mov byte [0x408a20], bl
jne 0x401e49
mov ecx, dword [0x408ecc]
test ecx, ecx
je 0x401e37
mov esi, dword [0x408ec8]
sub esi, 4
cmp esi, ecx
jb 0x401e37
mov eax, dword [esi]
test eax, eax
je 0x401e30
call eax
mov ecx, dword [0x408ecc]
sub esi, 4
cmp esi, ecx
jae 0x401e22
push 0x406014
push 0x406010
call fcn.00401e80
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401e80
add esp, 8
test ebx, ebx
jne 0x401e70
push ebp
mov dword [0x408a28], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x402430
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408b38]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402472
call edi
mov esi, eax
test esi, esi
je 0x40245c
mov eax, 1
jmp 0x40246d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40257f
mov eax, 2
mov dword [0x408b38], eax
cmp eax, 1
jne 0x402512
test esi, esi
jne 0x40248b
call edi
mov esi, eax
test esi, esi
je 0x40257f
cmp word [esi], 0
mov eax, esi
je 0x4024a5
add eax, 2
cmp word [eax], 0
jne 0x402493
add eax, 2
cmp word [eax], 0
jne 0x402493
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402504
push edi
call fcn.00403100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402504
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4024f6
push ebx
call fcn.004030b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40257f
test ebx, ebx
jne 0x402523
call ebp
mov ebx, eax
test ebx, ebx
je 0x40257f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40253b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40252b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40252b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403100
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40255d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret