joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x163a368a
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, str._aca
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x63470bd1
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402850
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, dword [esp + 0x114]
mov esi, ecx
push edi
push str.Current_Script
call fcn.00401780
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00401db0
mov byte [eax - 1], 0
lea eax, [esp + 0xc]
push eax
push str.Currentdir
mov ecx, esi
call fcn.00401780
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
add esp, 0x108
ret 4

Function at 0x402d10
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x88
push esi
mov esi, dword [esp + 0x90]
push edi
lea eax, [esp + 8]
push 0x4000
push eax
push esi
mov edi, ecx
mov byte [esp + 0x14], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x402d5e
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
mov ecx, edi
call fcn.00402c30
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 4

Function at 0x402ef0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push esi
mov esi, ecx
lea edx, [esp + 8]
push edi
mov dword [esp + 8], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402f0b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00401db0
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402fa7
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
je 0x402f9f
lea eax, [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x264]
sub esi, eax
lea eax, [esp + 0x144]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x402f6b
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call ebx
cmp eax, 0x12
jne 0x402f64
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
add esp, 0x248
ret 0xc
Function at 0x403a00
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x4079db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebp
mov ebp, ecx
push esi
mov dword [esp + 8], ebp
push str.set_UninstallFilessysdir.nvu
mov dword [esp + 0x498], 0
call fcn.00401e90
push str.UninstallFiles
mov ecx, ebp
call fcn.00401670
push eax
mov ecx, ebp
call fcn.00403c00
test eax, eax
jne 0x403aa1
mov al, byte [ebp + 0x5e5]
test al, al
je 0x403aa1
mov ecx, dword [ebp + 0x550]
lea eax, [esp + 0xc]
push 0x80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.00404160
push str.set_Current_File
mov ecx, ebp
call fcn.00401e90
push str.DirAndApply_sysdir_nvu.exe_del_Current_File
mov ecx, ebp
call fcn.00401e90
push str.Delreg_NVUninst_RegKey
mov ecx, ebp
call fcn.00401e90
push str.ForceNoReboot
mov ecx, ebp
call fcn.00401670
mov cl, byte [ebp + 0x5e4]
test cl, cl
je 0x403bb9
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
test eax, eax
je 0x403ad8
push 0x40aa64
push eax
call esi
add esp, 8
test eax, eax
je 0x403bb9
push str.Silent
mov ecx, ebp
call fcn.00401670
test eax, eax
je 0x403afb
push 0x40aa64
push eax
call esi
add esp, 8
test eax, eax
je 0x403ba1
push str.Two_Reboot_Required
mov ecx, ebp
call fcn.00401670
test eax, eax
je 0x403b36
push 0x40aa64
push eax
call esi
add esp, 8
test eax, eax
jne 0x403b36
push 0xa
mov ecx, ebp
call fcn.00401520
lea edx, [esp + 0x8c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403b2a
jmp 0x403b3e
mov byte [esp + 0x8c], 0
push edi
push 2
mov ecx, ebp
call fcn.00401520
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40024
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x54c]
mov ecx, edx
mov edx, dword [ebp + 0x558]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x94]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
pop edi
jne 0x403bb9
push 1
push str.SeShutdownPrivilege
mov ecx, ebp
call fcn.00403980
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, ebp
mov dword [esp + 0x494], 0xffffffff
call fcn.004015f0
mov ecx, dword [esp + 0x48c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x490
ret
Function at 0x403c30
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x403c54
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403ca9
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x40c28c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403ca9
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 8]
cmp eax, ecx
jb 0x403ca9
jne 0x403cab
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x403cab
mov bl, 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x404160
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push edi
jne 0x404180
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret 4
mov ecx, esi
call fcn.00404320
test al, al
jne 0x404192
pop edi
xor eax, eax
pop esi
ret 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4041cc
push eax
push edi
mov ecx, esi
call fcn.00404360
mov dl, byte [esi + 0x5e4]
pop edi
or dl, al
mov al, dl
mov byte [esi + 0x5e4], dl
and eax, 0xff
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4045f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebx
push ebp
lea edx, [esp + 0x1c]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404611
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
mov ax, word [0x40c28c]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x130]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12c]
push 0xf003f
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40472e
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404723
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404723
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, 0x80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x28]
dec eax
push edx
push eax
push ecx
mov dword [esp + 0x38], ebp
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
push edi
mov ecx, ebx
call fcn.004045f0
test eax, eax
jne 0x404718
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x4046c3
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x404740
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0xf003f
push 0
mov esi, 1
push ebx
push ebp
mov edi, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4047c7
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4047b8
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4047b8
push esi
push ebx
push ebp
mov ecx, edi
call fcn.004045f0
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4047b8
xor esi, esi
jmp 0x4047bc
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404b60
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
mov esi, ecx
push edi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x404c96
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x404c6d
lea ecx, [esp + 0x18]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x404c26
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
mov eax, dword [esp + 0x20]
dec ebx
cmp eax, 1
je 0x404bf8
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x404bf1
test ebx, ebx
jne 0x404bd3
cmp dword [esp + 0x20], 1
jne 0x404c01
push 0x3e8
call edi
jmp 0x404c22
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.00401520
push eax
push str.Error:
push ebx
call fcn.004024b0
add esp, 0x10
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebp
jne 0x404c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x404c52
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x404c82
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00402530
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x4072f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4073a2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40739b
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x360]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x138]
push 0x224
push ecx
push edx
mov ecx, ebx
call fcn.00407250
test eax, eax
je 0x40738c
lea eax, [esp + 0x158]
push eax
push edi
call ebp
add esp, 8
test eax, eax
je 0x4073b1
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40735d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 4

Function at 0x4073d0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.004072f0
test eax, eax
je 0x407409
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.004073d0
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x46de10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x881bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
mov dword [ebp - 0x134], 0
movzx eax, byte [0xba3798]
test eax, eax
jne 0x46df68
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x46dead
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ecx
push 0xb69d6c
lea edx, [ebp - 0x13c]
push edx
call fcn.0083d8fb
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.0046fb80
mov dword [ebp - 4], 0
push 0x8a168c
lea ecx, [ebp - 0x130]
push ecx
call fcn.0046e110
add esp, 8
cmp dword [ebp - 0x118], 0x10
jb 0x46def1
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x1d8], edx
jmp 0x46defd
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.0046e370
add esp, 4
push str.Temp
lea edx, [ebp - 0x130]
push edx
call fcn.0046e110
add esp, 8
cmp dword [ebp - 0x118], 0x10
jb 0x46df37
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x1dc], eax
jmp 0x46df43
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x1dc], ecx
mov edx, dword [ebp - 0x1dc]
push edx
call fcn.0046dd90
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.0041ccf0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0041ccf0
mov eax, dword [0x892260]
push eax
push 0
push 0xba37a0
mov ecx, dword [ebp + 8]
call fcn.0041cbc0
mov ecx, dword [ebp - 0x134]
or ecx, 1
mov dword [ebp - 0x134], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46efc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x881c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x68]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x68]
add ecx, 4
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x46f02b
cmp dword [ebp - 0x14], 0
jne 0x46f06e
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.ReadTile_bad_dimensions:__d__d__n
push 0
call fcn.00476e30
add esp, 0x10
xor ecx, ecx
jne 0x46f06e
mov dword [ebp - 0x40], 0xffffff94
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
push 0xb69d6c
lea ecx, [ebp - 0x38]
push ecx
call fcn.0083d8fb
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x69], al
mov cl, byte [ebp - 0x69]
mov byte [ebp - 0x51], cl
movzx edx, byte [ebp - 0x51]
test edx, edx
jne 0x46f0be
mov dword [ebp - 0x50], 0xffffff94
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
push 0xb69d6c
lea edx, [ebp - 0x48]
push edx
call fcn.0083d8fb
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46f104
mov dword [ebp - 0x64], 0xffffff94
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], eax
push 0xb69d6c
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0083d8fb
mov dword [ebp - 0x24], 0
jmp 0x46f116
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jge 0x46f151
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
imul edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
add edx, dword [eax + 4]
push edx
call fcn.0083f0f0
add esp, 0xc
jmp 0x46f10d
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 0x19], 1
jmp 0x46f17d
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4729a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
movzx eax, byte [0xba37c1]
test eax, eax
je 0x4729c1
mov dword [ebp - 0x14], 0x8a22d8
jmp 0x4729c8
mov dword [ebp - 0x14], 0x8a2304
lea ecx, [ebp - 4]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x14]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x472a10
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x472a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [0xba37c1]
test eax, eax
je 0x472a3a
mov dword [ebp - 8], 0x8a232c
jmp 0x472a41
mov dword [ebp - 8], 0x8a2358
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 2
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x472a86
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x472a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x881d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x100
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
call fcn.00489940
movzx eax, byte [0xba37c1]
test eax, eax
je 0x472ad4
mov dword [ebp - 0x10c], 0x8a2380
jmp 0x472ade
mov dword [ebp - 0x10c], 0x8a23ac
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x10c]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x472c03
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x1c], 0
jbe 0x472bf9
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
shr ecx, 2
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00822266
add esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x472b87
mov dword [ebp - 0x30], 0xffffffff
push 0xb69a64
lea edx, [ebp - 0x30]
push edx
call fcn.0083d8fb
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28], 0
jmp 0x472bb5
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jge 0x472bd1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx*4]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00469780
jmp 0x472bac
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0082225b
add esp, 4
jmp 0x472bf2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret