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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x4902fe
or eax, 0xffffffff
jmp 0x490303
mov eax, dword [0x5762bc]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5775ac
call fcn.00423124
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4903a0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4903a0
cmp edi, ebx
je 0x490355
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x577ca4
call fcn.00423124
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x4903a9
test ebx, ebx
je 0x49038c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4903a0
cmp dword [ebp - 4], 0
je 0x49038c
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4903a2
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x4903a0
test edi, edi
je 0x4903a0
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4903a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4903a0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x4903a2
Function at 0x493c78
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x57e934], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x493ca7
or dword [0x57e934], 1
mov ecx, 0x57e930
call fcn.00406fe0
push 0x52ffd5
call fcn.00507d35
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x493cb3
call fcn.0041a3b3
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x493d2c
cmp dword [eax + 0x20], 0
je 0x493d2c
test eax, eax
je 0x493cca
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x493d2c
mov eax, dword [edi + 4]
dec eax
je 0x493d0b
dec eax
je 0x493ce1
dec eax
jne 0x493d2c
mov esi, 0x428e
jmp 0x493d10
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x493d10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x493d10
add esi, 3
jmp 0x493d10
mov esi, 0x3ea0
push esi
mov ecx, 0x57e930
call fcn.00406aa0
test eax, eax
je 0x493cae
mov eax, dword [0x57e930]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x493d2e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49470f
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x49478f
cmp dword [ebp + 0xc], ecx
jne 0x49478f
cmp dword [ebx + 0x94], ecx
jne 0x49478f
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x494785
cmp eax, 0xffffffff
je 0x494785
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.00410fe2
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x49478f
xor eax, eax
jmp 0x4948cf
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x4947ca
cmp dword [ebp + 0xc], 0
jne 0x4947ca
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.00410fe2
test eax, eax
jne 0x49477e
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4947f0
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4947f0
cmp eax, 0xffffffff
je 0x4947f0
cmp dword [ebx + 0x90], ecx
jne 0x4947f0
cmp dword [ebx + 0xa8], ecx
je 0x49477e
push dword [ebx + 0x6c]
push 0x577440
call fcn.00423124
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x494829
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x49488f
push edi
jmp 0x49488a
push dword [ebx + 0x6c]
push 0x5770b0
call fcn.00423124
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x494855
cmp eax, edi
je 0x494855
cmp dword [0x57cff4], edi
jne 0x494855
push 1
push ebx
mov ecx, eax
call fcn.0047d6a8
jmp 0x494882
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49486d
push edi
call fcn.004315e0
cmp eax, edi
je 0x49486d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x49477e
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49488f
push ebx
call fcn.0043429b
cmp dword [ebx + 0x6c], edi
je 0x4948cc
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00424553
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a829f
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x528f92
call fcn.0050971f
xor edi, edi
cmp dword [0x576fac], edi
je 0x4a8368
cmp dword [0x577b50], 0xfffffffe
jne 0x4a8355
cmp dword [ebp + 8], 0xffffffff
je 0x4a8368
test byte [0x57ed00], 1
mov esi, 0x57ece0
jne 0x4a82fe
or dword [0x57ed00], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00442bf5
push 0x530055
call fcn.00507d35
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00442c4c
cmp dword [0x57ecdc], edi
je 0x4a8312
call fcn.0041a3b3
push edi
push edi
push 0x4a8247
call fcn.0050dbb7
add esp, 0xc
mov dword [0x57ecdc], eax
cmp eax, edi
jbe 0x4a8342
cmp eax, 0xffffffff
je 0x4a8342
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x577b50], eax
jmp 0x4a8348
mov dword [0x57ecdc], edi
push 0x57ece8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a8368
mov eax, dword [ebp + 8]
mov dword [0x577b50], eax
cmp eax, 0xffffffff
jne 0x4a8368
mov dword [0x57ecdc], edi
call fcn.005097f7
ret
Function at 0x4e7b27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e7b3f
mov edi, dword [esi + 0xc]
jmp 0x4e7b7f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e7b58
call fcn.0041831d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e7b6d
call fcn.0041831d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e7b7f
call fcn.0041831d
call fcn.00417af6
cmp dword [eax + 0x3c], 0
je 0x4e7b94
push edi
mov ecx, ebx
call fcn.004e6982
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e7a4d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e7bb2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7bbe
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ed874
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4ed8be
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ed8be
call fcn.004ed12d
test eax, eax
je 0x4ed8be
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00406720
xor eax, eax
inc eax
jmp 0x4edad6
cmp dword [ebx + 4], 0x100
push edi
jne 0x4edacd
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4ed9bb
push 0x11
call edi
test ax, ax
jl 0x4ed9bb
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ed9bb
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4ed92e
cmp eax, 0x20
jbe 0x4ed9bb
cmp eax, 0x24
jbe 0x4ed921
cmp eax, 0x26
je 0x4ed921
cmp eax, 0x28
jne 0x4ed9bb
call fcn.004ed12d
test eax, eax
je 0x4ed9bb
mov ecx, esi
call fcn.0041685a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004ed12d
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4ed963
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00406720
jmp 0x4edac8
call fcn.004144f0
test eax, eax
je 0x4edac8
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00414555
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ed991
xor edi, edi
jmp 0x4ed994
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.004144f0
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4edac8
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4eda97
sub eax, 0x12
je 0x4eda6f
sub eax, 0xb
je 0x4ed9dd
dec eax
dec eax
jne 0x4edacd
push 0x12
call edi
test ax, ax
jl 0x4edacd
push 0x11
call edi
test ax, ax
jl 0x4edacd
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4edacd
call fcn.004ed12d
test eax, eax
jne 0x4edac8
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004ed0a7
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041312d
test eax, eax
je 0x4edac8
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041312d
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4edac8
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4eda83
push 0
call fcn.004ed0a7
mov ecx, esi
call fcn.00413c73
test eax, eax
je 0x4edacd
mov ecx, esi
call fcn.00413c73
jmp 0x4edac1
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041312d
test eax, eax
je 0x4edacd
push dword [esi + 0x20]
call edi
push eax
call fcn.0041312d
push 0
push esi
mov ecx, eax
call fcn.0040d4b3
mov ecx, eax
call fcn.0041685a
xor eax, eax
inc eax
jmp 0x4edad5
push ebx
mov ecx, esi
call fcn.00411045
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x502bc0
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x502c00
test edi, edi
jl 0x502c00
cmp al, 0x20
je 0x502bf5
cmp word [ebp + 8], 0x71
jne 0x502c00
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x507bff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x579680]
jne 0x507c09
repz ret
jmp fcn.0050ecd4

Function at 0x51c32d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050ee4c
and dword [ebp - 4], 0
cmp dword [0x580a04], 0
mov ebx, eax
jne 0x51c3de
push 0x53531c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51c48f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5572dc
push edi
call esi
test eax, eax
je 0x51c48f
push eax
call fcn.0050edda
mov dword [esp], 0x5572cc
push edi
mov dword [0x580a04], eax
call esi
push eax
call fcn.0050edda
mov dword [esp], 0x5572b8
push edi
mov dword [0x580a08], eax
call esi
push eax
call fcn.0050edda
mov dword [esp], 0x55729c
push edi
mov dword [0x580a0c], eax
call esi
push eax
call fcn.0050edda
pop ecx
mov dword [0x580a14], eax
test eax, eax
je 0x51c3de
push 0x557284
push edi
call esi
push eax
call fcn.0050edda
pop ecx
mov dword [0x580a10], eax
mov eax, dword [0x580a10]
cmp eax, ebx
je 0x51c436
cmp dword [0x580a14], ebx
je 0x51c436
push eax
call fcn.0050ee55
push dword [0x580a14]
mov esi, eax
call fcn.0050ee55
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51c436
test edi, edi
je 0x51c436
call esi
test eax, eax
je 0x51c42d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51c42d
test byte [ebp - 0xc], 1
jne 0x51c436
or dword [ebp + 0x10], 0x200000
jmp 0x51c46f
mov eax, dword [0x580a08]
cmp eax, ebx
je 0x51c46f
push eax
call fcn.0050ee55
pop ecx
test eax, eax
je 0x51c46f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51c46f
mov eax, dword [0x580a0c]
cmp eax, ebx
je 0x51c46f
push eax
call fcn.0050ee55
pop ecx
test eax, eax
je 0x51c46f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x580a04]
call fcn.0050ee55
pop ecx
test eax, eax
je 0x51c48f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51c491
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40186e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x2c
cmp dword [0x40ad58], eax
jne 0x4018c2
push eax
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [0x40d98c]
test eax, eax
jl 0x4018c2
xor edx, edx
mov eax, 0x40ad58
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
jmp 0x4018b6
cmp word [eax], 0x5a4d
jne 0x4018b3
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x4018bd
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4018a0
jmp 0x4018c2
mov dword [0x40ad58], eax
mov eax, dword [0x40ad58]
leave
ret

Function at 0x404312
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40434f
xor eax, eax
leave
ret
add eax, 0x2c
push 1
push eax
call fcn.00405bff
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
je 0x404357
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], 0
jne 0x404335
jmp 0x404331
mov eax, dword [eax + 0x18]
leave
ret

Function at 0x40435c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
push ebx
push esi
push edi
je 0x40441f
cmp word [ecx], 0x5a4d
jne 0x40441f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40441f
mov esi, dword [eax + 0x78]
test esi, esi
je 0x40441f
mov eax, dword [eax + 0x7c]
and dword [ebp - 4], 0
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
add edi, ecx
add ebx, ecx
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x40441f
mov eax, dword [edi]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x404411
push 0
push 0
push eax
call fcn.00406045
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jne 0x40440e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 0x14], eax
jb 0x404421
cmp eax, dword [ebp - 0xc]
ja 0x404421
push 0x2e
push 0x1c
push eax
call fcn.00405c35
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
ja 0x404426
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [ebp - 0x10]
jb 0x4043c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
inc esi
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.0040564f
push 4
lea eax, [ebp + esi - 0x34]
push 0x409404
push eax
call fcn.0040564f
add esi, edi
xor edi, edi
push edi
push edi
push esi
call fcn.00406045
add esp, 0x24
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push 1
push edi
push eax
call fcn.00406045
push eax
call fcn.00404312
add esp, 0x10
push eax
call fcn.0040435c
add esp, 0xc
jmp 0x404421
Function at 0x4053b7
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x4053ca
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x4053e8
test edx, ecx
je 0x4053e8
test edi, ecx
jne 0x405416
test esi, esi
je 0x4053f5
test edx, ecx
je 0x4053f5
or eax, 0x20
jmp 0x405419
mov esi, ecx
and esi, edx
je 0x405404
test edi, ecx
je 0x40540d
or eax, 4
jmp 0x405419
test edi, ecx
je 0x40540d
or eax, 8
jmp 0x405419
test esi, esi
je 0x405416
or eax, 2
jmp 0x405419
or eax, 0x40
pop edi
pop esi
ret
Function at 0x401150
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4055d0
push 0x68
push esi
call edi
push 0x64
push 0x405638
push 0x70
push esi
call edi
xor eax, eax
push 0x7f00
push eax
mov dword [0x4031b6], esi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6e
push esi
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [ebp - 0x38]
push 0x6c
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0x6e
mov dword [ebp - 0x24], str.Clariot
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], 0x401460
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.004013d0
add esp, 8
test eax, eax
jne 0x40121d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401273
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]

Function at 0x40128f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4012b8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4012b0
cmp al, 0x22
jne 0x4012a4
cmp byte [esi], 0x22
jne 0x4012c2
inc esi
jmp 0x4012c2
cmp al, 0x20
jle 0x4012c2
inc esi
cmp byte [esi], 0x20
jg 0x4012bc
mov al, byte [esi]
test al, al
je 0x4012cc
cmp al, 0x20
jle 0x4012b5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d26
push 0x403004
push section..data
call fcn.00401d0c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4012fc
movzx eax, word [ebp - 0x14]
jmp 0x4012ff
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401d3e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4031b6], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401417
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401ac0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4d2200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x4d222e
cmp bl, 0xd7
je 0x4d222e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x4d224f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x4d2223
jmp 0x4d224f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.004d2cc0
cmp bl, 0xd8
jne 0x4d224f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x4d224f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x4d2245
pop esi
pop ebx
pop ebp
ret

Function at 0x4d3000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x4d302e
cmp bl, 0xd7
je 0x4d302e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x4d304f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x4d3023
jmp 0x4d304f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.004d3ac0
cmp bl, 0xd8
jne 0x4d304f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x4d304f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x4d3045
pop esi
pop ebx
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219