joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47aeb0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
test eax, eax
je 0x47af11
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x47aef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0xc]
mov edi, eax
add ebx, 0x4a8
jmp 0x47af93
xor edi, edi
test esi, esi
jne 0x47af03
test ebx, ebx
jg 0x47af7d
mov ebx, dword [ebp + 0xc]
add ebx, 0x4a8
jmp 0x47af93
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [ebp + 0x18]
lea ebx, [esi + 0x4a8]
mulsd xmm0, qword [0x514590]
mov eax, dword [esi + 0x4b4]
mov dword [ebp - 8], eax
mov eax, 1
mov word [ebp - 4], ax
mov eax, dword [ebx]
add eax, 0x14
push eax
cvttsd2si eax, xmm0
push eax
lea eax, [ebp - 8]
push 1
push eax
call fcn.00477940
mov ecx, dword [ebx]
add esp, 0x10
cmp dword [ecx + 0x14], edi
jne 0x47af7d
test eax, eax
jle 0x47af8f
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi + 0x4b4]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x47af89
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x47af7d
xor edi, edi
jmp 0x47af93
js 0x47af7d
xor esi, esi
mov eax, dword [ebx]
cmp dword [eax + 0x14], 0
jne 0x47af7d
test esi, esi
jg 0x47afcc
jne 0x47afb1
cmp dword [ebp + 0x14], 0
je 0x47afcc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x47afa7
cmp edi, 0x2733
je 0x47af7d
cmp edi, 0x274c
jne 0x47af7d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c220
Capabilities:
Encode data using base64
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push dword [0x55c49c]
mov ebx, dword [ebp + 8]
push eax
push str._s_s
push 0x64
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x114], ebx
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00478b30
add esp, 0x1c
cmp dword [ebp - 0x104], 0
je 0x47c289
mov dword [ebx + 0x51c], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x100], 0x67452301
mov dword [ebp - 0xfc], 0xefcdab89
lea edx, [ecx + 1]
mov dword [ebp - 0xf8], 0x98badcfe
mov dword [ebp - 0xf4], 0x10325476
mov dword [ebp - 0xf0], 0xc3d2e1f0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xec], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c2d8
push esi
push edi
sub ecx, edx
lea eax, [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00473760
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00471fc0
xor ecx, ecx
lea edx, [ebp - 0x3f]
mov esi, 2
mov dword [ebp - 0x108], ecx
add esp, 0x14
xor eax, eax
mov edi, 1
sub esi, edx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x110], esi
nop
lea ebx, [ebp - 0x3f]
add ecx, ebx
movzx ebx, byte [ecx - 1]
cmp edi, 0x14
jb 0x47c342
xor edx, edx
jmp 0x47c345
movzx edx, byte [ecx]
add esi, ecx
mov dword [ebp - 0x10c], esi
cmp esi, 0x14
jb 0x47c356
xor esi, esi
jmp 0x47c35a
movzx esi, byte [ecx + 1]
mov edi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, ebx
shr ecx, 2
and ebx, 3
shl ebx, 4
movzx ecx, byte [ecx + edi]
mov byte [ebp + eax - 0x2c], cl
mov ecx, edx
shr ecx, 4
or ebx, ecx
mov ecx, edi
mov edi, dword [ebp - 0x104]
movzx ecx, byte [ebx + ecx]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + eax - 0x2b], cl
add eax, 2
cmp edi, 0x14
jae 0x47c3ad
and edx, 0xf
mov ecx, esi
shr ecx, 6
shl edx, 2
or edx, ecx
mov cl, byte [edx + ebx]
mov byte [ebp + eax - 0x2c], cl
inc eax
cmp dword [ebp - 0x10c], 0x14
jae 0x47c3c1
and esi, 0x3f
mov cl, byte [esi + ebx]
mov byte [ebp + eax - 0x2c], cl
inc eax
mov ecx, dword [ebp - 0x108]
add edi, 3
mov esi, dword [ebp - 0x110]
add ecx, 3
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], edi
cmp edi, 0x15
jb 0x47c330
test al, 3
je 0x47c3fa
nop dword [eax]
mov byte [ebp + eax - 0x2c], 0x3d
inc eax
test al, 3
jne 0x47c3f0
mov esi, dword [ebp - 0x114]
mov byte [ebp + eax - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push str.HTTP_1.1_101_Switching_Protocols_r_nUpgrade:_websocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:__s_r_n
push esi
call fcn.00477c80
mov ecx, dword [esi + 0x284]
mov eax, 0x5136f4
test ecx, ecx
mov edx, str.Sec_WebSocket_Protocol:__s_r_n_r_n
cmovne eax, ecx
push eax
mov eax, 0x5136ec
cmovne eax, edx
push eax
push esi
call fcn.00477c80
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x47e1d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5117a3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x55ca98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
lea edi, [ebx + 4]
push 0x38
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0050945c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push dword [edi]
sar eax, 2
push eax
mov byte [ebp - 4], 1
call fcn.0043c480
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x47e3a5
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
mov edx, ebx
jb 0x47e284
mov edx, dword [ebx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [ebx + 0x10], ecx
jbe 0x47e2a2
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x47e290
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push edi
push ebx
push eax
call fcn.0043a5f0
cmp dword [ebp - 0x20], 0
jne 0x47e397
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
je 0x47e3bb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push 0x38
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.0050945c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
add eax, 8
mov ecx, eax
mov dword [ebp + 8], eax
push ebx
call fcn.00404bb0
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x18]
add ecx, 0x18
mov byte [ebp - 4], 3
push eax
call fcn.00404bb0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ebx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5145a0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5145a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
seta al
test al, al
je 0x47e37b
mov ecx, ebx
call fcn.0043ce80
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0043a5f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x47e37e
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
push ecx
push edi
mov ecx, ebx
call fcn.0043cd90
mov byte [ebp - 4], 1
jmp 0x47e39a
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x1c]
jne 0x47e277
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x47e5c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x47e5d3
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x47e5f1
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x47e5e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x485810
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511eed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x38], xmm0
push 0x514540
push eax
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0x502
call fcn.00401620
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x485889
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x48590e
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], eax
push dword [edx + 0x10]
push dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x485929
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 1
push 6
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret 8
push str.Resolve_failed
lea ecx, [ebp - 0x54]
call fcn.004292f0
push 0x552104
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [0x55fc44]
mov eax, dword [eax]
mov edi, dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, ebx
mov esi, dword [eax]
call fcn.0047d650
push esi
push eax
push str.Could_not_connect_to__s._Error__d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.http
call fcn.00404c60
push 0x49
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_bellmainioincludeTCPSocket.h
call fcn.00404c60
push dword [0x55fc44]
mov dword [ebp - 4], 0xffffffff
call edi
add esp, 0x44
lea ecx, [ebp - 0x60]
push str.Resolve_failed
call fcn.004292f0
push 0x552104
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x489e70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 4
xor edi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov dword [eax], edi
call fcn.0048b3e0
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.0048b390
push esi
push eax
mov dword [ebp - 0xc], eax
call fcn.0048b490
mov esi, dword [ebp + 0x1c]
add esp, 0x14
mov dword [ebp - 4], eax
test esi, esi
je 0x489ef4
cmp dword [esi], edi
je 0x489ef4
push 0x10
push eax
call fcn.0048b480
add esp, 4
push eax
call fcn.0048c0d0
mov edi, eax
push edi
push dword [ebp + 8]
call fcn.0048c530
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
je 0x489ef4
push ecx
push edi
call fcn.0048c030
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add esp, 8
test ecx, ecx
jne 0x489ee0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x489f03
push eax
call fcn.0048b3e0
jmp 0x489f0b
push dword [ebx + 0x24]
call fcn.0048b480
add esp, 4
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call fcn.0048b480
add esp, 4
push eax
call fcn.0048c190
mov esi, eax
push esi
push dword [ebp + 8]
mov dword [ebp + 0x1c], esi
call fcn.0048c530
push esi
push dword [ebp - 8]
call fcn.0048c150
add esp, 0x1c
mov dword [ebp + 0x18], eax
push eax
push str._t_services_a_dns_sd
call fcn.0048b480
add esp, 4
push eax
call fcn.0048c150
push ebx
mov dword [ebp - 8], eax
call fcn.0046cb90
add esp, 0xc
lea esi, [ebx + 0x14]
test edi, edi
je 0x489f71
push edi
push esi
call fcn.0048c3e0
add esp, 8
push dword [ebp + 0x1c]
push esi
call fcn.0048c3e0
mov edi, dword [ebp + 0x18]
push edi
push esi
call fcn.0048c3e0
push dword [ebp - 8]
push esi
call fcn.0048c3e0
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.0048c530
lea eax, [ebx + 0x1c]
push edi
push eax
call fcn.0048c530
push ebx
call fcn.0046ce40
push dword [ebp - 4]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [ebp - 0xc]
call esi
add esp, 0x34
push 0
push 1
push 0x5145b0
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a060
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
push edi
push 0x28
mov byte [0x55fcdc], al
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [sym.imp.WS2_32.dll_socket]
add esp, 4
mov edi, eax
xorps xmm0, xmm0
push 0
movups xmmword [edi], xmm0
push 1
movups xmmword [edi + 0x10], xmm0
push 2
movq qword [edi + 0x20], xmm0
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48a211
xorps xmm0, xmm0
mov eax, 2
push 0
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x48a20a
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x48a20a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x48a20a
push 0
push 1
push 2
call esi
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x48a20a
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x48a20a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x48a17e
push dword [edi + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push ebx
mov dword [edi + 0xc], 0xffffffff
call esi
jmp 0x48a211
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 8]
call fcn.00489500
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jns 0x48a19e
push str.unable_to_create_recv_socket_n
jmp 0x48a216
push 0
push edi
call fcn.0046c950
lea eax, [ebp - 0x1c]
push eax
call fcn.0046dcc0
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0046dd80
push edi
push 0x489740
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046c6a0
add esp, 0x24
test eax, eax
je 0x48a1f7
push edi
call fcn.0046ca80
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.pipe__:__m_n
push 1
call fcn.00489dd0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x48a480
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add edx, 0xc0
push esi
push edi
mov ecx, ebx
mov edi, 4
nop dword [eax]
mov esi, 4
mov al, byte [edx]
inc edx
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x48a4a5
sub edi, 1
jne 0x48a4a0
mov byte [ebp + 0xb], 0xb
nop dword [eax]
movzx eax, byte [ebx + 9]
mov esi, ebx
mov cl, byte [ebx + 0xd]
mov edi, 4
mov byte [ebx + 0xd], al
movzx eax, byte [ebx + 5]
mov byte [ebx + 9], al
movzx eax, byte [ebx + 1]
mov byte [ebx + 5], al
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 1], cl
mov cl, byte [ebx + 2]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 0xe]
mov byte [ebx + 0xa], cl
mov cl, byte [ebx + 6]
mov byte [ebx + 6], al
movzx eax, byte [ebx + 7]
mov byte [ebx + 0xe], cl
mov cl, byte [ebx + 3]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 7], al
movzx eax, byte [ebx + 0xf]
mov byte [ebx + 0xb], al
mov byte [ebx + 0xf], cl
nop word [eax + eax]
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x520b30]
mov byte [ecx - 4], al
sub edx, 1
jne 0x48a530
inc esi
sub edi, 1
jne 0x48a520
mov ch, byte [ebp + 0xb]
mov eax, ebx
movzx edx, ch
mov edi, 4
shl edx, 4
add edx, dword [ebp + 0xc]
nop dword [eax]
mov esi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x48a565
sub edi, 1
jne 0x48a560
test ch, ch
je 0x48a58a
push ebx
call fcn.0048a590
add esp, 4
dec byte [ebp + 0xb]
jmp 0x48a4c0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4981b0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x55fe7c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
jne 0x49820b
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x498201
pop edi
pop esi
mov eax, 0xffffffbe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov dword [0x55fe7c], 1
mov ecx, dword [ebp + 0x14]
mov edx, 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x1b8], 0
movlpd qword [ebp - 0x1a8], xmm0
movlpd qword [ebp - 0x1a0], xmm0
lea eax, [ecx - 1]
mov dword [ebp - 0x1b4], 0
neg eax
sbb eax, eax
add eax, 2
cmp ecx, 1
mov dword [ebp - 0x1b0], eax
mov eax, 6
cmove eax, edx
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x1b8]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x49828b
pop edi
pop esi
mov eax, 0xffffffae
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x198]
mov edi, 0xffffffae
test esi, esi
je 0x4982e5
nop word [eax + eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
test eax, eax
jns 0x4982bc
mov edi, 0xffffffbe
jmp 0x4982da
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4982e3
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, 0xffffffbc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4982a0
jmp 0x4982e5
xor edi, edi
push dword [ebp - 0x198]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x4a4580
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
nop dword [eax]
mov al, dl
mov dword [ebp + esi*4 - 0x804], edx
add al, al
mov dword [ebp + edx*4 - 0x404], esi
movzx ecx, al
movzx eax, dl
and dl, 0x80
xor ecx, eax
movzx eax, dl
neg eax
sbb eax, eax
inc esi
and eax, 0x1b
xor ecx, eax
mov edx, ecx
cmp esi, 0x100
jl 0x4a45a0
mov edx, 1
mov esi, 0x562320
nop
mov eax, edx
mov dword [esi], edx
and al, 0x80
movzx ecx, al
neg ecx
sbb ecx, ecx
add dl, dl
and ecx, 0x1b
movzx edx, dl
add esi, 4
xor edx, ecx
cmp esi, 0x562348
jl 0x4a45e0
mov ecx, 1
mov byte [0x560120], 0x63
mov byte [0x561283], 0
mov dword [ebp - 0x808], ecx
nop dword [eax + eax]
mov ecx, dword [ebp + ecx*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx ecx, cl
mov al, cl
xor ebx, ecx
add al, al
shr ecx, 7
movzx edx, al
or edx, ecx
xor ebx, edx
mov al, dl
add al, al
mov dword [ebp - 0x80c], ebx
movzx ebx, al
shr edx, 7
or ebx, edx
mov al, bl
add al, al
movzx ecx, al
mov eax, ebx
shr eax, 7
or ecx, eax
mov eax, dword [ebp - 0x80c]
xor ecx, 0x63
xor ecx, ebx
xor eax, ecx
mov ecx, dword [ebp - 0x808]
mov byte [ecx + 0x560120], al
mov byte [eax + 0x561220], cl
inc ecx
mov dword [ebp - 0x808], ecx
cmp ecx, 0x100
jl 0x4a4620
xor edi, edi
mov dword [ebp - 0x808], 0xff
nop dword [eax + eax]
mov cl, byte [edi + 0x560120]
movzx esi, cl
mov eax, esi
movzx ebx, byte [edi + 0x561220]
and al, 0x80
mov dword [ebp - 0x80c], ebx
movzx edx, al
neg edx
sbb edx, edx
add cl, cl
and edx, 0x1b
movzx eax, cl
xor edx, eax
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [edi*4 + 0x560220], eax
rol eax, 8
mov dword [edi*4 + 0x560620], eax
rol eax, 8
mov dword [edi*4 + 0x560a20], eax
rol eax, 8
mov dword [edi*4 + 0x560e20], eax
test ebx, ebx
je 0x4a4789
mov eax, dword [ebp + ebx*4 - 0x404]
mov esi, 0xff
add eax, dword [ebp - 0x3d8]
cdq
idiv esi
mov eax, dword [ebp + ebx*4 - 0x404]
add eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp + edx*4 - 0x804]
cdq
idiv esi
mov eax, dword [ebp + ebx*4 - 0x404]
mov ebx, 0xff
add eax, dword [ebp - 0x3e0]
mov esi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x80c]
mov eax, dword [ebp + eax*4 - 0x404]
add eax, dword [ebp - 0x3cc]
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x808]
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x4a4791
xor ecx, ecx
xor esi, esi
xor ebx, ebx
xor eax, eax
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, ebx
shl ecx, 8
xor ecx, eax
mov dword [edi*4 + 0x561320], ecx
rol ecx, 8
mov dword [edi*4 + 0x561720], ecx
rol ecx, 8
mov dword [edi*4 + 0x561b20], ecx
rol ecx, 8
mov dword [edi*4 + 0x561f20], ecx
inc edi
cmp edi, 0x100
jl 0x4a46b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret