joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ecf0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, 0xaaaaaaab
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x1c
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [esi + 2]
mov ecx, eax
mov eax, edx
mul edi
shr edx, 1
lea eax, [ecx + edx*4 + 3]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_malloc
mov edi, eax
test eax, eax
je 0x41edd4
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00447640
cmp esi, 2
jbe 0x41edbe
mov ecx, esi
mov edx, eax
add edx, 4
sub ecx, 3
mov byte [edx], 0
cmp ecx, 2
ja 0x41ed44
movzx ebp, byte [ebx]
movzx ecx, byte [ebx + 1]
add eax, 4
sub esi, 3
add ebx, 3
mov edx, ebp
shl ebp, 4
shr dl, 2
and ebp, 0x30
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 4], dl
mov edx, ecx
shl ecx, 2
shr dl, 4
and ecx, 0x3c
movzx edx, dl
or ebp, edx
movzx edx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ebp, byte [ebx - 1]
mov byte [eax - 3], dl
mov edx, ebp
and ebp, 0x3f
shr dl, 6
movzx edx, dl
or ecx, edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 2], dl
movzx edx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
cmp esi, 2
ja 0x41ed52
cmp esi, 2
je 0x41ede0
cmp esi, 1
je 0x41ee30
mov edx, 0xa0d
mov byte [eax + 2], 0
mov word [eax], dx
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebx]
mov byte [eax + 3], 0x3d
add eax, 4
mov edx, ecx
shl ecx, 4
shr dl, 2
and ecx, 0x30
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 4], dl
movzx edx, byte [ebx + 1]
mov ebx, edx
shl edx, 2
shr bl, 4
and edx, 0x3c
movzx ebx, bl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or ecx, ebx
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 2], dl
mov byte [eax - 3], cl
jmp 0x41edc8
movzx edx, byte [ebx]
add eax, 4
mov ecx, edx
shl edx, 4
shr cl, 2
and edx, 0x30
movzx ecx, cl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 3], dl
mov byte [eax - 4], cl
mov ecx, 0x3d3d
mov word [eax - 2], cx
jmp 0x41edc8
Function at 0x4277a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x44
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
sub eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
imul eax, eax, 0x9e3779b9
mov dword [esp + 0x30], eax
lea esi, [esi]
nop
lea eax, [edx + 1]
movzx ecx, byte [esp + 4]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [edi], eax
mov eax, edx
and edx, esi
shr eax, cl
mov ebx, edx
xor ecx, ecx
and eax, esi
mov dword [esp + 0x3c], eax
lea eax, [ecx + 1]
mov dword [esp + 0xc], eax
and eax, 1
mov dword [esp + eax*4 + 0x3c], ebx
mov eax, ecx
and eax, 1
mov eax, dword [esp + eax*4 + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x427886
mov eax, dword [edi + 0x18]
mov esi, ebx
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x20], eax
mov eax, esi
mov ebp, esi
sub edx, 0x61c88647
shl eax, 4
shr ebp, 5
add eax, dword [esp + 0x14]
add ebp, dword [esp + 0x18]
xor eax, ebp
lea ebp, [edx + esi]
xor eax, ebp
add ecx, eax
mov eax, ecx
mov ebp, ecx
shl eax, 4
shr ebp, 5
add eax, dword [esp + 0x1c]
add ebp, dword [esp + 0x20]
xor eax, ebp
lea ebp, [edx + ecx]
xor eax, ebp
add esi, eax
cmp edx, dword [esp + 0x30]
jne 0x427844
mov eax, dword [esp + 0x10]
and ecx, dword [esp]
xor eax, ecx
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x28]
jae 0x4278a0
mov ebx, eax
jmp 0x427801
mov esi, dword [esp]
movzx ecx, byte [esp + 4]
mov edx, dword [esp + 8]
and ebx, esi
and eax, esi
shl ebx, cl
or ebx, eax
cmp ebx, dword [esp + 0x24]
jae 0x4277e0
mov eax, dword [edi + 8]
sub ebx, dword [esp + 0x24]
add esp, 0x44
lea eax, [ebx + eax + 1]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x428710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, ecx
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov dword [esp + 8], 0
mov dword [esp + 4], edx
movzx eax, word [eax]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x4287d0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
test eax, eax
jne 0x4287a4
movzx eax, word [esi]
cmp ax, 2
setne cl
cmp ax, 0x17
setne dl
test cl, dl
jne 0x4287be
cmp edi, 2
jne 0x4287be
mov eax, dword [eax*4 + 0x484f40]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
test eax, eax
je 0x4287be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], ebx
mov ebx, 0xffffffff
mov dword [ebp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42a840
Capabilities:
Get local ipv4 addresses
Get socket information
Write file on windows

Disassembly:
push ebp
mov ebp, eax
xor eax, eax
push edi
push esi
push ebx
mov ebx, ecx
mov ecx, 0x6a
sub esp, 0x37c
lea edi, [esp + 0x20]
mov esi, dword [esp + 0x390]
mov dword [esp + 0x1c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0xc8
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x42a9b3
cmp dword [esp + 0x1c], 0x80
ja 0x42a9b3
movzx eax, word [esi]
mov edx, pe_nt_image_headers32
lea edi, [esp + 0xc0]
mov eax, dword [eax*4 + 0x484f40]
cmp eax, 0x80
cmovae eax, edx
cmp eax, 4
jb 0x42a8ce
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor edx, edx
test al, 2
je 0x42a8df
movzx edx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x42a8ea
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
mov eax, dword [esp + 0x394]
mov dword [esp + 0x140], ebx
lea ebx, [esp + 0x1c8]
lea esi, [esp + 0x20]
mov edx, dword [ebp + 0xc]
mov edi, ebx
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call fcn.00475460
mov eax, dword [esp + 0x1c8]
mov ecx, 0x6a
mov ebp, dword [ebp + 4]
mov dword [esp + 0x38], 0x20160803
mov dword [esp + 0x30], eax
imul eax, dword [esp + 0x1cc], 0x3e8
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebp
mov dword [esp + 0x1cc], 0x1a8
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x1a8
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
cmp eax, 0x1a7
jbe 0x42a9e0
mov dword [esp], ebp
call sub.msvcrt.dll_fflush
test eax, eax
jne 0x42a9e0
add esp, 0x37c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea edi, [esp + 0x44]
mov ecx, 0x1f
mov dword [esp + 0x42], 0
mov dword [esp + 0xbc], 0
rep stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x40], ax
jmp 0x42a8a4
call dword [sym.imp.msvcrt.dll__errno]
add esp, 0x37c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42aa00
Capabilities:
Write file on windows

Disassembly:
test eax, eax
je 0x42ab60
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x36c
mov eax, dword [eax + 4]
test eax, eax
je 0x42ab23
lea esi, [esp + 0x10]
xor eax, eax
mov ebp, ecx
mov ecx, 0x6a
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 1
lea eax, [esp + 0x30]
lea edi, [esp + 0x130]
jmp 0x42aa4d
cmp eax, edi
je 0x42ab41
add edx, 1
movzx ecx, byte [edx - 1]
add eax, 1
mov byte [eax - 1], cl
test cl, cl
jne 0x42aa45
mov eax, dword [esp + 0x380]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x130], ebp
lea ebp, [esp + 0x1b8]
mov dword [esp + 0x138], 0
mov edi, ebp
mov dword [esp + 0x134], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
call fcn.00475460
mov eax, dword [esp + 0x1b8]
mov ecx, 0x6a
mov ebx, dword [ebx + 4]
mov dword [esp + 0x28], 0x20160803
mov dword [esp + 0x20], eax
imul eax, dword [esp + 0x1bc], 0x3e8
mov dword [esp + 0x24], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1bc], 0x1a8
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1a8
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fwrite
cmp eax, 0x1a7
jbe 0x42ab30
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
test eax, eax
jne 0x42ab30
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 0x12f], 0
lea esi, [esi]
add edx, 1
cmp byte [edx - 1], 0
jne 0x42ab50
jmp 0x42aa5e
ret
Function at 0x42e880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
add eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 4
movzx ebx, byte [esp + 0x1c]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
mov edi, ebp
mov dword [esp + 0x20], ebx
jmp 0x42e8e4
mov ebx, eax
mov ebp, edx
mov dword [esp + 8], 0xa
mov esi, 9
add edi, 1
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00474be0
cmp esi, ebx
mov esi, 0
sbb esi, ebp
jb 0x42e8e0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, edi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
sub eax, ecx
mov ebx, ecx
mov dword [esp + 0x28], ecx
cmp eax, ebp
cmova eax, ebp
sub ebp, eax
mov dword [esp + 0x20], ebp
xor ebp, ebp
jmp 0x42e944
mov esi, eax
mov edi, edx
add ebp, 1
cmp dword [esp + 0x20], ebp
jae 0x42e983
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00474ce0
add eax, 0x30
cmp dword [esp + 0x44], ebx
jbe 0x42ea70
lea edx, [ebx + 1]
mov dword [esp + 0x40], edx
mov byte [ebx], al
mov ebx, dword [esp + 0x40]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00474be0
mov ecx, 9
cmp ecx, esi
mov ecx, 0
sbb ecx, edi
jb 0x42e940
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jae 0x42e9d9
lea esi, [esi]
nop
sub ebx, 1
movzx edx, byte [ecx]
movzx eax, byte [ebx]
add ecx, 1
mov byte [ebx], dl
mov byte [ecx - 1], al
cmp ebx, ecx
ja 0x42e9c0
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x44], ebx
jbe 0x42ea82
lea eax, [ebx + 1]
mov dword [esp + 0x40], eax
mov byte [ebx], 0x2e
shr dword [esp + 0x1c], 8
sub dword [esp + 0x2c], 1
jne 0x42e8c9
mov edx, str.in_addr.arpa.
lea eax, [esp + 0x3c]
call fcn.004296c0
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x44]
jb 0x42ea50
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
cmp edx, ecx
jbe 0x42ea45
cmp byte [edx - 1], 0
je 0x42ea3e
add eax, 1
mov dword [esp + 0x4c], eax
mov byte [edx - 1], 0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
sub edx, 1
sub edx, ecx
add eax, edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edx], 0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x4c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [esp + 0x4c], 1
mov dword [esp + 0x48], 0x9b918cc0
jmp 0x42e983
add dword [esp + 0x4c], 1
mov dword [esp + 0x48], 0x9b918cc0
jmp 0x42e9ed
Function at 0x431810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x6a
push edi
push esi
push ebx
sub esp, 0x1cc
lea ebp, [esp + 0x18]
mov esi, dword [esp + 0x1e0]
mov ebx, dword [esp + 0x1ec]
mov edi, ebp
mov eax, dword [esp + 0x1e8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
add eax, 0x1a8
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1a8
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fwrite
cmp eax, 0x1a7
jbe 0x4318d1
mov eax, dword [esp + 0x1e4]
test eax, eax
je 0x4318ba
mov eax, dword [esp + 0x1e8]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1e4]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, dword [esp + 0x1e8]
jb 0x4318d1
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
test eax, eax
jne 0x4318d1
add esp, 0x1cc
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
add esp, 0x1cc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x431cf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x1ec
lea ebp, [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, 0x6a
mov edi, ebp
mov dword [esp + 0x2c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0xc9
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x431e55
cmp dword [esp + 0x2c], 0x80
ja 0x431e55
lea eax, [esp + 0x28]
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 8], eax
lea eax, [esp + 0xd8]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_getpeername]
sub esp, 0xc
test eax, eax
jne 0x431e20
cmp dword [esp + 0x28], 0x80
ja 0x431e20
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x208]
mov dword [esp + 0x44], edx
mov dword [esp + 0x15c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00475460
mov eax, dword [esp + 0x30]
mov dword [esp], ebp
mov dword [esp + 0x50], 0x20160803
mov dword [esp + 0x48], eax
imul eax, dword [esp + 0x34], 0x3e8
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x204]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 4], eax
call fcn.00431810
add esp, 0x1ec
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0xdc]
mov dword [esp + 0xda], 0
mov dword [esp + 0x154], 0
rep stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0xd8], ax
jmp 0x431d90
lea edi, [esp + 0x5c]
mov ecx, 0x1f
xor eax, eax
xor edx, edx
mov dword [esp + 0x5a], 0
mov dword [esp + 0xd4], 0
rep stosd dword es:[edi], eax
mov word [esp + 0x58], dx
jmp 0x431d53
Function at 0x431e90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov edx, dword [eax + 0x298]
movzx eax, word [edx + 0x44]
rol ax, 8
mov word [edx + 0x4a], ax
mov eax, dword [edx + 0x44]
add eax, 2
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x29c]
cmp esi, eax
ja 0x431f21
jmp 0x431f71
mov esi, eax
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x431f01
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x431f01
mov edx, dword [ebx + 0x1c]
xor ebp, ebp
mov dword [esp + 8], ebp
mov ecx, 1
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00431cf0
test ebp, ebp
jne 0x431f7a
mov eax, dword [ebx + 0x29c]
add dword [ebx + 0x174], esi
add eax, esi
mov dword [ebx + 0x29c], eax
cmp eax, dword [esp + 0x1c]
jae 0x431f71
mov edx, dword [ebx + 0x298]
mov ecx, dword [esp + 0x1c]
lea edi, [edx + eax + 0x4a]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
sub ecx, eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jns 0x431ed0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x431f84
mov edx, dword [eax + 4]
xor esi, esi
test edx, edx
je 0x431efd
mov edx, dword [ebx + 0x1c]
jmp 0x431ee8
add dword [ebx + 0x170], 1
xor ebp, ebp
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x431efd
Function at 0x431f90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x1ec
lea ebp, [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, 0x6a
mov edi, ebp
mov dword [esp + 0x2c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0xca
mov dword [esp + 8], eax
lea eax, [esp + 0xd8]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x4320f0
cmp dword [esp + 0x2c], 0x80
ja 0x4320f0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_getpeername]
sub esp, 0xc
test eax, eax
jne 0x4320c0
cmp dword [esp + 0x28], 0x80
ja 0x4320c0
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x208]
mov dword [esp + 0x44], edx
mov dword [esp + 0x15c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00475460
mov eax, dword [esp + 0x30]
mov dword [esp], ebp
mov dword [esp + 0x50], 0x20160803
mov dword [esp + 0x48], eax
imul eax, dword [esp + 0x34], 0x3e8
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x204]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 4], eax
call fcn.00431810
add esp, 0x1ec
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea edi, [esp + 0x5c]
mov ecx, 0x1f
mov dword [esp + 0x5a], 0
mov dword [esp + 0xd4], 0
rep stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x58], ax
jmp 0x432030
lea edi, [esp + 0xdc]
mov ecx, 0x1f
xor eax, eax
xor edx, edx
mov dword [esp + 0xda], 0
mov dword [esp + 0x154], 0
rep stosd dword es:[edi], eax
mov word [esp + 0xd8], dx
jmp 0x431ff6
Function at 0x432130
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebp, esi
sub esp, 0x2c
mov eax, dword [eax + 0x2b0]
mov edx, dword [esi + 0x2ac]
add eax, 2
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x2b4]
cmp dword [esp + 0x18], ecx
jbe 0x4321de
mov eax, dword [esp + 0x18]
lea edi, [edx + 0x4a]
mov dword [esp + 0xc], 0
sub eax, ecx
add ecx, edi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov ebx, eax
test eax, eax
js 0x4322c4
mov ecx, dword [ebp + 0x2b4]
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x180]
lea eax, [edi + ecx]
je 0x432202
test esi, esi
je 0x4321b5
mov edi, dword [esi + 4]
test edi, edi
jne 0x432300
mov eax, dword [ebp + 0x2b0]
add ecx, ebx
add dword [ebp + 0x17c], ebx
mov dword [ebp + 0x2b4], ecx
mov edx, dword [ebp + 0x2ac]
test eax, eax
jne 0x4321d8
cmp ecx, 1
ja 0x432250
cmp ecx, dword [esp + 0x18]
jb 0x43215e
mov eax, dword [ebp + 0x2b0]
mov dword [esp + 0x1c], 0
mov dword [edx + 0x44], eax
add dword [ebp + 0x178], 1
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x432310
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], 0x9b918ccc
test ecx, ecx
je 0x4321f6
xor ebx, ebx
mov edi, dword [esp + 0x1c]
mov dword [esp], eax
mov ecx, 1
mov eax, esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
call fcn.00431f90
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4321f6
mov ecx, dword [ebp + 0x2b4]
jmp 0x4321b5
movzx ebx, word [edx + 0x4a]
mov esi, 0x300
mov dword [esp], edx
rol bx, 8
movzx ebx, bx
cmp ebx, 0x300
cmovae esi, ebx
lea eax, [esi + 0x4c]
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
mov edx, eax
test eax, eax
je 0x432324
mov ecx, 0x13
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x40], esi
mov dword [edx + 0x44], 0xc
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
mov dword [edx + 0x54], 0
mov dword [ebp + 0x2ac], edx
lea eax, [ebx + 2]
mov dword [ebp + 0x2b0], ebx
mov dword [esp + 0x18], eax
jmp 0x43214e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x180]
xor ebx, ebx
mov dword [esp + 0x1c], eax
test esi, esi
je 0x432236
mov eax, dword [esi + 4]
test eax, eax
je 0x432236
mov eax, dword [ebp + 0x2b4]
mov edx, dword [ebp + 0x1c]
add eax, edi
jmp 0x43221b
mov dword [esp + 0x1c], 0
jmp 0x43221b
mov dword [esp + 0x1c], 0x9b918ccc
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4321f6
mov edx, dword [ebp + 0x2ac]
jmp 0x4322b2
Function at 0x433b50
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov dword [esp], 0x650
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x433d31
mov ecx, 0x194
xor eax, eax
mov edi, ebx
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x580], 0x6662
mov dword [ebx + eax + 0x584], edx
add eax, 4
cmp eax, 0x20
jb 0x433b83
mov edx, 2
mov eax, 2
mov dword [ebx + 0x5a4], 2
lea esi, [ebx + 0x180]
mov word [ebx], dx
mov dword [ebx + 0x5a8], 0x17
mov dword [ebx + 0x5b4], 1
mov dword [ebx + 0x5b8], 5
mov dword [ebx + 0x5bc], 2
mov word [ebx + 0x5c8], ax
mov dword [ebx + 4], 0
mov dword [esp], 0x35
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [ebx + 2], ax
mov dword [esp + 4], 0x100
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_gethostname]
sub esp, 8
test eax, eax
jne 0x433d31
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x433d50
mov eax, esi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x433c2f
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
sub eax, esi
je 0x433d20
cmp byte [esi + eax - 1], 0x2e
je 0x433c77
mov byte [esi + eax], 0x2e
add eax, 1
cmp eax, 0xff
mov edx, 0xff
mov edi, esi
cmova eax, edx
mov byte [esi + eax], 0
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x433c8a
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [edi + 2]
cmove edi, edx
mov ecx, eax
add cl, al
sbb edi, 3
sub edi, esi
je 0x433d20
lea eax, [edi - 1]
mov dword [esp + 4], 0x2e
mov dword [esp + 8], eax
lea eax, [ebx + 0x181]
mov dword [esp], eax
call sub.msvcrt.dll_memchr
test eax, eax
je 0x433d20
mov edx, eax
sub edx, esi
sub edi, edx
cmp edi, 1
jbe 0x433cf0
add eax, 1
sub edi, 1
cmp edi, 0x100
mov edx, 0x100
mov dword [esp + 4], eax
cmovbe edx, edi
mov dword [esp], esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memmove
cmp edi, 0xff
mov eax, 0xff
cmova edi, eax
mov byte [esi + edi], 0
lock add dword [ebx + 0x648], 1
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x20]
mov dword [edx], eax
mov dword [esp], ebx
xor ebx, ebx
call fcn.004758b8
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x433d20