joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2530
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.004a2410
push esi
mov esi, dword [esp + 0x34]
mov eax, esi
sub eax, 0
je 0x5a2575
sub eax, 2
je 0x5a2575
sub eax, 0x15
je 0x5a2575
push 0x297
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.0057a880
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.005a7380
cmp eax, 1
jne 0x5a256e
mov eax, dword [esp + 0x38]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x2c]
xorps xmm0, xmm0
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x5a25bf
test esi, esi
jne 0x5a25bf
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x5a25cd
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x5a261f
cmp esi, 8
je 0x5a2664
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x5a262c
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x5a25e8
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
push 0x2da
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.0057a880
test edi, edi
cmovne esi, edi
push esi
call fcn.005a2a70
push eax
push 1
call fcn.00579e50
add esp, 0x20
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
push 0x2cb
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.0057a880
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
Function at 0x5aa580
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x84], 0xffffffff
jne 0x5aa592
xor eax, eax
pop ebx
ret
push ebp
push esi
push dword [ebx]
call fcn.00583f90
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x5aa646
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x5aa5e6
test esi, esi
jle 0x5aa624
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5aa5d0
jmp 0x5aa624
sub eax, ecx
mov byte [ecx + ebx + 0x64], 0x80
cmp eax, 1
jle 0x5aa604
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.004b95f0
add esp, 0xc
test esi, esi
jle 0x5aa624
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5aa610
push esi
push ebp
push ebp
push dword [ebx]
call fcn.00584610
add esp, 0x10
pop edi
test eax, eax
jne 0x5aa646
push esi
push ebp
call fcn.00588a60
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x5bb4b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.004a2410
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.00578490
mov ebx, eax
push ebx
push esi
call fcn.00578370
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5bb52f
push 0xf0000040
push 1
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5bb513
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005783e0
push esi
call fcn.00578530
add esp, 0x10
test eax, eax
jne 0x5bb5a9
push 1
push esi
call fcn.00578490
mov ebx, eax
push ebx
push esi
call fcn.00578370
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5bb5a0
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5bb584
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.005783e0
push esi
call fcn.00578530
add esp, 0x10
test eax, eax
jne 0x5bb5a9
push esi
call fcn.00578530
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c57a0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x5c57b8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5c57bd
mov ebx, 0x6a20b8
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5c5895
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x5c5829
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x5c5875
shl eax, 0x10
cmp esi, 2
jne 0x5c5839
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x5c585c
mov al, 0x3d
jmp 0x5c5865
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x5c57d3
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x5d3a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004a2410
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], 0
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
shl eax, 8
or edx, eax
movzx ebx, byte [edi + 4]
movzx eax, byte [edi + 2]
movzx ecx, byte [edi + 7]
shl eax, 0x10
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ebx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 6]
or ecx, eax
mov byte [esp + 0x2c], dl
mov eax, edx
shl ecx, 0x10
shr eax, 8
or ebx, ecx
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, ebx
shr eax, 0x18
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], al
test ebp, ebp
je 0x5d3c15
mov edi, dword [esp + 0x3c]
sub dword [esp + 0x10], edi
nop dword [eax]
dec ebp
test esi, esi
jne 0x5d3bc2
push 1
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
call fcn.005c0e40
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, ebx
shr eax, 0x18
inc dword [esp + 0x14]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
mov ecx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x14]
test ebp, ebp
jne 0x5d3b60
test ecx, ecx
je 0x5d3c15
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 5], al
mov eax, ebx
mov byte [ecx], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ecx + 4], bl
shr ebx, 0x18
mov byte [ecx + 3], dl
mov byte [ecx + 6], al
mov byte [ecx + 7], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x28
ret
Function at 0x5d46c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.004a2410
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], 0
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
shl eax, 8
or edx, eax
movzx ebx, byte [edi + 4]
movzx eax, byte [edi + 2]
movzx ecx, byte [edi + 7]
shl eax, 0x10
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ebx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 6]
or ecx, eax
mov byte [esp + 0x34], dl
mov eax, edx
shl ecx, 0x10
shr eax, 8
or ebx, ecx
mov byte [esp + 0x35], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, ebx
shr eax, 0x18
mov dword [esp + 0x20], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x3b], al
test ebp, ebp
je 0x5d486f
mov edi, dword [esp + 0x44]
sub dword [esp + 0x10], edi
nop dword [eax]
dec ebp
test esi, esi
jne 0x5d4818
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push eax
call fcn.005c2dd0
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, ebx
shr eax, 0x18
inc dword [esp + 0x14]
mov byte [esp + 0x34], dl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
mov ecx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x14]
test ebp, ebp
jne 0x5d47b0
test ecx, ecx
je 0x5d486f
mov ecx, dword [esp + 0x30]
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 5], al
mov eax, ebx
mov byte [ecx], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ecx + 4], bl
shr ebx, 0x18
mov byte [ecx + 3], dl
mov byte [ecx + 6], al
mov byte [ecx + 7], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x30
ret
Function at 0x5d60c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004a2410
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], 0
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ebx, byte [edi + 4]
shl eax, 0x10
movzx ecx, byte [edi + 6]
shl edx, 0x18
or edx, eax
shl ebx, 0x18
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 0x10
or ebx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 7]
or ecx, eax
mov byte [esp + 0x2f], dl
mov eax, edx
or ebx, ecx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x20], ebx
mov byte [esp + 0x32], al
mov byte [esp + 0x33], bl
test ebp, ebp
je 0x5d6257
mov edi, dword [esp + 0x3c]
sub dword [esp + 0x10], edi
nop dword [eax]
dec ebp
test esi, esi
jne 0x5d6200
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.005d56c0
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 8
inc dword [esp + 0x14]
mov byte [esp + 0x2f], dl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], bl
mov al, byte [esp + esi + 0x2c]
inc esi
mov ecx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x14]
test ebp, ebp
jne 0x5d61a0
test ecx, ecx
je 0x5d6257
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 3], dl
mov byte [ecx + 6], al
mov byte [ecx + 7], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x28
ret
Function at 0x5d6db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004a2410
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], 0
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
shl eax, 8
or edx, eax
movzx ebx, byte [edi + 4]
movzx eax, byte [edi + 2]
movzx ecx, byte [edi + 7]
shl eax, 0x10
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ebx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 6]
or ecx, eax
mov byte [esp + 0x2c], dl
mov eax, edx
shl ecx, 0x10
shr eax, 8
or ebx, ecx
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, ebx
shr eax, 0x18
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], al
test ebp, ebp
je 0x5d6f43
mov edi, dword [esp + 0x3c]
sub dword [esp + 0x10], edi
nop dword [eax]
dec ebp
test esi, esi
jne 0x5d6ef0
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.005d6a70
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, ebx
shr eax, 0x18
inc dword [esp + 0x14]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
mov ecx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x14]
test ebp, ebp
jne 0x5d6e90
test ecx, ecx
je 0x5d6f43
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 5], al
mov eax, ebx
mov byte [ecx], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ecx + 4], bl
shr ebx, 0x18
mov byte [ecx + 3], dl
mov byte [ecx + 6], al
mov byte [ecx + 7], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x28
ret
Function at 0x5d7a30
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.005d7c40
add esp, 0xc
test eax, eax
js 0x5d7c37
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x5d7ab0
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x5d7a70
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x5d7c32
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x6a4e40]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x6a6240]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a5a40]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a5e40]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6640]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x6a4e40]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x6a5e40]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6240]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a5a40]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6640]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x6a4e40]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x6a5e40]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6240]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a5a40]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6640]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x6a4e40]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x6a5e40]
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6240]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a5a40]
movzx eax, dl
movzx eax, byte [eax*4 + 0x6a4e40]
xor ecx, dword [eax*4 + 0x6a6640]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x5d7ac4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5d8760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.004a2410
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
je 0x5d87a9
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x5d87a9
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x10], edi
jne 0x5d8790
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
cmp esi, 0x10
jb 0x5d887a
nop dword [eax]
mov eax, esi
mov edx, ecx
shr eax, 4
xor edi, edi
add ecx, eax
cmp ecx, eax
cmovae edi, ecx
neg edx
mov dword [esp + 0x24], edi
cmp ecx, eax
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
cmovae edx, eax
push edx
push ebx
push ebp
mov dword [esp + 0x28], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x5d8856
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x5d8840
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, edx
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x5d87e0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
test esi, esi
je 0x5d88e8
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push edx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x5d88c9
push edx
call fcn.005d8930
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x5d88d6
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5d8f30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004a2410
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x5d8f4f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x5d901f
jb 0x5d8f74
test eax, eax
jne 0x5d901f
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x5d8fc0
nop
test esi, esi
je 0x5d9011
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x5d8f90
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call fcn.005da5d0
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x5d8fc3
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x5d8fe5
push eax
push edi
push ecx
push ebx
call fcn.005da3a0
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x5d900d
mov ecx, esi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x5d8ff0
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret