joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
push edx
mov edx, dword [ebp + 8]
add eax, eax
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416032
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x416001
cmp eax, 2
jne 0x41601c
test esi, esi
mov eax, dword [ebp + 0x10]
je 0x41602c
test eax, eax
je 0x416027
test al, 1
jne 0x41601c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41602c
pop edi
pop esi
mov eax, 0xd
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x416630
Capabilities:
Create service

Disassembly:
push edi
mov edi, esp
sub esp, 0xa10
mov eax, dword [0x43dfc0]
xor eax, edi
mov dword [edi - 4], eax
push ebx
push ebp
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x416689
push 1
lea eax, [ebp + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41667a
push eax
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x4167c4
push 0x104
lea ecx, [edi - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41672a
cmp eax, 0x104
je 0x41672a
xor edx, edx
mov ebx, 0x22
mov ecx, ebx
mov word [edi - 0x210], bx
push 0xf003f
push edx
push edx
mov word [edi + eax*2 - 0x20e], cx
mov word [edi + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x41673d
lea eax, [edi - 0xa10]
push 0x400
push eax
push 0xd80a
call fcn.00415c90
sub esp, 0xfffffff4
or eax, eax
jne 0x416715
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [edi - 0xa10]
push ecx
call fcn.00415a20
add esp, 0xc
push 0
sub ebp, 0xffffffc0
push ebp
lea edx, [edi - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [edi - 4]
pop esi
xor ecx, edi
pop ebp
pop ebx
call fcn.0041b771
mov esp, edi
pop edi
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [edi - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea esi, [ebp + 0x40]
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
or eax, eax
jne 0x4167b8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [edi - 0xa10]
push ecx
push 0xd80b
call fcn.00415c90
add esp, 0xc
test eax, eax
jne 0x4167a9
push str.Could_not_start_service
lea edx, [edi - 0xa10]
push 0x400
push edx
call fcn.00415a20
add esp, 0xc
lea eax, [edi - 0xa10]
push 0
push esi
push eax
jmp 0x416722
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
mov eax, 1
mov ecx, dword [edi - 4]
xor ecx, edi
pop esi
pop ebp
pop ebx
call fcn.0041b771
mov esp, edi
pop edi
ret
Function at 0x4167e0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1024
push ebx
mov ebx, esp
call fcn.0041dc00
mov eax, dword [0x43dfc0]
xor eax, ebx
mov dword [ebx - 4], eax
push esi
push ebp
mov ebp, ecx
push edi
push 0xf003f
push 0
push 0
mov dword [ebx - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41684b
push 1
lea edi, [ebp + 0x40]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41683a
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x416840
mov ebp, dword [ebx - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or ebp, ebp
jne 0x416861
mov ecx, dword [ebx - 4]
mov eax, 1
pop edi
xor ecx, ebx
pop ebp
pop esi
call fcn.0041b771
mov esp, ebx
pop ebx
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
or ebp, ebp
jne 0x4168bb
lea eax, [ebx - 0x804]
push 0x400
push eax
push 0xd80a
call fcn.00415c90
add esp, 0xc
test eax, eax
jne 0x4168ac
push str.Could_not_open_Service_Manager
lea ecx, [ebx - 0x804]
push 0x400
push ecx
call fcn.00415a20
add esp, 0xc
lea edx, [ebx - 0x804]
push 0
push edi
push edx
jmp 0x4169f8
push 0x10020
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
or esi, esi
jne 0x416919
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx - 0x804]
push 0x400
push eax
push 0xd80c
call fcn.00415c90
add esp, 0xc
or eax, eax
jne 0x4168ac
push str.Could_not_open_service
lea ecx, [ebx - 0x804]
push 0x400
push ecx
call fcn.00415a20
lea edx, [ebx - 0x804]
sub esp, 0xfffffff4
push esi
push edi
push edx
jmp 0x4169f8
lea eax, [ebx - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
or eax, eax
jne 0x416992
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x416992
cmp eax, 0x425
jne 0x41694a
cmp dword [ebx - 0x101c], 3
je 0x416992
push 0x400
lea ecx, [ebx - 0x804]
push ecx
push 0xd80e
call fcn.00415c90
sub esp, 0xfffffff4
or eax, eax
jne 0x416980
push str.Could_not_stop_service
lea edx, [ebx - 0x804]
push 0x400
push edx
call fcn.00415a20
sub esp, 0xfffffff4
push 0
push edi
lea eax, [ebx - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx - 0x1024], eax
call esi
push ebp
call esi
cmp dword [ebx - 0x1024], 0
jne 0x41684b
push 0x400
lea ecx, [ebx - 0x1004]
push ecx
push 0xd80d
call fcn.00415c90
add esp, 0xc
test eax, eax
jne 0x4169ee
push str.Could_not_delete_service
push 0x400
lea edx, [ebx - 0x1004]
push edx
call fcn.00415a20
sub esp, 0xfffffff4
lea eax, [ebx - 0x1004]
push 0
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebx - 4]
pop edi
xor ecx, ebx
xor eax, eax
pop ebp
pop esi
call fcn.0041b771
mov esp, ebx
pop ebx
ret
Function at 0x416e10
Capabilities:
Create thread

Disassembly:
push esi
mov esi, esp
push ecx
push ebp
push 0
push 0
mov ebp, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 0x30], eax
or eax, eax
jne 0x416e31
pop ebp
mov esp, esi
pop esi
ret
lea eax, [esi - 4]
push edi
push eax
push 0
push ebp
push 0x416a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
or edi, edi
jne 0x416e58
mov ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
mov esp, esi
pop esi
ret

Function at 0x417ef0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.004167e0
or eax, eax
jne 0x417f08
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x20006
xor edi, edi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0040d000
cmp eax, edi
je 0x417f51
push eax
call fcn.0040cd00
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x417f49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 0x10]
push 0x20006
push str.11AC3232_E7D7_49CD_ABFE_501700100B3A
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0040d000
cmp eax, edi
je 0x417fa2
push eax
call fcn.0040cd00
sub esp, 0xfffffffc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x417f8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x417f99
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
push str.LocalService
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x43f30c]
lea eax, [ebp - 0x20]
push eax
push edi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x433660
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00410450
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x417fe6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x417ff1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418000
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430771
mov eax, dword fs:[0]
push eax
add esp, 0xfffffe98
push edi
push ebx
push esi
mov eax, dword [0x43dfc0]
xor eax, ebp
xor edi, edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push edi
push eax
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1_S:_ML___NX___LW_
mov dword [ebp - 0x10], edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
or eax, eax
je 0x418159
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x14], eax
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push edi
push edi
push edi
push edi
mov esi, dword [ebp + 8]
push str.LaunchPermission
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x4180dc
push edi
push ebx
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4180dc
lea ecx, [ebp - 0xc4]
push 1
call fcn.00406150
mov dword [eax + 0x60], 0xa
sub eax, 0xfffffff0
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 1
call fcn.00404170
push eax
call fcn.00405590
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
call fcn.0040c2b0
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
mov eax, dword [ebp - 0x14]
or eax, eax
je 0x4180ea
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
lea ecx, [ebp - 0x174]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 2
call fcn.00404170
push eax
call fcn.00405590
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x10c]
call fcn.0040c2b0
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword fs:[0], edx
pop edx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc4]
push 1
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], edi
call fcn.00404170
push eax
call fcn.00405590
sub esp, 0xfffffff4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041aa80
sub esp, 0xfffffffc
jmp 0x4180ea
Function at 0x41b771
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dfc0]
jne 0x41b77b
repz ret
jmp 0x420a8b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x43f930], eax
mov dword [0x43f92c], ecx
mov dword [0x43f928], edx
mov dword [0x43f924], ebx
mov dword [0x43f920], esi
mov dword [0x43f91c], edi
mov word [0x43f948], ss
mov word [0x43f93c], cs
mov word [0x43f918], ds
mov word [0x43f914], es
mov word [0x43f910], fs
mov word [0x43f90c], gs
pushfd
pop dword [0x43f940]
mov eax, dword [ebp]
mov dword [0x43f934], eax
mov eax, dword [ebp + 4]
mov dword [0x43f938], eax
lea eax, [ebp + 8]
mov dword [0x43f944], eax
mov esi, dword [ebp - 0x320]
mov dword [0x43f880], 0x10001
mov eax, dword [0x43f938]
mov dword [0x43f834], eax
mov dword [0x43f828], 0xc0000409
mov dword [0x43f82c], 1
mov eax, dword [0x43dfc0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x43dfc4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x43f878], eax
push 1
call fcn.004295fd
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x434910
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x43f878], 0
jne 0x420b7d
push 1
call fcn.004295fd
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x41e02f
Capabilities:
Create thread

Disassembly:
push esi
mov esi, esp
push ebp
xor ebp, ebp
push ebx
mov ebx, ebx
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x41e053
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
xor eax, eax
jmp 0x41e0cb
push edi
call fcn.00420be1
push 0x214
push 1
call fcn.0041e72e
mov edi, eax
or edi, edi
pop ecx
pop ecx
je 0x41e0b6
call fcn.00420d9c
push dword [eax + 0x6c]
push edi
call fcn.00420c6f
mov ecx, dword [esi + 0x14]
or dword [edi + 4], 0xffffffff
mov dword [edi + 0x58], ecx
mov eax, dword [esi + 0x1c]
test eax, eax
pop ebp
pop ecx
mov dword [edi + 0x54], ebx
jne 0x41e094
lea eax, [esi + 0x10]
push eax
push dword [esi + 0x18]
push edi
push 0x41dfca
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
or eax, eax
jne 0x41e0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
call fcn.0041bb31
or ebp, ebp
pop ecx
je 0x41e0c8
push ebp
call fcn.0041deff
pop ebx
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
ret
Function at 0x420a8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dfc0]
jne 0x41b77b
repz ret
jmp 0x420a8b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x43f930], eax
mov dword [0x43f92c], ecx
mov dword [0x43f928], edx
mov dword [0x43f924], ebx
mov dword [0x43f920], esi
mov dword [0x43f91c], edi
mov word [0x43f948], ss
mov word [0x43f93c], cs
mov word [0x43f918], ds
mov word [0x43f914], es
mov word [0x43f910], fs
mov word [0x43f90c], gs
pushfd
pop dword [0x43f940]
mov eax, dword [ebp]
mov dword [0x43f934], eax
mov eax, dword [ebp + 4]
mov dword [0x43f938], eax
lea eax, [ebp + 8]
mov dword [0x43f944], eax
mov esi, dword [ebp - 0x320]
mov dword [0x43f880], 0x10001
mov eax, dword [0x43f938]
mov dword [0x43f834], eax
mov dword [0x43f828], 0xc0000409
mov dword [0x43f82c], 1
mov eax, dword [0x43dfc0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x43dfc4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x43f878], eax
push 1
call fcn.004295fd
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x434910
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x43f878], 0
jne 0x420b7d
push 1
call fcn.004295fd
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x422563
Capabilities:
Write file on windows

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
add esp, 0xfffffe04
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.0042253d
mov esi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], esi
cmp esi, ebx
je 0x422703
push 3
call fcn.0042ac2e
cmp eax, 1
pop ecx
je 0x4226af
push 3
call fcn.0042ac2e
pop ecx
or eax, eax
jne 0x4225c1
cmp dword [0x43e430], 1
je 0x4226af
cmp edi, 0xfc
je 0x422703
push str.Runtime_Error__n_nProgram:
push 0x314
mov esi, 0x43fb70
push esi
call fcn.0041ddbf
add esp, 0xc
or eax, eax
jne 0x4226a5
push 0x104
mov edi, 0x43fba2
push edi
push ebx
mov word [0x43fdaa], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x42262d
push str._program_name_unknown_
push ebx
push edi
call fcn.0041ddbf
add esp, 0xc
test eax, eax
je 0x42262d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042171e
push edi
call fcn.0042ac13
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422664
push edi
call fcn.0042ac13
lea eax, [eax*2 + 0x43fb2c]
mov ecx, eax
sub ecx, edi
push 3
sar ecx, 1
push 0x4356b4
sub ebx, ecx
push ebx
push eax
call fcn.0041db2e
sub esp, 0xffffffec
or eax, eax
jne 0x422621
push 0x4356ac
mov edi, 0x314
push edi
push esi
call fcn.0041de22
add esp, 0xc
or eax, eax
jne 0x422621
push dword [ebp - 0x1fc]
push edi
push esi
call fcn.0041de22
add esp, 0xc
test eax, eax
jne 0x422621
push 0x12010
push 0x435660
push esi
call fcn.0042aaa7
add esp, 0xc
jmp 0x422703
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x422628
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x422703
cmp edi, 0xffffffff
je 0x422703
xor eax, eax
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [esi + eax*2], bx
je 0x4226dc
inc eax
cmp eax, 0x1f4
jb 0x4226c4
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.0041f640
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041b771
leave
ret
Function at 0x42274b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebx, ebx
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x422868
lea esi, [ebp - 0x84]
mov ecx, esi
and dword [ebp - 0x8c], 0
push 0x80
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.0042ad47
mov ebx, eax
add esp, 0x14
or ebx, ebx
jne 0x422805
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x422826
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.0042ad47
add esp, 0x14
test eax, eax
mov dword [ebp - 0x90], eax
je 0x422826
inc ebx
push ebx
push eax
call fcn.0041e72e
mov esi, eax
or esi, esi
pop ecx
pop ecx
je 0x422826
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.0042ad47
sub esp, 0xffffffec
mov ebx, eax
test ebx, ebx
je 0x42281f
push 1
push ebx
call fcn.0041e72e
mov dword [edi], eax
pop edi
pop ecx
xor edi, edi
cmp eax, edi
jne 0x422838
cmp dword [ebp - 0x8c], edi
je 0x422826
push esi
call fcn.0041bb31
pop esi
or eax, 0xffffffff
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b771
leave
ret
lea ecx, [ebx - 1]
push ecx
push esi
push ebx
push eax
call fcn.00426c6d
add esp, 0x10
test eax, eax
jne 0x42285e
cmp dword [ebp - 0x8c], edi
je 0x42285a
push esi
call fcn.0041bb31
pop eax
xor eax, eax
jmp 0x422829
push edi
push edi
push edi
push edi
push edi
call fcn.0042171e
cmp dword [ebp + 0xc], 2
jne 0x4228b6
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
mov ebx, eax
or ebx, ebx
je 0x4228a6
push 2
push ebx
call fcn.0041e72e
pop ecx
pop ecx
or eax, eax
mov dword [edi], eax
je 0x4228a6
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
or eax, eax
jne 0x42285a
push dword [edi]
call fcn.0041bb31
and dword [edi], 0
pop esi
jmp 0x422826
cmp dword [ebp + 0xc], 0
jne 0x422826
and dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push 2
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422826
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x42285a
Function at 0x422a2d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
push esi
mov esi, dword [ebp + 8]
or esi, esi
jne 0x422a4f
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
jmp 0x422b55
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x422b55
test al, 0x40
jne 0x422b55
test al, 2
je 0x422a71
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x422b55
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x422a87
push esi
call fcn.00423545
pop ecx
jmp 0x422a8c
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.0042303f
pop ecx
push eax
call fcn.0042b338
mov dword [esi + 4], eax
add esp, 0xc
or eax, eax
je 0x422b44
cmp eax, 1
je 0x422b44
cmp eax, 0xffffffff
je 0x422b44
test byte [esi + 0xc], 0x82
jne 0x422b16
push esi
call fcn.0042303f
cmp eax, 0xffffffff
pop ecx
je 0x422b01
push esi
call fcn.0042303f
cmp eax, 0xfffffffe
pop ecx
je 0x422b01
push edi
push esi
call fcn.0042303f
sar eax, 5
push esi
lea edi, [eax*4 + 0x440660]
call fcn.0042303f
and eax, 0x1f
pop edx
shl eax, 6
add eax, dword [edi]
pop edi
pop edi
jmp 0x422b06
mov eax, 0x43e708
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x422b16
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x422b34
mov eax, dword [esi + 0xc]
test al, 8
je 0x422b34
test eax, 0x400
jne 0x422b34
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x422b5a
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
mov eax, 0xffff
pop esi
pop ebp
ret
Function at 0x422cd8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or esi, esi
jne 0x422cfa
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
jmp 0x422df4
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x422df4
test al, 0x40
jne 0x422df4
test al, 2
je 0x422d1c
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x422df4
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x422d32
push esi
call fcn.00423545
pop ecx
jmp 0x422d37
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.0042303f
pop ecx
push eax
call fcn.0042b338
sub esp, 0xfffffff4
mov dword [esi + 4], eax
or eax, eax
je 0x422de3
cmp eax, 0xffffffff
je 0x422de3
test byte [esi + 0xc], 0x82
jne 0x422db8
push esi
call fcn.0042303f
pop ecx
cmp eax, 0xffffffff
je 0x422da3
push esi
call fcn.0042303f
pop ecx
cmp eax, 0xfffffffe
je 0x422da3
push edi
push esi
call fcn.0042303f
sar eax, 5
push esi
lea edi, [eax*4 + 0x440660]
call fcn.0042303f
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
pop edi
jmp 0x422da8
mov eax, 0x43e708
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x422db8
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x422dd6
mov eax, dword [esi + 0xc]
test al, 8
je 0x422dd6
test eax, 0x400
jne 0x422dd6
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x422df7
neg eax
sbb eax, eax
and eax, 0x10
sub eax, 0xfffffff0
or dword [esi + 0xc], eax
and dword [esi + 4], 0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x424fc3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x424fd8
pop esi
xor eax, eax
ret
cmp word [esi], cx
je 0x424fed
sub eax, 0xfffffffe
cmp word [eax], cx
jne 0x424fdd
sub eax, 0xfffffffe
cmp word [eax], cx
jne 0x424fdd
sub eax, esi
push ebx
push edi
lea ebx, [eax + 2]
push ebx
call fcn.0041e6e9
pop ecx
mov edi, eax
test edi, edi
jne 0x42500e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.0041b410
add esp, 0xc
jmp 0x425001
Function at 0x426f20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push ecx
push esi
push 2
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20000001
mov eax, esi
and eax, 0x3ff
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x426f4f
xor eax, eax
jmp 0x426f78
cmp esi, dword [ebp - 4]
je 0x426f75
cmp dword [ebp + 8], 0
je 0x426f75
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov edx, esi
push edi
call fcn.00426e5e
push esi
mov esi, eax
call fcn.0041f640
cmp esi, eax
pop ecx
pop edi
je 0x426f4b
xor eax, eax
inc eax
pop esi
leave
ret