joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b2c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a6a28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x4e52f4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
push 0x38
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0048a3e0
add esp, 0xc
mov dword [esp + 0x10], 0x3c
test ebx, ebx
je 0x44b30c
mov dword [esp + 0x14], 0x40
mov edi, dword [esi]
mov ecx, esi
call fcn.00446770
test al, al
je 0x44b31c
add edi, 8
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
xor ecx, ecx
cmp byte [esp + 0x60], cl
mov dword [esp + 0x20], edi
sete cl
mov dword [esp + 0x1c], 0x4bdc34
mov dword [esp + 0x2c], ecx
cmp dword [eax - 0xc], 0
je 0x44b345
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
call fcn.004456a0
add esp, 4
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x44b3ad
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44b399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret
test ebx, ebx
je 0x44b3ce
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44b3ce
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x48]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44b3f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret
Function at 0x44c000
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4abd71
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4e52f4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e52f4]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x444]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x43c], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x3ff
lea ecx, [esp + 0x38]
push ecx
push edi
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x44c0be
lea edx, [esp + 0x2c]
push edx
mov byte [esp + eax + 0x30], bl
call fcn.0044c9e0
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x3ff
lea ecx, [esp + 0x38]
push ecx
push edi
call ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x44c095
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
cmp eax, 2
jl 0x44c15d
lea ecx, [eax - 2]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0042927c
mov byte [esp + 0x43c], 1
mov ecx, dword [eax]
mov ebp, dword [esi]
lea eax, [ecx - 0x10]
sub ebp, 0x10
cmp eax, ebp
je 0x44c136
cmp dword [ebp + 0xc], ebx
jl 0x44c12a
mov edx, dword [eax]
cmp edx, dword [ebp]
jne 0x44c12a
call fcn.0040a331
mov dword [esp + 0x20], eax
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44c11f
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x44c136
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov eax, esi
call fcn.0040a6dc
mov byte [esp + 0x43c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44c15d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x43c], 0xffffffff
cmp edi, ebx
je 0x44c177
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00489b1b
add esp, 0x42c
ret
Function at 0x44d320
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a7a68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x4e52f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [0x4e8c08], ebx
je 0x44d3c5
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], ebx
call fcn.00443d40
add esp, 4
mov dword [esp + 0x34], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [edi + 0x14]
jb 0x44d374
mov eax, dword [eax + 4]
jmp 0x44d377
add eax, 4
mov edx, dword [0x4e8c08]
push ebx
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x44d3a8
mov eax, dword [esp + 0x14]
push eax
call fcn.00489b10
add esp, 4
mov ecx, dword [0x4e8c08]
push ecx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x44de89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0xc], 0
push edi
mov eax, esi
je 0x44dea2
mov eax, 0x101
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x24], 0xffffffff
push 0x14
pop edi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
call fcn.00489008
or dword [ebp - 0x1c], 0xffffffff
mov ebx, eax
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], edi
call fcn.00489008
pop ecx
pop ecx
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
call fcn.00444bd0
push edi
call fcn.00489008
and dword [ebp + 0xc], 0
cmp dword [ebp - 0xc], 0
pop ecx
mov dword [ebp - 0x18], eax
jne 0x44dfd0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0xc], eax
cmp eax, 0xea
jne 0x44df76
lea esi, [ebp - 0x24]
call fcn.00444bd0
push dword [ebp - 8]
call fcn.00489008
mov ebx, eax
pop ecx
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call fcn.00444bd0
push dword [ebp - 4]
call fcn.00489008
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call edi
cmp byte [ebx], 0
je 0x44df99
mov esi, str.InstallLanguage
mov eax, ebx
sub esi, ebx
mov cl, byte [esi + eax]
test cl, cl
je 0x44df99
mov dl, byte [eax]
cmp dl, cl
jl 0x44dfc3
jg 0x44dfc3
inc eax
cmp byte [eax], 0
jne 0x44df84
mov ebx, dword [ebp - 0x18]
or dword [ebp + 0xc], 0xffffffff
lea eax, [ebp + 0xc]
push eax
call fcn.00444c10
pop ecx
mov edi, eax
lea esi, [ebp - 0x1c]
call fcn.00444bd0
lea esi, [ebp - 0x24]
call fcn.00444bd0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0xc]
cmp dword [ebp - 0xc], 0
je 0x44df10
xor edi, edi
jmp 0x44dfac
Function at 0x44fbc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e52f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test byte [esi + 0x64], 1
jne 0x44fbdd
xor al, al
jmp 0x44fc50
push edi
call fcn.00450805
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x44fc1b
test ecx, ecx
jge 0x44fbfd
push 0x80070057
call fcn.00403da7
cmp word [eax], 0x5c
jne 0x44fc1f
cmp ecx, 1
jl 0x44fbf3
cmp word [eax + 2], 0x5c
jne 0x44fc1f
cmp ecx, 2
jl 0x44fbf3
cmp word [eax + 4], 0x5c
je 0x44fc1f
xor al, al
jmp 0x44fc4f
xor esi, esi
test esi, esi
jl 0x44fbf3
mov ecx, esi
mov eax, edi
call fcn.004445d0
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x44fc21
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00489b1b
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ebx
call fcn.00450805
lea esi, [ebp - 4]
mov edi, eax
call fcn.004452e0
push 0x5c
mov esi, edi
call fcn.0043406b
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00434089
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00434240
lea ecx, [ebp - 0xc]
call fcn.00403d84
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44fcbe
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
xor esi, esi
push esi
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44fcd7
inc esi
mov dword [ebx + 0xc], esi
jmp 0x44fd2c
lea eax, [ebp - 8]
push eax
call fcn.00403dfc
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push dword [edi]
push dword [ebp - 4]
push str.__s___OriginalPath:__s__s
push eax
call fcn.004399be
add esp, 0x14
lea eax, [ebx + 0x114]
call fcn.004575f4
push esi
lea eax, [ebp - 4]
push 0x20
push eax
xor edi, edi
lea ecx, [ebp - 8]
call fcn.0044b130
add esp, 0xc
test al, al
jne 0x44fd24
xor esi, esi
inc esi
mov dword [ebx + 0xc], esi
lea ecx, [ebp - 8]
call fcn.00403d84
lea ecx, [ebp - 4]
call fcn.00403d84
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x450703
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
push edi
lea eax, [esi + 0x114]
call fcn.004575f4
push str._SystemFolder_msiexec.exe
lea eax, [ebp - 8]
push eax
call fcn.00412ade
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004579fc
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00403d84
cmp dword [esi + 4], 0
je 0x450750
call fcn.00450805
lea edi, [ebp - 4]
call fcn.004085dd
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 4]
push 0x20
push eax
lea edi, [ebp - 0xc]
call fcn.0044b130
add esp, 0xc
push 0x4e8c28
mov byte [ebp + 0xb], al
call fcn.0045833f
cmp byte [ebp + 0xb], 0
jne 0x4507e4
cmp byte [0x4e69e0], 0
lea eax, [ebp + 8]
push eax
je 0x4507a6
call fcn.00403dfc
push 0x83
lea eax, [ebp + 8]
push eax
call fcn.00412a99
push 0
lea eax, [ebp + 8]
call fcn.004581fb
pop ecx
jmp 0x4507c2
call fcn.00403dfc
push 0x83
lea eax, [ebp + 8]
push eax
call fcn.00412a99
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp + 8]
call fcn.00403d84
push 7
mov dword [esi + 0xc], 1
pop esi
lea ecx, [ebp - 4]
call fcn.00403d84
pop edi
mov eax, esi
pop esi
leave
ret 4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
xor esi, esi
jmp 0x4507d4

Function at 0x452105
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov edi, eax
cmp byte [edi + 0xac], 0
mov dword [edi], 0x4c4230
je 0x45219c
cmp dword [edi + 0x78], 3
je 0x45214d
call fcn.0045303f
mov eax, dword [edi + 0x78]
cmp eax, 2
je 0x45214d
cmp eax, 1
je 0x45214d
mov eax, dword [edi + 0x40]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x452148
shr eax, 6
test al, 1
je 0x45214d
call fcn.004526ad
push ebx
mov ebx, dword [edi + 0x94]
xor esi, esi
test ebx, ebx
jle 0x452178
push ebp
lea ebp, [edi + 0x90]
mov eax, esi
mov ecx, ebp
call fcn.00453edc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, ebx
jl 0x452161
pop ebp
mov esi, dword [edi + 0xa0]
dec esi
js 0x45219b
lea ebx, [edi + 0x9c]
mov eax, esi
mov ecx, ebx
call fcn.00453edc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec esi
jns 0x452187
pop ebx
lea ecx, [edi + 0xb0]
call fcn.00403d84
lea ecx, [edi + 0xa8]
call fcn.00403d84
lea esi, [edi + 0x9c]
call fcn.00435371
lea esi, [edi + 0x90]
call fcn.00435371
lea esi, [edi + 0x84]
call fcn.00453f93
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4521e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x6c], 0
lea esi, [edi + 0x60]
call fcn.00453f59
lea ecx, [edi + 0x5c]
call fcn.00403d84
lea ecx, [edi + 0x58]
call fcn.00403d84
lea ecx, [edi + 0x54]
call fcn.00403d84
lea ecx, [edi + 0x50]
pop edi
pop esi
jmp fcn.00403d84
Function at 0x4526ad
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00419e44
mov eax, dword [edi + 0x40]
xor edx, edx
inc edx
test dl, al
jne 0x4526fe
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.00452c47
lea ecx, [edi + 0x60]
call fcn.00453e26
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x452746
shr eax, 6
test dl, al
je 0x452762
lea esi, [ebp - 8]
mov ecx, edi
call fcn.00453cf1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00434240
mov ecx, esi
call fcn.00403d84
lea eax, [ebp - 4]
call fcn.004452a0
push 6
mov eax, edi
call fcn.00452c8b
lea ecx, [edi + 0x84]
call fcn.00453ebb
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.004456a0
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00434240
lea ecx, [ebp - 8]
call fcn.00403d84
lea eax, [ebp - 4]
push eax
call fcn.00445a10
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.00403d84
xor eax, eax
pop esi
leave
ret
Function at 0x45303f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x40]
sub esp, 0x10
test al, 1
je 0x453057
shr eax, 6
test al, 1
je 0x45310d
mov eax, dword [edi + 0x64]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x45310d
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x60]
call fcn.00453e26
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x4530fc
mov eax, dword [esi]
cmp eax, 1
je 0x453097
cmp eax, 3
je 0x453097
cmp eax, 0x64
jb 0x4530af
cmp dword [edi + 0x78], 2
jne 0x4530af
jmp 0x4530fc
mov eax, dword [edi + 0x78]
cmp eax, 4
je 0x4530af
cmp eax, 2
je 0x4530fc
cmp eax, 1
je 0x4530fc
test byte [esi + 8], 1
jne 0x4530fc
lea ebx, [edi + 0x58]
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00419e44
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.00434240
lea esi, [ebp - 4]
call fcn.0040808a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004456a0
pop ecx
push eax
call fcn.00445e70
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00403d84
mov ecx, esi
call fcn.00403d84
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x45306b
pop esi
pop ebx
leave
ret
Function at 0x45310f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x400
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044cc40
test al, al
jne 0x453145
push 3
pop esi
push dword [ebp - 4]
call fcn.00489beb
pop ecx
mov eax, esi
jmp 0x45326a
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
inc dword [ebp - 0xc]
add dword [ebp - 8], edi
add dword [ebp - 0x10], 0xa
cmp dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
jle 0x453167
sub eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x6c]
push 2
push ebx
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4531e8
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45325e
cmp dword [ebp - 0x14], edi
jne 0x45325e
xor eax, eax
jmp 0x4531a9
xor ebx, ebx
mov ecx, dword [ebp - 4]
xor edx, edx
add ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx + str.ADVINSTSFX]
jne 0x4531c1
inc edx
inc ecx
cmp edx, 0xa
jl 0x4531b0
cmp edx, 0xa
jne 0x4531d4
mov ecx, dword [ebp - 0x1c]
lea ebx, [eax + ecx - 0x40]
mov dword [ebp - 0x18], ebx
add eax, edx
jmp 0x4531d7
mov ebx, dword [ebp - 0x18]
inc eax
cmp eax, 0x3f6
jb 0x4531a7
test ebx, ebx
jne 0x4531ef
jmp 0x453151
push 2
jmp 0x453134
mov eax, dword [esi + 0x6c]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4531e8
mov eax, dword [esi + 0x6c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x4c
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4531e8
cmp dword [ebp - 0x14], 0
je 0x4531e8
xor eax, eax
movzx ecx, byte [esi + eax + 0x44]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x453257
inc eax
cmp eax, 0xa
jl 0x453225
cmp dword [esi + 0x10], 0x64
jne 0x453257
sub ebx, dword [esi + 0x14]
push dword [ebp - 4]
mov dword [esi + 0x80], ebx
call fcn.00489beb
pop ecx
xor eax, eax
jmp 0x45326a
push 5
jmp 0x453134
push dword [ebp - 4]
call fcn.00489beb
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45326f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
jne 0x453285
xor eax, eax
jmp 0x453397
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x6c]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4532a8
push 2
pop eax
jmp 0x453397
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403dfc
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0xc], ebx
jbe 0x453384
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x453381
cmp dword [ebp - 0xc], ebx
je 0x453381
cmp dword [ebp - 4], ebx
je 0x45330e
push dword [ebp - 4]
call fcn.00489beb
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.00453d31
test al, al
je 0x45337d
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x453381
cmp dword [ebp - 0xc], ebx
je 0x453381
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x2c]
lea ebx, [esi + 0x60]
push eax
call fcn.00453d8c
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.00453e26
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.0040a759
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [esi + 0xc]
jb 0x4532db
jmp 0x453384
push 3
jmp 0x453383
push 2
pop ebx
push dword [ebp - 4]
call fcn.00489beb
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00403d84
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x45339b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x88], esi
jle 0x4533b4
xor eax, eax
jmp 0x4534c2
mov ecx, dword [edi + 0x80]
add ecx, dword [edi + 8]
mov eax, dword [edi + 0x6c]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4533d7
push 2
pop eax
jmp 0x4534c2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 4], esi
jbe 0x4534b7
mov eax, dword [edi + 0x6c]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x4534b4
cmp dword [ebp - 8], esi
je 0x4534b4
lea eax, [ebp - 0x1c]
push eax
call fcn.00403dfc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x453434
push dword [ebp - 4]
call fcn.00489beb
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.00453d31
test al, al
je 0x4534a0
mov eax, dword [edi + 0x6c]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x4534ac
cmp dword [ebp - 8], esi
je 0x4534ac
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a759
lea esi, [edi + 0x84]
lea ebx, [ebp - 0x1c]
call fcn.00453e47
mov ecx, ebx
call fcn.00403d84
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 4]
jb 0x4533ec
jmp 0x4534b7
lea ecx, [ebp - 0x1c]
call fcn.00403d84
push 3
jmp 0x4534b6
lea ecx, [ebp - 0x1c]
call fcn.00403d84
push 2
pop esi
push dword [ebp - 4]
call fcn.00489beb
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x454460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00403dfc
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x4bc7c4
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0043905e
push esi
lea esi, [ebp - 4]
call fcn.0040808a
push eax
push 2
push ebx
call edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push str._d__s
push dword [ebp + 8]
call fcn.004399be
add esp, 0x10
mov ecx, esi
call fcn.00403d84
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x454f75
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4e52f4]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455005
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00412ade
lea ebx, [ebp - 0x7c]
call fcn.00444960
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.00403d84
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x454fc2
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.00489b1b
add ebp, 0x19c
leave
ret 4

Function at 0x45501e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x455080
push dword [ebp - 4]
call fcn.00403cef
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.0040808a
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00403d37
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret