joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489d80
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
movzx eax, byte [0x62314d]
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov edx, 8
call fcn.0048bb80
test eax, eax
je 0x489e24
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 0x489f80
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x489dd4
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x489e1f
mov ebp, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [ebp]
test eax, eax
je 0x489de6
push ebx
call eax
add esp, 4
cmp dword [ebp + 4], 0
je 0x489e04
cmp dword [ebp + 8], 9
jb 0x489df5
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x623140]
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 0x48b810
Capabilities:
Read file on windows

Disassembly:
cmp dword [edx], 0
jne 0x48b8e8
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 0x48b8c0
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 0x48b86d
mov eax, dword [esp + 4]
mov ecx, 2
test eax, eax
jne 0x48b8a3
mov word [esi], 4
jmp 0x48b8ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x48b88c
cmp eax, 0x6d
jne 0x48b8b5
lea eax, [esp + 8]
mov dword [esp], 1
jmp 0x48b88e
mov eax, esp
mov dword [eax], 0
mov ecx, 1
mov eax, dword [esp + 8]
test byte [esp], 1
jne 0x48b85d
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 0x48b8ad
mov eax, 0x10
test edx, edx
mov ebp, 1
mov ecx, ebx
cmove ebp, eax
push 1
push 1
push ebp
call fcn.004df9e0
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x48b834
ud2
Function at 0x48bba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, ecx
lea ecx, [esp + 0x28]
push dword [ebp + 8]
call fcn.0047d3c0
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edx
neg ecx
mov ecx, dword [esp + 0x30]
jo 0x48bbff
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push 1
call fcn.0047e330
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, ebx
neg eax
jno 0x48bc13
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push dword [ebp + 0x10]
call fcn.0047d3c0
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edx
neg ecx
mov ecx, dword [esp + 0x30]
jo 0x48bc73
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push 1
call fcn.0047e330
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, edi
neg eax
jno 0x48bc97
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
test ebx, ebx
je 0x48bc0b
push edi
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x48bc0b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x48bd40
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x48bd08
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test edi, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
je 0x48bcf6
push dword [esp + 0x24]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
test ebx, ebx
je 0x48bc0b
push eax
jmp 0x48bc84
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
mov edi, dword [esp + 4]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
je 0x48bc7f
push dword [esp + 0x24]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x48bc7f
Function at 0x48bd60
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 0x48bdbe
mov ebp, dword [edx + 4]
mov eax, dword [0x623128]
cmp eax, 3
jne 0x48be66
mov edx, dword [ebp]
lea ecx, [esp + 8]
call fcn.00481d90
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x48bdd2
mov ebx, dword [esp + 0xc]
test byte [ebp], 1
je 0x48bdf4
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 0x48be0e
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 0x48bde7
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 0x48be4e
mov dword [esi + 4], ebx
mov byte [esi], 4
jmp 0x48bdec
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 0x48bdec
call fcn.004df1b0
jmp 0x48bd81
Function at 0x49c0a0
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 0x49c0ea
mov eax, dword [esp]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [eax + 4]
jmp 0x49c0d6
add esi, 0xc
dec ebp
je 0x49c0ea
cmp dword [esi - 4], 0
je 0x49c0d0
push dword [esi]
push 0
push dword [0x623140]
call ebx
jmp 0x49c0d0
cmp dword [edi + 0x10], 0
je 0x49c101
push dword [esp]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0x78]
lock dec dword [eax]
je 0x49c1c4
mov eax, dword [edi + 0x84]
lock dec dword [eax]
je 0x49c1de
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
je 0x49c1fe
mov eax, dword [edi + 0x94]
lock dec dword [eax]
je 0x49c21e
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
je 0x49c23e
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
je 0x49c258
cmp dword [edi + 0x1c], 0
je 0x49c16f
push dword [edi + 0x20]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [edi + 0x28], 0
je 0x49c186
push dword [edi + 0x2c]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0xa8]
lock dec dword [eax]
jne 0x49c19c
lea ecx, [edi + 0xa8]
call fcn.0049c2c0
mov eax, dword [edi + 0x34]
cmp eax, reloc.WS2_32.dll_accept
je 0x49c278
cmp eax, reloc.WS2_32.dll_bind
je 0x49c28f
add edi, 0x34
mov ecx, edi
call fcn.00498fe0
jmp 0x49c28f
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
call fcn.00438710
mov eax, dword [edi + 0x84]
lock dec dword [eax]
jne 0x49c11c
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
call fcn.00438710
mov eax, dword [edi + 0x8c]
lock dec dword [eax]
jne 0x49c12b
mov ecx, dword [edi + 0x8c]
mov edx, dword [edi + 0x90]
call fcn.00438710
mov eax, dword [edi + 0x94]
lock dec dword [eax]
jne 0x49c13a
mov ecx, dword [edi + 0x94]
mov edx, dword [edi + 0x98]
call fcn.00438710
mov eax, dword [edi + 0x9c]
lock dec dword [eax]
jne 0x49c149
mov ecx, dword [edi + 0x9c]
call fcn.0048fa40
mov eax, dword [edi + 0xa0]
lock dec dword [eax]
jne 0x49c158
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0xa4]
call fcn.00438710
cmp dword [edi + 0x1c], 0
jne 0x49c15e
jmp 0x49c16f
cmp dword [edi + 0x38], 0
je 0x49c28f
push dword [edi + 0x3c]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49c2af
lock dec dword [eax + 4]
jne 0x49c2af
push eax
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4aaf40
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.004aaf57
Function at 0x4b4e60
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 0x4b4eb0
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, accept
cmovb eax, edi
push 0
push eax
push ebx
push ebp
call esi
cmp eax, 0xffffffff
je 0x4b4eb9
test eax, eax
mov byte [esp], 4
mov dword [esp + 4], eax
je 0x4b4ed7
cmp edi, eax
jb 0x4b4ef0
add ebx, eax
sub edi, eax
jne 0x4b4e80
mov eax, dword [esp + 0x1c]
mov byte [eax], 4
jmp 0x4b4ee8
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 0x4b4edc
mov eax, 0x607148
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 0x4b5600
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 0x4b5662
mov ebx, eax
cmp eax, 0x20
mov dword [esp], esi
ja 0x4b56aa
mov eax, dword [ebp]
mov esi, ebp
mov ebp, dword [ebp + 8]
sub eax, ebp
cmp eax, ebx
jae 0x4b5679
mov ecx, esi
mov edx, ebp
push 1
push 1
push ebx
call fcn.004df9e0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ebp, dword [eax + 8]
jmp 0x4b5679
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4b569f
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 0x4b5697
ud2
Function at 0x4b74e0
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.004b74f6

Function at 0x4b8310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, 2
test edx, edx
je 0x4b834a
cmp edx, 1
jne 0x4b834f
xor esi, esi
nop word cs:[eax + eax]
cmp edx, esi
je 0x4b83d0
movzx ebx, byte [ecx + esi]
inc esi
add bl, 0xd0
cmp bl, 0xa
jb 0x4b8330
jmp 0x4b83e0
jmp 0x4b8411
cmp word [ecx], 0x7830
je 0x4b8393
cmp word [ecx], 0x5830
je 0x4b8393
cmp byte [ecx], 0x30
jne 0x4b8324
cmp byte [ecx + 1], 0xbf
jle 0x4b8418
inc ecx
dec edx
mov esi, edx
mov edi, ecx
nop word cs:[eax + eax]
nop dword [eax]
test esi, esi
je 0x4b83ef
movzx ebx, byte [edi]
inc edi
dec esi
and bl, 0xf8
cmp bl, 0x30
je 0x4b8380
jmp 0x4b83e0
cmp edx, 3
jb 0x4b83db
cmp byte [ecx + 2], 0xbf
jle 0x4b8418
add ecx, 2
add edx, 0xfffffffe
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
test esi, esi
je 0x4b83e4
movzx ebx, byte [edi]
inc edi
dec esi
mov bh, bl
add bh, 0xd0
cmp bh, 0xa
jb 0x4b83b0
and bl, 0xdf
add bl, 0xbf
cmp bl, 6
jb 0x4b83b0
jmp 0x4b83e0
mov eax, ecx
mov esi, edx
mov edi, 0xa
jmp 0x4b83f8
mov eax, 1
xor edx, edx
jmp 0x4b8411
mov eax, ecx
mov esi, edx
mov edi, 0x10
jmp 0x4b83f8
mov eax, ecx
mov esi, edx
mov edi, 8
mov edx, eax
mov ecx, esp
push edi
push esi
call fcn.00412a20
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 0x4c8240
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 0x4c8262
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [eax], xmm2
pxor xmm2, xmm2
ret
Function at 0x4ca130
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.004cad10
xor edi, edi
add esp, 4
mov dword [esp + 0x34], edi
cmp dword [esp + 0x30], edi
jbe 0x4ca314
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 0x4ca174
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
Function at 0x4ca580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x623040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x58]
push esi
push eax
mov dword [edi + 0xf0], 0xe
call fcn.004c9cb0
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.004c9cb0
movups xmm2, xmmword [esp + 0x40]
add esp, 0x10
lea ebp, [edi + 0x20]
mov ebx, 2
movups xmmword [edi + 0x10], xmm2
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
push eax
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm2
psrldq xmm0, 4
movd dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd dword [esp + 0x24], xmm0
movaps xmm0, xmm2
psrldq xmm0, 0xc
movd dword [esp + 0x2c], xmm0
call fcn.004cad10
lea eax, [esp + 0x14]
push eax
call fcn.004ca790
lea eax, [esp + 0x18]
push eax
call fcn.004cad10
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 1
mov cl, byte [eax + 0x620417]
xor eax, eax
movzx edi, cl
nop dword [eax]
mov edx, dword [esp + eax*4 + 0x30]
mov cl, al
add cl, cl
mov esi, edi
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4ca670
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x4ca76e
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004cad10
lea eax, [esp + 0x14]
push eax
call fcn.004ca790
lea eax, [esp + 0x18]
push eax
call fcn.004cad10
mov eax, dword [esp + 0x1c]
add ebx, 2
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
movups xmm1, xmmword [esp + 0x30]
psrld xmm1, 0x18
xorps xmm1, xmm2
movaps xmm2, xmm1
movaps xmm0, xmm1
pslld xmm2, 8
pslld xmm0, 0x10
xorps xmm2, xmm1
pslld xmm1, 0x18
xorps xmm2, xmm0
xorps xmm2, xmm1
movups xmmword [ebp + 0x10], xmm2
add ebp, 0x20
cmp ebx, 0xe
jbe 0x4ca5e0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004db8c5
add esp, 0x44
ret
Function at 0x4cad90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x623040]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x258]
mov dword [esp], eax
mov eax, dword [esp + 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x264]
push esi
mov esi, dword [esp + 0x26c]
mov dword [esp + 0xc], eax
je 0x4caf05
push ebp
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004ca040
movups xmm0, xmmword [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x224]
add esp, 8
lea edi, [esp + 0x23c]
movups xmmword [ecx], xmm0
mov eax, dword [ecx]
sub edi, esi
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x1c], eax
mov ebp, dword [esp + 0x228]
bswap ebp
push ebx
nop word [eax + eax]
xor ecx, ecx
lea edx, [esp + 0x22c]
nop dword [eax]
lea eax, [ecx + ebp]
inc ecx
lea edx, [edx + 0x10]
bswap eax
mov dword [edx - 0x10], eax
cmp ecx, 2
jb 0x4cae40
mov ebx, dword [esp + 0x270]
mov eax, 2
cmp ebx, 2
cmovae ebx, eax
lea eax, [esp + 0x220]
push ebx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebx
push eax
call fcn.004caa80
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x54]
push eax
call fcn.004c9e50
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.004ca130
add esp, 0x24
test ebx, ebx
je 0x4caee2
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub esi, eax
nop word [eax + eax]
mov edx, 4
mov ecx, dword [eax]
xor ecx, dword [eax + edi]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x4caec5
sub ebx, 1
jne 0x4caec0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x270], ebx
je 0x4caf02
add dword [esp + 0x14], 0x20
add esi, 0x20
sub edi, 0x20
mov dword [esp + 0x10], esi
add ebp, 2
jmp 0x4cae30
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
call fcn.004db8c5
add esp, 0x254
ret
Function at 0x4cafb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x623040]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
cmp eax, 0x80
je 0x4cb00a
cmp eax, 0x100
je 0x4cafee
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004db8c5
add esp, 0x44
ret
push ecx
push ebx
call fcn.004ca580
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004db8c5
add esp, 0x44
ret
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x44]
mov dword [ebx + 0xf0], 0xa
push eax
call fcn.004c9cb0
movups xmm0, xmmword [esp + 0x48]
add esp, 8
mov edi, 1
movups xmmword [ebx], xmm0
add ebx, 0x10
nop word [eax + eax]
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call fcn.004cad10
lea eax, [esp + 0x24]
push eax
call fcn.004ca790
lea eax, [esp + 0x28]
push eax
call fcn.004cad10
mov eax, dword [esp + 0x2c]
add esp, 0xc
movzx ebp, byte [edi + 0x620417]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
xor eax, eax
mov edx, dword [esp + eax*4 + 0x10]
mov cl, al
add cl, cl
mov esi, ebp
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4cb0b7
movups xmm0, xmmword [esp + 0x40]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x4cb040
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004db8c5
add esp, 0x44
ret
Function at 0x4ce950
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret