joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x40a245
mov eax, dword [esi]
jmp 0x40a247
mov eax, esi
push eax
push str.CDebugLog::WriteConf_text_s
lea eax, [ebp - 0x1c]
push eax
push 0x6279dc
call fcn.00413590
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x40a266
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0x10
jb 0x40a27e
push dword [ebp - 0x1c]
call fcn.0043b833
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x40a288
mov eax, dword [esi]
jmp 0x40a28a
mov eax, esi
push ecx
push eax
push 0x627cc8
call fcn.004042b0
mov edi, eax
cmp esi, 0x627e7c
je 0x40a2af
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x627e7c
call fcn.004200a0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x40a5cb
cmp eax, dword [0x627e74]
jge 0x40a5cb
mov dword [eax*4 + 0x627e4c], 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 4
push eax
push str.CDebugLog_SetFilterLevelArray
lea eax, [ebp - 0x6c]
push eax
push 0x6279dc
call fcn.004134e0
add esp, 0x10
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x6c]
call fcn.00402150
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [0x619aac]
test edi, edi
jne 0x40ad45
xor eax, eax
pop edi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
xor esi, esi
test ebx, ebx
je 0x40ad6a
mov ecx, dword [ebp + 8]
movzx edx, byte [esi + ecx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
cmp esi, ebx
jb 0x40ad53
pop esi
pop ebx
not eax
pop edi
pop ebp
ret 8

Function at 0x40ad80
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.0043b82a
mov edx, eax
add esp, 4
test edx, edx
je 0x40ae29
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x40adae
xor eax, 0xedb88320
test al, 1
je 0x40adbb
shr eax, 1
xor eax, 0xedb88320
jmp 0x40adbd
shr eax, 1
test al, 1
je 0x40adca
shr eax, 1
xor eax, 0xedb88320
jmp 0x40adcc
shr eax, 1
test al, 1
je 0x40add9
shr eax, 1
xor eax, 0xedb88320
jmp 0x40addb
shr eax, 1
test al, 1
je 0x40ade8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40adea
shr eax, 1
test al, 1
je 0x40adf7
shr eax, 1
xor eax, 0xedb88320
jmp 0x40adf9
shr eax, 1
test al, 1
je 0x40ae06
shr eax, 1
xor eax, 0xedb88320
jmp 0x40ae08
shr eax, 1
test al, 1
je 0x40ae15
shr eax, 1
xor eax, 0xedb88320
jmp 0x40ae17
shr eax, 1
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x100
jl 0x40ada0
mov eax, edx
ret
Function at 0x40aec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aee0
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xd4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x828], 0
mov dword [ebp - 4], 1
mov esi, 0x20019
cmp dword [0x62797c], 0
je 0x40afc7
mov dword [ebp - 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x40af4b
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [0x62797c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x814], 0
je 0x40afc1
cmp dword [ebp + 0xd0], 0
je 0x40af64
mov esi, 0x20219
jmp 0x40afc1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x62797c], 0
mov dword [ebp - 0x824], eax
je 0x40afbc
mov dword [ebp - 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x40afa4
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [0x62797c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x814], 0
je 0x40afbc
mov ecx, dword [ebp - 0x824]
call fcn.004127c0
test eax, eax
je 0x40afc1
mov esi, 0x20119
mov ebx, dword [ebp - 0x820]
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x81c]
push ecx
push esi
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5ed1d8
mov ecx, edi
call fcn.004021f0
lea ecx, [ebp + 0x10]
call fcn.00402150
lea ecx, [ebp + 0x70]
call fcn.00402150
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0xd0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0x800
push 0
push eax
call fcn.005557a0
add esp, 0xc
lea ecx, [ebp - 0x818]
cmp dword [ebp + 0x84], 8
lea eax, [ebp + 0x70]
cmovae eax, dword [ebp + 0x70]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push ebx
push 0
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x81c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40aff2
mov ecx, dword [ebp - 0x818]
cmp ecx, 0x7fe
ja 0x40aff2
test ebx, ebx
je 0x40b0c9
cmp dword [ebx], 4
jne 0x40b0c9
push dword [ebp - 0x810]
push 0x5ed058
push edi
push 0x6279dc
call fcn.004134e0
add esp, 0x10
jmp 0x40affe
shr ecx, 1
xor eax, eax
dec ecx
test ecx, ecx
jle 0x40b0ed
lea edx, [eax + 0x20]
cmp word [ebp + eax*2 - 0x810], 0
jne 0x40b0e8
mov word [ebp + eax*2 - 0x810], dx
inc eax
cmp eax, ecx
jl 0x40b0d5
lea eax, [ebp - 0x810]
push eax
jmp 0x40aff7
Function at 0x40b230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62797c], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], eax
je 0x40b2d5
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
je 0x40b287
lea eax, [ebp - 8]
push eax
push esi
call dword [0x62797c]
push esi
call edi
cmp dword [ebp - 8], 0
je 0x40b2d5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x62797c], 0
mov dword [ebp - 0x14], eax
je 0x40b2ce
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
je 0x40b2bc
lea eax, [ebp - 8]
push eax
push esi
call dword [0x62797c]
push esi
call edi
cmp dword [ebp - 8], 0
je 0x40b2ce
mov ecx, dword [ebp - 0x14]
call fcn.004127c0
test eax, eax
je 0x40b2d5
mov eax, 0xf013f
jmp 0x40b2da
mov eax, 0xf003f
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push dword [ebp - 0x18]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b3ae
cmp dword [0x62797c], 0
mov edi, 0x20006
je 0x40b376
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
je 0x40b326
lea eax, [ebp - 8]
push eax
push esi
call dword [0x62797c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x40b376
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x62797c], 0
mov dword [ebp - 0x14], eax
je 0x40b371
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
je 0x40b35f
lea eax, [ebp - 8]
push eax
push esi
call dword [0x62797c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x40b371
mov ecx, dword [ebp - 0x14]
call fcn.004127c0
test eax, eax
je 0x40b376
mov edi, 0x20106
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push 0
push 0
push 0
push dword [ebp - 0x18]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40b3ae
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0x1c
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push 1
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40b3f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59af96
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x62797c], 0
mov ebx, 0xf003f
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x140], 0
je 0x40b4b2
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x40b45e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [0x62797c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x40b4b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x62797c], 0
mov dword [ebp - 0x18], eax
je 0x40b4ad
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x40b49b
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [0x62797c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x40b4ad
mov ecx, dword [ebp - 0x18]
call fcn.004127c0
test eax, eax
je 0x40b4b2
mov ebx, 0xf013f
push edi
lea ecx, [ebp - 0x13c]
call fcn.004021f0
push ecx
push 0x5ed1d4
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00402840
push ecx
push 0x5ed1d4
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x13c]
call fcn.00402960
cmp dword [ebp - 0xcc], 0
je 0x40b534
cmp dword [ebp - 0xc8], 8
lea ecx, [ebp - 0x140]
push ecx
push ebx
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b534
xor ebx, ebx
jmp 0x40b5b4
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x40b586
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40b578
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b5ad
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40b5ad
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
xor ebx, ebx
test esi, esi
sete bl
lea ecx, [ebp - 0x7c]
call fcn.00402150
lea ecx, [ebp - 0xdc]
call fcn.00402150
lea ecx, [ebp - 0x13c]
call fcn.00402150
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b670
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x55555556
imul ebx
push esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push edi
lea eax, [ecx + ecx*2]
sub ebx, eax
lea edi, [ecx*4]
mov dword [ebp + 0xc], ebx
je 0x40b6a0
lea edi, [ecx*4 + 4]
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00553420
mov esi, eax
add esp, 4
lea eax, [edi - 2]
xor edx, edx
mov dword [ebp - 4], eax
mov byte [esi + edi], 0
test eax, eax
jle 0x40b73c
mov edi, dword [ebp + 8]
mov ebx, eax
inc edi
nop
movzx eax, byte [edi - 1]
lea edi, [edi + 3]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx ecx, byte [edi - 4]
movzx eax, byte [edi - 3]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
movzx ecx, byte [edi - 3]
movzx eax, byte [edi - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
movzx eax, byte [edi - 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 3], al
add edx, 4
cmp edx, ebx
jl 0x40b6d0
mov ebx, dword [ebp + 0xc]
dec ebx
je 0x40b749
dec ebx
jne 0x40b750
mov byte [edx + esi - 1], 0x3d
jmp 0x40b750
mov word [edx + esi - 2], 0x3d3d
cmp byte [esi], 0
jne 0x40b759
xor eax, eax
jmp 0x40b769
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b760
sub eax, edx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0041fab0
push esi
call fcn.005534b2
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b790
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push esi
push 0
push 1
push 0
push dword [ebp + 8]
mov dword [edi], 0
mov dword [esi], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
je 0x40b7ff
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.00553420
mov ecx, eax
mov dword [edi], ecx
mov eax, dword [esi]
inc eax
push eax
push 0
push ecx
call fcn.005557a0
add esp, 0x10
push 0
push 0
push esi
push dword [edi]
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, 1
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40b810
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
movzx eax, byte [edx + 4]
mov byte [ecx + 4], al
movzx eax, byte [edx + 5]
mov byte [ecx + 5], al
movzx eax, byte [edx + 6]
mov byte [ecx + 6], al
movzx eax, byte [edx + 7]
mov byte [ecx + 7], al
movzx eax, byte [edx + 8]
mov byte [ecx + 8], al
movzx eax, byte [edx + 9]
mov byte [ecx + 9], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [ecx + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [ecx + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [ecx + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [ecx + 0xe], al
movzx eax, byte [edx + 0xf]
mov edx, 4
mov byte [ecx + 0xf], al
lea eax, [ecx + 0xd]
mov dword [ebp - 8], edx
push ebx
mov cl, byte [eax + 1]
mov bl, byte [eax - 1]
mov bh, byte [eax]
mov byte [ebp - 1], cl
mov cl, byte [eax + 2]
mov byte [ebp - 2], cl
test dl, 3
jne 0x40b8e2
movzx ecx, bh
mov dl, bl
mov bl, byte [ecx + 0x5ecea0]
movzx ecx, byte [ebp - 1]
mov bh, byte [ecx + 0x5ecea0]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x5ecea0]
mov byte [ebp - 1], cl
movzx ecx, dl
mov edx, dword [ebp - 8]
mov cl, byte [ecx + 0x5ecea0]
mov byte [ebp - 2], cl
mov ecx, edx
shr ecx, 2
xor bl, byte [ecx + 0x5ecd90]
mov cl, byte [eax - 0xd]
inc edx
xor cl, bl
mov dword [ebp - 8], edx
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, bh
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, byte [ebp - 1]
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, byte [ebp - 2]
mov byte [eax + 6], cl
add eax, 4
cmp edx, 0x2c
jb 0x40b890
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
add ecx, 2
mov esi, 4
mov edi, edi
mov dl, byte [ecx + 1]
lea ecx, [ecx + 4]
mov bh, byte [ecx - 4]
mov dh, dl
mov al, byte [ecx - 6]
xor dh, bh
mov bl, byte [ecx - 5]
mov ah, 0x1b
mov byte [ebp - 2], al
mov byte [ebp - 3], dl
mov dl, dh
xor dl, al
xor dl, bl
mov byte [ebp - 1], dl
mov dl, al
xor dl, bl
mov al, dl
add dl, dl
shr al, 7
imul ah
mov ah, 0x1b
xor al, dl
mov dl, bl
xor al, byte [ebp - 2]
xor dl, bh
xor al, byte [ebp - 1]
mov byte [ecx - 6], al
mov al, dl
shr al, 7
add dl, dl
imul ah
xor al, dl
mov dl, 0x1b
xor al, bl
mov bl, byte [ebp - 1]
xor al, bl
mov byte [ecx - 5], al
mov al, dh
shr al, 7
add dh, dh
imul dl
mov dl, byte [ebp - 3]
mov ah, 0x1b
xor dl, byte [ebp - 2]
xor al, dh
xor al, bh
xor al, bl
mov byte [ecx - 4], al
mov al, dl
shr al, 7
add dl, dl
imul ah
xor al, dl
xor al, byte [ebp - 3]
xor al, bl
mov byte [ecx - 3], al
dec esi
jne 0x40b930
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bcf0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
mov dword [ebp - 0xc], eax
sub edx, edi
mov esi, edi
mov ebx, 4
lea esp, [esp]
mov ecx, 4
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
dec ecx
jne 0x40bd15
dec ebx
jne 0x40bd10
mov esi, dword [ebp - 0xc]
add esi, 0x10
mov dword [ebp - 8], 9
mov edi, edi
mov ebx, edi
mov dword [ebp - 4], 4
lea esp, [esp]
mov ecx, ebx
mov edx, 4
jmp 0x40bd50
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x5ecea0]
mov byte [ecx - 4], al
dec edx
jne 0x40bd50
inc ebx
dec dword [ebp - 4]
jne 0x40bd40
mov cl, byte [edi + 1]
movzx eax, byte [edi + 5]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 7], cl
mov ecx, edi
mov byte [edi + 0xb], al
call fcn.0040b920
mov eax, edi
mov ebx, 4
mov edx, 4
jmp 0x40bdd0
mov cl, byte [esi]
inc esi
xor byte [eax], cl
inc eax
dec edx
jne 0x40bdd0
dec ebx
jne 0x40bdc6
dec dword [ebp - 8]
jne 0x40bd30
mov esi, edi
lea ebx, [edx + 4]
lea ebx, [ebx]
mov ecx, esi
mov edx, 4
jmp 0x40be00
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x5ecea0]
mov byte [ecx - 4], al
dec edx
jne 0x40be00
inc esi
dec ebx
jne 0x40bdf0
mov cl, byte [edi + 1]
lea esi, [edx + 4]
movzx eax, byte [edi + 5]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0xb], al
add ecx, 0xa0
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [edi], al
inc edi
dec edx
jne 0x40be77
dec esi
jne 0x40be72
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov ebx, 4
push esi
push edi
mov dword [ebp - 8], eax
mov esi, ecx
lea edi, [eax + 0xa0]
jmp 0x40beb0
mov edx, 4
mov al, byte [edi]
inc edi
xor byte [ecx], al
inc ecx
dec edx
jne 0x40beb5
dec ebx
jne 0x40beb0
mov eax, dword [ebp - 8]
add eax, 0x90
mov byte [ebp - 1], 9
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
jmp 0x40bf30
mov ecx, edi
mov edx, 4
jmp 0x40bf40
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x5ecda0]
mov byte [ecx - 4], al
dec edx
jne 0x40bf40
inc edi
dec ebx
jne 0x40bf30
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ebx, 4
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
dec edi
jne 0x40bf65
dec ebx
jne 0x40bf60
mov ecx, esi
call fcn.0040b9d0
mov dl, byte [ebp - 1]
sub dword [ebp - 0xc], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x40bed0
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
lea ebx, [ebx]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x5ecda0]
mov byte [ecx - 4], al
dec edx
jne 0x40bff0
inc edi
dec ebx
jne 0x40bfe3
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
mov ecx, 4
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
dec ecx
jne 0x40c018
dec dword [ebp - 0xc]
jne 0x40c010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov dword [ebp - 4], eax
add eax, 0xb0
mov dword [ebp - 8], eax
mov esi, eax
push edi
mov edi, edx
test ebx, ebx
je 0x40c081
dec ebx
shr ebx, 4
inc ebx
mov eax, edi
sub esi, edi
mov edx, 0x10
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x40c060
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.0040bcf0
mov esi, edi
add edi, 0x10
dec ebx
jne 0x40c056
mov eax, dword [ebp - 8]
movdqu xmm0, xmmword [esi]
pop edi
pop esi
movdqu xmmword [eax], xmm0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, edx
test edi, edi
je 0x40c0da
dec edi
shr edi, 4
push ebx
lea ebx, [eax + 0xb0]
inc edi
movdqu xmm0, xmmword [esi]
mov edx, eax
mov ecx, esi
call fcn.0040be90
mov ecx, ebx
mov edx, 0x10
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor byte [esi], al
inc esi
dec edx
jne 0x40c0c4
mov eax, dword [ebp - 4]
movdqu xmmword [ebx], xmm0
dec edi
jne 0x40c0b0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret