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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x577a54], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x488740
or dword [0x577a54], 1
mov ecx, 0x577a50
call fcn.004037bb
push 0x5287f5
call fcn.00501127
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x48874c
call fcn.004067a2
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4887c5
cmp dword [eax + 0x20], 0
je 0x4887c5
test eax, eax
je 0x488763
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4887c5
mov eax, dword [edi + 4]
dec eax
je 0x4887a4
dec eax
je 0x48877a
dec eax
jne 0x4887c5
mov esi, 0x428e
jmp 0x4887a9
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4887a9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x4887a9
add esi, 3
jmp 0x4887a9
mov esi, 0x3ea0
push esi
mov ecx, 0x577a50
call fcn.00402330
test eax, eax
je 0x488747
mov eax, dword [0x577a50]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4887c7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4895dc
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 0x48965c
cmp dword [ebp + 0xc], ecx
jne 0x48965c
cmp dword [ebx + 0x94], ecx
jne 0x48965c
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x489652
cmp eax, 0xffffffff
je 0x489652
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.0040bd35
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x48965c
xor eax, eax
jmp 0x48979c
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x489697
cmp dword [ebp + 0xc], 0
jne 0x489697
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.0040bd35
test eax, eax
jne 0x48964b
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4896bd
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4896bd
cmp eax, 0xffffffff
je 0x4896bd
cmp dword [ebx + 0x90], ecx
jne 0x4896bd
cmp dword [ebx + 0xa8], ecx
je 0x48964b
push dword [ebx + 0x6c]
push 0x570444
call fcn.0041201a
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x4896f6
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 0x48975c
push edi
jmp 0x489757
push dword [ebx + 0x6c]
push 0x570084
call fcn.0041201a
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x489722
cmp eax, edi
je 0x489722
cmp dword [0x57611c], edi
jne 0x489722
push 1
push ebx
mov ecx, eax
call fcn.00471831
jmp 0x48974f
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48973a
push edi
call fcn.00420476
cmp eax, edi
je 0x48973a
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 0x48964b
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48975c
push ebx
call fcn.00423096
cmp dword [ebx + 0x6c], edi
je 0x489799
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.004131a1
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 0x49dc39
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x521fb0
call fcn.005017b0
xor edi, edi
cmp dword [0x56ff64], edi
je 0x49dd02
cmp dword [0x570c54], 0xfffffffe
jne 0x49dcef
cmp dword [ebp + 8], 0xffffffff
je 0x49dd02
test byte [0x577e20], 1
mov esi, 0x577e00
jne 0x49dc98
or dword [0x577e20], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00431d70
push 0x528875
call fcn.00501127
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00431dc7
cmp dword [0x577dfc], edi
je 0x49dcac
call fcn.004067a2
push edi
push edi
push 0x49dbe1
call fcn.00505c10
add esp, 0xc
mov dword [0x577dfc], eax
cmp eax, edi
jbe 0x49dcdc
cmp eax, 0xffffffff
je 0x49dcdc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x570c54], eax
jmp 0x49dce2
mov dword [0x577dfc], edi
push 0x577e08
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x49dd02
mov eax, dword [ebp + 8]
mov dword [0x570c54], eax
cmp eax, 0xffffffff
jne 0x49dd02
mov dword [0x577dfc], edi
call fcn.00501888
ret
Function at 0x4da13a
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x524734
call fcn.00501819
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004dfc63
push 0x15c
call fcn.004028e4
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4da17e
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e1545
jmp 0x4da180
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004dfc35
call fcn.00409960
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4da320
cmp dword [edi + 4], ebx
jle 0x4da320
lea ecx, [ebp - 0x21c]
call fcn.004037bb
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4da304
lea ecx, [ebp - 0x220]
call fcn.004037bb
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4da255
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00403aa3
add esp, 0xc
jmp 0x4da287
jge 0x4da275
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00403aa3
add esp, 0x10
jmp 0x4da287
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402030
push 0x15c
call fcn.004028e4
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4da2ab
mov ecx, eax
call fcn.004b2e3e
mov esi, eax
jmp 0x4da2ad
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00408bb1
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004dfc35
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402410
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402410
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4da1ee
call fcn.0050189c
ret
Function at 0x4dedc6
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 0x4dedde
mov edi, dword [esi + 0xc]
jmp 0x4dee1e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4dedf7
call fcn.00409d92
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dee0c
call fcn.00409d92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dee1e
call fcn.00409d92
call fcn.00409960
cmp dword [eax + 0x3c], 0
je 0x4dee33
push edi
mov ecx, ebx
call fcn.004ddc1f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004decec
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4dee51
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dee5d
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 0x4e637a
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 0x4e63c4
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e63c4
call fcn.004e5c06
test eax, eax
je 0x4e63c4
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00402860
xor eax, eax
inc eax
jmp 0x4e65dc
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e65d3
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e64c1
push 0x11
call edi
test ax, ax
jl 0x4e64c1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e64c1
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e6434
cmp eax, 0x20
jbe 0x4e64c1
cmp eax, 0x24
jbe 0x4e6427
cmp eax, 0x26
je 0x4e6427
cmp eax, 0x28
jne 0x4e64c1
call fcn.004e5c06
test eax, eax
je 0x4e64c1
mov ecx, esi
call fcn.0041167a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e5c06
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e6469
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00402860
jmp 0x4e65ce
call fcn.0040f616
test eax, eax
je 0x4e65ce
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040f64e
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e6497
xor edi, edi
jmp 0x4e649a
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040f616
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4e65ce
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e659d
sub eax, 0x12
je 0x4e6575
sub eax, 0xb
je 0x4e64e3
dec eax
dec eax
jne 0x4e65d3
push 0x12
call edi
test ax, ax
jl 0x4e65d3
push 0x11
call edi
test ax, ax
jl 0x4e65d3
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e65d3
call fcn.004e5c06
test eax, eax
jne 0x4e65ce
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e5b80
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.0040df89
test eax, eax
je 0x4e65ce
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040df89
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e65ce
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e6589
push 0
call fcn.004e5b80
mov ecx, esi
call fcn.0040f0e4
test eax, eax
je 0x4e65d3
mov ecx, esi
call fcn.0040f0e4
jmp 0x4e65c7
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040df89
test eax, eax
je 0x4e65d3
push dword [esi + 0x20]
call edi
push eax
call fcn.0040df89
push 0
push esi
mov ecx, eax
call fcn.0040700a
mov ecx, eax
call fcn.0041167a
xor eax, eax
inc eax
jmp 0x4e65db
push ebx
mov ecx, esi
call fcn.0040bda9
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f38d8
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x526d88
call fcn.005017b0
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4f39b1
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4f39b1
cmp ebx, 0x43
je 0x4f391a
cmp ebx, 0x2d
jne 0x4f39b1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f39b1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004037bb
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403aa3
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402410
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00470517
call fcn.00501888
ret 4

Function at 0x4fba4e
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_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x4fba93
test edi, edi
jl 0x4fba93
cmp ax, 0x20
je 0x4fba88
cmp word [ebp + 8], 0x71
jne 0x4fba93
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x500dd2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x572980]
jne 0x500ddc
repz ret
jmp fcn.00507f16
Function at 0x513808
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.0050787a
and dword [ebp - 4], 0
cmp dword [0x579c10], 0
mov ebx, eax
jne 0x5138b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51396a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51396a
push eax
call fcn.00507808
mov dword [esp], 0x550e44
push edi
mov dword [0x579c10], eax
call esi
push eax
call fcn.00507808
mov dword [esp], 0x550e30
push edi
mov dword [0x579c14], eax
call esi
push eax
call fcn.00507808
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x579c18], eax
call esi
push eax
call fcn.00507808
pop ecx
mov dword [0x579c20], eax
test eax, eax
je 0x5138b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00507808
pop ecx
mov dword [0x579c1c], eax
mov eax, dword [0x579c1c]
cmp eax, ebx
je 0x513911
cmp dword [0x579c20], ebx
je 0x513911
push eax
call fcn.00507883
push dword [0x579c20]
mov esi, eax
call fcn.00507883
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x513911
test edi, edi
je 0x513911
call esi
test eax, eax
je 0x513908
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x513908
test byte [ebp - 0xc], 1
jne 0x513911
or dword [ebp + 0x10], 0x200000
jmp 0x51394a
mov eax, dword [0x579c14]
cmp eax, ebx
je 0x51394a
push eax
call fcn.00507883
pop ecx
test eax, eax
je 0x51394a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51394a
mov eax, dword [0x579c18]
cmp eax, ebx
je 0x51394a
push eax
call fcn.00507883
pop ecx
test eax, eax
je 0x51394a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x579c10]
call fcn.00507883
pop ecx
test eax, eax
je 0x51396a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51396c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026d0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026de
call dword [0x45501c]
or eax, eax
je 0x4026df
ret
mov al, 1
jmp fcn.0040275c

Function at 0x4026e8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026f6
call dword [0x455020]
or eax, eax
jne 0x4026f7
ret
mov al, 2
jmp fcn.0040275c

Function at 0x402700
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402738
test edx, edx
je 0x402722
push eax
mov eax, ecx
call dword [0x455024]
pop ecx
or eax, eax
je 0x402731
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040275c
mov dword [eax], edx
mov eax, ecx
call dword [0x455020]
or eax, eax
jne 0x40271b
ret
mov al, 1
jmp fcn.0040275c
test edx, edx
je 0x40274c
push eax
mov eax, edx
call dword [0x45501c]
pop ecx
or eax, eax
je 0x402731
mov dword [ecx], eax
ret

Function at 0x40275c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x459004]
test ecx, ecx
je 0x40276c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402785]
jns 0x402780
call fcn.00406578
mov eax, dword [eax + 4]
jmp fcn.00403af8

Function at 0x4027a0
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00406578
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x4027b5
ret
xor eax, eax
jmp fcn.0040275c

Function at 0x4028e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402913
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403bec
jmp 0x402931
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040286c
mov edi, eax
test ebx, ebx
je 0x402931
cmp dword [esi], 0
je 0x402931
dec ebx
jmp 0x40291a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cb8
xor eax, eax
push ebp
push 0x402cb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cf4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402cb8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f58
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402f72
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402f72
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402f5e
mov al, 0xa
jmp fcn.0040275c
ret
Function at 0x402fa4
Capabilities:
Terminate process

Disassembly:
cmp dword [0x459018], 0
je 0x40298b
call dword [0x459018]
mov eax, 0xd2
jmp fcn.00403af8
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f74
pop ecx
pop eax
je 0x402fb3
jmp ebx
pop ecx
jmp 0x40297c

Function at 0x402fbc
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402f74
mov eax, ebx
pop ebx
jne 0x402fd1
pop ecx
jmp 0x40297c
ret

Function at 0x403868
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, 0x45949c
lea edi, [ebp - 0x3c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop dword [0x4594bc]
pop dword [0x4594b8]
mov dword [0x4594b0], ebp
mov dword [0x4594b4], ebx
mov dword [0x4594a4], eax
mov dword [0x4594ac], edx
lea ecx, [ebp - 0x3c]
mov dword [0x45949c], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4038b1
mov ecx, dword [eax]
mov dword [0x4594a8], ecx
call fcn.00403760
mov eax, dword [ebp + 0xc]
inc eax
mov byte [0x4594c0], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [0x4594c4], edx
je 0x4038d4
call dword [ecx + eax*4]
mov edx, dword [esp + 4]
test edx, edx
je 0x4038e1
mov eax, dword [ebp + 0xc]
call edx
cmp dword [0x45901c], 0
jne 0x4038f7
mov byte [0x459024], 1
fnstcw word [section.DATA]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004039cc
call fcn.00403808
ret 4

Function at 0x4039cc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x45949c
mov esi, 0x459030
mov edi, 0x459034
cmp byte [ebx + 0x24], 0
jne 0x4039fb
cmp dword [edi], 0
je 0x4039fb
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x4039ea
cmp dword [0x459038], 0
je 0x403a4b
call fcn.00403948
cmp byte [0x459040], 0
je 0x403a28
mov edx, 0x45502c
mov eax, 0x459214
call fcn.00405d90
call fcn.00405d13
jmp 0x403a44
cmp byte [0x455010], 0
jne 0x403a44
push 0
push 0x45504c
push 0x45502c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x459038], eax
cmp byte [ebx + 0x24], 2
jne 0x403a5b
cmp dword [esi], 0
jne 0x403a5b
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004037a8
cmp byte [ebx + 0x24], 1
jbe 0x403a6b
cmp dword [esi], 0
je 0x403a88
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403a88
call fcn.00405778
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403a88
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403780
cmp byte [ebx + 0x24], 1
jne 0x403a96
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403aa1
call fcn.00403998
cmp dword [ebx], 0
jne 0x403aae
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403a4b

Function at 0x403aec
Capabilities:
Terminate process

Disassembly:
mov dword [0x459030], eax
jmp fcn.004039cc

Function at 0x404170
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00404134
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00404134
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x40411c
ret