joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eaf6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004139c0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jne 0x40eb4d
cmp dword [ebp - 0x90], 2
jne 0x40eb4d
xor eax, eax
inc eax
jmp 0x40eb4f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f3b
leave
ret

Function at 0x40eb5b
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msi.dll
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x804]
push eax
push esi
push ebx
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ebfd
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x428390
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ebfd
mov edx, dword [ebp - 0x808]
mov ecx, dword [edx + 8]
mov eax, 0x20000
cmp ecx, eax
ja 0x40ebf4
jne 0x40ebfd
cmp dword [edx + 0xc], 0xa280000
jb 0x40ebfd
xor ebx, ebx
inc ebx
test edi, edi
je 0x40ebfd
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00413f3b
leave
ret

Function at 0x40ec0e
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
call fcn.0040eaf6
test eax, eax
je 0x40ec2e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
inc esi
jmp 0x40ec7c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ec8a
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push str.InstallerLocation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ec6f
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ec8a
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop esi
leave
ret
Function at 0x40ec8f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push esi
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x400
push edi
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call fcn.00413eb0
push dword [ebp + 8]
mov ebx, eax
call fcn.00413eb0
pop ecx
pop ecx
lea eax, [ebx + eax + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push edi
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push str.Error
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40ed15
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x40ed3b
xor eax, eax
jmp 0x40ede3
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40ed86
push str.Installer_:_Wrapper.CreateFile
call fcn.0040ec8f
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x40edc4
mov edi, 0x2000
mov eax, ebx
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
cmp eax, edi
jbe 0x40eda0
mov eax, edi
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40edd9
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jb 0x40ed92
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test eax, eax
jne 0x40ede0
push str.Installer_:_Wrapper.CloseHandle
jmp 0x40ed81
push str.Installer_:_Wrapper.WriteFile__In_small_chunks_
jmp 0x40ed81
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x40ede7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREJavaSoftAuto_Update
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ee33
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push str.AUVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ee33
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40eeaf
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x27]
push ebx
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
call fcn.004139c0
lea eax, [ebp - 0x28]
push 0x400
push eax
call fcn.0040ec0e
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004139c0
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004139c0
add esp, 0x2c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.__x_4A03706F_666A_4037_7777_5F2748764D10__qn
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebx
test eax, eax
je 0x40ef54
push dword [ebp - 0x3c]
call fcn.0040135a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ef5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x3d8]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00413f3b
add ebp, 0x3dc
leave
ret
call fcn.0040ee41
test eax, eax
je 0x40f6df
jmp 0x40eeaf
xor eax, eax
ret

Function at 0x40f107
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40f177
cmp dword [ebp + 0x10], 0
push dword [ebp + 8]
je 0x40f131
push 0x40f0de
jmp 0x40f136
push 0x40f0af
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
test eax, eax
je 0x40f16a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push edi
call esi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
jmp 0x40f16d
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x40f17c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
ret
Function at 0x40f44b
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7b4]
sub esp, 0x834
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x7b0], eax
mov eax, dword [ebp + 0x7c0]
and dword [ebp - 0x74], 0
push ebx
mov ebx, dword [ebp + 0x7bc]
push esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x7c8]
push edi
mov edi, dword [ebp + 0x7c4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7cc]
mov esi, 0x40f
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.004139c0
push esi
lea eax, [ebp + 0x3a1]
push 0
push eax
mov byte [ebp + 0x3a0], 0
call fcn.004139c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [ebp - 0x78]
mov edi, 0x429060
push ebx
lea eax, [ebp - 0x70]
push edi
push eax
call esi
push dword [ebp - 0x7c]
lea eax, [ebp + 0x3a0]
push dword [ebp - 0x78]
push ebx
push edi
push eax
call esi
add esp, 0x40
xor esi, esi
inc esi
push esi
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40f53d
push str.___MoveFile:_MoveFile___failed__trying_MoveFileOnReboot__.
call fcn.0040cb43
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040f18d
add esp, 0xc
test eax, eax
je 0x40f52b
mov eax, dword [ebp - 0x80]
mov dword [eax], esi
jmp 0x40f53d
push str.___MoveFile:_MoveFileOnReboot___failed.
call fcn.0040cb43
pop ecx
mov dword [ebp - 0x74], 0x65b
mov ecx, dword [ebp + 0x7b0]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x7b4
leave
ret

Function at 0x40f558
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
xor ebx, ebx
call fcn.004139c0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.004139c0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40f5ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40f5bd
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f5c3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40f642
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40f637
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00421ade
pop ecx
pop ecx
test eax, eax
jne 0x40f62a
push dword [ebp + 0xc]
push 0x1388
push dword [ebp - 0x124]
call fcn.0040f107
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f604
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00413f3b
leave
ret

Function at 0x40f652
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f68a
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40f6aa
Capabilities:
Create process on windows

Disassembly:
push str.Restart_IE
call fcn.0040cb43
pop ecx
push 1
push 0
push str.http:__java.com_verify
push str.iexplore
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x40fe03
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0040bfd3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
xor ebp, ebp
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._sSun_
push esi
call edi
add esp, 0xc
push ebp
push esi
call ebx
push esi
push str._sJava_
push esi
call edi
add esp, 0xc
push ebp
push esi
call ebx
cmp dword [esp + 0x18], ebp
push str.1.7.0
mov ebp, 0x427988
push ebp
push esi
je 0x40fe5d
push str._s_s_s_x64
jmp 0x40fe62
push str._s_s_s
push esi
call edi
add esp, 0x14
push 0
push esi
call ebx
push str.1.7.0
push ebp
push esi
push str._s_s_s.msi
push esi
call edi
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x410018
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x3fc
cmp word [esp + 8], ax
jne 0x410056
push esi
push 0x100
lea esi, [ecx + 0x434]
push esi
push 0x7f4
push dword [0x433018]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10

Function at 0x41005b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x3ff
cmp word [esp + 8], ax
jne 0x410099
push esi
push 0x100
lea esi, [ecx + 0x434]
push esi
push 0x7f3
push dword [0x433018]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10
Function at 0x41012e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x290]
sub esp, 0x310
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push ebx
push esi
push edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x73]
push ebx
push eax
mov dword [ebp - 0x80], ecx
mov byte [ebp - 0x74], bl
call fcn.004139c0
push esi
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call fcn.004139c0
push esi
lea eax, [ebp + 0x18d]
push ebx
push eax
mov byte [ebp + 0x18c], bl
call fcn.004139c0
add esp, 0x24
lea edi, [esi + 1]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
lea eax, [ebp - 0x74]
push eax
push 0x7fa
push dword [0x43301c]
call esi
push edi
lea eax, [ebp + 0x8c]
push eax
push 0x7fb
push dword [0x43301c]
call esi
push str.1.7.0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp - 0x80]
add esp, 0xc
push 0x134
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x18c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x41026a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, str.decline
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 1
push ebx
push str.InstallStatus
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, esi
call fcn.0041009e
movzx eax, word [ebp + 0x29c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp + 0x28c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00413f3b
add ebp, 0x290
leave
ret 0x10

Function at 0x410c6f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0xbe1
cmp word [esp + 8], ax
jne 0x410cad
push esi
push 0x100
lea esi, [ecx + 0x440]
push esi
push 0x80f
push dword [0x433018]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10
Function at 0x411908
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0xd4], eax
mov eax, dword [ebp + 0xe4]
push ebx
push esi
mov esi, dword [ebp + 0xe0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x429408]
fld qword [0x429400]
fdiv st(1), st(0)
fxch st(1)
call fcn.00417660
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xe8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.00417660
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
push ecx
push ecx
fstp qword [esp]
call fcn.00417521
fdiv qword [0x4293f8]
pop ecx
pop ecx
fadd qword [0x4293f0]
call fcn.00417660
neg eax
cmp dword [ebp + 0xf0], ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xec]
mov dword [ebp - 0x58], eax
setne al
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 0x53], al
push 0x100
lea eax, [ebp - 0x2c]
push eax
push 0x1002
push 0x800
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push str.Japan
push eax
call fcn.004164d5
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x411a53
push dword [ebp - 0x78]
jmp 0x411a58
push str.MS_UI_Gothic
push eax
call fcn.00413a40
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xd4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0xd8
leave
ret 0x14
Function at 0x411ed4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xd5e5e7
mov esi, ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
xor edi, edi
push 0xfa5
push dword [esi + 4]
mov dword [esi + 0x868], eax
mov dword [esi + 0x834], edi
mov dword [esi + 0x85c], edi
mov dword [esi + 0x854], edi
mov dword [esi + 0x858], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffff
push edi
push 0x2001
push eax
mov dword [ebp - 4], eax
call ebx
push 0x32cd32
push edi
push 0x409
push dword [ebp - 4]
call ebx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x411bc7
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x412a7a
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
mov eax, dword [ebp + 0x3e4]
push ebx
push esi
mov esi, dword [ebp + 0x3e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x429408]
fld qword [0x429400]
fdiv st(1), st(0)
fxch st(1)
call fcn.00417660
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.00417660
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
push ecx
push ecx
fstp qword [esp]
call fcn.00417521
fdiv qword [0x4293f8]
fadd qword [0x4293f0]
call fcn.00417660
neg eax
cmp dword [ebp + 0x3f0], ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3ec]
mov dword [ebp - 0x58], eax
setne al
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 0x53], al
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
push 0x3ff
lea eax, [ebp - 0x2b]
push ebx
push eax
mov byte [ebp - 0x2c], bl
call fcn.004139c0
add esp, 0x14
push 0x400
lea eax, [ebp - 0x2c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push str.Japan
push eax
call fcn.004164d5
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x412bd8
push dword [ebp - 0x78]
jmp 0x412bdd
push str.MS_UI_Gothic
push eax
call fcn.00413a40
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x3d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x3d8
leave
ret 0x14