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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
cmp dword [esp + 0x30], 0x10
mov esi, ecx
jne 0x43d032
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 0x43d08d
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x16
mov edi, 0x16
call fcn.00490be0
test eax, eax
je 0x43d0e7
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 0x43d085
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x18
mov edi, 0x18
call fcn.00490be0
test eax, eax
je 0x43d0e7
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 0x43d0e0
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 0x43d0dd
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 0x43d0d0
mov byte [esi], 0x16
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
ud2

Function at 0x44f0f0
Capabilities:
Enumerate pe sections

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x5b0
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
mov esi, edx
call fcn.0045a8cc
Function at 0x4610f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov esi, dword [ebp + 0x14]
call fcn.00461107
Function at 0x4804e0
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 0x480535
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x480556
test eax, eax
js 0x480541
mov eax, dword [esp + 8]
mov bl, 4
jmp 0x48054a
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], 0x735f30
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.004808f0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.00480990
mov ecx, 7
int 0x29
ud2
Function at 0x4830e0
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 0x48312d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x48313d
mov dword [esi + 4], 0
jmp 0x48314f
cmp eax, 0x103
je 0x48316b
test eax, eax
js 0x483158
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], 0x735f30
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.004808f0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.00480990
mov ecx, 7
int 0x29
ud2
Function at 0x486f20
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 0x486f56
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 0x486f6a
cmp eax, 0x2739
jne 0x486f9a
push 1
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x486fa3
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x486fb5
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 0x487130
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 0x487196
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 0x487192
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebp
adc eax, 0
jae 0x4871d8
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 0x4871ce
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 0x487196
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 0x487196
mov eax, dword [0x735f68]
mov ecx, dword [0x735f6c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x4871d0
Function at 0x487230
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 0x487296
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 0x487292
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebp
adc eax, 0
jae 0x4872d8
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 0x4872ce
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 0x487296
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 0x487296
mov eax, dword [0x735f68]
mov ecx, dword [0x735f6c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x4872d0

Function at 0x488130
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.00488142

Function at 0x48cdf0
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.004827e0
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, ecx
neg edx
jo 0x48ce44
mov dword [esp + 0x18], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.0048ced0
mov edi, dword [esp]
mov eax, edi
neg eax
jno 0x48ce95
movzx eax, byte [esp + 4]
mov edi, dword [esp + 8]
cmp al, 3
jne 0x48ce87
mov ebp, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [ebp]
test eax, eax
je 0x48ce5a
push ebx
call eax
add esp, 4
cmp dword [ebp + 4], 0
je 0x48ce78
cmp dword [ebp + 8], 9
jb 0x48ce69
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x776180]
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 0x48ceb3
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x48ce8d
test edi, edi
mov dword [esi], 0x80000000
je 0x48ce8d
push ebx
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x48ce8d
Function at 0x48ede0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
movzx eax, byte [0x77618d]
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov edx, 8
call fcn.00490be0
test eax, eax
je 0x48ee84
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 0x48efe0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x48ee34
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x48ee7f
mov ebp, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [ebp]
test eax, eax
je 0x48ee46
push ebx
call eax
add esp, 4
cmp dword [ebp + 4], 0
je 0x48ee64
cmp dword [ebp + 8], 9
jb 0x48ee55
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x776180]
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 0x490870
Capabilities:
Read file on windows

Disassembly:
cmp dword [edx], 0
jne 0x490948
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 0x490920
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 0x4908cd
mov eax, dword [esp + 4]
mov ecx, 2
test eax, eax
jne 0x490903
mov word [esi], 4
jmp 0x49090d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4908ec
cmp eax, 0x6d
jne 0x490915
lea eax, [esp + 8]
mov dword [esp], 1
jmp 0x4908ee
mov eax, esp
mov dword [eax], 0
mov ecx, 1
mov eax, dword [esp + 8]
test byte [esp], 1
jne 0x4908bd
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 0x49090d
mov eax, 0x10
test edx, edx
mov ebp, 1
mov ecx, ebx
cmove ebp, eax
push 1
push 1
push ebp
call fcn.004e6420
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x490894
ud2

Function at 0x490c00
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 0x490c5e
mov ebp, dword [edx + 4]
mov eax, dword [0x776168]
cmp eax, 3
jne 0x490d06
mov edx, dword [ebp]
lea ecx, [esp + 8]
call fcn.00486f20
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x490c72
mov ebx, dword [esp + 0xc]
test byte [ebp], 1
je 0x490c94
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 0x490cae
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 0x490c87
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 0x490cee
mov dword [esi + 4], ebx
mov byte [esi], 4
jmp 0x490c8c
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 0x490c8c
call fcn.004e5bf0
jmp 0x490c21
Function at 0x4a0e30
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 0x4a0e7a
mov eax, dword [esp]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [eax + 4]
jmp 0x4a0e66
add esi, 0xc
dec ebp
je 0x4a0e7a
cmp dword [esi - 4], 0
je 0x4a0e60
push dword [esi]
push 0
push dword [0x776180]
call ebx
jmp 0x4a0e60
cmp dword [edi + 0x10], 0
je 0x4a0e91
push dword [esp]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0x78]
lock dec dword [eax]
je 0x4a0f54
mov eax, dword [edi + 0x84]
lock dec dword [eax]
je 0x4a0f6e
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
je 0x4a0f8e
mov eax, dword [edi + 0x94]
lock dec dword [eax]
je 0x4a0fae
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
je 0x4a0fce
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
je 0x4a0fe8
cmp dword [edi + 0x1c], 0
je 0x4a0eff
push dword [edi + 0x20]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [edi + 0x28], 0
je 0x4a0f16
push dword [edi + 0x2c]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0xa8]
lock dec dword [eax]
jne 0x4a0f2c
lea ecx, [edi + 0xa8]
call fcn.004a1050
mov eax, dword [edi + 0x34]
cmp eax, 0x80000001
je 0x4a1008
cmp eax, 0x80000002
je 0x4a101f
add edi, 0x34
mov ecx, edi
call fcn.0049dd80
jmp 0x4a101f
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
call fcn.0043db30
mov eax, dword [edi + 0x84]
lock dec dword [eax]
jne 0x4a0eac
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
call fcn.0043db30
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
jne 0x4a0ebb
mov ecx, dword [edi + 0x8c]
mov edx, dword [edi + 0x90]
call fcn.0043db30
mov eax, dword [edi + 0x94]
lock dec dword [eax]
jne 0x4a0eca
mov ecx, dword [edi + 0x94]
mov edx, dword [edi + 0x98]
call fcn.0043db30
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
jne 0x4a0ed9
mov ecx, dword [edi + 0x9c]
call fcn.004947c0
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
jne 0x4a0ee8
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0xa4]
call fcn.0043db30
cmp dword [edi + 0x1c], 0
jne 0x4a0eee
jmp 0x4a0eff
cmp dword [edi + 0x38], 0
je 0x4a101f
push dword [edi + 0x3c]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a103f
lock dec dword [eax + 4]
jne 0x4a103f
push eax
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b0a30
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.004b0a47
Function at 0x4ba960
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 0x4ba9b0
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 0x4ba9b9
test eax, eax
mov byte [esp], 4
mov dword [esp + 4], eax
je 0x4ba9d7
cmp edi, eax
jb 0x4ba9f0
add ebx, eax
sub edi, eax
jne 0x4ba980
mov eax, dword [esp + 0x1c]
mov byte [eax], 4
jmp 0x4ba9e8
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 0x4ba9dc
mov eax, 0x7598d0
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 0x4bb100
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 0x4bb162
mov ebx, eax
cmp eax, 0x20
mov dword [esp], esi
ja 0x4bb1aa
mov eax, dword [ebp]
mov esi, ebp
mov ebp, dword [ebp + 8]
sub eax, ebp
cmp eax, ebx
jae 0x4bb179
mov ecx, esi
mov edx, ebp
push 1
push 1
push ebx
call fcn.004e6420
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ebp, dword [eax + 8]
jmp 0x4bb179
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4bb19f
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 0x4bb197
ud2
Function at 0x4bdef0
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.004bdf06

Function at 0x4bed20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, 2
test edx, edx
je 0x4bed5a
cmp edx, 1
jne 0x4bed5f
xor esi, esi
nop word cs:[eax + eax]
cmp edx, esi
je 0x4bede0
movzx ebx, byte [ecx + esi]
inc esi
add bl, 0xd0
cmp bl, 0xa
jb 0x4bed40
jmp 0x4bedf0
jmp 0x4bee21
cmp word [ecx], 0x7830
je 0x4beda3
cmp word [ecx], 0x5830
je 0x4beda3
cmp byte [ecx], 0x30
jne 0x4bed34
cmp byte [ecx + 1], 0xbf
jle 0x4bee28
inc ecx
dec edx
mov esi, edx
mov edi, ecx
nop word cs:[eax + eax]
nop dword [eax]
test esi, esi
je 0x4bedff
movzx ebx, byte [edi]
inc edi
dec esi
and bl, 0xf8
cmp bl, 0x30
je 0x4bed90
jmp 0x4bedf0
cmp edx, 3
jb 0x4bedeb
cmp byte [ecx + 2], 0xbf
jle 0x4bee28
add ecx, 2
add edx, 0xfffffffe
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
test esi, esi
je 0x4bedf4
movzx ebx, byte [edi]
inc edi
dec esi
mov bh, bl
add bh, 0xd0
cmp bh, 0xa
jb 0x4bedc0
and bl, 0xdf
add bl, 0xbf
cmp bl, 6
jb 0x4bedc0
jmp 0x4bedf0
mov eax, ecx
mov esi, edx
mov edi, 0xa
jmp 0x4bee08
mov eax, 1
xor edx, edx
jmp 0x4bee21
mov eax, ecx
mov esi, edx
mov edi, 0x10
jmp 0x4bee08
mov eax, ecx
mov esi, edx
mov edi, 8
mov edx, eax
mov ecx, esp
push edi
push esi
call fcn.00417d60
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 0x4cec40
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 0x4cec62
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [eax], xmm2
pxor xmm2, xmm2
ret
Function at 0x4d0b30
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.004d1710
xor edi, edi
add esp, 4
mov dword [esp + 0x34], edi
cmp dword [esp + 0x30], edi
jbe 0x4d0d14
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 0x4d0b74
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret