joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
jl 0x40108c
mov eax, dword [edi + 4]
mov esi, 0x41d064
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x401066
cmp cl, bl
je 0x401062
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x401066
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x401044
xor eax, eax
jmp 0x40106b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40108c
push dword [edi + 8]
call fcn.004102ba
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call fcn.0040582d
add esp, 0x10
push ebx
call fcn.0041015a
call fcn.00401dfc
call fcn.004021cc
mov esi, eax
call fcn.00402470
test eax, eax
jne 0x4010a5
cmp esi, ebx
jne 0x4010aa
call fcn.00402188
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call fcn.004018b8
add esp, 0x3c
cmp dword [ebp - 4], ebx
je 0x401128
cmp dword [ebp - 8], ebx
je 0x401128
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040119d
push dword [ebp - 4]
mov esi, eax
call fcn.004100fe
push dword [ebp - 8]
call fcn.004100fe
add esp, 0x10
cmp esi, 1
jne 0x401128
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0040461f
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x401143
call fcn.00402d7e
push 0x41d038
mov dword [ebp - 0xc], eax
call fcn.00417999
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.004028c7
push dword [ebp - 0x1c]
mov esi, eax
push edi
push dword [ebp + 8]
call fcn.00401fd2
add esp, 0x14
cmp eax, 1
je 0x401173
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0040461f
add esp, 0xc
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 0x34]
push esi
call fcn.004012f3
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 4]
push edi
push eax
call fcn.004043a6
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x401ceb
push 5
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
call fcn.00404ac1
push eax
push 0x5c
call fcn.004048b9
push eax
lea eax, [ebp - 0x44c]
push 0x41d178
push eax
call fcn.00410395
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x41d2fc
push eax
call fcn.00410395
lea eax, [ebp - 0x4c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
mov dword [ebp - 0x2c], 0x41d2e8
mov dword [ebp - 0x28], 0x41d064
call fcn.00404845
and word [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x1a]
add esp, 0x2c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d8f
push 6
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xc]
push 6
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x401db2
push 7
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.004102ba
test eax, eax
pop ecx
mov dword [0x41d030], eax
jg 0x401dd4
push 8
call fcn.00405b4a
push eax
call fcn.00405dfb
pop ecx
pop ecx
push edi
call fcn.00404820
push ebx
call fcn.00404820
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x401dfc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
push edi
push 0x41d32c
call fcn.004103e7
pop ecx
mov dword [ebp - 4], eax
call fcn.004048b9
cmp dword [ebp - 4], 0
mov esi, eax
mov dword [ebp - 8], esi
mov edi, esi
je 0x401e60
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 4]
not ecx
dec ecx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
push eax
call fcn.00410464
push esi
mov edi, eax
push dword [ebp - 4]
push 0x41d31c
push edi
call fcn.00410395
add esp, 0x14
jmp 0x401e85
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.00410464
mov edi, eax
push esi
push 0x41d310
push edi
call fcn.00410395
add esp, 0x10
push edi
call fcn.00418576
pop ecx
mov edi, esi
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x210]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d30c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d300
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x350]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x210]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x401fcd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 8]
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d30c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x10c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d180
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x10c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043a6
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov dword [ebp - 4], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00404791
push 0x41d664
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x40442d
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x404426
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x404426
push closesocket
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x404431
push esi
call fcn.00404820
pop ecx
mov eax, edi
jmp 0x404444
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404448
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00404791
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push 0x41d664
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x4044b2
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x4044b6
push esi
call fcn.00404820
pop ecx
mov eax, edi
jmp 0x4044b8
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3fd
jae 0x40451f
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push 0x41d670
push eax
call fcn.00410395
lea edi, [ebp - 0x400]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
lea eax, [ebp - 0x400]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret

Function at 0x40461f
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0
je 0x40463c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40463c
push eax
call fcn.00410aea
pop ecx
push 0
call fcn.0041015a
Function at 0x404704
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x21010
push 0x41e1e4
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xb
call fcn.00405b4a
mov esi, 0x41ff50
push eax
push esi
call fcn.00410b80
add esp, 0xc
cmp dword [0x42832c], 0
push edi
je 0x404745
call fcn.00410b14
pop ecx
jmp 0x404753
push 0x41e1dc
push esi
call fcn.00410b80
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.00405b4a
pop ecx
push eax
push 0x41e1d4
push esi
call fcn.00410b80
add esp, 0x10
push 0xffffffffffffffff
call fcn.0041015a
pop edi
pop esi

Function at 0x404791
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x427ad8], 0
jne 0x404819
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
pop ebx
push 0x41e220
call edi
mov esi, eax
test esi, esi
jne 0x4047d7
push 0x41e214
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x4047d7
push 0xd
call fcn.00405b4a
push eax
call fcn.00404704
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x4047f7
push 0xe
call fcn.00405b4a
push eax
call fcn.00404704
pop ecx
pop ecx
test ebx, ebx
je 0x40480c
push 0x41e200
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x427ad4], eax
pop edi
pop esi
mov dword [0x427ad8], 1
pop ebx
add esp, 0x190
ret

Function at 0x404845
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x404866
push eax
call fcn.00404588
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
pop ecx
jmp 0x404851
cmp dword [ebp + 8], 1
jne 0x404881
push edi
push dword [ebp + 0xc]
push 1
call fcn.004189e5
add esp, 0xc
push 0
call fcn.0041015a
cmp dword [ebp + 8], 0
push edi
push dword [ebp + 0xc]
jne 0x404897
push 1
call fcn.004189e5
add esp, 0xc
jmp 0x4048a3
push 0
call fcn.004189e5
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x404dfa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x41e278
push reloc.WSOCK32.dll_bind
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fa1
push edi
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x11c]
mov edi, 0x104
push eax
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404f97
xor ecx, ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x10], edi
jbe 0x404e80
cmp byte [ebp + eax - 0x11c], 0x2e
jne 0x404e75
inc ecx
cmp ecx, 1
jg 0x404e9e
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x404e65
cmp ecx, 1
jg 0x404e9e
push 3
lea eax, [ebp - 0x11c]
push 0x41d3dc
push eax
call fcn.004106b0
add esp, 0xc
test eax, eax
jne 0x404f7a
lea eax, [ebp - 0x11c]
push eax
push 0x41e278
lea eax, [ebp - 0x220]
push 0x41e270
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x220]
push esi
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f7a
push edi
call fcn.00410464
pop ecx
mov ecx, dword [ebx]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*8 + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
push 0x41e264
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebx]
jne 0x404f61
lea edx, [eax + eax*2]
mov edi, 0x41e254
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
not ecx
sub edi, ecx
mov edx, ecx
mov ecx, dword [ebp - 0x14]
mov esi, edi
mov edi, dword [eax + ecx*8 + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
xor esi, esi
mov edi, 0x104
jmp 0x404f71
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 0xc]
call fcn.004100fe
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp + 0xc], edi
push dword [ebp - 8]
jmp 0x404e4a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4050e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push eax
push 0x20019
push 0
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405126
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40582d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 9
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov dword [0x42860c], esi
mov dword [0x428608], esi
call fcn.004043a6
cmp eax, 0xffffffff
pop ecx
mov dword [0x427b04], eax
jne 0x40587e
push 5
call fcn.00405b4a
push eax
call fcn.00405132
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
je 0x405897
push 0x428610
push dword [ebp + 0xc]
call fcn.004057bb
pop ecx
mov dword [0x42860c], eax
pop ecx
cmp dword [ebp + 0x10], esi
je 0x4058b0
push 0x428604
push dword [ebp + 0x10]
call fcn.004057bb
pop ecx
mov dword [0x428608], eax
pop ecx
cmp dword [ebp + 8], esi
jg 0x4058c4
push 0x13
call fcn.00405b4a
push eax
call fcn.00405132
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.00404448
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x4058e3
push 0x11
call fcn.00405b4a
push eax
call fcn.00405132
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0x41d2fc
push eax
call fcn.00410395
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push 6
pop edi
push edi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x40591a
push 0x14
call fcn.00405b4a
push eax
call fcn.00405132
pop ecx
pop ecx
push ebx
call fcn.00404820
cmp dword [0x42860c], esi
pop ecx
jne 0x405935
cmp dword [0x428608], esi
je 0x4059ef
mov ebx, dword [ebp - 8]
push 0x7f00
push esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x405590
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x54]
mov edi, 0x41e308
push eax
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push ebx
push esi
mov eax, closesocket
push esi
push eax
push eax
push eax
push eax
push eax
push esi
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x4057b3
mov edi, eax
push 0x4e20
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4059ab
push 0x15
call fcn.00405b4a
push eax
call fcn.00405132
pop ecx
pop ecx
push 8
push 0x401
push edi
push dword [0x427b04]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x4059ef
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
jmp 0x4059cc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x408cda
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x408d07
push esi
call fcn.004092ad
cmp byte [esi + 0x40], 0
pop ecx
je 0x408d00
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x408d76
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x408d6b
mov eax, dword [esi + 8]
test eax, eax
je 0x408d28
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x408d67
cmp eax, 2
je 0x408d6b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x408d1d
cmp eax, 3
je 0x408d4c
cmp eax, 1
jne 0x408d1d
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x408d1d
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x408d1d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x408d94
cmp eax, 0xcc
je 0x408d94
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.00408d9d
pop ecx
pop esi
ret

Function at 0x414fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004145bd
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x415011
test byte [esp + 8], 2
je 0x415011
mov dword [0x42832c], 0xd
mov dword [0x428330], 5
jmp 0x414fec
xor eax, eax
ret
Function at 0x415bee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4204c0
cmp edx, dword [eax]
je 0x415c10
add eax, 8
inc ecx
cmp eax, 0x420550
jl 0x415c01
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4204c0]
jne 0x415d3e
mov eax, dword [0x428390]
cmp eax, 1
je 0x415d18
test eax, eax
jne 0x415c41
cmp dword [0x4201b8], 1
je 0x415d18
cmp edx, 0xfc
je 0x415d3e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415c78
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412f20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415cbb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412f20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41bf24
push edi
call fcn.00410770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414ef0
lea eax, [ebp - 0xa0]
push 0x41bf04
push eax
call fcn.00414ef0
push dword [esi + 0x4204c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417559
add esp, 0x2c
pop edi
jmp 0x415d3e
lea eax, [ebp + 8]
lea esi, [esi + 0x4204c4]
push 0
push eax
push dword [esi]
call fcn.00412f20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret