joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040608c
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x4057e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x405803
mov eax, 0
jmp 0x405847
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x405826
mov eax, 0
jmp 0x405847
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x405842
mov eax, 0
jmp 0x405847
mov eax, 1
leave
ret

Function at 0x405849
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4058a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4058a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4058a0
mov eax, dword [ebp - 4]
jmp 0x4058bc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40587d
mov eax, 0
leave
ret
Function at 0x108b5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108b51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108b507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b506a
add dl, dl
jne 0x108b5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b50dc
xor eax, eax
add dl, dl
jne 0x108b5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b517d
add dl, dl
jne 0x108b50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108b50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108b5075
mov eax, 1
add dl, dl
jne 0x108b50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b50e1
sub eax, ebx
mov ebx, 1
jne 0x108b5128
mov ecx, 1
add dl, dl
jne 0x108b510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108b513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b5136
cmp eax, 0x7d00
jae 0x108b516d
cmp eax, 0x500
jb 0x108b5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b5075
cmp eax, 0x7f
ja 0x108b5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108b519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108b5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4015d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x40a01c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push 0x18e
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x401627
push 0xd
mov ecx, str.d:BRincmytcp.h
call fcn.004011b0
add esp, 4
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00406056
add esp, 0x1a0
ret

Function at 0x401c50
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401caf
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str.Backupper_Service_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
call fcn.00404e00
push edi
call fcn.00401af0
lea esi, [esp + 8]
call fcn.00401530
mov ecx, dword [esp + 0xc]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x2710
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3b
jne 0x401d01
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x402c10
call fcn.00404290
push edi
push 0x402500
call fcn.00404290
push edi
push 0x403050
call fcn.00404290
push edi
push 0x401d60
call fcn.00404290
push edi
push 0x401f90
call fcn.00404290
add esp, 0x28
push edi
call fcn.004037c0
lea ecx, [edi + 0x8e0]
call fcn.00405110
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x404610
Capabilities:
Connect socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x40a01c]
xor eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
cmp edi, 0xffffffff
setne cl
push esi
mov word [esp + 4], ax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov esi, ecx
cmp esi, eax
jne 0x404649
push 0x65
jmp 0x404685
push 0x179d
mov word [esp + 8], 2
call sub.WS2_32.dll_htons
push str.127.0.0.1
mov word [esp + 0xa], ax
call sub.WS2_32.dll_inet_addr
push 0x10
lea edx, [esp + 8]
push edx
push edi
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_connect
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x404692
push 0x6c
mov ecx, str.d:BRincmytcp.h
call fcn.00404540
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00406056
add esp, 0x18
ret
Function at 0x4048f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x47c
mov eax, dword [0x40a01c]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
mov ebp, dword [esp + 0x488]
or eax, 0xffffffff
push esi
push 0x206
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x27e]
push 0
push eax
mov word [esp + 0x284], 0
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x82]
push 0
push ecx
mov word [esp + 0x88], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
lea ebx, [esp + 0x70]
call fcn.004046b0
test eax, eax
jne 0x404980
push 0x80
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
jmp 0x404af5
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x27c]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x407cd0
lea ecx, [esp + 0x288]
push 0x104
push ecx
call esi
push str.ABCore.exe
lea edx, [esp + 0x294]
push 0x104
push edx
call esi
push 0x44
lea eax, [esp + 0x50]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0x30
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
push 2
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404a20
push 0x89
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
jmp 0x404af5
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x404a56
push 0x8a
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
jmp 0x404af5
push 0x208
lea ecx, [esp + 0x74]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
test ebp, ebp
je 0x404a8c
push ebp
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x78]
push 0x407cd4
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
jmp 0x404aa7
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x74]
push 0x407ce0
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea edx, [esp + 0x90]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x404aed
push 0x9e
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
jmp 0x404af5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404b0f
push eax
call esi
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x404b1b
push eax
call esi
mov ecx, dword [esp + 0x484]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406056
add esp, 0x47c
ret
Function at 0x404d10
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ecx
xor eax, eax
test ebx, ebx
setne al
push esi
mov dword [esp + 4], 0
mov esi, eax
test esi, esi
jne 0x404d3e
push 0xf8
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
mov eax, esi
pop esi
pop ecx
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d43
sub eax, edx
sar eax, 1
push edi
xor ecx, ecx
mov edi, eax
cmp ecx, edi
sbb esi, esi
neg esi
jne 0x404d77
push 0xfa
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
pop edi
mov eax, esi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x404db4
push 0xfd
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
pop edi
mov eax, esi
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
push str.ABNotify
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 8]
lea ecx, [edi + edi]
push ecx
push ebx
push 1
push 0
push str.ABNotify
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x404df8
push 0x100
mov ecx, str..helper.cpp
call fcn.00404540
add esp, 4
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4059f0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x405a49
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push esi
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 8
ret 8
Function at 0x405af0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x240
mov eax, dword [0x40a01c]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
call fcn.00405c90
push 0x104
lea eax, [esp + 0x3c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405b4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x408028
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00406056
add esp, 0x240
ret
push ebx
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x405b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
jmp 0x405c58
push 0
push 0
push 0x407dbc
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.AOMEI_Backupper_Scheduler_Service
push 0x408324
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x405bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x405c58
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [esp + 0xc]
push edx
push 1
push esi
mov dword [esp + 0x18], str.AOMEI_Backupper_schedule_task_service...
call edi
lea eax, [esp + 0x10]
push eax
push 7
push esi
mov dword [esp + 0x1c], bind
call edi
mov eax, 0x3e8
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
xor eax, eax
push 2
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x15180
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
call edi
test eax, eax
jne 0x405c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ChangeServiceConfig2_Failed___Error:__d_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
push 0x408324
push str._s_is_installed._n
call dword [sym.imp.MSVCR80.dll_wprintf]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
test ebx, ebx
je 0x405c6e
push ebx
call edi
test esi, esi
je 0x405c75
push esi
call edi
mov ecx, dword [esp + 0x248]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.00406056
add esp, 0x240
ret
Function at 0x405c90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
push 1
push eax
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
jne 0x405ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop ebx
add esp, 0x20
ret
push esi
push edi
push 0x10024
push 0x408324
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x405dc2
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov edi, dword [sym.imp.MSVCR80.dll_wprintf]
je 0x405d9d
push ebp
push 0x408324
push str.Stopping__s.
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
test eax, eax
je 0x405d7b
cmp dword [esp + 0x18], 3
jne 0x405d7b
push 0x4081b8
call edi
add esp, 4
push 0x3e8
call ebx
lea edx, [esp + 0x14]
push edx
push esi
call ebp
test eax, eax
jne 0x405d57
cmp dword [esp + 0x18], 1
pop ebp
push 0x408324
jne 0x405d8f
push 0x4081bc
jmp 0x405d94
push str._n_s_failed_to_stop._n
call edi
mov ebx, dword [esp + 0x14]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x405db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x405dc0
push 0x408324
push str._s_is_removed._n
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call edi
test esi, esi
je 0x405dd5
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x406056
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a01c]
jne 0x406060
repz ret
jmp fcn.0040648a
Function at 0x10001527
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10047578]
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 [0x10038a48]
fld qword [0x10038a40]
fdiv st(1), st(0)
fxch st(1)
call fcn.1001d980
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.1001d980
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]
fabs
fdiv qword [0x10038a38]
fadd qword [0x10038a30]
call fcn.1001d980
neg eax
cmp dword [ebp + 0x3ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x3f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
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 0x100389dc
push eax
call fcn.1002fb2e
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10001671
push dword [ebp - 0x78]
jmp 0x10001676
push 0x100389e4
push 0x20
push eax
call fcn.1002fb2e
add esp, 0xc
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.1001d742
add ebp, 0x3d8
leave
ret 0x14
Function at 0x10007dfb
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10047578]
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 [0x10038a48]
fld qword [0x10038a40]
fdiv st(1), st(0)
fxch st(1)
call fcn.1001d980
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.1001d980
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]
fabs
fdiv qword [0x10038a38]
fadd qword [0x10038a30]
call fcn.1001d980
neg eax
cmp dword [ebp + 0x3ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x3f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
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 0x10039320
push eax
call fcn.1002fb2e
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10007f45
push dword [ebp - 0x78]
jmp 0x10007f4a
push 0x10039328
push 0x20
push eax
call fcn.1002fb2e
add esp, 0xc
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.1001d742
add ebp, 0x3d8
leave
ret 0x14

Function at 0x10008ee6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f34
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x10008f45
push 0xd
pop eax
jmp 0x10008f6f
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10008f48
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x1000c26f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1002fb2e
mov ebx, eax
cmp ebx, esi
je 0x1000c2e2
lea ecx, [ebp - 0x74]
call fcn.1000135a
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000c2fa
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000c26f
cmp eax, esi
jne 0x1000c32c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000c2ea
lea ecx, [ebp - 0x74]
call fcn.1000135a
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10008dd7
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.1000135a
mov eax, esi
jmp 0x1000c2c8