joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp]
push ecx
push 0x20019
push 0
push edx
push SysReAllocStringLen
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x450ad4
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
pop esi
pop ecx
ret

Function at 0x450b20
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x450b63
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push esi
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x450b9d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x450bc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x450c03
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 8]
push ecx
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x450c41
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x450c60
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x450ca3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450cb0
mov ecx, dword [esp + 0x14]
sub eax, esi
inc eax
push eax
xor eax, eax
cmp dword [esp + 0x20], eax
push edx
mov edx, dword [esp + 0xc]
setne al
inc eax
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x450cf8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x450d10
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysReAllocStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x450d7c
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450d50
mov ecx, dword [esp + 4]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret

Function at 0x450d80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysReAllocStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x450dbc
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x450e00
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20006
push 0
push ecx
push SysStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x450e33
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x450e60
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x450e80
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20006
push 0
push ecx
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x450ec1
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x453e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e235
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
mov eax, dword [0x4b77c0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, ecx
push 1
xor ebx, ebx
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.00410520
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 4]
push eax
push str._file_
push ecx
lea edx, [esp + 0x40]
push str.token:__slot_
push edx
mov dword [esp + 0xd0], 1
call fcn.0040fec0
add esp, 8
mov ecx, eax
call fcn.00440900
push eax
call fcn.0040fec0
add esp, 8
push eax
call fcn.004400c0
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
call fcn.0040e180
mov esi, dword [esp + 0xc4]
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov word [esi + 4], cx
push eax
mov ecx, esi
mov byte [esp + 0xc8], 2
call fcn.00403770
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x453f37
mov edx, dword [esp + 0x14]
push edx
call fcn.0046b849
add esp, 4
xor eax, eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
mov byte [esp + 0xbc], bl
call fcn.0040b250
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xb4
ret 4
Function at 0x459d50
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x101c
call fcn.0046be90
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x1018], eax
cmp dword [esp + 0x1020], 0
push ebx
mov ebx, dword [esp + 0x102c]
push esi
mov esi, dword [esp + 0x1034]
push edi
mov edi, dword [esp + 0x1030]
push 0
push esi
jne 0x459db2
push 0x200
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0046be7b
add esp, 0x101c
ret
push 0x18
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459e43
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0x200]
cmp ecx, 0xe00
ja 0x459e3b
push 0
push esi
push eax
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459e43
mov eax, dword [esi]
cmp eax, 0x200
jb 0x459e01
mov eax, 0x200
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0046dd00
add esp, 0xc
cmp dword [esi], 0x200
jbe 0x459e1e
mov dword [esi], 0x200
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0046be7b
add esp, 0x101c
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046be7b
add esp, 0x101c
ret
Function at 0x459e60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.0046be90
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x1020], eax
cmp dword [ebp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
jne 0x459ed1
lea eax, [esp + 0x10]
push eax
push 0x200
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459f9b
cmp dword [esp + 0xc], 0x200
jne 0x459f93
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.0046be7b
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 0x18
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459f9b
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0x200]
cmp ecx, 0xe00
ja 0x459f93
cmp eax, 0x200
je 0x459f4c
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459f9b
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jne 0x459f93
push 1
neg eax
cdq
push 0
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x459f9b
mov eax, dword [esp + 0x24]
push 0
mov ecx, 0x80
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459f9b
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jne 0x459f93
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.0046be7b
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046be7b
mov esp, ebp
pop ebp
ret
Function at 0x45b490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
push edi
push 0x13c
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x34], 0
call fcn.0046bf90
mov edi, dword [esp + 0x178]
lea ecx, [esp + 0x34]
add esp, 0xc
xor esi, esi
sub edi, ecx
lea edx, [edi + esi*4]
xor ecx, ecx
lea edx, [esp + edx + 0x28]
xor eax, eax
movzx ebx, byte [eax + edx]
shl ecx, 8
inc eax
add ecx, ebx
cmp eax, 4
jl 0x45b4d0
mov dword [esp + esi*4 + 0x28], ecx
inc esi
cmp esi, 0x10
jl 0x45b4c5
lea ecx, [esp + 0x30]
mov edx, 0x40
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
add ecx, 4
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
sub edx, 1
mov dword [ecx + 0x34], eax
jne 0x45b4f2
mov eax, dword [0x4e0544]
mov ebx, dword [0x4e0534]
mov esi, dword [0x4e0538]
mov edx, dword [0x4e053c]
mov ecx, dword [0x4e0540]
mov dword [esp + 0x20], eax
xor edi, edi
mov edi, edi
mov eax, ebx
rol eax, 5
mov dword [esp + 0x24], eax
mov eax, esi
not eax
and eax, ecx
mov ebp, edx
and ebp, esi
or eax, ebp
add eax, dword [esp + edi*4 + 0x28]
inc edi
add eax, dword [0x4e0548]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
rol esi, 0x1e
cmp edi, 0x14
mov dword [esp + 0x20], ecx
mov ecx, edx
mov edx, esi
mov esi, ebx
mov ebx, eax
jl 0x45b530
cmp edi, 0x28
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jge 0x45b5c1
mov ebp, ecx
xor ebp, edx
xor ebp, esi
add ebp, dword [esp + edi*4 + 0x28]
rol eax, 5
add ebp, eax
add ebp, dword [0x4e054c]
inc edi
add ebp, dword [esp + 0x20]
rol esi, 0x1e
cmp edi, 0x28
mov dword [esp + 0x20], ecx
mov ecx, edx
mov eax, ebp
mov edx, esi
mov esi, ebx
mov ebx, eax
jl 0x45b581
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp edi, 0x3c
jge 0x45b610
rol eax, 5
mov dword [esp + 0x24], eax
mov eax, ecx
or eax, edx
and eax, esi
mov ebp, ecx
and ebp, edx
or eax, ebp
add eax, dword [esp + edi*4 + 0x28]
inc edi
add eax, dword [esp + 0x24]
add eax, dword [0x4e0550]
add eax, dword [esp + 0x20]
rol esi, 0x1e
cmp edi, 0x3c
mov dword [esp + 0x20], ecx
mov ecx, edx
mov edx, esi
mov esi, ebx
mov ebx, eax
jl 0x45b5c6
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp edi, 0x50
jge 0x45b655
mov ebp, ecx
xor ebp, edx
xor ebp, esi
add ebp, dword [esp + edi*4 + 0x28]
rol eax, 5
add ebp, eax
add ebp, dword [0x4e0554]
inc edi
add ebp, dword [esp + 0x20]
rol esi, 0x1e
cmp edi, 0x50
mov dword [esp + 0x20], ecx
mov ecx, edx
mov eax, ebp
mov edx, esi
mov esi, ebx
mov ebx, eax
jl 0x45b615
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
jmp 0x45b660
mov ecx, dword [esp + eax]
add dword [eax + 0x4e0534], ecx
add eax, 4
cmp eax, 0x14
jl 0x45b660
add esp, 0x158
ret
Function at 0x45c7c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
push edi
add ecx, 8
mov edi, 8
lea esp, [esp]
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x498b18]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498d18]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498f18]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x499118]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x498c18]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498e18]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x499018]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x499218]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x498b18]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498d18]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498f18]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x499118]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x498c18]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x498e18]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x499018]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x499218]
xor esi, ebx
sub edi, 1
jne 0x45c7e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax], edx
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x45df80
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push 0x1000
lea eax, [ebx + 0x90]
xor ebp, ebp
push 0x49b360
mov ecx, 0x12
mov esi, 0x49b318
mov edi, ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0046dd00
mov ebp, dword [esp + 0x2c]
add esp, 0xc
xor edi, edi
mov esi, 2
xor edx, edx
lea eax, [esi - 2]
div ebp
mov eax, dword [esp + 0x24]
inc edi
movzx ecx, byte [edx + eax]
xor edx, edx
lea eax, [esi - 1]
div ebp
mov eax, dword [esp + 0x24]
shl ecx, 8
movzx edx, byte [edx + eax]
or ecx, edx
xor edx, edx
mov eax, esi
div ebp
mov eax, dword [esp + 0x24]
shl ecx, 8
movzx edx, byte [edx + eax]
or ecx, edx
xor edx, edx
lea eax, [esi + 1]
div ebp
mov eax, dword [esp + 0x24]
shl ecx, 8
add esi, 4
movzx edx, byte [edx + eax]
or ecx, edx
xor dword [ebx + edi*4 - 4], ecx
cmp edi, 0x12
jb 0x45dfc7
push ebx
lea ecx, [esp + 0x14]
mov eax, ebx
call fcn.0045dd40
add esp, 4
mov ecx, ebx
mov edi, 8
lea esi, [ecx + 8]
push esi
mov eax, ebx
call fcn.0045dd40
add esp, 4
sub edi, 1
mov ecx, esi
jne 0x45e034
lea esi, [ebx + 0x90]
push esi
lea ecx, [ebx + 0x40]
mov eax, ebx
call fcn.0045dd40
add esp, 4
mov ecx, esi
mov edi, 0x1ff
lea esi, [ecx + 8]
push esi
mov eax, ebx
call fcn.0045dd40
add esp, 4
sub edi, 1
mov ecx, esi
jne 0x45e064
xor eax, eax
lea ecx, [ebx + 0x8c]
mov edx, dword [ebx + eax*4]
mov dword [ecx], edx
inc eax
sub ecx, 4
cmp eax, 0x12
jb 0x45e081
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x45e300
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
xor eax, eax
push edi
mov dl, al
shr dl, 4
movzx edi, dl
mov cl, al
and cl, 0xf
movzx esi, cl
mov byte [esp + 0xf], cl
mov ecx, edi
movzx edi, byte [edi + 0x4b7628]
xor ecx, esi
movzx esi, byte [esi + 0x4b7618]
mov cl, byte [ecx + 0x4b7638]
xor edi, esi
movzx esi, byte [edi + 0x4b7658]
movzx ebx, byte [esi + 0x4b7618]
movzx ecx, cl
movzx edi, byte [ecx + 0x4b7628]
xor ecx, esi
xor edi, ebx
mov bl, byte [edi + 0x4b7698]
movzx esi, dl
shl bl, 4
or bl, byte [ecx + 0x4b7678]
movzx ecx, byte [esp + 0xf]
mov edx, esi
movzx esi, byte [esi + 0x4b7628]
xor edx, ecx
movzx ecx, byte [ecx + 0x4b7618]
mov dl, byte [edx + 0x4b7648]
xor esi, ecx
movzx esi, byte [esi + 0x4b7668]
movzx edi, byte [esi + 0x4b7618]
movzx ecx, dl
movzx edx, byte [ecx + 0x4b7628]
xor edx, edi
movzx edx, byte [edx + 0x4b76a8]
shl dl, 4
xor ecx, esi
or dl, byte [ecx + 0x4b7688]
mov byte [eax + 0x4e1558], bl
mov byte [eax + 0x4e1658], dl
inc eax
cmp eax, 0x100
jb 0x45e306
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x466550
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push esi
push edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea edi, [eax + 0x10]
mov ecx, 0x10
mov esi, 0x49c9a0
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x467560
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x467750
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov byte [0x4b76b8], 0x80
ret
Function at 0x46be7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b77c0]
jne 0x46be85
repz ret
jmp fcn.0047593c

Function at 0x46d4d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46d50a
call fcn.0046d59d
mov dword [eax], esi
call fcn.0046d58a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046c168
add esp, 0x14
or eax, 0xffffffff
jmp 0x46d545
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46d527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046d5b0
pop ecx
jmp 0x46d505
test byte [ebp + 0xc], 0x80
je 0x46d532
and eax, 0xfffffffe
jmp 0x46d535
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x46d518
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46d5d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46d604
call fcn.0046d59d
mov dword [eax], esi
call fcn.0046d58a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046c168
add esp, 0x14
push 0x16
pop eax
jmp 0x46d659
test dword [ebp + 0xc], 0xfffffff9
jne 0x46d5e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46d631
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046d5b0
pop ecx
call fcn.0046d58a
mov eax, dword [eax]
jmp 0x46d659
test al, 0x10
jne 0x46d657
test al, 1
je 0x46d657
test byte [ebp + 0xc], 2
je 0x46d657
call fcn.0046d59d
mov dword [eax], 5
call fcn.0046d58a
mov dword [eax], 0xd
jmp 0x46d628
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46e1a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46e1d8
call fcn.0046d59d
mov dword [eax], esi
call fcn.0046d58a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046c168
add esp, 0x14
push 0x16
pop eax
jmp 0x46e22d
test dword [ebp + 0xc], 0xfffffff9
jne 0x46e1b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e205
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046d5b0
pop ecx
call fcn.0046d58a
mov eax, dword [eax]
jmp 0x46e22d
test al, 0x10
jne 0x46e22b
test al, 1
je 0x46e22b
test byte [ebp + 0xc], 2
je 0x46e22b
call fcn.0046d59d
mov dword [eax], 5
call fcn.0046d58a
mov dword [eax], 0xd
jmp 0x46e1fc
xor eax, eax
pop esi
pop ebp
ret