joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ffd0
Capabilities:
Get graphical window text

Disassembly:
mov al, byte [0x884994]
sub esp, 0x88
cmp al, 1
jne 0x4500a6
push esi
push edi
mov edi, dword [0x8849bc]
push 0
push 0x21b
push 0xca
lea eax, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0040a8a0
mov eax, dword [0x8849bc]
mov cl, byte [eax + 8]
test cl, cl
je 0x450028
mov edx, dword [eax + 4]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x45002d
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0052df90
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0052df90
push 0xf800
sub eax, esi
push 0xc
add eax, 2
push eax
push 0x21b
add esi, 0xca
push esi
call fcn.0052e220
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x21c
push 0xcb
call fcn.00530bb0
push 0xffe0
lea edx, [esp + 0x48]
push edx
push 0x21b
push 0xca
call fcn.00530bb0
add esp, 0x44
pop edi
pop esi
add esp, 0x88
ret
push 0
push 0x884890
push 0x21c
push 0xcb
call fcn.00530bb0
push 0xffff
push 0x884890
push 0x21b
push 0xca
call fcn.00530bb0
add esp, 0x20
add esp, 0x88
ret

Function at 0x4500e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x8849bc]
mov cl, byte [eax + 8]
sub esp, 0x104
test cl, cl
je 0x45010a
mov edx, dword [eax + 4]
push 0x80
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x45010f
mov byte [esp + 4], 0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450116
mov ecx, dword [esp + 0x108]
sub eax, edx
mov dword [esp], eax
setne al
mov byte [ecx + 9], al
mov al, byte [esp + 0x10c]
test al, al
jne 0x45014f
mov edx, dword [0x8849bc]
mov eax, dword [edx + 4]
push 0x581f32
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0x104
ret 8

Function at 0x450990
Capabilities:
Resolve dns

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450996
sub eax, esi
pop esi
je 0x4509dd
cmp byte [eax + edx - 1], 0x2e
je 0x4509dd
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4509c2
mov al, byte [ecx + edx]
cmp al, 0x2e
je 0x4509c2
cmp al, 0x30
jl 0x4509ca
cmp al, 0x39
jg 0x4509ca
dec ecx
jns 0x4509b0
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
ret
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4509dd
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
or eax, 0xffffffff
ret
Function at 0x450b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
lea edi, [ebx + 0x28254]
mov ecx, edi
call fcn.005316f0
mov eax, dword [ebx + 0x7a30]
push 0
mov ecx, 0x4000
sub ecx, eax
push ecx
lea edx, [eax + ebx + 0x230]
mov eax, dword [ebx + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push str.Socket_Read_:__d__n
call fcn.00451d70
add esp, 8
mov ecx, edi
call fcn.00531700
test esi, esi
jge 0x450bdd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
pop edi
sete al
pop esi
ret
mov edi, dword [ebx + 0x7a30]
movzx eax, word [ebx + 0x230]
add edi, esi
mov ecx, edi
cmp eax, ecx
push ebp
mov dword [ebx + 0x7a30], edi
jg 0x450d66
lea ecx, [ecx]
cmp dword [ebx + 0x7a30], 2
jl 0x450d66
mov ecx, dword [ebx + 0x27a3c]
add ecx, eax
cmp ecx, 0x20000
jle 0x450c42
mov ecx, dword [ebx + 0x27a38]
cmp eax, dword [ebx + ecx*4 + 0x27a40]
jl 0x450c38
cmp dword [ebx + 0x27a34], ecx
jne 0x450d6c
mov dword [ebx + 0x27a3c], 0
mov ebp, dword [ebx + 0x27a34]
inc ebp
and ebp, 0x800000ff
jns 0x450c59
dec ebp
or ebp, 0xffffff00
inc ebp
cmp ebp, dword [ebx + 0x27a38]
je 0x450d99
mov edx, dword [ebx + 0x27a3c]
lea ecx, [eax - 2]
lea edi, [edx + ebx + 0x7a34]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x232]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
push str._d___Rece__5d__n
call fcn.00451d70
mov edx, eax
shr edx, 8
mov ecx, eax
push edx
and ecx, 0xff
push ecx
push str._02X__02X
call fcn.00451d70
lea ecx, [eax - 2]
add esp, 0x18
xor edx, edx
test ecx, ecx
jle 0x450ce3
lea ecx, [ecx]
mov esi, dword [ebx + 0x27a3c]
add esi, edx
movzx esi, byte [esi + ebx + 0x7a34]
push esi
push str._02X
call fcn.00451d70
add esp, 8
inc edx
cmp edx, ecx
jl 0x450cc0
push 0x58291c
call fcn.00451d70
mov edx, dword [ebx + 0x27a34]
mov esi, dword [ebx + 0x27a3c]
mov dword [ebx + edx*4 + 0x27a40], esi
mov edx, dword [ebx + 0x27a34]
mov dword [ebx + edx*4 + 0x27e40], ecx
mov esi, dword [ebx + 0x27a3c]
lea ecx, [eax - 2]
add esi, ecx
mov dword [ebx + 0x27a34], ebp
mov dword [ebx + 0x27a3c], esi
mov ecx, 0x4000
sub ecx, eax
mov ebp, ecx
shr ecx, 2
lea edx, [ebx + 0x230]
lea esi, [eax + ebx + 0x230]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x7a30]
sub esi, eax
mov dword [ebx + 0x7a30], esi
movzx eax, word [edx]
mov ecx, esi
add esp, 4
cmp eax, ecx
jle 0x450c00
pop ebp
pop edi
mov al, 1
pop esi
ret
cmp dword [ebx + 0x22c], 1
je 0x450d89
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x450d89
mov edx, dword [ebx + 0x1c]
push 0xffffffffffffffff
push edx
push 0x65
call fcn.00530ee0
pop ebp
pop edi
mov dword [ebx + 0x22c], 0
xor al, al
pop esi
ret
cmp dword [ebx + 0x22c], 1
je 0x450d89
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x450d89
mov eax, dword [ebx + 0x1c]
push 0xfffffffffffffffe
push eax
jmp 0x450d82
Function at 0x451040
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x45109b
xor eax, eax
mov ax, word [esi + 0x228]
mov word [esp], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x14]
mov word [esp + 2], ax
call fcn.00450990
mov edx, dword [esi + 0x24]
push 0x10
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x45109b
mov byte [esi + 0x22a], 1
mov al, byte [esi + 0x22a]
add esp, 0x10
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x400c
call fcn.00554980
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28254]
mov ecx, esi
mov dword [esp + 0xc], esi
call fcn.005316f0
mov al, byte [edi + 0x22a]
test al, al
jne 0x4511a4
mov ecx, esi
call fcn.00531700
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
push ebx
push eax
push str._d___Send__5d__n
call fcn.00451d70
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x4511dc
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax + ecx]
push edx
push str._02X
call fcn.00451d70
add esp, 8
inc eax
cmp eax, ebx
jl 0x4511c2
push 0x58291c
call fcn.00451d70
add esp, 4
test ebx, ebx
jle 0x451293
mov eax, dword [edi + 0x24]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x451210
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x4511f1
jmp 0x451293
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._n_nKASI_0802____Socket_Error_:__d_n_n
call fcn.00451d70
add esp, 8
cmp eax, 0x2733
jne 0x45126e
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x4010], ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
add ebx, 0x28240
call fcn.00451380
mov ecx, dword [esp + 0xc]
call fcn.00531700
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x22c], 1
je 0x451293
mov eax, dword [edi + 0x20]
test eax, eax
je 0x451293
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
mov ecx, dword [edi + 0x20]
push 0x65
call fcn.00530ee0
mov ecx, dword [esp + 0xc]
call fcn.00531700
mov eax, dword [ebp + 0x10]
xor edx, edx
test ebx, ebx
setl dl
pop edi
pop esi
dec edx
and edx, ebx
sub eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b3fe0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4b40ad
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
push edi
mov dword [esp + 0x12], eax
push edx
mov word [esp + 0x1a], ax
mov word [esp + 0xc], 2
mov dword [esp + 0x10], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push eax
push ebx
mov ecx, esi
call fcn.004b4e70
mov edi, eax
test edi, edi
jne 0x4b4052
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
push edi
push ecx
movzx ecx, byte [esp + 0x14]
push edx
push eax
push ecx
push str.CCommEngine__::Connect__d._d._d._d__session_is__08X_n
call fcn.00451d70
add esp, 0x18
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b40aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4b40aa
lea eax, [ebx + 4]
call fcn.004b5250
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x4b4520
Capabilities:
Hash data using sha1
Send data
Send data on socket

Disassembly:
mov eax, 0x856c
call fcn.00554980
push ebx
push edi
push 0x10
lea eax, [esp + 0x57a]
push eax
mov eax, dword [esp + 0x8580]
xor ebx, ebx
add eax, 4
mov edi, ecx
mov byte [esp + 0x278], bl
call fcn.004b22d0
test al, al
jne 0x4b455f
pop edi
pop ebx
add esp, 0x856c
ret 0x10
push ebp
push esi
push 0x10
lea ecx, [esp + 0x592]
push edi
push ecx
call fcn.00552af0
mov eax, dword [esp + 0x8590]
movzx eax, word [eax + 0xe]
mov edx, dword [esp + 0x8598]
add eax, 0x1f
mov dword [esp + 0x5aa], edx
cdq
and edx, 0xf
add eax, edx
mov esi, eax
sar esi, 4
mov ebp, esi
shl ebp, 4
lea eax, [ebp - 0x10]
add esp, 0xc
cmp eax, 0x7fca
jbe 0x4b45c7
push eax
push str.CCommP2P__::SendEnc_...__failed_because_encrypted_body_len_is_too_large____d_n
call fcn.00451d70
add esp, 8
pop esi
pop ebp
pop edi
xor al, al
pop ebx
add esp, 0x856c
ret 0x10
mov eax, dword [esp + 0x8580]
mov eax, dword [eax + 0x284]
lea ecx, [esp + 0x57e]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], 0xc3d2e1f0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], ebx
call fcn.004bdcd0
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4b4622
sub eax, ecx
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.004bdcd0
lea edx, [esp + 0x8594]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, 4
call fcn.004bdcd0
lea ebx, [esp + 0x20]
call fcn.004bdf50
push 1
lea edi, [esp + 0x84]
mov edx, 0x10
mov ecx, ebx
call fcn.004bb220
mov edx, dword [esp + 0x8598]
lea ecx, [esp + 0x84]
push ecx
mov eax, esi
lea ecx, [esp + 0x5ba]
call fcn.004b2270
mov esi, dword [esp + 0x85a0]
mov ecx, dword [esp + 0x8598]
add esp, 0x18
push 0x10
push esi
add ebp, 0x26
push 0
movzx edx, bp
push edx
mov edx, dword [ecx + 0x288]
lea eax, [esp + 0x58c]
push eax
push edx
mov word [esp + 0x594], bp
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4b46ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CCommP2P__::SendEnc_...__failed_while_sendto___with__d_n
call fcn.00451d70
add esp, 8
pop esi
pop ebp
pop edi
xor al, al
pop ebx
add esp, 0x856c
ret 0x10
movzx eax, word [esp + 0x57c]
lea edi, [esp + 0x57c]
mov ecx, 0x300
lea ebx, [esp + 0x27c]
call fcn.004ba980
movzx ecx, word [esi + 2]
mov edx, dword [esi + 4]
push eax
movzx eax, word [esp + 0x580]
push eax
push ecx
push edx
push str._tU_SENT____IP_08X_PORT_04X_LEN_d___s_n
call fcn.00451d70
add esp, 0x14
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x856c
ret 0x10
Function at 0x4b4e70
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x563058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, ecx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 0x8004667e
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebp + 0x20]
push 0x33
push 0x478
push edx
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x4b4f3b
lea ecx, [esp + 0x24]
call fcn.004b6ba0
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x58]
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x68], 0x717a
call edi
push 4
lea ecx, [esp + 0x58]
push ecx
push 0x1001
push 0xffff
push esi
call edi
mov edx, dword [ebp + 8]
lea esi, [ebp + 4]
push ebx
push edx
lea edi, [esp + 0x18]
mov eax, esi
call fcn.004b6b30
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4b4f92
mov dword [eax], edi
jmp 0x4b4f94
mov dword [esi], edi
lea ecx, [esp + 0x28]
mov dword [esi + 4], edi
call fcn.004b6ba0
mov ecx, dword [esp + 0x40]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8

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

Disassembly:
mov eax, 0x717c
call fcn.00554980
mov eax, dword [esp + 0x7180]
test eax, eax
push esi
mov esi, ecx
jne 0x4b5015
mov ecx, dword [esi + 8]
push eax
push 0x717a
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4b5006
mov eax, esi
xor ecx, ecx
mov edx, edi
call fcn.004b40c0
pop esi
add esp, 0x717c
ret 4
cmp eax, 0xffffffff
jne 0x4b5044
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b5063
cmp eax, 0x2733
je 0x4b5063
mov edx, dword [edi]
push 0
push 0
push esi
push eax
mov ecx, edi
call dword [edx]
mov eax, dword [edi + 4]
test eax, eax
je 0x4b5063
nop
cmp esi, eax
je 0x4b505d
mov eax, dword [eax]
test eax, eax
jne 0x4b5030
pop esi
add esp, 0x717c
ret 4
mov edx, dword [edi]
push eax
lea eax, [esp + 8]
push eax
push esi
push 0
mov ecx, edi
call dword [edx]
pop esi
add esp, 0x717c
ret 4
push edi
call fcn.004b3730
pop esi
add esp, 0x717c
ret 4
Function at 0x4b5070
Capabilities:
Send data
Send data on socket

Disassembly:
test eax, eax
jne 0x4b5138
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4b50ff
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push edi
lea edi, [ebx + 0x20]
push esi
nop
mov esi, dword [edi]
add esi, 8
mov eax, dword [esi + 0x717c]
mov ecx, dword [ebx + 8]
push 0
push eax
push esi
push ecx
call ebp
cmp eax, 0xffffffff
je 0x4b5102
mov ecx, dword [esi + 0x717c]
cmp eax, ecx
jge 0x4b50cb
sub ecx, eax
push ecx
add eax, esi
push eax
push esi
mov dword [esi + 0x717c], ecx
call fcn.00551540
add esp, 0xc
jmp 0x4b5095
mov ecx, dword [edi]
mov eax, dword [ecx]
xor esi, esi
cmp eax, esi
mov dword [edi], eax
je 0x4b50dc
mov dword [eax + 4], esi
jmp 0x4b50df
mov dword [edi + 4], esi
mov edx, dword [edi + 0x10]
mov dword [ecx], edx
mov eax, dword [edi + 8]
dec eax
mov dword [edi + 0x10], ecx
mov dword [edi + 8], eax
jne 0x4b50f7
mov ecx, edi
call fcn.004b6ba0
cmp dword [ebx + 0x28], esi
jne 0x4b5090
pop esi
pop edi
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4b50fc
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4b5125
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x4b50fc
mov edx, dword [esp + 0x10]
mov eax, ebx
xor ecx, ecx
call fcn.004b40c0
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4b514e
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x4b50ff
mov edx, dword [esp + 4]
mov eax, ebx
xor ecx, ecx
call fcn.004b40c0
ret 4
Function at 0x4b95a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7184
call fcn.00554980
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, edx
jle 0x4b9603
cmp edi, 0x717a
jg 0x4b9603
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4b960e
lea ecx, [ecx]
mov eax, dword [ebx + 8]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b95f6
sub edi, eax
add esi, eax
test edi, edi
jg 0x4b95d0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4b960e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x24]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x718c], edi
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, 0x20
push 0
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004ba030
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4b9656
mov dword [ecx], eax
test eax, eax
mov dword [ebx + 4], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov dword [ebx], eax
mov dword [ebx + 4], eax
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword [eax + 4]
sub esp, 0x14
test eax, eax
je 0x4b96aa
lea ebx, [ebx]
cmp ecx, eax
je 0x4b96b2
mov eax, dword [eax]
test eax, eax
jne 0x4b96a0
xor al, al
add esp, 0x14
ret 8
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x4b96aa
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4b96aa
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 6]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov word [eax], dx
mov al, 1
add esp, 0x14
ret 8
Function at 0x4baa00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5634f0
push eax
mov eax, dword [0x5e20f4]
mov dword fs:[0], esp
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x4bab0c
mov eax, dword [0x881914]
push ebp
push esi
push edi
mov ecx, 0x881914
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.00413d30
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
push str.Gunbound.erl
push ecx
push 0x5827b8
lea edi, [esp + 0x18]
call fcn.004178e0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4baa8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0xc]
push ebp
call fcn.005523a6
add esp, 4
push 0
push 0x8000080
push 4
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x5e20f4], eax
je 0x4baae7
mov ecx, 5
mov esi, str._r_n_r_n_t_tSTARTING_LOG_r_n_r_n
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x16
movsw word es:[edi], word [esi]
lea edx, [esp + 0x24]
push edx
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
jg 0x4bab0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x4bab20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5e20f4]
sub esp, 0x404
cmp eax, 0xffffffff
je 0x4bab79
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x400
push edx
call fcn.00552d92
add esp, 0x10
test eax, eax
jge 0x4bab60
cmp eax, 0xffffffff
jne 0x4bab79
mov eax, 0x400
push 0
lea ecx, [esp + 4]
push ecx
push eax
mov eax, dword [0x5e20f4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x404
ret
Function at 0x4bd8b0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x28c
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
xor ebx, ebx
push edi
mov edi, eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], 0xc3d2e1f0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x68], ebx
xor al, al
lea ebx, [ebx]
movzx ecx, al
cmp byte [ecx + esi], bl
je 0x4bd910
inc al
cmp al, 0x10
jb 0x4bd900
mov al, 0x10
lea edx, [esp + 0xc]
movzx eax, al
push esi
push edx
call fcn.004bdcd0
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bd926
lea ecx, [esp + 0xc]
push edi
sub eax, edx
push ecx
call fcn.004bdcd0
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, 4
call fcn.004bdcd0
lea ebx, [esp + 0x1c]
call fcn.004bdf50
mov edi, dword [esp + 0x2ac]
push 3
mov edx, 0x10
mov ecx, ebx
call fcn.004bb220
add esp, 0x14
cmp ax, 1
je 0x4bd984
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x28c
ret
mov ecx, dword [esp + 0x2a0]
push 1
lea edi, [esp + 0x90]
mov edx, 0x10
mov byte [esp + 0x298], 0
call fcn.004bb220
push 0x10
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.00552af0
mov edx, dword [esp + 0x2b4]
mov eax, edi
push eax
mov dword [esp + 0x90], edx
push ebp
lea edx, [esp + 0x84]
call fcn.004bb680
add esp, 0x18
cmp ax, 1
jne 0x4bda05
mov ecx, edi
push ecx
add ebp, 0x10
push ebp
lea edx, [esp + 0x84]
call fcn.004bb680
add esp, 8
cmp ax, 1
jne 0x4bda05
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28c
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28c
ret

Function at 0x4be010
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret