joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446da0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
cmp dword [esp + 0x30], 0x10
mov esi, ecx
jne 0x446e62
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 0xf8]
mov edi, dword [esp + 0x3c]
lea ebx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 7]
movsd qword [esp + 0x14], xmm1
movsd qword [esp + 0xc], xmm0
push ebx
push edx
push eax
call ecx
add esp, 0xc
movzx eax, word [esp + 7]
movzx edx, byte [esp + 9]
movzx ecx, word [esp + 0xa]
cmp edi, 4
mov word [esp], ax
mov byte [esp + 2], dl
mov word [esp + 3], cx
jbe 0x446ebd
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x16
mov edi, 0x16
call fcn.0049d570
test eax, eax
je 0x446f17
mov word [eax + 0x14], 0x676e
mov dword [eax + 0x10], 0x6f6c206f
mov dword [eax + 0xc], 0x6f742072
mov dword [eax + 8], 0x65626d75
mov dword [eax + 4], 0x6e207465
mov dword [eax], 0x6b636170
mov byte [esi], 0xd
mov dword [esi + 4], 0x16
jmp 0x446eb5
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x18
mov edi, 0x18
call fcn.0049d570
test eax, eax
je 0x446f17
mov dword [eax + 0x14], 0x6874676e
mov dword [eax + 0x10], 0x656c2064
mov dword [eax + 0xc], 0x696c6176
mov dword [eax + 8], 0x6e692066
mov dword [eax + 4], 0x6f20656c
mov dword [eax], 0x706d6173
mov byte [esi], 0xd
mov dword [esi + 4], 0x18
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
jmp 0x446f10
mov eax, dword [esp + 0x34]
movzx ecx, byte [esp]
movzx edx, byte [eax]
mov ch, dl
not ch
shr ch, 3
or ch, 0xf
and ch, cl
xor ch, dl
test edi, edi
mov byte [eax], ch
je 0x446f0d
movzx ebx, cl
xor ecx, ecx
cmp byte [esp + 0x40], 0
mov eax, dword [esp + 0x38]
cmove ebx, ecx
dec edi
xor bl, dl
and bl, 3
movzx edx, bl
cmp edi, edx
cmovae edi, edx
inc edi
nop dword [eax]
movzx edx, byte [esp + ecx + 1]
xor byte [eax + ecx], dl
inc ecx
cmp edi, ecx
jne 0x446f00
mov byte [esi], 0x16
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
ud2

Function at 0x459840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe8
mov edi, ecx
mov esi, edx
call fcn.00459853
Function at 0x465080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x5d0
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
mov esi, edx
call fcn.0046509c

