joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446580
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x80
push esi
push 0x80
lea eax, [esp + 8]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4465ab
mov dword [edi + 4], esi
mov dword [edi], esi
pop esi
add esp, 0x80
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x446604
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x446604
lea ecx, [edi + 5]
push ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx]
mov byte [ecx - 1], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 1]
mov byte [ecx], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 2]
mov byte [ecx + 1], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 3]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0xc]
mov ebx, dword [edx + esi*4 + 4]
inc esi
add ecx, 4
test ebx, ebx
jne 0x4465c6
pop ebx
mov dword [edi], esi
pop esi
add esp, 0x80
ret
Function at 0x44b3a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x87b40c]
mov cl, byte [eax + 0x1a63c]
sub esp, 0x88
cmp cl, 0xff
je 0x44b4bc
cmp byte [0x87b668], 1
jne 0x44b48a
push esi
push edi
mov edi, dword [0x87b794]
push 0
push 0x21b
push 0xca
lea eax, [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0040a860
mov eax, dword [0x87b794]
mov cl, byte [eax + 8]
test cl, cl
je 0x44b40c
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 0x44b411
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00527e40
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00527e40
push 0xf800
sub eax, esi
push 0xc
add eax, 2
push eax
push 0x21b
add esi, 0xca
push esi
call fcn.005280d0
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x21c
push 0xcb
call fcn.0052aa60
push 0xffe0
lea edx, [esp + 0x48]
push edx
push 0x21b
push 0xca
call fcn.0052aa60
add esp, 0x44
pop edi
pop esi
add esp, 0x88
ret
push 0
push 0x87b670
push 0x21c
push 0xcb
call fcn.0052aa60
push 0xffff
push 0x87b670
push 0x21b
push 0xca
call fcn.0052aa60
add esp, 0x20
add esp, 0x88
ret

Function at 0x44b4d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x87b794]
mov cl, byte [eax + 8]
sub esp, 0x104
test cl, cl
je 0x44b4fa
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 0x44b4ff
mov byte [esp + 4], 0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b506
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 0x44b53f
mov edx, dword [0x87b794]
mov eax, dword [edx + 4]
push 0x5796fa
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0x104
ret 8

Function at 0x44bd20
Capabilities:
Resolve dns

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44bd26
sub eax, esi
pop esi
je 0x44bd6d
cmp byte [eax + edx - 1], 0x2e
je 0x44bd6d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x44bd52
mov al, byte [ecx + edx]
cmp al, 0x2e
je 0x44bd52
cmp al, 0x30
jl 0x44bd5a
cmp al, 0x39
jg 0x44bd5a
dec ecx
jns 0x44bd40
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 0x44bd6d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
or eax, 0xffffffff
ret
Function at 0x44c4a0
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 0x44c4fb
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.0044bd20
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 0x44c4fb
mov byte [esi + 0x22a], 1
mov al, byte [esi + 0x22a]
add esp, 0x10
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x400c
call fcn.0054d230
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.0052b5a0
mov al, byte [edi + 0x22a]
test al, al
jne 0x44c604
mov ecx, esi
call fcn.0052b5b0
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.0046c4c0
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x44c63c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax + ecx]
push edx
push str._02X
call fcn.0046c4c0
add esp, 8
inc eax
cmp eax, ebx
jl 0x44c622
push 0x579e5c
call fcn.0046c4c0
add esp, 4
test ebx, ebx
jle 0x44c700
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 0x44c670
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x44c651
jmp 0x44c700
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._n_nKASI_0802____Socket_Error_:__d_n_n
call fcn.0046c4c0
add esp, 8
cmp eax, 0x2733
jne 0x44c6ce
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.0044c7f0
mov ecx, dword [esp + 0xc]
call fcn.0052b5b0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x22c], 1
je 0x44c700
mov eax, dword [edi + 0x20]
test eax, eax
je 0x44c700
push str._n_nKASI_0802___:__xSocket::Send_const_void_buffer__const_int_length_____t
call fcn.0046c4c0
add esp, 4
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.0052ad90
mov ecx, dword [esp + 0xc]
call fcn.0052b5b0
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 0x44d1f0
Capabilities:
Create udp socket

Disassembly:
lea eax, [esi + 8]
push eax
mov dword [esi], vtable.Xenesis2::Foundation::Socket::xSocket.0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov cl, byte [0x8ffafc]
mov eax, 1
test al, cl
mov byte [esi + 0x20], 0
mov dword [esi], vtable.Xenesis2::Foundation::Socket::xUDPSocket.0
jne 0x44d23b
mov edx, dword [0x8ffafc]
or edx, eax
push 0x566130
mov dword [0x8ffafc], edx
call fcn.00549335
add esp, 4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, esi
ret

Function at 0x44d278
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov ax, word [esp + 0x18]
push esi
mov esi, ecx
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov word [esp + 0x10], 2
mov word [esp + 0x12], ax
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
pop esi
add esp, 0x10
ret 8
Function at 0x4aeef0
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 0x4aefbd
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.004afd10
mov edi, eax
test edi, edi
jne 0x4aef62
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.0046c4c0
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 0x4aefba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4aefba
lea eax, [ebx + 4]
call fcn.004b00f0
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 0x4af430
Capabilities:
Hash data using sha1
Send data
Send data on socket

Disassembly:
mov eax, 0x856c
call fcn.0054d230
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.004ad150
test al, al
jne 0x4af46f
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.0054b3f0
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 0x4af4d7
push eax
push str.CCommP2P__::SendEnc_...__failed_because_encrypted_body_len_is_too_large____d_n
call fcn.0046c4c0
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.004b89f0
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4af532
sub eax, ecx
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.004b89f0
lea edx, [esp + 0x8594]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, 4
call fcn.004b89f0
lea ebx, [esp + 0x20]
call fcn.004b8c70
push 1
lea edi, [esp + 0x84]
mov edx, 0x10
mov ecx, ebx
call fcn.004b5f40
mov edx, dword [esp + 0x8598]
lea ecx, [esp + 0x84]
push ecx
mov eax, esi
lea ecx, [esp + 0x5ba]
call fcn.004ad0f0
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 0x4af5fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CCommP2P__::SendEnc_...__failed_while_sendto___with__d_n
call fcn.0046c4c0
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.004b5820
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.0046c4c0
add esp, 0x14
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x856c
ret 0x10
Function at 0x4afd10
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x55b8a8
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 0x4afddb
lea ecx, [esp + 0x24]
call fcn.004b1a40
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.004b19d0
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4afe32
mov dword [eax], edi
jmp 0x4afe34
mov dword [esi], edi
lea ecx, [esp + 0x28]
mov dword [esi + 4], edi
call fcn.004b1a40
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 0x4afe60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x717c
call fcn.0054d230
mov eax, dword [esp + 0x7180]
test eax, eax
push esi
mov esi, ecx
jne 0x4afeb5
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 0x4afea6
mov eax, esi
xor ecx, ecx
mov edx, edi
call fcn.004aefd0
pop esi
add esp, 0x717c
ret 4
cmp eax, 0xffffffff
jne 0x4afee4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4aff03
cmp eax, 0x2733
je 0x4aff03
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 0x4aff03
nop
cmp esi, eax
je 0x4afefd
mov eax, dword [eax]
test eax, eax
jne 0x4afed0
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.004ae5b0
pop esi
add esp, 0x717c
ret 4
Function at 0x4aff10
Capabilities:
Send data
Send data on socket

Disassembly:
test eax, eax
jne 0x4affd8
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4aff9f
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 0x4affa2
mov ecx, dword [esi + 0x717c]
cmp eax, ecx
jge 0x4aff6b
sub ecx, eax
push ecx
add eax, esi
push eax
push esi
mov dword [esi + 0x717c], ecx
call fcn.00549e00
add esp, 0xc
jmp 0x4aff35
mov ecx, dword [edi]
mov eax, dword [ecx]
xor esi, esi
cmp eax, esi
mov dword [edi], eax
je 0x4aff7c
mov dword [eax + 4], esi
jmp 0x4aff7f
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 0x4aff97
mov ecx, edi
call fcn.004b1a40
cmp dword [ebx + 0x28], esi
jne 0x4aff30
pop esi
pop edi
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4aff9c
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4affc5
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x4aff9c
mov edx, dword [esp + 0x10]
mov eax, ebx
xor ecx, ecx
call fcn.004aefd0
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4affee
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x4aff9f
mov edx, dword [esp + 4]
mov eax, ebx
xor ecx, ecx
call fcn.004aefd0
ret 4
Function at 0x4b43d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7184
call fcn.0054d230
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, edx
jle 0x4b4433
cmp edi, 0x717a
jg 0x4b4433
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4b443e
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 0x4b4426
sub edi, eax
add esi, eax
test edi, edi
jg 0x4b4400
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 0x4b443e
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.004b4e60
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4b4486
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 0x4b44c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [eax + 4]
sub esp, 0x14
test eax, eax
je 0x4b44da
lea ebx, [ebx]
cmp ecx, eax
je 0x4b44e2
mov eax, dword [eax]
test eax, eax
jne 0x4b44d0
xor al, al
add esp, 0x14
ret 8
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x4b44da
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 0x4b44da
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 0x4b57b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5d90b4]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4b57ff
push esi
push edi
mov ecx, 5
mov esi, str._r_n_r_n_t_tSTOPPING_LOG_r_n_r_n
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x16
movsw word es:[edi], word [esi]
lea edx, [esp + 0x18]
push edx
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x5d90b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x5d90b4], 0xffffffff
pop esi
mov eax, dword [0x87b7e4]
test eax, eax
je 0x4b581b
push eax
call fcn.0054a13d
add esp, 4
mov dword [0x87b7e4], 0
add esp, 0x1c
ret
Function at 0x4b85d0
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 0x4b8630
inc al
cmp al, 0x10
jb 0x4b8620
mov al, 0x10
lea edx, [esp + 0xc]
movzx eax, al
push esi
push edx
call fcn.004b89f0
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4b8646
lea ecx, [esp + 0xc]
push edi
sub eax, edx
push ecx
call fcn.004b89f0
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, 4
call fcn.004b89f0
lea ebx, [esp + 0x1c]
call fcn.004b8c70
mov edi, dword [esp + 0x2ac]
push 3
mov edx, 0x10
mov ecx, ebx
call fcn.004b5f40
add esp, 0x14
cmp ax, 1
je 0x4b86a4
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.004b5f40
push 0x10
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.0054b3f0
mov edx, dword [esp + 0x2b4]
mov eax, edi
push eax
mov dword [esp + 0x90], edx
push ebp
lea edx, [esp + 0x84]
call fcn.004b63a0
add esp, 0x18
cmp ax, 1
jne 0x4b8725
mov ecx, edi
push ecx
add ebp, 0x10
push ebp
lea edx, [esp + 0x84]
call fcn.004b63a0
add esp, 8
cmp ax, 1
jne 0x4b8725
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 0x4b8d30
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
Function at 0x4c6de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55be5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi], vtable.Xenesis2::Foundation::Process::xThread_0__10_.0
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.Xenesis2::Foundation::Memory::xEncryptMemory.0
lea ebp, [esi + 0x10]
call fcn.004c7280
mov dword [ebp + 4], eax
mov cl, 1
mov byte [eax + 0x11], cl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], ebx
push 0x40000
mov byte [esp + 0x28], cl
call fcn.00541c84
mov dword [esi + 0x1c], eax
push 0x8000
mov byte [esp + 0x2c], 2
call fcn.00541c84
mov dword [esi + 0x20], eax
push 0x8000
mov byte [esp + 0x30], 3
call fcn.00541c84
add esp, 0xc
mov dword [esi + 0x24], eax
lea eax, [esi + 0x30]
push eax
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x24], 5
mov edi, dword [esi + 0x1c]
xor eax, eax
mov ecx, 0x10000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x20]
mov ecx, 0x2000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x24]
mov ecx, 0x2000
rep stosd dword es:[edi], eax
xor edi, edi
lea esp, [esp]
push esi
mov eax, edi
call fcn.004c7050
inc edi
cmp edi, 0x2000
jb 0x4c6ec0
xor edi, edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x14]
mov eax, ebp
call fcn.00416b10
inc edi
cmp edi, 0x10000
mov dword [esp + 0x10], edi
jb 0x4c6ed7
push esi
push 0
push 0x4c7200
mov byte [esi + 0xc], 1
call fcn.0054a9e5
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4