joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77353085
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x773530de
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77353085
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77353094
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77758d37
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x773530e5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77339f5b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77353184
add edi, 4
add eax, 2
dec ecx
jne 0x773530ca
call 0x77353131
loope 0x77353127
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77353181
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77353192
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77353145
cmp eax, ecx
ja 0x77353145
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x773531cf
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x773531c5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733a43a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77353094
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x773530de
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77353085
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77353094
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77758d37
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x773530e5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77339f5b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77353184
add edi, 4
add eax, 2
dec ecx
jne 0x773530ca
call 0x77353131
loope 0x77353127
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77353181
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77353192
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77353145
cmp eax, ecx
ja 0x77353145
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x773531cf
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x773531c5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733a43a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402766
Capabilities:
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp edi, 0x1d803
jg 0x4027a0
inc edi
cmp edi, 0x1e70dee2
jl 0x402772
cmp dword [0x44e4b4], 0x400
jne 0x4027c8
push esi
call fcn.00402823
push esi
push esi
call fcn.00402cc2
push esi
call fcn.00402ae2
push esi
call fcn.00402d6f
add esp, 0x14
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x58bc0a
jg 0x4027e7
inc edi
cmp edi, 0xe14a
jl 0x4027ca
mov eax, dword [0x4465c4]
mov dword [0x44e4b4], eax
call fcn.00402507
mov edi, 0x3078f
cmp dword [0x44e4b4], 0x51f
jne 0x402813
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4027fb
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x405712
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c570]
jne 0x40571c
repz ret
jmp fcn.00406ed0
Function at 0x4069db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c570]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040421f
and dword [ebp - 0x14], 0
cmp dword [0x4480cc], 0
mov dword [ebp - 0x18], eax
jne 0x406a8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406b36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406b36
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4480cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4480d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4480d4], eax
call edi
push eax
call esi
mov dword [0x4480dc], eax
test eax, eax
je 0x406a8e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4480d8], eax
mov eax, dword [0x4480d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406ae7
cmp dword [0x4480dc], ecx
je 0x406ae7
push eax
call esi
push dword [0x4480dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406ae7
test ebx, ebx
je 0x406ae7
call edi
test eax, eax
je 0x406ade
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ade
test byte [ebp - 8], 1
jne 0x406ae7
or dword [ebp + 0x10], 0x200000
jmp 0x406b1a
mov eax, dword [0x4480d0]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406b1a
mov eax, dword [0x4480d4]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4480cc]
call esi
test eax, eax
je 0x406b36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406b38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405712
leave
ret
Function at 0x4036d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4036ee
mov ecx, dword [ebp - 8]
call fcn.00404150
jmp 0x403701
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x403701
mov ecx, dword [ebp - 8]
call fcn.00403fb0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x403873
xor eax, eax
jmp 0x4038c3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40388b
xor eax, eax
jmp 0x4038c3
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x400
jle 0x4038a8
xor eax, eax
jmp 0x4038c3
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x4038c0
xor eax, eax
jmp 0x4038c3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x403940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004053b0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004044a0
push eax
call sub.ucrtbase.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x403fb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x403fd9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x404045
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x40401d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x404024
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x403fd0
mov dword [ebp - 0xc], 0xe3
jmp 0x404057
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x4040c3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x40409b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x4040a2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x40404e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x40410c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x404113
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x404150
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x40416b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x4041d7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4041af
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4041b6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x404162
mov esp, ebp
pop ebp
ret
Function at 0x405720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40000000
call fcn.00405b9a
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
movzx ecx, byte [ebp - 0x19]
push ecx
push str.Snake_Game
lea ecx, [ebp - 0x74]
call fcn.00401860
mov ecx, eax
call fcn.00404740
mov dword [ebp - 0x30], eax
movzx edx, byte [ebp - 0x1a]
push edx
push str.Static
lea ecx, [ebp - 0x58]
call fcn.00401be0
mov ecx, eax
call fcn.00404590
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0xc8
push 0xc8
push 0x64
push 0x64
push 0x10cf0000
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x24], eax
push 0xff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x4091d0], eax
cmp dword [0x4091d0], 0
jne 0x40583c
movzx edx, byte [ebp - 0x1b]
push edx
push str.Error
lea ecx, [ebp - 0x50]
call fcn.00401cc0
mov ecx, eax
call fcn.00404500
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp - 0x1c]
push eax
push str.Cannot_create_red_brush
lea ecx, [ebp - 0x90]
call fcn.00401300
mov ecx, eax
call fcn.00404860
mov dword [ebp - 0x3c], eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x405919
call fcn.00404e30
lea ecx, [ebp - 0xc]
push ecx
call fcn.004051f0
add esp, 4
mov edx, 1
test edx, edx
je 0x4058c7
lea eax, [ebp - 0x14]
push eax
call fcn.004051f0
add esp, 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00401ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00402ea0
add esp, 8
mov ecx, eax
call fcn.00404480
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jl 0x4058ac
jg 0x4058a1
cmp dword [ebp - 0x48], 0x1388
jbe 0x4058ac
call fcn.00404b30
jmp 0x4058aa
jmp 0x4058c7
call fcn.00405530
mov edx, dword [ebp - 0x24]
push edx
call fcn.004048f0
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40584d
mov eax, dword [0x4091d0]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00405ba3
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x40590c
mov dword [ebp - 0x40], 0
jmp 0x405919
mov dword [ebp - 0x20], 0x8123
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405ba8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406646
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406685
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406685
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406685
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406685
cmp dword [ecx + 0x74], 0xe
jbe 0x406685
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x56341d06
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x32302c1e
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, reloc.msvcrt.dll_setvbuf
nop
nop
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x20
push 0xff
push 0x427948
call fcn.00404b20
add esp, 0xc
push 0x41f220
push 0x41f224
call fcn.004088c7
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401271
mov eax, dword [ebp - 4]
push eax
push 1
push 0x20
push 0x427948
call fcn.00408ac4
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
push 0x427968
call fcn.00408ac4
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 5
push section..data
call fcn.00408ac4
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 1
push 0x427969
call fcn.00408ac4
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 1
push 0x42796a
call fcn.00408ac4
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 1
push 0x42796b
call fcn.00408ac4
add esp, 0x10
movzx eax, byte [0x42796b]
test eax, eax
je 0x401265
mov ecx, dword [ebp - 4]
push ecx
push 1
push 4
push 0x42796c
call fcn.00408ac4
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004087e0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x402050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x13
push 0xd
mov edx, dword [0x4279ac]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
push eax
push 0x41f21c
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402250
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f8e
mov esp, ebp
pop ebp
ret

Function at 0x4037e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040f833
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x6c]
push edx
call fcn.00408ac4
add esp, 0x10
push 1
mov eax, dword [ebp - 0x30]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f833
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x164]
push eax
call fcn.00408ac4
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f833
add esp, 0xc
mov ax, word [ebp - 0x15e]
mov word [ebp - 0x16c], ax
xor ecx, ecx
mov word [ebp - 0x168], cx
jmp 0x403884
mov dx, word [ebp - 0x168]
add dx, 1
mov word [ebp - 0x168], dx
movzx eax, word [ebp - 0x168]
movzx ecx, word [ebp - 0x16c]
cmp eax, ecx
jge 0x4038ca
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x2c]
push eax
call fcn.00408ac4
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jb 0x4038c8
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
cmp dword [ebp + 0xc], edx
jae 0x4038c8
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
jmp 0x4038cc
jmp 0x403872
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f8e
mov esp, ebp
pop ebp
ret