Function at 0x468c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ecx]
mov dword [esp + 4], ecx
mov ebp, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
test ebp, ebp
mov dword [esp], eax
je 0x468c5a
mov eax, dword [esp]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
lea esi, [eax + 4]
jmp 0x468c46
add esi, 0xc
dec ebp
je 0x468c5a
cmp dword [esi - 4], 0
je 0x468c40
push dword [esi]
push 0
push dword [0x903200]
call ebx
jmp 0x468c40
cmp dword [edi + 0x10], 0
je 0x468c71
push dword [esp]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0x78]
lock dec dword [eax]
je 0x468d34
mov eax, dword [edi + 0x84]
lock dec dword [eax]
je 0x468d4e
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
je 0x468d6e
mov eax, dword [edi + 0x94]
lock dec dword [eax]
je 0x468d8e
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
je 0x468dae
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
je 0x468dc8
cmp dword [edi + 0x1c], 0
je 0x468cdf
push dword [edi + 0x20]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [edi + 0x28], 0
je 0x468cf6
push dword [edi + 0x2c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0xa8]
lock dec dword [eax]
jne 0x468d0c
lea ecx, [edi + 0xa8]
call fcn.00469160
mov eax, dword [edi + 0x34]
cmp eax, 0x80000001
je 0x468de8
cmp eax, 0x80000002
je 0x468dff
add edi, 0x34
mov ecx, edi
call fcn.00447aa0
jmp 0x468dff
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
call fcn.00469100
mov eax, dword [edi + 0x84]
lock dec dword [eax]
jne 0x468c8c
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
call fcn.00469100
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
jne 0x468c9b
mov ecx, dword [edi + 0x8c]
mov edx, dword [edi + 0x90]
call fcn.00469100
mov eax, dword [edi + 0x94]
lock dec dword [eax]
jne 0x468caa
mov ecx, dword [edi + 0x94]
mov edx, dword [edi + 0x98]
call fcn.00469100
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
jne 0x468cb9
mov ecx, dword [edi + 0x9c]
call fcn.004a1210
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
jne 0x468cc8
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0xa4]
call fcn.00469100
cmp dword [edi + 0x1c], 0
jne 0x468cce
jmp 0x468cdf
cmp dword [edi + 0x38], 0
je 0x468dff
push dword [edi + 0x3c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x468e1f
lock dec dword [eax + 4]
jne 0x468e1f
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46be50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x258
mov edx, dword [ebp + 0x14]
call fcn.0046be67
Function at 0x48c0d0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov esi, ecx
mov ecx, dword [esp + 0x48]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x48c125
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x48c146
test eax, eax
js 0x48c131
mov eax, dword [esp + 8]
mov bl, 4
jmp 0x48c13a
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
add esp, 0x34
pop esi
pop edi
pop ebx
ret
mov eax, esp
mov dword [esp + 0x1c], 0x8c6708
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
call fcn.0048c4e0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0048c580
mov ecx, 7
int 0x29
ud2
Function at 0x48ecd0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x48ed1d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x48ed2d
mov dword [esi + 4], 0
jmp 0x48ed3f
cmp eax, 0x103
je 0x48ed5b
test eax, eax
js 0x48ed48
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x8c6708
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
call fcn.0048c4e0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0048c580
mov ecx, 7
int 0x29
ud2
Function at 0x493a00
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
push esi
test dl, 1
mov eax, 0x17
mov edi, 2
mov esi, ecx
cmovne edi, eax
push 0x81
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x493a36
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x493a4a
cmp eax, 0x2739
jne 0x493a7a
push 1
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x493a83
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x493a95
mov dword [esi + 4], edi
mov byte [esi], 4
pop esi
pop edi
ret
mov byte [esi], 0
mov dword [esi + 4], eax
pop esi
pop edi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
pop esi
pop edi
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
pop esi
pop edi
ret

Function at 0x493c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov edi, edx
cmp ecx, 0x3b9aca00
je 0x493c76
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x20]
mov ebp, 0x3e8
mul ebp
mov ebx, eax
mov eax, edi
seto byte [esp + 3]
mul ebp
mov ebp, edx
mov edi, eax
add ebp, ebx
mov ebx, 0xffffffff
setb al
or al, byte [esp + 3]
jne 0x493c72
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebp
adc eax, 0
jae 0x493cb8
mov edi, dword [esp + 4]
mov dword [esp + 8], ebx
lea eax, [esp + 8]
push 4
push eax
push 0x1006
push 0xffff
push edi
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x493cae
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebp, 0
xor eax, eax
test ecx, ecx
mov edx, edi
setne al
add eax, edi
mov edi, dword [esp + 4]
mov eax, ebp
adc eax, 0
jb 0x493c76
xor eax, eax
test ecx, ecx
setne al
add edx, eax
adc ebp, 0
xor ebx, ebx
neg ebp
sbb ebx, ebx
or ebx, edx
jne 0x493c76
mov eax, dword [0x8c6740]
mov ecx, dword [0x8c6744]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x493cb0
Function at 0x493d10
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov edi, edx
cmp ecx, 0x3b9aca00
je 0x493d76
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x20]
mov ebp, 0x3e8
mul ebp
mov ebx, eax
mov eax, edi
seto byte [esp + 3]
mul ebp
mov ebp, edx
mov edi, eax
add ebp, ebx
mov ebx, 0xffffffff
setb al
or al, byte [esp + 3]
jne 0x493d72
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebp
adc eax, 0
jae 0x493db8
mov edi, dword [esp + 4]
mov dword [esp + 8], ebx
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push edi
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x493dae
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebp, 0
xor eax, eax
test ecx, ecx
mov edx, edi
setne al
add eax, edi
mov edi, dword [esp + 4]
mov eax, ebp
adc eax, 0
jb 0x493d76
xor eax, eax
test ecx, ecx
setne al
add edx, eax
adc ebp, 0
xor ebx, ebx
neg ebp
sbb ebx, ebx
or ebx, edx
jne 0x493d76
mov eax, dword [0x8c6740]
mov ecx, dword [0x8c6744]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x493db0

Function at 0x494c10
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using base64
Get common file path
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50c
mov esi, dword [edx + 0x50]
call fcn.00494c22

Function at 0x4998e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.0048e3d0
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, ecx
neg edx
jo 0x499934
mov dword [esp + 0x18], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.004999c0
mov edi, dword [esp]
mov eax, edi
neg eax
jno 0x499985
movzx eax, byte [esp + 4]
mov edi, dword [esp + 8]
cmp al, 3
jne 0x499977
mov ebp, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [ebp]
test eax, eax
je 0x49994a
push ebx
call eax
add esp, 4
cmp dword [ebp + 4], 0
je 0x499968
cmp dword [ebp + 8], 9
jb 0x499959
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4999a3
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x49997d
test edi, edi
mov dword [esi], 0x80000000
je 0x49997d
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x49997d
Function at 0x49b8d0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
movzx eax, byte [0x90320d]
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov edx, 8
call fcn.0049d570
test eax, eax
je 0x49b974
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push 0x49ba90
push ebx
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x49b924
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x49b96f
mov ebp, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [ebp]
test eax, eax
je 0x49b936
push ebx
call eax
add esp, 4
cmp dword [ebp + 4], 0
je 0x49b954
cmp dword [ebp + 8], 9
jb 0x49b945
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x49d330
Capabilities:
Read file on windows

Disassembly:
cmp dword [edx], 0
jne 0x49d408
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [edx + 0xc]
mov edi, edx
mov esi, ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x49d3e0
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [esp + 4], 0
lea ebx, [esp + 4]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x49d38d
mov eax, dword [esp + 4]
mov ecx, 2
test eax, eax
jne 0x49d3c3
mov word [esi], 4
jmp 0x49d3cd
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x49d3ac
cmp eax, 0x6d
jne 0x49d3d5
lea eax, [esp + 8]
mov dword [esp], 1
jmp 0x49d3ae
mov eax, esp
mov dword [eax], 0
mov ecx, 1
mov eax, dword [esp + 8]
test byte [esp], 1
jne 0x49d37d
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x49d3cd
mov eax, 0x10
test edx, edx
mov ebp, 1
mov ecx, ebx
cmove ebp, eax
push 1
push 1
push ebp
call fcn.004f2050
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x49d354
ud2

Function at 0x49d5b0
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x49d60e
mov ebp, dword [edx + 4]
mov eax, dword [0x9031e8]
cmp eax, 3
jne 0x49d6b6
mov edx, dword [ebp]
lea ecx, [esp + 8]
call fcn.00493a00
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x49d622
mov ebx, dword [esp + 0xc]
test byte [ebp], 1
je 0x49d644
mov ecx, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea eax, [ebp + 0x14]
mov edi, 0x1c
mov edx, 0x1c
mov dword [esp + 4], ecx
mov cx, 0x17
jmp 0x49d65e
movzx ecx, byte [edx + 3]
mov byte [esi + 3], cl
movzx ecx, word [edx + 1]
mov word [esi + 1], cx
mov ecx, dword [edx + 4]
jmp 0x49d637
movzx ecx, byte [esp + 0xb]
mov byte [esi + 3], cl
movzx ecx, word [esp + 9]
mov word [esi + 1], cx
mov ecx, dword [esp + 0xc]
mov byte [esi], al
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], ebx
lea eax, [ebp + 2]
xorps xmm0, xmm0
mov edx, 0x10
mov cx, 2
mov edi, 6
mov ebx, dword [esp]
movzx edi, word [ebp + edi]
mov eax, dword [eax]
mov word [esp + 8], cx
rol di, 8
mov word [esp + 0xa], di
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x49d69e
mov dword [esi + 4], ebx
mov byte [esi], 4
jmp 0x49d63c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push ebx
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x49d63c
call fcn.004f1820
jmp 0x49d5d1
Function at 0x4bb410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov esi, dword [ebp + 0xc]
call fcn.004bb427
Function at 0x4c4eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4c4f00
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.ws2_32.dll_send]
mov ebp, dword [eax]
nop
cmp edi, 0x7fffffff
mov eax, 0x7fffffff
cmovb eax, edi
push 0
push eax
push ebx
push ebp
call esi
cmp eax, 0xffffffff
je 0x4c4f09
test eax, eax
mov byte [esp], 4
mov dword [esp + 4], eax
je 0x4c4f27
cmp edi, eax
jb 0x4c4f40
add ebx, eax
sub edi, eax
jne 0x4c4ed0
mov eax, dword [esp + 0x1c]
mov byte [eax], 4
jmp 0x4c4f38
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esp + 3], 0
mov word [esp + 1], 0
mov byte [esp], 0
mov dword [esp + 4], eax
mov eax, esp
jmp 0x4c4f2c
mov eax, 0x8ea0a8
movsd xmm0, qword [eax]
mov eax, dword [esp + 0x1c]
movsd qword [eax], xmm0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x4c5650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, dword [esp + 0x38]
xorps xmm0, xmm0
mov esi, ecx
lea edi, [esp + 4]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
push 0
push 0x20
push edi
push dword [edx]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4c56b2
mov ebx, eax
cmp eax, 0x20
mov dword [esp], esi
ja 0x4c56fa
mov eax, dword [ebp]
mov esi, ebp
mov ebp, dword [ebp + 8]
sub eax, ebp
cmp eax, ebx
jae 0x4c56c9
mov ecx, esi
mov edx, ebp
push 1
push 1
push ebx
call fcn.004f2050
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ebp, dword [eax + 8]
jmp 0x4c56c9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4c56ef
mov dword [esp], esi
mov esi, ebp
mov ebp, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi + 4]
add eax, ebp
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
add ebp, ebx
mov dword [esi + 8], ebp
mov dword [eax + 4], ebx
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4c56e7
ud2
Function at 0x4c8730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, dword [esp + 0xa8]
call fcn.004c8746

Function at 0x4c9560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, 2
test edx, edx
je 0x4c959a
cmp edx, 1
jne 0x4c959f
xor esi, esi
nop word cs:[eax + eax]
cmp edx, esi
je 0x4c9620
movzx ebx, byte [ecx + esi]
inc esi
add bl, 0xd0
cmp bl, 0xa
jb 0x4c9580
jmp 0x4c9630
jmp 0x4c9661
cmp word [ecx], 0x7830
je 0x4c95e3
cmp word [ecx], 0x5830
je 0x4c95e3
cmp byte [ecx], 0x30
jne 0x4c9574
cmp byte [ecx + 1], 0xbf
jle 0x4c9668
inc ecx
dec edx
mov esi, edx
mov edi, ecx
nop word cs:[eax + eax]
nop dword [eax]
test esi, esi
je 0x4c963f
movzx ebx, byte [edi]
inc edi
dec esi
and bl, 0xf8
cmp bl, 0x30
je 0x4c95d0
jmp 0x4c9630
cmp edx, 3
jb 0x4c962b
cmp byte [ecx + 2], 0xbf
jle 0x4c9668
add ecx, 2
add edx, 0xfffffffe
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
test esi, esi
je 0x4c9634
movzx ebx, byte [edi]
inc edi
dec esi
mov bh, bl
add bh, 0xd0
cmp bh, 0xa
jb 0x4c9600
and bl, 0xdf
add bl, 0xbf
cmp bl, 6
jb 0x4c9600
jmp 0x4c9630
mov eax, ecx
mov esi, edx
mov edi, 0xa
jmp 0x4c9648
mov eax, 1
xor edx, edx
jmp 0x4c9661
mov eax, ecx
mov esi, edx
mov edi, 0x10
jmp 0x4c9648
mov eax, ecx
mov esi, edx
mov edi, 8
mov edx, eax
mov ecx, esp
push edi
push esi
call fcn.004219f0
add esp, 8
movzx eax, byte [esp]
mov edx, dword [esp + 4]
xor eax, 1
add esp, 8
pop esi
pop edi
pop ebx
ret
ud2
Function at 0x4d9400
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
movups xmm2, xmmword [eax]
mov ecx, dword [edx + 0xf0]
mov eax, dword [esp + 8]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
lea edx, [edx + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec ecx
movups xmm1, xmmword [edx]
lea edx, [edx + 0x10]
jne 0x4d9422
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [eax], xmm2
pxor xmm2, xmm2
ret
Function at 0x4db2f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x30]
push edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 8]
push eax
movups xmmword [esp + 0x1c], xmm0
call fcn.004dbed0
xor edi, edi
add esp, 4
mov dword [esp + 0x34], edi
cmp dword [esp + 0x30], edi
jbe 0x4db4d4
mov eax, dword [esp + 0x2c]
push ebx
add eax, 8
push ebp
mov dword [esp + 0xc], eax
push esi
mov ecx, dword [esp + edi*4 + 0x2c]
mov eax, dword [esp + edi*4 + 0x24]
movzx eax, al
mov ebx, dword [esp + edi*4 + 0x1c]
movzx edx, cl
shl edx, 8
or edx, eax
mov esi, dword [esp + edi*4 + 0x24]
shl edx, 8
movzx eax, bl
or edx, eax
mov eax, dword [esp + edi*4 + 0x14]
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ebp, eax
shl ebp, 6
xor ebp, eax
mov eax, dword [esp + edi*4 + 0x2c]
shr eax, 8
xor ebp, edx
movzx edx, al
mov eax, esi
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esp + edi*4 + 0x14]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov edi, eax
shl edi, 6
xor edi, eax
mov eax, dword [esp + ecx*4 + 0x2c]
shr eax, 0x10
xor edi, edx
movzx edx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov eax, dword [esp + ecx*4 + 0x14]
shl edx, 8
shr eax, 0x10
and ebx, 0xff00ffff
movzx eax, al
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov esi, eax
shl esi, 6
xor esi, eax
mov eax, dword [esp + ecx*4 + 0x24]
xor esi, edx
and eax, 0xff0000ff
mov edx, dword [esp + ecx*4 + 0x14]
shr edx, 8
or edx, ebx
shr edx, 8
or edx, eax
mov eax, dword [esp + ecx*4 + 0x2c]
and eax, 0xff000000
shr edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ecx, eax
shl ecx, 6
xor ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edx
mov dword [eax - 8], ebp
mov dword [eax - 4], edi
mov edi, dword [esp + 0x40]
mov dword [eax], esi
inc edi
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x3c]
jb 0x4db334
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret