joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x191910cc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6e9424f3
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401840
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0x7f00
je 0x401870
mov ecx, esi
cmp esi, 0x40
jge 0x40185b
mov ecx, 0x40
jmp 0x401868
cmp esi, 0x114
jle 0x401868
mov ecx, 0x114
mov eax, dword [0x414184]
mov dword [eax + 4], ecx
cmp dword [0x414094], 0
je 0x4018ef
cmp dword [0x414178], 0
jne 0x4018a4
push 0
push 0
push 2
call fcn.00404680
add esp, 0xc
cmp word [0x411f78], 0
je 0x4018a4
mov dword [0x414178], 1
cmp dword [esp + 0x10], 0
je 0x4018da
cmp esi, 0x7f00
je 0x4018da
cmp dword [esp + 0xc], 0x7f00
je 0x4018da
cmp word [0x41408c], 0
jne 0x4018e3
inc word [0x41408c]
call fcn.00402380
mov eax, 1
pop esi
ret
mov word [0x41408c], 0
call fcn.00402380
mov eax, 1
pop esi
ret
mov dword [0x41570c], 2
call fcn.004011e0
call fcn.004014a0
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, 1
pop esi
mov dword [0x415b44], 0
ret

Function at 0x401920
Capabilities:
Log keystrokes via polling

