joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4230d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
jmp 0x4230eb
xor ecx, ecx
call fcn.004224b0
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x42315c
mov ecx, 1
imul edx, ecx, 0x5a
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx]
add cl, 1
mov edx, 1
imul eax, edx, 0x5a
mov edx, dword [ebp + 8]
mov byte [edx + eax], cl
mov eax, 1
imul ecx, eax, 0x6f
mov edx, dword [ebp + 8]
mov al, byte [edx + ecx]
add al, 1
mov ecx, 1
imul edx, ecx, 0x6f
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], al
mov edx, 1
imul eax, edx, 0x65
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
imul edx, dword [ebp - 8]
mov eax, 1
imul ecx, eax, 0x65
mov eax, dword [ebp + 8]
mov byte [eax + ecx], dl
cmp dword [ebp + 8], 0
je 0x423195
mov dword [ebp - 4], 0
jmp 0x423174
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x5b
jae 0x423195
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
shl eax, cl
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x42316b
xor ecx, ecx
call fcn.004224b0
add eax, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
call fcn.00403bb0
mov ecx, eax
call fcn.004231f0
push 0
push 0x422d00
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00422d60
mov al, 1
jmp 0x4231e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424c80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
lea eax, [esp + 8]
mov dword [esp + 4], 0x10
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x424d33
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 1
push eax
push 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
push 0
push 0xffffffffffffffff
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424d33
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
or dword [esp + 0x1c], 2
push 0
push 0
push dword [esp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0xffffffffffffffff
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x427cc0
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
jmp 0x427cdb
push str._EXE__External_init_communitation_n
call fcn.00404c70
add esp, 4
cmp dword [0x4980e0], 0xffffffff
je 0x427df6
push str._EXE__Valid_file_n
call fcn.00404c70
add esp, 4
push 0
mov eax, dword [0x4980e0]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x427dce
push str._EXE__Connect_Name_n
call fcn.00404c70
add esp, 4
mov dword [ebp - 8], 0
call fcn.00409140
mov dword [ebp - 0xc], eax
mov ecx, dword [0x4980e0]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 8]
push edx
push 0x10
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427dba
call fcn.00409140
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 1
jne 0x427da7
mov eax, dword [ebp - 4]
mov ecx, dword [0x496b48]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
push 0
lea edx, [ebp - 0x14]
push edx
push 0x10
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4980e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
jmp 0x427da9
jmp 0x427df6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x427d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._EXE__Read_file_failed:_0x_X_n
call fcn.00404c70
add esp, 8
push str._EXE__Disconected_pipe_n
call fcn.00404c70
add esp, 4
mov edx, dword [0x4980e0]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x427ce8
push str._EXE__End_external_wait_n
call fcn.00404c70
add esp, 4
mov ecx, 7
int 0x29
jmp 0x427e1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427ea0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x427e30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x427ec0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
jmp 0x427edb
mov eax, 1
imul ecx, eax, 0
xor edx, edx
mov cl, byte [ecx + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x1c], al
mov eax, 1
shl eax, 0
mov edx, 1
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x1b], al
mov ecx, 1
shl ecx, 1
mov edx, 2
mov cl, byte [ecx + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x1a], al
mov edx, 1
imul eax, edx, 3
mov edx, 3
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x19], al
mov ecx, 1
shl ecx, 2
mov edx, 4
mov cl, byte [ecx + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x18], al
mov edx, 1
imul eax, edx, 5
mov edx, 5
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x17], al
mov ecx, 1
imul eax, ecx, 6
mov edx, 6
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x16], al
mov ecx, 1
imul eax, ecx, 7
mov edx, 7
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x15], al
mov ecx, 1
shl ecx, 3
mov edx, 8
mov cl, byte [ecx + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x14], al
mov edx, 1
imul eax, edx, 9
mov edx, 9
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x13], al
mov ecx, 1
imul eax, ecx, 0xa
mov edx, 0xa
mov cl, byte [eax + str.AC_Launcher]
call fcn.00427c20
mov byte [ebp - 0x12], al
xor ecx, ecx
mov byte [ebp - 0x11], cl
lea edx, [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x428023
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xb
jae 0x428048
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
movsx ecx, byte [0x48fafc]
add ecx, dword [ebp - 4]
xor eax, ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x42801a
mov eax, 1
imul ecx, eax, 0xb
mov edx, dword [ebp - 8]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.00404c60
call fcn.00403a50
push 0
call fcn.00421a30
add esp, 4
call fcn.00427ea0
mov ecx, str.GrandFantasia.exe
call fcn.00429a90
call fcn.00429b80
mov eax, 1
jmp 0x4280af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4299c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x4280c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4299e6
cmp eax, 0xffffffff
je 0x4299e6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x429a90
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x4299f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x429ab6
cmp eax, 0xffffffff
je 0x429ab6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x43b226
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x43b24d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x43b250
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0043b202
pop esi
leave
ret 8

Function at 0x43d646
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d685
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d685
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d685
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43d685
cmp dword [ecx + 0x74], 0xe
jbe 0x43d685
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44aa6a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043dab0
mov eax, dword [0x496080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045274f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44aaac
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44ac08
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004616a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x497d90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00453a3a
mov ecx, dword [esi*4 + 0x497d90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44ac01
cmp eax, dword [ecx + edi + 0x24]
jne 0x44ac01
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ac01
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00453a3a
add esp, 0x14
test edx, edx
jl 0x44ac01
jg 0x44ab77
test eax, eax
jb 0x44ac01
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44ac01
jl 0x44ab91
cmp dword [ebp - 0x1008], eax
ja 0x44ac01
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44abaf
test ebx, ebx
je 0x44abe8
cmp ecx, edi
jae 0x44abe8
mov al, byte [ecx]
cmp al, 0xd
jne 0x44abc9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44abd5
cmp byte [ecx + 1], 0xa
jne 0x44abd5
inc ecx
jmp 0x44abd5
movzx eax, al
movsx eax, byte [eax + 0x4964f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44abaf
cmp edx, ebx
jne 0x44abaf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44ac06
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043d087
leave
ret

Function at 0x45121c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486378
push 0x486370
push str.FlsAlloc
push 0x1f
call fcn.00451087
mov esi, eax
add esp, 0x10
test esi, esi
je 0x451250
push dword [ebp + 8]
mov ecx, esi
call dword [0x465290]
call esi
jmp 0x451256
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45129a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486388
push 0x486380
push str.FlsGetValue
push 0x21
call fcn.00451087
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4512d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x465290]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4512d9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486390
push 0x486388
push str.FlsSetValue
push 0x22
call fcn.00451087
mov esi, eax
add esp, 0x10
test esi, esi
je 0x451313
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x465290]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x453ab6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x497d90]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453af6
cmp byte [ebx], 0xa
jne 0x453af6
or byte [edi + eax + 0x28], 4
jmp 0x453afb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x453bfa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x453bdd
inc eax
cmp dl, 0xd
je 0x453b27
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x453b4d
cmp eax, ecx
jae 0x453b5b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x453b0f
jmp 0x453bfa
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453bd8
cmp dword [ebp - 0x10], 0
je 0x453bd8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x497d90]
test byte [eax + edi + 0x28], 0x48
je 0x453bb2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453b9d
mov byte [esi], dl
jmp 0x453bae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x497d90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x453bfa
cmp byte [ebp - 1], 0xa
jne 0x453bc1
cmp esi, ebx
jne 0x453bc1
mov byte [esi], 0xa
jmp 0x453bf9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00453a58
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x453bfa
mov byte [esi], 0xd
jmp 0x453bf9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x497d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453bf7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453bfa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453c03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x497d90]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453c49
cmp word [ebx], dx
jne 0x453c49
or byte [eax + edi + 0x28], 4
jmp 0x453c4e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x453db1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x453d91
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x453c8f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x453cc5
cmp eax, edx
jae 0x453cd3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x453c6a
jmp 0x453db1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453d8c
cmp dword [ebp - 0x18], 0
je 0x453d8c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x497d90]
test byte [eax + edi + 0x28], 0x48
je 0x453d62
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x453d26
mov word [esi], cx
jmp 0x453d5d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x497d90]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x497d90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x497d90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x453db1
pop eax
cmp word [ebp - 4], ax
jne 0x453d72
cmp esi, ebx
jne 0x453d72
mov word [esi], ax
jmp 0x453dae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00453a58
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x453db1
push 0xd
pop eax
jmp 0x453d6d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x497d90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x453dab
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x453db1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4588c9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x458966
push ebx
push esi
call fcn.00458892
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00457733
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x458913
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458965
push edi
push eax
call fcn.0045184f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x458933
call fcn.00450da8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x458964
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00457733
add esp, 0x20
test eax, eax
jne 0x458952
push edi
call fcn.00450da8
jmp 0x45895a
push ebx
call fcn.00450da8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x458969
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45897a
pop esi
ret
push ebx
push edi
push esi
call fcn.00458892
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045184f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4589a2
push ebx
push esi
push edi
call fcn.0043e300
add esp, 0xc
push 0
call fcn.00450da8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4590fc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458c17

Function at 0x45b769
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00450a60
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b7d8
cmp esi, dword [ebp - 4]
je 0x45b7d3
cmp dword [ebp + 0xc], 0
je 0x45b7d3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45b7b0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045b2bb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45b7da
xor eax, eax
inc eax
jmp 0x45b7da
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45b83f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x496080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00450a60
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00450a60
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x45b8b6
cmp word [ecx], dx
je 0x45b8b6
mov eax, dword [0x486a7c]
push edi
dec eax
push eax
push 0x486968
call fcn.0045b7de
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45b929
cmp word [eax], dx
je 0x45b929
mov eax, dword [edi]
test eax, eax
je 0x45b8da
cmp word [eax], dx
je 0x45b8da
lea eax, [ebp - 0x10]
push eax
call fcn.0045b1c1
jmp 0x45b8e3
lea eax, [ebp - 0x10]
push eax
call fcn.0045b25c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45b953
mov eax, dword [0x486964]
push dword [ebp - 0x14]
dec eax
push eax
push 0x486658
call fcn.0045b7de
add esp, 0xc
test al, al
je 0x45b953
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45b91e
cmp word [eax], di
je 0x45b91e
lea eax, [ebp - 0x10]
push eax
call fcn.0045b1c1
pop ecx
jmp 0x45b955
lea eax, [ebp - 0x10]
push eax
call fcn.0045b25c
jmp 0x45b91b
mov eax, dword [edi]
test eax, eax
je 0x45b940
cmp word [eax], dx
je 0x45b940
lea eax, [ebp - 0x10]
push eax
call fcn.0045b176
pop ecx
jmp 0x45b953
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45ba1e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045b663
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45ba1e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45ba1e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45ba1e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45b9ab
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00451419
test ebx, ebx
je 0x45ba19
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00451419
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ba1e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ba1e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045f8b7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45ba20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d087
leave
ret