joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d04a1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x510], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x50c], ecx
mov dword [ebx + 0x514], eax
test ecx, ecx
jne 0x4d050c
call fcn.004d0263
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4d050c
call fcn.004d0263
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.004d0263
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x50c]
test ecx, ecx
je 0x4d0534
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.0048f53c
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.0048ca6c
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push accept
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.0048b3ff
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4d0579
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4d0574
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret 0x1c

Function at 0x4d5d93
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov edi, eax
cmp esi, 0x21
jb 0x4d5de1
cmp esi, 0x28
jbe 0x4d5ddb
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4d5de1
or edi, 0x100
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push 0
push eax
call fcn.004fc480
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x108]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.0048cac8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret 0xc
Function at 0x4d60ad
Capabilities:
Hide graphical window

Disassembly:
push 0x58
mov eax, 0x632f73
call fcn.004e5a7f
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4d61ae
lea eax, [ebp - 0x64]
push eax
call fcn.004d5926
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0x64]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0048f53c
push eax
mov ecx, ebx
call fcn.0048b3ff
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d61ae
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.00498d25
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0048f0c2
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x496]
push eax
movzx eax, word [ecx + 0x494]
mov ecx, ebx
push eax
call fcn.004d65b3
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.004d5c27
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x148
push eax
call fcn.0048cc26
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0048cba9
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x100]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004e5a3a
ret 4
Function at 0x4e2210
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e2220
Function at 0x4e7bb5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x51bbd0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051ba46

Function at 0x52353b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052308e
Function at 0x5549a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.004e53e0
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x5549ed
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x5549dd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x5549f2
cmp edi, dword [esi + 8]
ja 0x5549d4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0x3c8]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.0052a8d0
push eax
call fcn.005285c0
add esp, 8
test eax, 0x200000
je 0x554a38
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x554ac4
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x554a80
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x561130
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.00599150
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.004fc100
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x5611e7
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0056fc30
push 0x65ff50
push esi
push 0x66a5b0
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.0056f420
add esp, 0x2c
call fcn.00509ec7
cmp dword [eax], 2
je 0x5611c9
call fcn.00509ec7
cmp dword [eax], 6
je 0x5611c9
push 0x51
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0056fc30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x4f
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0056fc30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x66a558
call fcn.00561970
mov esi, eax
add esp, 4
test esi, esi
jne 0x561209
push edi
call fcn.0050060f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00561370
push edi
push ebx
push 0x6a
push esi
call fcn.005613a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x58ec00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x58ec27
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x58ec16
pop edi
movzx eax, dl
pop esi
ret

Function at 0x591ba0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.004e53e0
mov eax, dword [0x6d93a8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x591c0b
cmp edi, dword [esi]
je 0x591bff
test ebp, ebp
je 0x591c7e
test ebx, ebx
js 0x591c7e
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x591c11
mov edi, dword [esi]
test edi, edi
je 0x591c7e
push edi
call fcn.0052e220
add esp, 4
test al, 2
jne 0x591c7e
test ebp, ebp
je 0x591d8b
push edi
mov dword [esp + 0x14], 1
call fcn.00561600
add esp, 4
cmp eax, 0x90
jg 0x591c7e
cmp eax, ebx
jge 0x591c99
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.00567a50
add esp, 0xc
test eax, eax
je 0x591c7e
push ebx
push ebp
push dword [esi + 4]
call fcn.00567c00
add esp, 0xc
test eax, eax
je 0x591c7e
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.005679b0
add esp, 0xc
test eax, eax
jne 0x591cb5
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e48e6
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x591c7e
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.004fc5e0
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x591cd8
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.004fc480
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x591ce0
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.00567a50
add esp, 0xc
test eax, eax
je 0x591d98
push edi
call fcn.00561600
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.00567c00
add esp, 0x10
test eax, eax
je 0x591d98
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x591d30
push ebp
push edi
push dword [esi + 0xc]
call fcn.00567a50
add esp, 0xc
test eax, eax
je 0x591d98
push edi
call fcn.00561600
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.00567c00
add esp, 0x10
test eax, eax
je 0x591d98
push dword [esi + 8]
push dword [esi + 4]
call fcn.00567c40
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x591d9a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x591d6f
jmp 0x591cdc
xor ebp, ebp
test ebx, ebx
je 0x591db0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.0057e690
add esp, 8
mov eax, ebp
jmp 0x591c80
Function at 0x595b60
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.004e53e0
push esi
mov esi, dword [esp + 0x34]
mov eax, esi
push edi
xor edi, edi
sub eax, edi
je 0x595ba8
sub eax, 2
je 0x595ba8
sub eax, 0x15
je 0x595ba8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.0056fc30
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.00599320
cmp eax, 1
jne 0x595ba0
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], esi
movups xmmword [esp + 0x18], xmm0
test esi, esi
jne 0x595be4
or eax, 0x400
mov dword [esp + 8], eax
cmp dword [esp + 0x34], 1
jne 0x595bf2
or eax, 1
mov dword [esp + 8], eax
push dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x595c40
push 0x2c6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.0056fc30
push esi
call fcn.00596080
push eax
push 1
call fcn.0056f420
add esp, 0x20
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x5aa840
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.004e53e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0056d2f0
mov ebx, eax
push ebx
push esi
call fcn.0056d1e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5aa8c9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5aa8a3
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.0056d240
push esi
call fcn.0056d380
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5aa8c9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0056d2f0
mov ebx, eax
push ebx
push esi
call fcn.0056d1e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5aa938
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 0x5aa91e
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.0056d240
push esi
call fcn.0056d380
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x5aa8c1
push esi
call fcn.0056d380
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5ccb90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.004e53e0
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5ccbdd
mov edx, dword [esp + 0x30]
test esi, esi
je 0x5ccbdd
mov al, byte [edi + edx]
dec esi
xor al, byte [ecx]
inc edi
mov byte [ebp], al
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x5ccbc0
mov ebx, dword [esp + 0x2c]
movzx edx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x5ccc97
mov edi, ebx
nop
mov ebx, esi
shr ebx, 4
add edx, ebx
mov dword [esp + 0x24], edx
cmp edx, ebx
jae 0x5ccc27
sub ebx, edx
xor edx, edx
mov dword [esp + 0x24], edx
push edi
push dword [esp + 0x2c]
push ebx
push ebp
push ecx
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 0x5ccc79
mov edx, 0xc
mov ecx, 1
movzx eax, byte [edx + edi - 1]
dec edx
add ecx, eax
mov byte [edx + edi], cl
shr ecx, 8
test edx, edx
jne 0x5ccc63
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
shl ebx, 4
sub esi, ebx
add ecx, ebx
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp esi, 0x10
jae 0x5ccc10
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x5ccd05
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ebx
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
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
test ecx, ecx
jne 0x5ccce2
push ebx
call fcn.005ccd50
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
mov edx, dword [esp + 0x10]
sub edx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub esi, 1
jne 0x5cccf3
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5cd360
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
je 0x5cd374
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [ebx + 0x30]
adc ecx, dword [ebx + 0x34]
cmp ecx, 0x20000000
ja 0x5cd429
jb 0x5cd399
test eax, eax
jne 0x5cd429
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x16c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
test edi, edi
je 0x5cd3d9
nop
test esi, esi
je 0x5cd3c5
mov al, byte [ebp]
dec esi
xor byte [edi + ebx + 0x40], al
inc ebp
inc edi
and edi, 0xf
jne 0x5cd3b0
jmp 0x5cd3c9
test edi, edi
jne 0x5cd41c
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.005ce990
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x5cd3fe
push eax
push ebp
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.005ce750
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x5cd41c
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x5cd41c
nop word [eax + eax]
mov al, byte [ecx + ebp]
xor byte [ebx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x5cd410
mov dword [ebx + 0x16c], edi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x5ce500
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004e53e0
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x5ce56c
mov eax, dword [esp + 0x20]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x5ce6c5
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x4c], 0
push ebp
mov ebp, dword [esp + 0x24]
push edi
lea edi, [esi + 0x40]
cmp ebx, 0x10
jb 0x5ce60c
lea eax, [esi + 0x60]
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x41]
mov eax, ebx
mov dword [esp + 0x18], ecx
shr eax, 4
mov esi, edi
mov dword [esp + 0x2c], eax
mov eax, ecx
lea edx, [ebp + 1]
mov edi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x5ce5c0
push dword [esp + 0x14]
push esi
call fcn.005ce990
mov ecx, dword [esp + 0x20]
add esp, 8
add ebp, 0x10
sub ebx, 0x10
sub dword [esp + 0x2c], 1
jne 0x5ce5b3
mov esi, dword [esp + 0x24]
lea edi, [esi + 0x40]
test ebx, ebx
je 0x5ce62e
xor ecx, ecx
test ebx, ebx
je 0x5ce621
mov al, byte [ecx + ebp]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x5ce616
lea eax, [esi + 0x60]
push eax
push edi
call fcn.005ce990
add esp, 8
mov ebx, dword [esp + 0x1c]
xor edx, edx
shld edx, ebx, 3
xor byte [esi + 0x4b], dl
mov eax, edx
shr eax, 0x18
xor byte [esi + 0x48], al
mov eax, edx
shr eax, 0x10
xor byte [esi + 0x49], al
mov eax, edx
shr eax, 8
xor byte [esi + 0x4a], al
mov eax, edx
shl ebx, 3
xor byte [esi + 0x4f], bl
mov ecx, ebx
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov ecx, ebx
shr eax, 0x18
mov eax, edx
shrd ecx, eax, 0x10
xor byte [esi + 0x4d], cl
shr eax, 0x10
mov eax, ebx
shrd eax, edx, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
shr edx, 8
push edi
call fcn.005ce990
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop edi
mov dword [esi + 0xc], eax
pop ebp
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebx
add esp, 0x10
ret