Disassembly:
test byte [esp + 0xc], 0xc
push ebx
push esi
push edi
push ebp
je 0x401962
mov dword [0x41570c], 1
call fcn.004011e0
call fcn.004014a0
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
inc word [0x41408c]
mov eax, 1
mov dword [0x415b44], 0
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp ecx, 0x7f00
jne 0x401988
cmp edx, 0x7f00
jne 0x401988
mov eax, dword [0x414184]
mov dword [eax + 0x28], 0
jmp 0x4019a4
mov eax, dword [0x414184]
mov dword [eax + 4], ecx
mov eax, dword [0x414184]
mov dword [eax + 8], edx
mov eax, dword [0x414184]
mov dword [eax + 0x28], 1
xor edx, edx
cmp dword [0x414160], edx
jbe 0x401a16
xor ecx, ecx
xor esi, esi
mov eax, dword [0x414184]
add eax, ecx
cmp dword [eax], 2
jne 0x401a0a
dec dword [eax + 0x24]
mov eax, dword [0x414184]
add eax, ecx
cmp dword [eax + 0x24], esi
jne 0x401a0a
inc dword [eax + 0x20]
mov edi, dword [0x414184]
add edi, ecx
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi + 0x20]
cmp dword [eax + 4], ebx
ja 0x4019fe
mov dword [edi + 0x20], esi
xor edi, edi
mov ebx, dword [0x414184]
add ebx, ecx
mov ebp, dword [ebx + 0x1c]
mov eax, dword [ebp + 0xc]
mov di, word [eax]
mov dword [ebx + 0x24], edi
jmp 0x401a0a
mov eax, dword [eax + 0xc]
xor ebp, ebp
mov bp, word [eax + ebx*2]
mov dword [edi + 0x24], ebp
add ecx, 0x38
inc edx
cmp dword [0x414160], edx
ja 0x4019b2
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402920
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
xor di, di
mov esi, dword [esp + 0xc]
push esi
call fcn.00402ac0
add esp, 4
mov ecx, dword [esi + 0xc]
add ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], ecx
sar ecx, 0x10
add eax, edx
mov dword [esi + 0x18], eax
mov dword [esi + 4], ecx
sar eax, 0x10
mov dword [esi + 8], eax
test eax, eax
jle 0x402967
cmp edx, 0x40000
jge 0x402967
add edx, 0x2000
mov dword [esi + 0x10], edx
cmp eax, 0x1a4
jle 0x402974
mov dword [esi], 0
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0x14]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x402ab7
cmp word [0x41416c], 0x200
je 0x402ab7
movsx eax, word [edx]
add eax, ecx
mov dword [0x4140e0], eax
xor eax, eax
mov ax, word [edx + 4]
add eax, dword [0x4140e0]
mov dword [0x4140e8], eax
movsx eax, word [edx + 2]
add eax, dword [esi + 8]
push 0x4140e0
push 0x4140c0
mov dword [0x4140e4], eax
xor eax, eax
mov ax, word [edx + 6]
add eax, dword [0x4140e4]
mov dword [0x4140ec], eax
call fcn.004028f0
add esp, 8
test eax, eax
je 0x402ab7
push 2
push 0x412570
call fcn.00405128
add esp, 8
test eax, eax
jne 0x402a49
cmp word [esi + 0x30], 2
push 0
push 0
jae 0x402a0b
push 0xc
jmp 0x402a0d
push 0xb
call fcn.00404680
add esp, 0xc
push 5
push 0x412578
call fcn.00405128
add esp, 8
test eax, eax
jne 0x402a49
push 0
push 0
push 5
call fcn.00406336
movzx eax, ax
add esp, 4
mov ecx, dword [eax*4 + 0x412578]
push ecx
call fcn.00404680
add esp, 0xc
mov eax, dword [esi + 0x28]
push eax
call fcn.00401600
add esp, 4
mov ecx, dword [0x414184]
mov eax, dword [ecx + 0x28]
cmp eax, 5
je 0x402a8c
cmp eax, 7
je 0x402a8c
cmp eax, 9
je 0x402a8c
cmp eax, 6
je 0x402a7c
cmp eax, 8
je 0x402a7c
cmp eax, 0xa
jne 0x402a9a
cmp word [esi + 0x30], 4
sbb edi, edi
and edi, 2
add di, 0x12
jmp 0x402a9a
cmp word [esi + 0x30], 4
sbb edi, edi
and edi, 2
add di, 0x11
test di, di
je 0x402ab1
push edi
mov eax, dword [ecx + 8]
push eax
mov edx, dword [ecx + 4]
push edx
push ecx
call fcn.00402330
add esp, 0x10
mov dword [esi], 0
pop edi
pop esi
ret
Function at 0x405aa1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405ae2
mov eax, 1
jmp 0x405af3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x405af3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405af8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405b37
mov eax, 1
jmp 0x405b48
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x405b48
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push 2
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405f81
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00405d70
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x405f43
push 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
shl eax, 2
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx]
add eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
jmp 0x405f89
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065b9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp dword [0x412a40], 0
je 0x40667c
mov dword [0x415b44], 0
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [0x412a40], 0
cmp dword [0x412a54], 0
je 0x406607
call fcn.00408036
jmp 0x40667c
mov eax, dword [0x415b70]
push eax
push 0xfffffffffffffff4
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push 1
call fcn.004053e5
add esp, 4
cmp dword [0x415b80], 0
je 0x40667c
mov eax, dword [0x415b38]
imul eax, dword [0x415b3c]
push eax
push 0
mov eax, dword [0x415b34]
push eax
call fcn.0040b6a0
add esp, 0xc
call fcn.00407a88
push 0
mov eax, dword [0x415b80]
push eax
mov eax, dword [0x415b18]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [0x415b18]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406681
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
call fcn.0040631a
add esp, 4
call dword [sym.imp.WINMM.dll_timeGetTime]
movzx eax, ax
push eax
call fcn.0040b700
add esp, 4
call fcn.00404670
mov dword [0x415b7c], eax
call fcn.00406a08
test eax, eax
je 0x4066d0
xor eax, eax
jmp 0x4068dc
mov eax, dword [ebp + 8]
mov dword [0x415b54], eax
call fcn.00404660
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004089a5
add esp, 8
test eax, eax
je 0x4068c3
push 8
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [0x412a60], 0
jne 0x406730
push 0x412a70
call fcn.00407ca7
add esp, 4
mov dword [0x412a60], 1
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x4068be
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4067fc
cmp dword [ebp - 0x24], 0x12
jne 0x406771
mov dword [ebp - 8], 1
jmp 0x4068be
cmp dword [ebp - 0x24], 0x112
jne 0x4067c3
cmp dword [ebp - 0x20], 0xf140
jne 0x4067c3
call fcn.004077a0
xor ecx, ecx
mov cl, al
test ecx, ecx
jne 0x4067a9
cmp dword [0x412a54], 0
je 0x4067b3
jmp 0x406737
call fcn.004064c1
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x412a40], 0
jne 0x4067e3
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
jne 0x4067e3
call fcn.004064c1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4068b9
cmp dword [0x412a40], 0
jne 0x406816
cmp dword [0x412a54], 0
je 0x406821
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x4068b9
cmp dword [0x412a60], 2
jne 0x4068b9
inc dword [0x412a60]
call fcn.00401020
test eax, eax
je 0x4068af
push 0
push 0x405f8e
push 0x412a7c
call fcn.004068e3
add esp, 0xc
push 1
push 0x406149
push 0x412a88
call fcn.004068e3
add esp, 0xc
cmp dword [0x412a3c], 0
je 0x40688c
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004077b5
call fcn.004065b9
call fcn.00403c60
mov dword [ebp - 0xc], eax
call fcn.004077a0
xor ecx, ecx
mov cl, al
mov dword [0x412a3c], ecx
mov dword [ebp - 8], 1
jmp 0x4068b9
call fcn.00408482
call fcn.0040826d
jmp 0x406737
call fcn.00408743
cmp dword [0x412a3c], 0
je 0x4068d4
or dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
jmp 0x4068dc
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x407a53
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x402
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x4155c8
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x408260
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x180000
ja 0x408245
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408240
mov eax, dword [ebp + 0xc]
push eax
call fcn.004091f3
add esp, 4
test eax, eax
je 0x408240
mov dword [ebp - 4], 1
jmp 0x408256
mov eax, dword [ebp + 8]
push eax
push str.Module_to_Large__s
call fcn.004063c6
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x408268
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408482
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.00407a23
mov eax, dword [0x415b50]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4084e5
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push 0
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x2c], 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 9
push 8
mov eax, dword [0x415b50]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x415b50]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40851d
mov eax, dword [0x415b50]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x415b50]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
cmp dword [0x415b68], 0
je 0x408536
mov eax, dword [0x415b68]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x415b64], 0
je 0x40854f
mov eax, dword [0x415b64]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b260
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x40c614
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4130d0], eax
xor eax, eax
mov al, byte [0x4130d1]
mov dword [0x4130dc], eax
mov eax, dword [0x4130d0]
shr dword [0x4130d0], 0x10
and eax, 0xff
mov dword [0x4130d8], eax
shl eax, 8
add eax, dword [0x4130dc]
mov dword [0x4130d4], eax
call fcn.0040c5d0
test eax, eax
jne 0x40b2d4
push 0x1c
call fcn.0040b400
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040c3f0
call fcn.0040c3e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x415ca0], eax
call fcn.0040bf90
mov dword [0x4130a0], eax
test eax, eax
je 0x40b307
cmp dword [0x415ca0], 0
jne 0x40b311
push 0xffffffffffffffff
call fcn.0040b830
add esp, 4
call fcn.0040bd10
call fcn.0040bc20
call fcn.0040b800
mov esi, dword [0x415ca0]
mov al, byte [esi]
cmp al, 0x22
je 0x40b338
cmp al, 0x20
jbe 0x40b365
inc esi
cmp byte [esi], 0x20
ja 0x40b330
jmp 0x40b365
inc esi
cmp byte [esi], 0x22
je 0x40b364
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40b35f
xor eax, eax
mov al, bl
push eax
call fcn.0040bbc0
add esp, 4
test eax, eax
je 0x40b359
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x40b341
cmp byte [esi], 0x22
jne 0x40b365
inc esi
cmp byte [esi], 0
je 0x40b375
cmp byte [esi], 0x20
ja 0x40b375
inc esi
cmp byte [esi], 0
jne 0x40b36a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40b399
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040b830
jmp 0x40b3da
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b870
Capabilities:
Terminate process

Disassembly:
cmp dword [0x41310c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40b88e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x413108], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x413104], bl
jne 0x40b8e8
cmp dword [0x415c98], 0
je 0x40b8d6
mov edi, dword [0x415c94]
sub edi, 4
cmp edi, dword [0x415c98]
jb 0x40b8d6
mov eax, dword [edi]
test eax, eax
je 0x40b8cb
call eax
sub edi, 4
cmp edi, dword [0x415c98]
jae 0x40b8c3
push 0x410014
push 0x410010
call fcn.0040b920
add esp, 8
push 0x41001c
push 0x410018
call fcn.0040b920
add esp, 8
test ebx, ebx
jne 0x40b90f
mov dword [0x41310c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x40bf90
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4131b0], ebx
jne 0x40bfdf
call esi
cmp eax, ebx
mov edi, eax
je 0x40bfbd
mov dword [0x4131b0], 1
jmp 0x40bfdf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x40bfd5
mov dword [0x4131b0], 2
jmp 0x40bfdf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4131b0], 1
jne 0x40c08e
test edi, edi
jne 0x40c002
call esi
mov edi, eax
test edi, edi
jne 0x40c002
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40c01c
add esi, 2
cmp word [esi], 0
jne 0x40c00a
add esi, 2
cmp word [esi], 0
jne 0x40c00a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40c07d
push ebp
call fcn.0040b480
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40c07d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40c06c
push ebx
call fcn.0040b430
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4131b0], 2
jne 0x40c112
test ebx, ebx
jne 0x40c0b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x40c0b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40c0c6
inc ebp
cmp byte [ebp], 0
jne 0x40c0b8
inc ebp
cmp byte [ebp], 0
jne 0x40c0b8
sub ebp, ebx
inc ebp
push ebp
call fcn.0040b480
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40c0eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret