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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x30dfb97
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e789
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e772
test esi, esi
jbe 0x41e789
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e764
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e789
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e741
jmp 0x41e789
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e789
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30dfb9e
ret
Function at 0x41efb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x30e0563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41efef
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f008
lea eax, [ebp - 0x10]
mov edx, dword [0x30f6208]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f01b
lea eax, [ebp - 0x10]
mov edx, dword [0x30f6208]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f027
adc edx, 0
mov edx, dword [edx*4 + 0x30f50ac]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f135
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f128
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f128
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f128
cmp dx, 0x150
ja 0x41f128
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f128
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f14d
inc ebx
cmp ebx, 0x19
jne 0x41efe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30e056a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4055f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00405215
push eax
push esi
push dword [ebp + 8]
call fcn.004051ca
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00405215
push eax
push esi
push dword [ebp + 8]
call fcn.004051ca
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00405205
mov ah, 0x47
test cl, 0x88
popfd
jl 0x40568a
invalid
invalid
Function at 0x40ed00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov ecx, dword [0x4466c0]
test ecx, ecx
je 0x40ed1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x68], 0x41414141
mov eax, dword [0x43fb80]
lea esi, [ebp - 0x68]
mov dword [ebp - 0x64], 0x41414141
mov dword [ebp - 0x60], 0x41414141
mov dword [ebp - 0x48], eax
mov eax, dword [0x43fb84]
mov dword [ebp - 0x5c], 0x41414141
mov dword [ebp - 0x58], 0x41414141
mov dword [ebp - 0x44], eax
mov eax, dword [0x43fb88]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x40], eax
mov eax, dword [0x43fb8c]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x3c], eax
mov eax, dword [0x43fb90]
mov dword [ebp - 0x38], eax
mov eax, dword [0x43fb94]
mov dword [ebp - 0x34], eax
mov eax, dword [0x43fb98]
mov dword [ebp - 0x30], eax
mov eax, dword [0x43fb9c]
mov dword [ebp - 0x2c], eax
movzx eax, word [0x43fba0]
mov word [ebp - 0x28], ax
mov dword [esp], esi
call dword [0x44720c]
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0xbc], eax
jne 0x40eefc
mov dword [esp], 0x3c
call fcn.00412b30
test eax, eax
mov ebx, eax
je 0x40ef30
cld
mov edi, eax
mov eax, dword [ebp - 0xbc]
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov dword [ebx + 4], fcn.00410ad0
mov ecx, 1
mov dword [ebx + 8], 0x40cc50
mov eax, dword [0x446690]
mov dword [ebx], 0x3c
mov edx, dword [0x446694]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x14], eax
mov eax, dword [0x43e190]
mov dword [ebx + 0x18], edx
mov edx, dword [0x43e194]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x4466a0]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x2c], eax
mov edx, dword [0x43e19c]
mov eax, dword [0x43e198]
mov dword [ebx + 0x38], edx
mov edx, 0x1f
mov dword [ebx + 0x34], eax
mov esi, esi
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [edx + ebp - 0xb8], al
dec edx
jns 0x40ee50
mov eax, dword [0x43fb80]
mov dword [ebp - 0x98], eax
mov eax, dword [0x43fb84]
mov dword [ebp - 0x94], eax
mov eax, dword [0x43fb88]
mov dword [ebp - 0x90], eax
mov eax, dword [0x43fb8c]
mov dword [ebp - 0x8c], eax
mov eax, dword [0x43fb90]
mov dword [ebp - 0x88], eax
mov eax, dword [0x43fb94]
mov dword [ebp - 0x84], eax
mov eax, dword [0x43fb98]
mov dword [ebp - 0x80], eax
mov eax, dword [0x43fb9c]
mov dword [ebp - 0x7c], eax
movzx eax, word [0x43fba0]
mov word [ebp - 0x78], ax
lea eax, [ebp - 0xb8]
mov dword [esp], eax
call dword [0x4471fc]
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x40ef21
xor edx, edx
test edx, edx
jne 0x40ef03
mov dword [esp], ebx
call fcn.00412b20
mov dword [esp], esi
call dword [0x44720c]
sub esp, 4
movzx eax, ax
call fcn.0040ec60
mov ebx, eax
mov dword [0x4466c0], ebx
lea eax, [ebx + 4]
mov dword [0x4466b0], eax
lea eax, [ebx + 8]
mov dword [0x4466d0], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.0040ec60
cmp eax, ebx
mov edx, edi
jne 0x40eedf
jmp 0x40eee1
call fcn.00412ad0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

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

Disassembly:
test eax, eax
jne 0x401c9b
mov eax, dword [0x404387]
jmp 0x401cd6
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop eax
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
push 0
push 0
push 0
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetMessageW]
and eax, eax
je 0x401cd3
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401cb5
mov eax, dword [ebp - 0x14]
jmp loc.00406000
push ebp
mov ebp, esp
sub esp, 0x4c
mov ebx, str.dewjts
mov eax, dword [ebp + 8]
mov dword [0x4042d7], eax
push str.Troots
mov edi, dword [0x4042d7]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
push 0x7f02
mov dword [ebp - 0x38], edi
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov eax, 0
mov dword [ebp - 0x34], eax
mov eax, 3
mov dword [ebp - 0x48], eax
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x30
mov eax, 0x4018c0
mov dword [ebp - 0x44], eax
mov eax, 0xe
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor eax, eax
mov dword [0x4042db], ebp
mov edi, eax
inc eax
push edi
push dword [0x4042d7]
dec eax
push edi
push edi
push eax
push ebx
push edi
push edi
push 0x80ca0000
push str.Troots
push str.dewjts
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, 0
jne 0x401c90
leave
ret 0x10
Function at 0x405b2b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xb0
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jne 0x405c53
mov eax, dword [0x433f48]
mov dword [ebp - 0x10], eax
mov eax, dword [0x433f48]
add eax, 0x1ffe
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x42fea0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x405ba5
lea eax, [ebp - 0x10]
push eax
push 0
push 0x44b
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
jmp 0x405bbf
lea eax, [ebp - 0x10]
push eax
push 0
push 0x44b
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405be0
mov eax, dword [ebp - 4]
movzx eax, word [eax*2 + 0x42fe9e]
cmp eax, 0xd
jne 0x405be0
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov word [eax*2 + 0x42fea0], 0xd
mov eax, dword [ebp - 4]
mov word [eax*2 + 0x42fea2], 0
push closesocket
mov eax, dword [0x433f48]
add eax, 0x1ffe
push eax
push 0xb1
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x42fe70], 0
mov dword [0x42fe54], 0x4255b0
push 0x449
push 2
push 0x461
push dword [0x433ea0]
call fcn.0040771b
push dword [ebp - 4]
call fcn.00405d25
jmp 0x405d16
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
cmp eax, 0x1ffe
jb 0x405c6f
mov eax, 0x1ffe
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x42fea0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x405cac
lea eax, [ebp - 0x10]
push eax
push 0
push 0x44b
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
jmp 0x405cc6
lea eax, [ebp - 0x10]
push eax
push 0
push 0x44b
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
push closesocket
push dword [0x433f48]
push 0xb1
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x42fe70], 0
mov dword [0x42fe54], 0x42fea0
push 0x449
push 2
push 0x461
push dword [0x433ea0]
call fcn.0040771b
mov word [0x42fea0], 0
mov eax, 1
jmp 0x405d20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call fcn.00406166
push 1
push dword [0x433ef8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [0x433f20]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [0x437f80]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 1
push 0xa
push dword [0x433ea0]
call fcn.00407141
push 5
push dword [0x433ef8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x433f20]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x437f80]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x433ea0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
jmp 0x406161
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406e4f
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call fcn.004057a6
mov dword [0x433f34], 0
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push 1
push dword [0x433ef8]
call dword [sym.imp.USER32.dll_KillTimer]
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
push dword [0x427de0]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x433f28]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x406ed8
push 0
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x406efb
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x406efb
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x406efb
cmp dword [ebp - 4], 0xfffffffd
je 0x406ec4
cmp dword [ebp - 4], 0xfffffffe
je 0x406eb5
cmp dword [ebp - 4], 0xffffffff
je 0x406ea6
jmp 0x406efb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407db4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0xffffffff
je 0x407dd8
cmp dword [ebp + 0xc], 2
jbe 0x407dd8
xor eax, eax
jmp 0x407f8e
push dword [0x433f14]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.00406bc9
push dword [ebp - 0x20]
push dword [0x433f14]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1fff
jl 0x407e1e
mov dword [ebp - 4], 0x1fff
jmp 0x407e2a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp + 8]
push 0x433f60
call fcn.00408920
add esp, 0xc
mov eax, dword [ebp - 4]
mov word [eax*2 + 0x433f60], 0
mov eax, dword [ebp + 0xc]
cmp dword [0x42fe84], eax
je 0x407e72
push 0
push dword [0x433f14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [0x42fe84], eax
cmp dword [0x42fe84], 0xffffffff
jne 0x407e89
mov eax, 1
jmp 0x407f8e
cmp dword [ebp - 4], 0
jne 0x407eac
cmp dword [0x42fe84], 0
jne 0x407eac
mov dword [ebp - 0xc], 0x1a4
jmp 0x407ee5
cmp dword [0x427dc4], 0x10
jne 0x407ec5
mov dword [ebp - 0xc], 0x1a4
jmp 0x407ee5
cmp dword [0x427dc4], 0x14
jne 0x407ede
mov dword [ebp - 0xc], 0x20d
jmp 0x407ee5
mov dword [ebp - 0xc], 0x348
cmp dword [0x42fe84], 0
jne 0x407f09
mov eax, dword [ebp - 0xc]
imul eax, eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 8], eax
jmp 0x407f0f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
mov eax, dword [ebp - 8]
add eax, 6
push eax
mov eax, dword [ebp - 0xc]
add eax, 6
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
sub eax, 6
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
sub eax, 6
cdq
sub eax, edx
sar eax, 1
push eax
push dword [0x433f14]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0
push dword [0x433f14]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
push dword [0x433f14]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x433f14]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
jmp 0x407f8e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4085d3
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov dword [ebp - 0x114], 4
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
push 0x1008
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x408617
xor eax, eax
jmp 0x4086de
cmp dword [ebp - 4], 1
je 0x408628
xor eax, eax
jmp 0x4086de
mov dword [ebp - 0x108], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jne 0x40867e
push 0x10000
push dword [ebp + 8]
call fcn.00422f47
mov dword [ebp - 0x108], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jne 0x4086d4
push 0x20000
push dword [ebp + 8]
call fcn.00422f47
mov eax, 1
jmp 0x4086de
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4086e5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408733
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40872c
mov eax, 0xffffffff
jmp 0x40873c
xor eax, eax
jmp 0x40873c
mov eax, dword [ebp - 4]
inc eax
jmp 0x40873c
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408743
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408791
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40878a
mov eax, 0xffffffff
jmp 0x4087a4
xor eax, eax
jmp 0x4087a4
push 2
push dword [ebp + 8]
call fcn.0041a4c2
mov eax, dword [ebp - 4]
inc eax
jmp 0x4087a4
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408d10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x409d28
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 [0x427b14], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x427b10], ecx
shl ecx, 8
add ecx, edx
mov dword [0x427b0c], ecx
shr eax, 0x10
mov dword [0x427b08], eax
call fcn.00409bf0
test eax, eax
jne 0x408d7a
push 0x1c
call fcn.00408eb0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004099f0
call fcn.004099e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4380b0], eax
call fcn.004095b0
mov dword [0x427af0], eax
test eax, eax
je 0x408dad
mov eax, dword [0x4380b0]
test eax, eax
jne 0x408db7
push 0xffffffffffffffff
call fcn.00408f10
add esp, 4
call fcn.00409300
call fcn.00409210
call fcn.00408ee0
mov esi, dword [0x4380b0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x408e96
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x408dfe
test al, al
je 0x408dfe
and eax, 0xff
push eax
call fcn.004091b0
add esp, 4
test eax, eax
je 0x408dd8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408dd8
cmp byte [esi], 0x22
jne 0x408e07
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x408e17
cmp al, 0x20
ja 0x408e17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408e07
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408e38
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x408e3d
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.00408f10
jmp 0x408e7b
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 0x408e07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408e96

Function at 0x408f50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x427b44]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x408f6f
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 [0x427b40], 1
mov byte [0x427b3c], bl
jne 0x408fc9
mov ecx, dword [0x4380a8]
test ecx, ecx
je 0x408fb7
mov esi, dword [0x4380a4]
sub esi, 4
cmp esi, ecx
jb 0x408fb7
mov eax, dword [esi]
test eax, eax
je 0x408fb0
call eax
mov ecx, dword [0x4380a8]
sub esi, 4
cmp esi, ecx
jae 0x408fa2
push 0x425014
push 0x425010
call fcn.00409000
add esp, 8
push 0x42501c
push 0x425018
call fcn.00409000
add esp, 8
test ebx, ebx
jne 0x408ff0
push ebp
mov dword [0x427b44], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret