joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b450
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50b5a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050a6a8
xor eax, eax
push ebp
push 0x50b586
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x50b4b8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x50b4b8
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x50b570
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x50b4cb
call fcn.00404e04
jmp 0x50b58d
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x50b570
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x50b570
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004046a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x50b570
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040e890
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x50b5bc
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x5a3eb8]
mov dl, 1
mov eax, dword [0x509838]
call fcn.0040f1cc
call fcn.00404d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b58d
mov eax, dword [ebp - 4]
call fcn.0050a6c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b5aa
lea eax, [ebp - 0x30]
call fcn.00405404
ret

Function at 0x50be44
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
call fcn.00509780
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
call fcn.00509770
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x514368
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x5144c8
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x514bac
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x514c84
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed0
mov dword [esp], eax
lea edi, [esp + 0x110]
mov ebp, edx
mov esi, 0x10
lea ebx, [esp + 0x10]
mov eax, dword [ebp]
call fcn.00513dcc
mov dword [ebx], eax
add ebp, 4
add ebx, 4
dec esi
jne 0x514ca3
mov esi, 0x30
lea ebx, [esp + 0x14]
mov eax, dword [ebx]
call fcn.00514be4
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
call fcn.00514c08
mov edx, dword [ebx - 4]
add edx, dword [esp + 4]
add edx, dword [ebx + 0x20]
add eax, edx
mov dword [ebx + 0x3c], eax
add ebx, 4
dec esi
jne 0x514cbf
mov esi, 8
mov eax, dword [esp]
mov edx, edi
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 4
dec esi
jne 0x514cf1
mov esi, 0x40
mov ebx, 0x59990c
lea ebp, [esp + 0x10]
mov eax, dword [edi]
call fcn.00514c2c
mov dword [esp + 4], eax
mov eax, dword [edi]
mov edx, eax
and edx, dword [edi + 4]
and eax, dword [edi + 8]
xor edx, eax
mov eax, dword [edi + 4]
and eax, dword [edi + 8]
xor edx, eax
mov eax, edx
add eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x10]
call fcn.00514c58
mov edx, dword [edi + 0x10]
and edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
not ecx
and ecx, dword [edi + 0x18]
xor edx, ecx
mov dword [esp + 0xc], edx
add eax, dword [edi + 0x1c]
add eax, dword [esp + 0xc]
add eax, dword [ebx]
add eax, dword [ebp]
mov edx, dword [edi + 0x18]
mov dword [edi + 0x1c], edx
mov edx, dword [edi + 0x14]
mov dword [edi + 0x18], edx
mov edx, dword [edi + 0x10]
mov dword [edi + 0x14], edx
mov edx, dword [edi + 0xc]
add edx, eax
mov dword [edi + 0x10], edx
mov edx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov edx, dword [edi + 4]
mov dword [edi + 8], edx
mov edx, dword [edi]
mov dword [edi + 4], edx
add eax, dword [esp + 8]
mov dword [edi], eax
add ebp, 4
add ebx, 4
dec esi
jne 0x514d0c
mov esi, 8
mov eax, edi
mov edx, dword [esp]
mov ecx, dword [eax]
add dword [edx], ecx
add edx, 4
add eax, 4
dec esi
jne 0x514da5
add esp, 0x130
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x514eec
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
ret

Function at 0x5155a4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x40
mov ecx, eax
xor byte [ecx], dl
inc ecx
dec esi
jne 0x5155ac
pop esi
ret
Function at 0x5155b4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x80
mov ecx, eax
xor byte [ecx], dl
inc ecx
dec esi
jne 0x5155bc
pop esi
ret

Function at 0x515f2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], edx
xor ebp, ebp
mov esi, eax
mov ebx, dword [esp]
test ebx, ebx
jle 0x515f60
mov edi, 1
mov eax, edi
mov ecx, 7
cdq
idiv ecx
mov ecx, edx
add ecx, ecx
add ecx, ecx
movzx eax, byte [esi]
shl eax, cl
xor ebp, eax
inc esi
inc edi
dec ebx
jne 0x515f44
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x515f68
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
lea ebx, [ebp - 8]
mov eax, dword [0x599c8c]
mov dword [ebx], eax
mov eax, dword [0x599c90]
mov dword [ebx + 4], eax
call fcn.00515de8
xor eax, dword [ebx]
xor edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, 0x599c98
mov eax, ecx
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x143]
mov eax, ecx
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
push 0
call sub.kernel32.dll_Sleep_2
call fcn.00515de8
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
test eax, eax
je 0x516011
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x143]
xor ecx, ecx
mov edx, 0x103
call fcn.00403bfc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x143]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x516064
lea eax, [ebp - 0x143]
mov edx, dword [ebp - 0xc]
call fcn.00515f2c
xor edx, edx
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x143]
xor ecx, ecx
mov edx, 0x103
call fcn.00403bfc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x143]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x5160b7
lea eax, [ebp - 0x143]
mov edx, dword [ebp - 0xc]
call fcn.00515f2c
xor edx, edx
add eax, dword [ebx]
adc edx, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 4], eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
xor eax, dword [ebx]
xor edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebx]
call fcn.00515d6c
mov dword [ebx], eax
mov eax, dword [ebx + 4]
call fcn.00515d8c
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [0x599c98], eax
mov eax, dword [ebx + 4]
mov dword [0x599c9c], eax
mov byte [0x599c94], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x516f6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.00516e28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, esi
call fcn.0040572c
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00516b40
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040549c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
mov edx, esi
call fcn.0040572c
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00516c38
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.0040549c
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405b34
mov esi, ebx
test esi, esi
jle 0x516f48
mov ebx, 1
lea eax, [ebp - 0xc]
call fcn.00405904
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x516f29
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00405458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516f75
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00405428
ret
Function at 0x51858c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
cmp ebx, 0x80
jle 0x5185ba
push 0x5186dc
mov ecx, 2
mov dl, 1
mov eax, dword [0x5184a0]
call fcn.005184f4
call fcn.00404d58
cmp ebx, 1
jge 0x5185da
push 0x518704
mov ecx, 2
mov dl, 1
mov eax, dword [0x5184a0]
call fcn.005184f4
call fcn.00404d58
cmp dword [ebp - 4], 0
jle 0x5185e9
cmp dword [ebp - 4], 0x400
jle 0x518604
push 0x518728
mov ecx, 3
mov dl, 1
mov eax, dword [0x5184a0]
call fcn.005184f4
call fcn.00404d58
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004032ec
mov edx, ebx
cmp edx, 0x7f
jg 0x518640
mov eax, dword [ebp + 8]
lea eax, [eax + edx - 1]
mov ecx, edx
sub ecx, ebx
mov esi, dword [ebp + 8]
movzx ecx, byte [esi + ecx]
add cl, byte [eax]
movzx ecx, cl
movzx ecx, byte [ecx + 0x59a1e0]
mov byte [eax + 1], cl
inc edx
inc eax
cmp edx, 0x80
jne 0x51861c
mov ebx, dword [ebp - 4]
add ebx, 7
test ebx, ebx
jns 0x51864d
add ebx, 7
sar ebx, 3
mov ecx, dword [ebp - 4]
add ecx, 8
movzx eax, bl
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
mov eax, 1
shl eax, cl
push eax
mov eax, 0xff
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
movzx esi, bl
mov edx, 0x80
sub edx, esi
mov ecx, dword [ebp + 8]
and al, byte [ecx + edx]
movzx eax, al
mov ecx, dword [ebp + 8]
movzx eax, byte [eax + 0x59a1e0]
mov byte [ecx + edx], al
mov edx, 0x7f
sub edx, esi
cmp edx, 0
jl 0x5186cc
mov eax, dword [ebp + 8]
lea eax, [eax + edx + 1]
movzx ecx, bl
add ecx, edx
mov esi, dword [ebp + 8]
movzx ecx, byte [esi + ecx]
xor cl, byte [eax]
movzx ecx, cl
movzx ecx, byte [ecx + 0x59a1e0]
mov byte [eax - 1], cl
dec edx
dec eax
cmp edx, 0xffffffff
jne 0x5186aa
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x518e18
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, edx
dec ecx
test ecx, ecx
jl 0x518e81
inc ecx
inc byte [eax + 0x100]
movzx edx, byte [eax + 0x100]
movzx edx, byte [eax + edx]
add byte [eax + 0x101], dl
movzx edi, byte [eax + 0x100]
movzx edx, byte [eax + edi]
movzx ebx, byte [eax + 0x101]
movzx ebx, byte [eax + ebx]
push ebx
pop ebx
mov byte [eax + edi], bl
movzx ebx, byte [eax + 0x101]
mov byte [eax + ebx], dl
movzx edx, byte [eax + 0x100]
movzx edx, byte [eax + edx]
movzx ebx, byte [eax + 0x101]
add dl, byte [eax + ebx]
movzx edx, dl
movzx edx, byte [eax + edx]
xor byte [esi], dl
inc esi
dec ecx
jne 0x518e23
pop edi
pop esi
pop ebx
ret
Function at 0x518eb0
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax + 4], edx
xor esi, esi
mov ebx, 0x59a2e0
movzx eax, byte [ebx]
dec eax
movzx edx, al
mov ecx, edx
and ecx, 0x1f
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
shr edx, 5
mov eax, dword [esp]
and edi, dword [eax + edx*4]
je 0x518f2b
mov eax, esi
and eax, 0x8000001f
jns 0x518f0a
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
mov edx, esi
test edx, edx
jns 0x518f21
add edx, 0x1f
sar edx, 5
mov ecx, dword [esp + 4]
or dword [ecx + edx*4], eax
inc esi
inc ebx
cmp esi, 0x38
jne 0x518ed5
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x518f38
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax + 4], edx
xor esi, esi
mov ebx, 0x59a328
movzx eax, byte [ebx]
dec eax
movzx edx, al
mov ecx, edx
and ecx, 0x1f
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
shr edx, 5
mov eax, dword [esp]
and edi, dword [eax + edx*4]
je 0x518fb3
mov eax, esi
and eax, 0x8000001f
jns 0x518f92
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
mov edx, esi
test edx, edx
jns 0x518fa9
add edx, 0x1f
sar edx, 5
mov ecx, dword [esp + 4]
or dword [ecx + edx*4], eax
inc esi
inc ebx
cmp esi, 0x30
jne 0x518f5d
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x51913c
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
xor ecx, ecx
mov dword [esp], ecx
xor ecx, ecx
mov dword [esp + 4], ecx
xor esi, esi
mov ebx, 0x59a398
movzx ecx, byte [ebx]
dec ecx
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
test edi, eax
je 0x51919a
mov ecx, esi
and ecx, 0x8000001f
jns 0x51917b
dec ecx
or ecx, 0xffffffe0
inc ecx
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
mov ecx, esi
test ecx, ecx
jns 0x519194
add ecx, 0x1f
sar ecx, 5
or dword [esp + ecx*4], edi
inc esi
inc ebx
cmp esi, 0x30
jne 0x519154
mov eax, dword [edx]
xor dword [esp], eax
mov eax, dword [edx + 4]
xor dword [esp + 4], eax
xor edi, edi
xor esi, esi
mov eax, 0x59a3c8
mov edx, esi
sub edx, 5
jb 0x5191c1
je 0x5191d9
jmp 0x5191f4
mov edx, esi
add edx, edx
lea edx, [edx + edx*2]
mov ecx, 0x1a
sub ecx, edx
mov edx, dword [esp]
shr edx, cl
and dl, 0x3f
jmp 0x51920b
movzx edx, byte [esp]
and dl, 3
shl edx, 4
mov ecx, dword [esp + 4]
and ecx, 0xf0000000
shr ecx, 0x1c
or dl, cl
jmp 0x51920b
mov edx, esi
add edx, edx
lea edx, [edx + edx*2]
mov ecx, 0x3a
sub ecx, edx
mov edx, dword [esp + 4]
shr edx, cl
and dl, 0x3f
mov ecx, edx
and cl, 1
mov ebx, edx
and bl, 0x20
movzx ebx, bl
shr ebx, 4
or cl, bl
and dl, 0x1e
movzx edx, dl
shr edx, 1
movzx ecx, cl
shl ecx, 4
movzx edx, dl
add ecx, edx
movzx edx, byte [eax + ecx]
mov ecx, esi
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, 0x1c
pop ebx
sub ecx, ebx
movzx edx, dl
shl edx, cl
or edi, edx
inc esi
add eax, 0x40
cmp esi, 8
jne 0x5191b6
mov eax, esp
mov edx, 8
call fcn.00518538
xor edx, edx
xor esi, esi
mov eax, 0x59a5c8
movzx ecx, byte [eax]
dec ecx
push ecx
mov ecx, 0x1f
pop ebx
sub ecx, ebx
mov ebx, 1
shl ebx, cl
test ebx, edi
je 0x519294
mov ecx, 0x1f
sub ecx, esi
mov ebx, 1
shl ebx, cl
or edx, ebx
inc esi
inc eax
cmp esi, 0x20
jne 0x51926c
mov eax, edx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5192a4
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff60
mov dword [esp + 4], edx
mov dword [esp], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 8
call fcn.00403bfc
xor esi, esi
mov edx, 0x59a358
movzx eax, byte [edx]
dec eax
movzx ebx, al
mov ecx, ebx
and ecx, 7
push ecx
mov ecx, 7
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
shr ebx, 3
mov eax, dword [esp + 4]
movzx eax, byte [eax + ebx]
and edi, eax
je 0x519320
mov eax, esi
and eax, 0x80000007
jns 0x519305
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, esi
test ecx, ecx
jns 0x519319
add ecx, 7
sar ecx, 3
or byte [esp + ecx + 8], al
inc esi
inc edx
cmp esi, 0x40
jne 0x5192cc
movzx eax, byte [esp + 0xb]
movzx edx, byte [esp + 0xa]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 9]
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 8]
shl edx, 0x18
or eax, edx
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0xd]
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 0xc]
shl edx, 0x18
or eax, edx
mov dword [esp + 0x5c], eax
lea eax, [esp + 8]
mov edx, 8
call fcn.00518538
mov esi, 0x10
lea ebx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov ebp, dword [esp]
mov eax, dword [ebx]
mov dword [edi], eax
mov edx, ebp
mov eax, dword [ebx]
call fcn.0051913c
xor eax, dword [edi - 4]
mov dword [ebx + 4], eax
add ebp, 8
add edi, 4
add ebx, 4
dec esi
jne 0x519393
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov edx, 0x44
call fcn.00518538
lea eax, [esp + 0x5c]
mov edx, 0x44
call fcn.00518538
mov eax, dword [esp + 4]
xor ecx, ecx
mov edx, 8
call fcn.00403bfc
xor esi, esi
mov edx, 0x59a5e8
movzx eax, byte [edx]
dec eax
movzx ebx, al
mov ecx, ebx
and ecx, 0x1f
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
shr ebx, 5
and edi, dword [esp + ebx*4 + 0x10]
je 0x519449
mov eax, esi
and eax, 0x80000007
jns 0x51942b
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, esi
test ecx, ecx
jns 0x51943f
add ecx, 7
sar ecx, 3
mov ebx, dword [esp + 4]
or byte [ebx + ecx], al
inc esi
inc edx
cmp esi, 0x40
jne 0x5193f8
lea eax, [esp + 0x10]
mov edx, 8
call fcn.00518538
add esp, 0xa0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5196ac
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], eax
mov esi, 0x59a728
mov byte [esp + 4], 4
mov edi, dword [esp]
add edi, 2
mov al, 4
mov edx, edi
mov ecx, edx
movzx ebx, byte [ecx]
movzx ebx, byte [esi + ebx]
mov byte [ecx], bl
inc edx
dec al
jne 0x5196c9
add edi, 4
dec byte [esp + 4]
jne 0x5196c5
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5196e8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], eax
mov esi, 0x59a828
mov byte [esp + 4], 4
mov edi, dword [esp]
add edi, 2
mov al, 4
mov edx, edi
mov ecx, edx
movzx ebx, byte [ecx]
movzx ebx, byte [esi + ebx]
mov byte [ecx], bl
inc edx
dec al
jne 0x519705
add edi, 4
dec byte [esp + 4]
jne 0x519701
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x519828
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], eax
mov byte [esp + 8], 4
mov eax, dword [esp]
add eax, 2
mov dword [esp + 0xc], eax
mov bl, 4
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
add eax, 4
dec bl
jne 0x51984b
xor ebx, ebx
lea esi, [esp + 4]
mov eax, dword [esp + 0xc]
mov edi, eax
movzx edx, byte [esi]
mov al, 2
call fcn.005197f0
push eax
movzx ebp, bl
mov eax, ebp
inc eax
and eax, 3
movzx edx, byte [esp + eax + 8]
mov al, 3
call fcn.005197f0
pop edx
xor dl, al
mov eax, ebp
add eax, 2
and eax, 3
xor dl, byte [esp + eax + 4]
add ebp, 3
and ebp, 3
xor dl, byte [esp + ebp + 4]
mov byte [edi], dl
inc ebx
add edi, 4
inc esi
cmp bl, 4
jne 0x519864
inc dword [esp + 0xc]
dec byte [esp + 8]
jne 0x519841
lea eax, [esp + 4]
mov edx, 4
call fcn.00518538
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5198cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], eax
mov byte [esp + 8], 4
mov eax, dword [esp]
add eax, 2
mov dword [esp + 0xc], eax
mov bl, 4
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
add eax, 4
dec bl
jne 0x5198ef
xor ebx, ebx
lea esi, [esp + 4]
mov eax, dword [esp + 0xc]
mov edi, eax
movzx edx, byte [esi]
mov al, 0xe
call fcn.005197f0
push eax
movzx ebp, bl
mov eax, ebp
inc eax
and eax, 3
movzx edx, byte [esp + eax + 8]
mov al, 0xb
call fcn.005197f0
pop edx
xor dl, al
push edx
mov eax, ebp
add eax, 2
and eax, 3
movzx edx, byte [esp + eax + 8]
mov al, 0xd
call fcn.005197f0
pop edx
xor dl, al
push edx
add ebp, 3
and ebp, 3
movzx edx, byte [esp + ebp + 8]
mov al, 9
call fcn.005197f0
pop edx
xor dl, al
mov byte [edi], dl
inc ebx
add edi, 4
inc esi
cmp bl, 4
jne 0x519908
inc dword [esp + 0xc]
dec byte [esp + 8]
jne 0x5198e5
lea eax, [esp + 4]
mov edx, 4
call fcn.00518538
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5199a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0xc], 0
mov eax, dword [esp]
add eax, 2
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0xc]
add eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov edi, esi
mov edx, ebp
mov eax, ebx
call fcn.0051998c
xor byte [edi], al
inc ebx
add esi, 4
cmp bl, 4
jne 0x5199d9
inc byte [esp + 0xc]
inc dword [esp + 0x10]
cmp byte [esp + 0xc], 4
jne 0x5199c1
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret