joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4279f8
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x427ae8
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x427a27
cmp word [ebx], 0
jne 0x427a60
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x427ac8
push 0
lea edx, [ebp - 4]
mov eax, dword [0x458860]
call fcn.00409d44
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b400
jmp 0x427ac8
test ebx, ebx
je 0x427a6d
mov eax, ebx
call fcn.00406ea8
jmp 0x427a6f
xor eax, eax
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x427aa2
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xa
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0xa
lea edx, [ebp - 0x1c]
mov eax, 0x427af8
mov ecx, 1
call fcn.00424fc0
jmp 0x427ac8
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x45870c]
call fcn.00409d44
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b400
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427aef
lea eax, [ebp - 0x20]
call fcn.004069bc
lea eax, [ebp - 4]
call fcn.004069bc
ret
Function at 0x4286ac
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
add esp, 0xfffffec8
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
test ebx, ebx
je 0x428747
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.00414c20
cmp word [esp + 4], 0x5a4d
jne 0x428741
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00414cf0
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.00414c20
cmp dword [esp], 0x4550
jne 0x428741
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.00414c20
cmp word [esp + 0x54], 0
jbe 0x428741
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.00414c20
movzx esi, word [esp + 0x9c]
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
add esp, 0x138
pop esi
pop ebx
ret

Function at 0x42b268
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42b379
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov word [ebp - 0xc], 0x3d
movzx eax, word [ebp - 4]
dec eax
add ax, 0x41
mov word [ebp - 0xa], ax
mov word [ebp - 8], 0x3a
mov word [ebp - 6], 0
xor ebx, ebx
lea eax, [ebp - 0xc]
call fcn.00422a4c
mov esi, eax
test esi, esi
je 0x42b2ca
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42b354
test esi, esi
je 0x42b2df
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [ebp - 0xa]
mov word [ebp - 0x216], ax
movzx eax, word [ebp - 8]
mov word [ebp - 0x214], ax
mov word [ebp - 0x212], 0x5c
mov word [ebp - 0x210], 0
lea edx, [ebp - 0x216]
lea eax, [ebp - 0xc]
call fcn.00422cd4
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x42b34a
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
mov eax, dword [0x458658]
call fcn.00409d44
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.0042b400
test esi, esi
je 0x42b354
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x458a38]
xor edx, edx
call fcn.004247dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b380
lea eax, [ebp - 0x21c]
call fcn.004069bc
ret
Function at 0x42b5e8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov esi, edx
mov dword [esp], eax
mov dword [esp + 0x1c], 0xffffffff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov eax, 3
and eax, esi
cmp eax, 2
ja 0x42b62c
mov edx, 1
and edx, esi
mov ecx, 8
and ecx, esi
and edx, ecx
je 0x42b634
or eax, 0xffffffff
jmp 0x42b809
test eax, eax
je 0x42b65d
mov edi, 0x40000000
mov edx, 0x42b814
mov eax, dword [esp]
call fcn.00415204
test eax, eax
je 0x42b656
mov dword [esp + 4], 1
mov ebp, 2
jmp 0x42b667
mov edi, 0x80000000
mov ebp, 3
cmp esi, 0x10a
jne 0x42b6e8
push 0
push 0x80
push 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x80000000
or eax, edi
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b731
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b731
call sub.kernel32.dll_GetLastError_2
mov dword [0x454a0c], eax
cmp dword [0x454a0c], 0x6e
jne 0x42b6e0
mov dword [0x454a0c], 2
or eax, 0xffffffff
jmp 0x42b809
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b731
call sub.kernel32.dll_GetLastError_2
mov dword [0x454a0c], eax
cmp dword [0x454a0c], 0x6e
jne 0x42b729
mov dword [0x454a0c], 2
or eax, 0xffffffff
jmp 0x42b809
push 8
push ebx
call sub.msvcrt.dll__open_osfhandle
add esp, 8
mov edi, eax
test esi, 8
je 0x42b800
mov eax, edi
call fcn.004246bc
test eax, eax
jne 0x42b800
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x42b800
mov word [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov ebp, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x454a0c], eax
cmp ebp, 0xffffffff
jne 0x42b7b2
cmp dword [0x454a0c], 0
je 0x42b7b2
cmp edi, 0xffffffff
je 0x42b7ad
push edi
call sub.msvcrt.dll__close
pop ecx
or eax, 0xffffffff
jmp 0x42b809
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov ebp, eax
test ebp, ebp
jne 0x42b7e1
xor eax, eax
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
cmp word [esp + 8], 0x1a
jne 0x42b800
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, edi
call fcn.0042b92c
mov eax, edi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bc54
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42bc80
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x42bc88
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42bcbb
mov al, 1
jmp 0x42bd00
cmp eax, 2
je 0x42bcfe
cmp eax, 5
je 0x42bcfe
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x42bcfe
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x42bcfe
mov al, 1
jmp 0x42bd00
xor eax, eax
add esp, 0x224
ret

Function at 0x42c28c
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x42c374
mov eax, dword [0x4586f4]
cmp dword [eax], 0
jne 0x42c374
mov eax, dword [0x4585d4]
cmp byte [eax], 0
jne 0x42c374
mov eax, 0x20c
call fcn.00403e9c
mov dword [esp], eax
cmp dword [esp], 0
je 0x42c374
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x42c374
test ebx, ebx
je 0x42c2f2
mov eax, ebx
call fcn.00406ea8
jmp 0x42c2f4
xor eax, eax
add eax, esi
add eax, dword [0x471964]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.00403ed0
cmp dword [esp], 0
je 0x42c374
mov eax, dword [0x4587a0]
cmp byte [eax], 0
je 0x42c32d
mov eax, dword [0x471964]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.0041c338
jmp 0x42c363
mov edx, 0x42c378
mov eax, dword [esp]
call fcn.0041c34c
cmp dword [esp], 0
je 0x42c34a
mov eax, dword [esp]
call fcn.00406ea8
jmp 0x42c34c
xor eax, eax
mov dword [0x471964], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0041c34c
mov eax, dword [0x4587a0]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.00403eb8
pop edx
pop esi
pop ebx
ret
Function at 0x42c794
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.0042c774
inc eax
jne 0x42c8ef
mov eax, edi
call fcn.00406ea8
mov dword [esp], eax
mov eax, dword [0x458704]
mov eax, dword [eax]
call fcn.0040831c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [0x458704]
mov ecx, 1
mov edx, dword [0x41c0f4]
call fcn.00408538
add esp, 4
mov eax, dword [esp]
lea eax, [eax + eax*2]
call fcn.00403e9c
lea esi, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + esi*8], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, edi
call fcn.0041513c
mov eax, dword [0x458704]
mov eax, dword [eax]
mov dword [eax + esi*8 + 4], ebp
push ebp
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 8], eax
push 2
push 0
push 0
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403e9c
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [0x458704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x458704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [0x458704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [0x458704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [0x458704]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x10]
mov eax, dword [0x458704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
dec eax
test eax, eax
jl 0x42c8de
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x42c8d7
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42ca5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
or ebx, 0xffffffff
mov eax, dword [0x458704]
mov eax, dword [eax]
call fcn.00408324
test eax, eax
jl 0x42ca9c
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
mov edi, dword [0x458704]
mov edi, dword [edi]
cmp esi, dword [edi + ecx*8 + 4]
jne 0x42ca98
mov ebx, edx
jmp 0x42ca9c
inc edx
dec eax
jne 0x42ca83
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 0xc]
mov ecx, dword [0x458704]
mov ecx, dword [ecx]
sub edx, dword [ecx + eax*8 + 0x14]
cmp edx, dword [ebp - 8]
jae 0x42cac3
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
jmp 0x42cacb
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x10]
lea edx, [ebx + ebx*2]
mov ecx, dword [0x458704]
mov ecx, dword [ecx]
add eax, dword [ecx + edx*8 + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
call fcn.00404040
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x42cb08
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x42cb01
lea eax, [ebx + ebx*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
add dword [edx + eax*8 + 0x14], ecx
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x42e4e8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e50d
mov eax, dword [ebp - 4]
call fcn.00406ea8
jmp 0x42e50f
xor eax, eax
mov edi, eax
xor eax, eax
mov ebx, dword [ebp + 8]
jmp 0x42e524
inc eax
jmp 0x42e51e
add ebx, 2
cmp word [ebx], 0
jne 0x42e51b
cmp word [ebx], 0
jne 0x42e518
sub ebx, dword [ebp + 8]
sar ebx, 1
jns 0x42e534
adc ebx, 0
inc ebx
add ebx, edi
mov edx, ebx
add edx, edx
imul edx, eax
mov eax, edx
call fcn.00403e9c
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x42e580
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041c25c
mov eax, edi
add eax, eax
add eax, esi
mov edx, ebx
call fcn.0041c338
mov eax, edi
add eax, eax
add esi, eax
jmp 0x42e577
add ebx, 2
add esi, 2
cmp word [ebx], 0
jne 0x42e571
add esi, 2
cmp word [ebx], 0
jne 0x42e550
mov word [esi], 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042f264
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00403eb8
mov eax, dword [ebp - 8]
mov word [eax], 0x2a
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
mov eax, dword [ebp - 8]
mov word [eax], 0
cmp esi, 0xffffffff
je 0x42e66c
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0041c338
test byte [ebp - 0x260], 0x10
je 0x42e651
mov edx, 0x42e678
lea eax, [ebp - 0x234]
call fcn.004151d8
test eax, eax
je 0x42e651
mov edx, 0x42e67c
lea eax, [ebp - 0x234]
call fcn.004151d8
test eax, eax
je 0x42e651
mov eax, dword [ebp - 8]
call fcn.0041c45c
mov ebx, eax
add ebx, 2
mov word [ebx], 0x5c
add ebx, 2
mov word [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042e4e8
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42e5dd
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438c18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x438c6a
test eax, edx
je 0x438c6d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x438c2d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x438c53
add ecx, 4
js 0x438c43
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x438c50
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x438c79
test edx, edx
jne 0x438c20
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x44a510
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x4564c8
test edx, edx
jne 0x44a52f
xor eax, eax
jmp 0x44a64d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x44a54c
push esi
push edx
push eax
call fcn.0044a654
add esp, 0xc
jmp 0x44a64d
push esi
push edx
push eax
call fcn.0044a914
add esp, 0xc
jmp 0x44a64d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44bd60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edx, eax
mov ecx, edx
mov ebx, dword [ecx + 0x3c]
add ebx, edx
mov edx, ebx
cmp word [ecx], 0x5a4d
jne 0x44bd89
cmp dword [edx], 0x4550
je 0x44bd90
mov eax, 1
jmp 0x44bddc
mov eax, edx
add eax, 0xf8
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
movzx esi, word [edx + 6]
dec esi
test esi, esi
jl 0x44bdbd
inc esi
mov edi, dword [eax + 0x14]
cmp ecx, edi
jae 0x44bdb7
mov ecx, edi
add edi, dword [eax + 0x10]
mov dword [ebp - 0xc], edi
add eax, 0x28
dec esi
jne 0x44bda8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
lea eax, [edx + 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44bde8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x44bdfd
add esp, 0xfffffff0
call fcn.00405858
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jbe 0x44bf30
cmp dword [ebp + 8], 0
jne 0x44be1d
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp + 8], eax
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x44be53
mov eax, ebx
call fcn.0044b8ac
mov ecx, 0x44bf60
mov dl, 1
mov eax, dword [0x44af2c]
call fcn.00419c1c
call fcn.00406154
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x44be8a
mov eax, ebx
call fcn.0044b8ac
mov ecx, 0x44bf88
mov dl, 1
mov eax, dword [0x44af2c]
call fcn.00419c1c
call fcn.00406154
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.0044bd60
test eax, eax
jne 0x44beac
cmp dword [ebp - 0xc], 0
jbe 0x44beac
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x44bed5
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x4034b51
jne 0x44bed1
mov ecx, eax
jmp 0x44bed5
inc eax
dec edx
jne 0x44bebd
test ecx, ecx
jge 0x44beff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x44beff
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x6054b51
jne 0x44befb
mov ecx, eax
jmp 0x44beff
inc eax
dec edx
jne 0x44bee7
test ecx, ecx
jge 0x44bf20
mov eax, ebx
call fcn.0044b8ac
mov ecx, 0x44bfb4
mov dl, 1
mov eax, dword [0x44af2c]
call fcn.00419c1c
call fcn.00406154
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, ebx
call fcn.0044b8fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bf47
call fcn.004058b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d1ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
lea edi, [esp + 8]
mov dword [esp + 0xc], 0x80000002
mov dword [esp + 0x10], 0x80000001
cmp byte [0x458586], 0
je 0x44d217
mov byte [0x458584], 1
mov ebp, 2
lea esi, [esp + 0xc]
push esp
push 0x44d3bc
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x44d3a6
xor eax, eax
mov dword [edi], eax
lea ebx, [esp + 0x18]
mov dword [esp + 4], 0x40
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d408
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d289
cmp dword [edi], 4
jne 0x44d274
cmp dword [ebx], 0
setne al
mov byte [0x45856e], al
jmp 0x44d289
cmp dword [edi], 1
jne 0x44d289
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x45856e], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d428
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d2cc
cmp dword [edi], 4
jne 0x44d2b7
cmp dword [ebx], 0
setne al
mov byte [0x458584], al
jmp 0x44d2cc
cmp dword [edi], 1
jne 0x44d2cc
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x458584], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d44c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d30f
cmp dword [edi], 4
jne 0x44d2fa
cmp dword [ebx], 0
setne al
mov byte [0x458585], al
jmp 0x44d30f
cmp dword [edi], 1
jne 0x44d30f
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x458585], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d470
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d356
cmp dword [edi], 4
jne 0x44d33b
movzx eax, word [ebx]
mov word [0x45858c], ax
jmp 0x44d356
cmp dword [edi], 1
jne 0x44d356
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x45858c], ax
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d48c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d39d
cmp dword [edi], 4
jne 0x44d382
movzx eax, word [ebx]
mov word [0x45858e], ax
jmp 0x44d39d
cmp dword [edi], 1
jne 0x44d39d
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x45858e], ax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esi, 4
dec ebp
jne 0x44d220
mov al, 1
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e2f8
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x471d90]
mov ecx, 0x40
call fcn.00404040
mov dword [0x471cdc], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x471cdc
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x44e326
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x471cdc]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0044e1a4
mov esi, eax
mov dword [ebx*4 + 0x471cdc], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0044e1a4
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x44e396
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x44e346
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret