joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4beee0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x51ca54], 0
push esi
push edi
jne 0x4bef9c
mov byte [0x51ca54], 1
xor esi, esi
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [esi*4 + 0x51ca60], eax
inc esi
cmp esi, 0x100
jb 0x4beef8
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
not eax
test edi, edi
je 0x4befca
mov esi, dword [esp + 0xc]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x51ca60]
sub edi, 1
jne 0x4befb0
pop edi
not eax
pop esi
ret

Function at 0x4befd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x51ca54], 0
jne 0x4bf08c
push esi
mov byte [0x51ca54], 1
xor esi, esi
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [esi*4 + 0x51ca60], eax
inc esi
cmp esi, 0x100
jb 0x4befe7
pop esi
ret
Function at 0x4bf090
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x51d660], 0
push ebx
push esi
push edi
jne 0x4bf1a7
mov byte [0x51d660], 1
xor esi, esi
nop dword [eax]
xor eax, eax
mov edx, esi
shrd edx, eax, 1
mov ecx, esi
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4bf0cf
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4bf0ea
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x4bf105
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4bf120
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x4bf13b
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4bf156
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x4bf171
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4bf18c
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [esi*8 + 0x51ce60], ecx
mov dword [esi*8 + 0x51ce64], eax
inc esi
cmp esi, 0x100
jb 0x4bf0b0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
not ebx
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x4bf1e5
mov esi, dword [esp + 0x10]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
shrd ebx, edx, 8
xor ecx, eax
shr edx, 8
xor ebx, dword [ecx*8 + 0x51ce60]
xor edx, dword [ecx*8 + 0x51ce64]
sub edi, 1
jne 0x4bf1c0
pop edi
not ebx
not edx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4c2769
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004c2900
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c28d8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c28d8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c288d
jg 0x4c27c5
test eax, eax
je 0x4c2883
push 1
push 0x1000
call fcn.0042a800
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c27e8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c287a
push 0x8000
push ebx
call fcn.0048e39f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c2811
jg 0x4c280c
cmp ecx, 0x1000
jb 0x4c2811
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b7ea9
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c2856
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c280c
jl 0x4c283d
test ecx, ecx
jne 0x4c27fe
push dword [ebp - 0xc]
push ebx
call fcn.0048e39f
push esi
call fcn.0042a85d
add esp, 0xc
xor ebx, ebx
jmp 0x4c28e6
cmp byte [edi + 0x24], 0
je 0x4c286d
cmp dword [edi + 0x20], 5
jne 0x4c286d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c2878
mov ebx, dword [edi + 0x18]
jmp 0x4c287a
xor ebx, ebx
push esi
call fcn.0042a85d
pop ecx
jmp 0x4c28e6
test ecx, ecx
jg 0x4c284f
jl 0x4c288d
test eax, eax
jae 0x4c284f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045ede6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c28ad
cmp byte [edi + 0x1c], 0
je 0x4c284f
jmp 0x4c28de
push ebx
call fcn.00465873
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c284f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c28e6
cmp byte [edi + 0x1c], 0
je 0x4c28e3
mov ebx, dword [edi + 0x18]
jmp 0x4c28e6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045ede6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4770
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0xf0000000
push dword [esp + 0x14]
lea edi, [esi + 4]
mov dword [esi], 0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4c47b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4c47da
push 8
push dword [esp + 0x14]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c47da
lea eax, [esi + 8]
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4c47e2
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 0xffffffe7
pop esi
ret
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
ret

Function at 0x4c496c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x518f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4c49af
call fcn.0042dcdb
mov dword [eax], 0xf
call fcn.0042dcc8
mov dword [eax], 0xd
call fcn.0042a597
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f6af
leave
ret
test eax, eax
jne 0x4c49b6
inc eax
jmp 0x4c49a3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4c49a1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4c49a3
Function at 0x4c8bd0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x4c8be7
mov ecx, dword [esi + 0xc]
jmp 0x4c8bea
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 8], ecx
jne 0x4c8c15
test eax, eax
jne 0x4c8c15
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4c8c32
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4c8d06
push ebx
push dword [ebp - 4]
call fcn.0042d9fe
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c8d00
cmp dword [ebp + 0x1c], 0
jne 0x4c8c7f
cmp dword [ebp + 0x18], 0
jne 0x4c8c7f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4c8c9e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4c8cc6
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x20]
je 0x4c8cf0
push dword [ebp + 0x24]
push ebx
push eax
push eax
call fcn.004cb0c0
push dword [esi + 0x1c]
push dword [esi + 0xc]
call fcn.004cb190
add esp, 0x18
mov esi, dword [ebp - 4]
test esi, esi
je 0x4c8cdb
mov eax, ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4c8cd0
push ebx
call fcn.00421011
add esp, 4
sar edi, 0x1f
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
push ebx
push eax
call fcn.004095d0
add esp, 0xc
jmp 0x4c8cc9
mov edi, 0xc0000017
pop ebx
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ca370
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4ca550
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4ca550
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ca550
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4ca550
mov ecx, dword [ecx + 4]
mov esi, dword [eax + 4]
add ecx, 0x18
add esi, ecx
mov dword [ebp - 8], 0x18
push esi
call fcn.0042d9fe
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4ca550
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edi], 0x31415352
mov ecx, dword [eax + 4]
shl ecx, 3
mov dword [edi + 4], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 8], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push dword [edx + 4]
mov eax, dword [ebp - 8]
push dword [edx]
add eax, edi
push eax
call fcn.004095d0
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
add eax, edi
add eax, dword [ebp - 8]
push eax
call fcn.004095d0
add esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push 0
push esi
push edi
push eax
push str.RSAPUBLICBLOB
push 0
push dword [0x51d76c]
call sub.bcrypt.dll_BCryptImportKeyPair
mov edi, eax
test edi, edi
js 0x4ca523
push 1
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4ca51b
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004ca310
add esp, 8
test eax, eax
jne 0x4ca516
mov ecx, dword [ebp - 4]
cmp dword [ebx + 4], ecx
cmova ecx, dword [ebx + 4]
push ecx
mov dword [ebp - 4], ecx
call fcn.0042d9fe
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4ca516
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 4]
push edi
call fcn.004c99d0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
add esp, 0x10
push 1
push eax
push dword [ebx + 4]
push dword [ebx]
push 0
push 0
push 0
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 0x10]
test ecx, ecx
je 0x4ca4fb
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4ca4f0
push edx
call fcn.00421011
add esp, 4
test edi, edi
js 0x4ca51b
push dword [ebp - 8]
push ebx
call fcn.004ca310
add esp, 8
jmp 0x4ca51b
mov edi, 0xc0000017
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptDestroyKey
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x4ca53b
mov eax, ecx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4ca530
push ecx
call fcn.00421011
add esp, 4
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ca990
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [eax], 0
test edi, edi
jne 0x4ca9ba
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4ca9b1
sub edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [edi*4]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 4]
shr edx, 1
add edx, 4
push esi
push edx
call eax
add esp, 8
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x4ca9ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4caab6
xor edx, edx
xor eax, eax
nop dword [eax]
test edi, edi
je 0x4caa0b
mov cl, byte [ebx]
inc edx
inc ebx
dec edi
jmp 0x4caa16
cmp eax, 3
jae 0x4caad3
xor cl, cl
mov byte [ebp + eax + 8], cl
inc eax
cmp eax, 3
jl 0x4caa00
mov ah, byte [ebp + 8]
mov cl, byte [ebp + 9]
mov al, ah
shr al, 2
and ah, 3
mov byte [ebp + 0xf], al
mov al, cl
shl ah, 4
and cl, 0xf
shr al, 4
or ah, al
shl cl, 2
mov byte [ebp + 0x13], ah
mov ah, byte [ebp + 0xa]
mov al, ah
and ah, 0x3f
shr al, 6
or cl, al
sub edx, 1
je 0x4caa7c
sub edx, 1
je 0x4caa6f
movzx eax, ah
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, cl
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4caa80
movzx eax, cl
mov dl, 0x3d
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4caa80
mov dl, 0x3d
mov ch, dl
movzx eax, byte [ebp + 0xf]
mov esi, dword [ebp - 4]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, byte [ebp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov byte [eax + 2], ch
mov byte [eax + 3], dl
add eax, 4
mov dword [ebp - 4], eax
test edi, edi
jne 0x4ca9f5
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4caac1
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00463081
int3
Function at 0x4cb0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
test edi, edi
je 0x4cb183
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp edi, 0x40
jb 0x4cb166
lea ecx, [esi - 1]
lea edx, [eax - 1]
add ecx, edi
add edx, edi
cmp eax, ecx
ja 0x4cb0f4
cmp edx, esi
jae 0x4cb166
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 1]
add ecx, edi
cmp eax, ecx
ja 0x4cb109
lea ecx, [edi - 1]
add ecx, eax
cmp ecx, edx
jae 0x4cb169
mov ecx, edi
and ecx, 0xffffffc0
nop
movups xmm0, xmmword [esi]
add ebx, 0x40
movups xmm1, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax], xmm1
movups xmm1, xmmword [edx + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x10], xmm1
movups xmm1, xmmword [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x30]
add esi, 0x40
movups xmmword [eax + 0x20], xmm1
movups xmm1, xmmword [edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp ebx, ecx
jb 0x4cb110
mov dword [ebp + 0x14], ebx
cmp ebx, edi
jae 0x4cb182
jmp 0x4cb169
mov edx, dword [ebp + 0xc]
sub edx, eax
sub esi, eax
sub edi, ebx
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [edx + eax - 1]
mov byte [eax - 1], cl
sub edi, 1
jne 0x4cb170
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d9693
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d969e

Function at 0x4db370
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
xor esi, esi
mov edi, dword [ebx + 0x4804]
mov dword [ebx + eax*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [esp + 0xc], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x4f9b20]
movzx edx, byte [ecx + 0x4f9b20]
movzx ecx, word [ebx + 2]
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x4f9b20]
add eax, edx
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x4f9b20]
mov ecx, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, ecx, 0x440
add eax, 0x404
add eax, ebx
mov dword [esp + 0x24], eax
test edi, edi
je 0x4db51c
lea eax, [ecx*8]
push ebp
mov dword [esp + 0x1c], eax
mov ebp, eax
nop dword [eax + eax]
cmp esi, 8
jae 0x4db46d
xor edi, edi
lea edx, [esi + 8]
lea ebp, [ecx*8]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x4f9b20]
add edi, eax
cmp edx, 1
jne 0x4db421
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x2c]
cmp esi, edi
jb 0x4db410
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
cmp esi, edi
jae 0x4db51b
cmp esi, 0x10
jae 0x4db4cd
xor edi, edi
mov edx, esi
nop
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + ebp]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x4f9b20]
add edi, eax
cmp edx, 1
jne 0x4db480
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4db475
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x28]
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x4f9b20]
add edi, ecx
cmp eax, 1
jne 0x4db4e0
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ebp + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4db4d1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4db8e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edx, dword [esi + 0xaa0]
mov eax, dword [esi + 0x1f0]
and edx, dword [esp + 0x20]
shl eax, 4
cmp ebx, 0xffffffff
jne 0x4dba4c
mov ebx, dword [esp + 0x14]
add edx, 0x3556
add eax, edx
push ebp
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov ebp, dword [esi + 0x18]
inc ebp
mov dword [esi + 0x18], ebp
mov edi, dword [ebx]
mov eax, edi
mov edx, dword [ebx + 0x18]
sub eax, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + ecx - 1]
mov ecx, 8
sub cl, byte [esi + 0xaa4]
mov eax, dword [esi + 0xaa8]
and eax, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esi + 0xaa4]
shl eax, cl
add edx, eax
mov eax, edi
sub eax, dword [ebx + 0x18]
imul ecx, edx, 0x600
mov edx, dword [ebx + 0x14]
movzx edx, byte [eax + edx]
add ecx, 0xaac
add ecx, esi
cmp dword [esi + 0x1f0], 7
mov dword [esp + 0x24], ecx
jge 0x4db99f
push edx
push 8
push ecx
push esi
call fcn.004da990
add esp, 0x10
jmp 0x4dba00
sub edi, dword [esi + 0x1f4]
sub edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ebx, 0x100
add edx, ebx
movzx edi, byte [edi + eax - 1]
mov eax, edx
add edi, edi
shr eax, 7
mov ecx, ebx
and eax, 1
and ecx, edi
mov dword [esi + ebp*4 + 0x20], eax
add ecx, ebx
mov eax, edx
add edx, edx
shr eax, 8
add eax, ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov eax, edi
inc dword [esi + 0x18]
xor eax, edx
mov ebp, dword [esi + 0x18]
not eax
and ebx, eax
cmp edx, 0x10000
jb 0x4db9b8
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x1f0]
pop ebp
cmp eax, 3
jg 0x4dba1f
xor eax, eax
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
cmp eax, 9
jg 0x4dba38
add eax, 0xfffffffd
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0xfffffffa
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0x3556
mov edi, dword [esp + 0x1c]
add eax, edx
push edi
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x20], 1
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x1f0]
add ecx, 0x3616
lea eax, [esi + eax*4]
lea ecx, [esi + ecx*2]
cmp ebx, 4
jae 0x4dbab8
mov dword [eax + 0x20], 1
mov eax, dword [esi + 0x18]
push ebx
push edx
push esi
mov dword [esi + eax*4 + 0x108], ecx
inc dword [esi + 0x18]
call fcn.004db740
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
mov dword [eax + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
lea eax, [ebx - 4]
inc dword [esi + 0x18]
push eax
push edx
push esi
call fcn.004db610
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret