joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3a0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7988
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5370e4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, dword [0x549f14]
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a3f4
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402130
mov dword [esp + 0x50], ebx
lea ebx, [edi + 0x3c]
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
mov esi, edi
call fcn.0040aad0
mov esi, dword [esp + 0x10]
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x20], edx
test esi, esi
je 0x40a440
cmp esi, eax
je 0x40a445
call fcn.00429d5a
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
je 0x40a50b
test esi, esi
jne 0x40a504
call fcn.00429d5a
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x18]
jne 0x40a46e
call fcn.00429d5a
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x28]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebx + 4]
call fcn.00409110
mov esi, dword [ebx + 8]
call fcn.00409110
mov eax, dword [ebx]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a4c5
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebx + 4]
test esi, esi
je 0x40a4d1
call fcn.00408460
mov esi, dword [ebx + 8]
test esi, esi
je 0x40a4dd
call fcn.00408460
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.0040a7b0
mov ebx, dword [esp + 0x18]
mov esi, 1
jmp 0x40a50d
mov esi, dword [esi]
jmp 0x40a460
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x3c], 0x10
jb 0x40a528
mov edx, dword [esp + 0x28]
push edx
call fcn.0041ef45
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00428ddf
mov esp, ebp
pop ebp
ret
Function at 0x40d7c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
lea eax, [esp]
push eax
push 0x202
mov dword [esi + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [0x549e0c], 0
jne 0x40d811
call fcn.004c4eb0
inc dword [0x549e0c]
mov eax, esi
call fcn.0040f780
cmp dword [0x549f1c], 4
jl 0x40d897
mov eax, dword [0x549f20]
test eax, eax
jne 0x40d837
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:1837
push str.__20s
push eax
call fcn.0042c464
add esp, 0xc
push 0x52b5cc
call fcn.0040bba0
add esp, 4
cmp dword [0x549f1c], 4
jl 0x40d897
mov eax, dword [0x549f20]
test eax, eax
jne 0x40d876
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:1838
push str.__20s
push eax
call fcn.0042c464
add esp, 0xc
push esi
push str.init_mgr_p
call fcn.0040bba0
add esp, 8
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00428ddf
add esp, 0x19c
ret
Function at 0x40dad0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push ebx
mov ebx, eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x24]
mov dword [ebx], eax
push esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 6
mov dword [ebx + 0xc], eax
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 2
push str.udp:__
push esi
mov word [ebx], ax
mov dword [edi], 1
call fcn.004293a9
add esp, 0xc
test eax, eax
jne 0x40db1d
mov dword [edi], 2
jmp 0x40db31
push 6
push str.tcp:__
push esi
call fcn.004293a9
add esp, 0xc
test eax, eax
jne 0x40db34
add esi, 6
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push str._u._u._u._u:_u_n
push esi
call fcn.00428eb5
add esp, 0x20
cmp eax, 5
jne 0x40db92
mov ecx, dword [esp + 0x14]
shl ecx, 8
or ecx, dword [esp + 0x18]
shl ecx, 8
or ecx, dword [esp + 0x1c]
shl ecx, 8
or ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0xc]
mov dword [ebx + 4], eax
push edx
jmp 0x40dc74
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40db97
sub eax, edx
cmp eax, 0xc8
jae 0x40dc35
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebp
push str.___:_:_u_n
push esi
call fcn.00428eb5
add esp, 0x14
cmp eax, 2
jne 0x40dc35
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
push ebp
mov word [ebx + 2], ax
call fcn.004118f0
add esp, 4
test eax, eax
je 0x40dc7e
push 9
mov eax, str.localhost
mov ecx, ebp
call fcn.00411250
add esp, 4
test eax, eax
je 0x40dc07
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40dc29
push ebp
call fcn.0040d9e0
add esp, 4
test eax, eax
jne 0x40dc7e
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebx + 4], edx
jmp 0x40dc7e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.:_u_n
push esi
call fcn.00428eb5
add esp, 0x10
cmp eax, 1
je 0x40dc6f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push str._u_n
push esi
call fcn.00428eb5
add esp, 0x10
cmp eax, 1
jne 0x40dc1f
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
cmp dword [esp + 0xc], 0xffff
mov edx, dword [esp + 0x10]
movsx eax, byte [edx + esi]
jae 0x40dc1f
test eax, eax
je 0x40dcaa
cmp eax, 0x2c
je 0x40dcaa
push eax
call fcn.0042b54a
add esp, 4
test eax, eax
je 0x40dc1f
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40ebf0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xc
movzx eax, word [edi]
push esi
push 0
push ebx
push eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ec8e
push 4
lea ecx, [esp + 0xc]
push ecx
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40ec84
mov edx, dword [esp + 4]
push edx
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40ec84
cmp ebx, 2
je 0x40ec57
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x40ec84
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 4]
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x40eca0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x80]
push edi
test cl, 2
je 0x40ed71
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [0x549f1c], 4
mov edi, eax
jl 0x40ed3c
mov eax, dword [0x549f20]
test eax, eax
jne 0x40ecf2
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3026
push str.__20s
push eax
call fcn.0042c464
add esp, 0xc
call fcn.0042bcd2
movzx ecx, word [esi + 0x1a]
push ecx
mov ebx, eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edi
push edx
push esi
push str._p__d__d__d__s:_hu
call fcn.0040bba0
add esp, 0x1c
test edi, edi
jle 0x40eeaf
jbe 0x40ed63
mov eax, dword [esi + 0x3c]
cmp edi, eax
ja 0x40ed63
mov ecx, dword [esi + 0x38]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0042b010
add esp, 0xc
sub dword [esi + 0x3c], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
jmp 0x40eea0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40ee02
test cl, 0x20
je 0x40edf5
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
push edx
push ecx
push eax
call fcn.004c3600
add esp, 0xc
cmp dword [0x549f1c], 4
mov ebx, eax
jl 0x40edbd
push str......._srclocalservermongoose.c:3038
call fcn.0040bb70
mov edx, dword [esi + 0x10]
add esp, 4
push edx
push ebx
push esi
push 0x52bb34
call fcn.0040bba0
add esp, 0x10
test ebx, ebx
jg 0x40ede9
call fcn.0040f270
cmp eax, 2
je 0x40eeaf
cmp eax, 3
je 0x40eeaf
or dword [esi + 0x80], 0x800
pop edi
pop esi
pop ebx
add esp, 8
ret
and dword [esi + 0x80], 0xffffff3f
jmp 0x40ee72
mov ecx, esi
pop edi
pop esi
pop ebx
add esp, 8
jmp fcn.0040f310
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x549f1c], 4
mov ebx, eax
jl 0x40ee5d
mov eax, dword [0x549f20]
test eax, eax
jne 0x40ee37
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3057
push str.__20s
push eax
call fcn.0042c464
mov eax, dword [esi + 0x10]
add esp, 0xc
push eax
push ebx
push esi
push str._p__d_bytes_____d
call fcn.0040bba0
add esp, 0x10
test ebx, ebx
jge 0x40ee74
push ebx
call fcn.0040e920
add esp, 4
test eax, eax
jne 0x40edd8
test ebx, ebx
jle 0x40eeaf
test ebx, ebx
jbe 0x40ee97
mov eax, dword [esi + 0x3c]
cmp ebx, eax
ja 0x40ee97
mov ecx, dword [esi + 0x38]
sub eax, ebx
push eax
lea edx, [ecx + ebx]
push edx
push ecx
call fcn.0042b010
add esp, 0xc
sub dword [esi + 0x3c], ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0
mov ebx, 4
call fcn.0040d4a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40eec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push 0x400
mov edi, eax
call fcn.00429546
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ef1f
cmp dword [0x549f1c], 4
jl 0x40f0b6
mov eax, dword [0x549f20]
test eax, eax
jne 0x40eefb
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3083
push str.__20s
push eax
call fcn.0042c464
add esp, 0xc
push 0x52b90c
call fcn.0040bba0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + 0x44]
test eax, eax
je 0x40f003
test byte [edi + 0x80], 0x20
je 0x40eff0
push 0x400
push esi
push eax
call fcn.004c33f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x40efdc
cmp dword [0x549f1c], 4
jl 0x40ef95
mov eax, dword [0x549f20]
test eax, eax
jne 0x40ef6f
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3094
push str.__20s
push eax
call fcn.0042c464
mov eax, dword [edi + 0x10]
add esp, 0xc
push eax
push ebx
push edi
push str._p__d_bytes_____d__SSL_
call fcn.0040bba0
add esp, 0x10
push ebx
push esi
call fcn.0040e2e0
add esp, 8
xor esi, esi
test dword [edi + 0x80], 0x800
jne 0x40efdc
push 0x400
call fcn.00429546
mov esi, eax
add esp, 4
test esi, esi
je 0x40efdc
mov ecx, dword [edi + 0x44]
push 0x400
push esi
push ecx
call fcn.004c33f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x40ef50
push esi
call fcn.00429469
add esp, 4
mov esi, edi
call fcn.0040f270
pop edi
pop esi
pop ebx
ret
push esi
call fcn.00429469
add esp, 4
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.0040f310
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x30]
cmp eax, ecx
jae 0x40f011
xor eax, eax
jmp 0x40f01f
sub eax, ecx
cmp eax, 0x400
jbe 0x40f01f
mov eax, 0x400
mov edx, dword [edi + 0x10]
push 0
push eax
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x549f1c], 4
mov ebx, eax
jl 0x40f074
mov eax, dword [0x549f20]
test eax, eax
jne 0x40f04e
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3114
push str.__20s
push eax
call fcn.0042c464
mov eax, dword [edi + 0x10]
add esp, 0xc
push eax
push ebx
push edi
push str._p__d_bytes__PLAIN______d
call fcn.0040bba0
add esp, 0x10
test ebx, ebx
jle 0x40f084
push ebx
push esi
call fcn.0040e2e0
add esp, 8
jmp 0x40f08d
push esi
call fcn.00429469
add esp, 4
test ebx, ebx
jne 0x40f09f
or dword [edi + 0x80], 0x400
pop edi
pop esi
pop ebx
ret
push ebx
call fcn.0040e920
add esp, 4
test eax, eax
je 0x40f0b6
or dword [edi + 0x80], 0x800
pop edi
pop esi
pop ebx
ret
Function at 0x40f0c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x5dc
call fcn.00429546
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x40f115
cmp dword [0x549f1c], 4
jl 0x40f10f
mov eax, dword [0x549f20]
test eax, eax
jne 0x40f0f2
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3134
push str.__20s
push eax
call fcn.0042c464
push str.Out_of_memory
call fcn.0040bba0
add esp, 0x10
mov eax, 0xfffffff4
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push ecx
push edx
push 0
push 0x5dc
push eax
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jg 0x40f18e
cmp dword [0x549f1c], 4
jl 0x40f183
mov eax, dword [0x549f20]
test eax, eax
jne 0x40f157
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3139
push str.__20s
push eax
call fcn.0042c464
call fcn.0042bcd2
mov ecx, dword [eax]
push ecx
call fcn.0042b626
push eax
push edi
push str._p_recvfrom:__s
call fcn.0040bba0
add esp, 0x1c
mov edx, dword [ebx]
push edx
call fcn.00429469
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x40f640
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x2008
call fcn.004304a0
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x2004], eax
mov ecx, dword [edi + 0xc]
push esi
push 0
push 0x2004
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
push 0
push 1
lea edx, [esp + 0x10]
mov esi, eax
mov eax, dword [edi + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x549f1c], 4
jl 0x40f6c1
mov eax, dword [0x549f20]
test eax, eax
jne 0x40f6a3
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3277
push str.__20s
push eax
call fcn.0042c464
push esi
push str.read__d_from_ctl_socket
call fcn.0040bba0
add esp, 0x14
cmp esi, 4
jl 0x40f6f0
cmp dword [esp + 4], 0
je 0x40f6f0
mov esi, dword [edi]
test esi, esi
je 0x40f6f0
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [esp + 0x10]
add esp, 0xc
test esi, esi
jne 0x40f6ea
mov esi, dword [edi]
jmp 0x40f6ec
mov esi, dword [esi]
test esi, esi
jne 0x40f6d3
mov ecx, dword [esp + 0x2008]
pop esi
xor ecx, esp
call fcn.00428ddf
add esp, 0x2008
ret

Function at 0x40f710
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x8004667e
push esi
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp dword [0x549f1c], 4
mov dword [edi + 0x10], esi
jl 0x40f775
mov eax, dword [0x549f20]
test eax, eax
jne 0x40f756
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:3293
push str.__20s
push eax
call fcn.0042c464
push esi
push edi
push str._p__d
call fcn.0040bba0
add esp, 0x18
pop ecx
ret
Function at 0x40fbe0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
push ebp
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, 2
push 0
mov dword [esp + 0xc], 0x10
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push 0
push ebx
push 2
mov dword [esp + 0x1c], eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x40fd4d
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40fd4d
cmp ebx, 1
jne 0x40fc83
push ebx
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x40fd4d
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40fd4d
push eax
push ebx
push 2
call ebp
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40fd5b
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.WS2_32.dll_connect]
push edx
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x40fd4d
cmp ebx, 2
jne 0x40fcf9
mov ecx, dword [esi]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40fd4d
mov edx, dword [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
jne 0x40fd4d
mov eax, edi
jmp 0x40fd0a
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40fd4d
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push eax
call ebp
mov ecx, dword [esi + 4]
push 0
push 1
push ecx
call ebp
cmp ebx, 1
jne 0x40fd37
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop edi
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00428ddf
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40fd5b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40fd6a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x40fd76
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
xor ecx, esp
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
xor eax, eax
call fcn.00428ddf
add esp, 0x1c
ret
Function at 0x410730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x549f1c], 4
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
jl 0x410785
mov eax, dword [0x549f20]
test eax, eax
jne 0x41075f
call fcn.0042b692
add eax, 0x40
mov dword [0x549f20], eax
push str......._srclocalservermongoose.c:4432
push str.__20s
push eax
call fcn.0042c464
mov eax, dword [ebp + 8]
add esp, 0xc
push ebx
push eax
push edi
push str._p__d__d
call fcn.0040bba0
add esp, 0x10
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00410640
mov eax, dword [ebp + 0xc]
push ebx
push eax
call fcn.0040e260
mov esi, dword [esp + 0x20]
add esp, 0x10
test esi, esi
je 0x4107d0
mov ecx, dword [edi + 0x3c]
xor eax, eax
sub ecx, esi
je 0x4107d0
mov edx, dword [edi + 0x38]
add edx, esi
lea ecx, [edx + eax]
mov edx, eax
and edx, 3
mov dl, byte [esp + edx + 0x14]
xor byte [ecx], dl
mov ecx, dword [edi + 0x3c]
inc eax
sub ecx, esi
cmp eax, ecx
jb 0x4107b3
cmp dword [ebp + 8], 8
jne 0x4107e0
or dword [edi + 0x80], 0x400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410880
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x64
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov dword [esp + 0xc], eax
xor eax, eax
mov ebx, ecx
push edi
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
sub ebp, ebx
lea edi, [eax + 2]
mov ecx, dword [ebx]
mov eax, dword [ebx + ebp]
push ecx
lea esi, [esp + 0x18]
call fcn.0040d2a0
add esp, 4
add ebx, 4
sub edi, 1
jne 0x4108d7
mov edi, dword [esp + 0x10]
mov ecx, esi
call fcn.0040d330
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428ddf
add esp, 0x64
ret
Function at 0x4109e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.004304a0
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x64], 0
push edi
jne 0x410a1a
push 0x38
push 1
call fcn.0042a153
add esp, 8
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0x40fda0
mov ebx, dword [esi + 0x64]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
xor ecx, ecx
cmp edx, 1
jne 0x410add
mov edx, dword [esi + 0x3c]
cmp edx, 0x1000
jae 0x410a43
mov ecx, 0x1000
sub ecx, edx
test eax, eax
jbe 0x410a4d
cmp ecx, eax
jbe 0x410a4d
mov ecx, eax
test ecx, ecx
je 0x410b91
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0xc]
jg 0x410a9c
jl 0x410a67
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 8]
jae 0x410a9c
mov eax, dword [ebx]
push eax
push ecx
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.0042c447
mov ebp, eax
add esp, 0x10
test ebp, ebp
jbe 0x410a9c
lea edx, [esp + 0x10]
push ebp
push edx
mov edi, esi
call fcn.0040e260
add esp, 8
add dword [ebx + 0x10], ebp
adc dword [ebx + 0x14], 0
jmp 0x410b91
cmp dword [ebx + 0x18], 0
jne 0x410aac
or dword [esi + 0x80], 0x400
mov eax, dword [ebx]
test eax, eax
je 0x410b68
push eax
call fcn.0042d569
add esp, 4
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
jmp 0x410b91
cmp edx, 2
jne 0x410b83
test eax, eax
ja 0x410aee
xor eax, eax
jmp 0x410af7
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jb 0x410af7
mov eax, ecx
mov ecx, dword [ebx]
mov edx, dword [esi + 0x2c]
push ecx
push eax
push 1
push edx
call fcn.0042c826
mov edi, eax
add esp, 0x10
test edi, edi
jbe 0x410b35
mov eax, dword [esi + 0x30]
cmp edi, eax
ja 0x410b2c
mov ecx, dword [esi + 0x2c]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0042b010
add esp, 0xc
sub dword [esi + 0x30], edi
add dword [ebx + 0x10], edi
adc dword [ebx + 0x14], 0
test edi, edi
je 0x410b49
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0xc]
jl 0x410b91
jg 0x410b49
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 8]
jb 0x410b91
cmp dword [ebx + 0x18], 0
jne 0x410b59
or dword [esi + 0x80], 0x400
mov eax, dword [ebx]
test eax, eax
je 0x410b68
push eax
call fcn.0042d569
add esp, 4
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
jmp 0x410b91
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x410b91
mov edx, ebx
call fcn.0040e8e0
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428ddf
add esp, 0x100c
ret