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

Disassembly:
push 0xffffffffffffffff
push 0x44b3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4606b0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push edi
mov eax, dword [0x4606b0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [esp + 0x130]
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push ecx
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4115cd
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406d80
lea ebx, [esp + 0xc]
mov dword [esp + 0x128], 0
call fcn.0040ecf0
mov edi, eax
call fcn.0040ed70
mov edx, ebx
push edx
mov ecx, esi
call fcn.00407530
mov dword [esp + 0x128], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4115cf
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00434188
add esp, 0x120
ret 4

Function at 0x41cf72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41cfb9
call fcn.0041739a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41cfb9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41cfd5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041caec
mov esi, eax
test edi, edi
je 0x41cfd3
test ebx, ebx
je 0x41cfd3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e9e9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4496dd
call fcn.00435d4b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41ea0e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41ea54
lea ecx, [ebp - 0x10]
call fcn.00407940
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414e2e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407990
mov eax, esi
call fcn.00435e23
ret 8
Function at 0x42030e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x420356
call fcn.0041739a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420356
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x420399
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x420382
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x420382
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x420396
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4217b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4217d8
cmp dword [edi + 0x54], 0
jne 0x4217d8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041739a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00421775
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x434188
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4606b0]
jne 0x434192
repz ret
jmp fcn.0043aa4d
Function at 0x44519f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043c9a7
and dword [ebp - 4], 0
cmp dword [0x464658], 0
mov ebx, eax
jne 0x445250
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x445301
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x452450
push edi
call esi
test eax, eax
je 0x445301
push eax
call fcn.0043c935
mov dword [esp], 0x452440
push edi
mov dword [0x464658], eax
call esi
push eax
call fcn.0043c935
mov dword [esp], 0x45242c
push edi
mov dword [0x46465c], eax
call esi
push eax
call fcn.0043c935
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x464660], eax
call esi
push eax
call fcn.0043c935
pop ecx
mov dword [0x464668], eax
test eax, eax
je 0x445250
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043c935
pop ecx
mov dword [0x464664], eax
mov eax, dword [0x464664]
cmp eax, ebx
je 0x4452a8
cmp dword [0x464668], ebx
je 0x4452a8
push eax
call fcn.0043c9b0
push dword [0x464668]
mov esi, eax
call fcn.0043c9b0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4452a8
test edi, edi
je 0x4452a8
call esi
test eax, eax
je 0x44529f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44529f
test byte [ebp - 0xc], 1
jne 0x4452a8
or dword [ebp + 0x10], 0x200000
jmp 0x4452e1
mov eax, dword [0x46465c]
cmp eax, ebx
je 0x4452e1
push eax
call fcn.0043c9b0
pop ecx
test eax, eax
je 0x4452e1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4452e1
mov eax, dword [0x464660]
cmp eax, ebx
je 0x4452e1
push eax
call fcn.0043c9b0
pop ecx
test eax, eax
je 0x4452e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464658]
call fcn.0043c9b0
pop ecx
test eax, eax
je 0x445301
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x445303
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push eax
push 0x104
movlpd qword [ebp - 0x328], xmm0
movlpd qword [ebp - 0x320], xmm0
movlpd qword [ebp - 0x318], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea eax, [ebp - 0x108]
push eax
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x34c], 0x3c
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x34c]
push eax
mov dword [ebp - 0x348], 0x440
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], str.runas
mov dword [ebp - 0x338], 0x44c292
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 5
mov dword [ebp - 0x32c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40110c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401161
push 0
push 0x44c250
push 0x44c25c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401161
mov eax, dword [ebp - 0x314]
test eax, eax
je 0x401161
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0x314]
call esi
test eax, eax
je 0x401155
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x3e8
call edi
push 0xffffffffffffffff
push dword [ebp - 0x314]
call esi
test eax, eax
jne 0x401140
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b9f
mov esp, ebp
pop ebp
ret
Function at 0x401180
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
je 0x4011e9
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea eax, [ebp - 0x108]
push eax
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x401203
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
call esi
push 0x44
lea eax, [ebp - 0x364]
push 0
push eax
call fcn.00403070
add esp, 0xc
mov dword [ebp - 0x364], 0x44
mov eax, 5
mov word [ebp - 0x334], ax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x220
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x401288
cmp dword [0x456a84], 1
push eax
push 0x44c250
jne 0x401279
push 0x44c25c
jmp 0x401280
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp + 0x10], 0
je 0x4012d5
test esi, esi
je 0x4012d5
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x4012d5
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0x320]
call esi
test eax, eax
je 0x4012d5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x3e8
call edi
push 0xffffffffffffffff
push dword [ebp - 0x320]
call esi
test eax, eax
jne 0x4012c0
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b9f
mov esp, ebp
pop ebp
ret

Function at 0x401390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013fc
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013fc
cmp dword [ebp - 8], 1
jne 0x4013fc
push esi
push dword [ebp - 4]
call fcn.00401b96
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401930
Capabilities:
Check mutex on windows

Disassembly:
push str.ASTRALWE_HD_GM000_BOOT
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x456a7c], eax
test eax, eax
je 0x401964
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401964
push dword [0x456a7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
push str.ASTRALWE_HD_GM000_LAUNCHER_00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x456a7c], eax
test eax, eax
je 0x401989
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401955
mov eax, 1
ret

Function at 0x40279a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027d9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027d9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027d9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027d9
cmp dword [ecx + 0x74], 0xe
jbe 0x4027d9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ee9c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40eedb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40eedb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eedb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40eedb
cmp dword [ecx + 0x74], 0xe
jbe 0x40eedb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42ebd9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eaad
Function at 0x42f6d4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42f71f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042fb74
test al, al
jne 0x42f719
sub edx, 2
cmp edx, edi
jne 0x42f6ff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f741
lea eax, [edi + 2]
cmp edx, eax
je 0x42f741
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f39b
add esp, 0x10
jmp 0x42f83b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042fb74
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f784
push dword [ebp - 0x25c]
jmp 0x42f731
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42f7c1
cmp word [ebp - 0x226], 0
je 0x42f7e2
cmp word [ebp - 0x226], ax
jne 0x42f7c1
cmp word [ebp - 0x224], 0
je 0x42f7e2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f39b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f82e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f79b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f816
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f83b
push 0x42edeb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a8a0
add esp, 0x10
jmp 0x42f80b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b9f
leave
ret
Function at 0x431163
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 0x431200
push ebx
push esi
call fcn.0043111f
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.0043105c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4311ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4311ff
push edi
push eax
call fcn.00433966
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4311cd
call fcn.0042ed99
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4311fe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043105c
add esp, 0x20
test eax, eax
jne 0x4311ec
push edi
call fcn.0042ed99
jmp 0x4311f4
push ebx
call fcn.0042ed99
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 0x431203
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431214
pop esi
ret
push ebx
push edi
push esi
call fcn.0043111f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00433966
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43123c
push ebx
push esi
push edi
call fcn.0040b970
add esp, 0xc
push 0
call fcn.0042ed99
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x431b2b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004314b1

Function at 0x435c7e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042e0f3
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 0x435ced
cmp esi, dword [ebp - 4]
je 0x435ce8
cmp dword [ebp + 0xc], 0
je 0x435ce8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435cc5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004357d0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x435cef
xor eax, eax
inc eax
jmp 0x435cef
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x435d54
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x456040]
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.0042e0f3
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.0042e0f3
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 0x435dcb
cmp word [ecx], dx
je 0x435dcb
mov eax, dword [0x44edac]
push edi
dec eax
push eax
push 0x44ec98
call fcn.00435cf3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435e3e
cmp word [eax], dx
je 0x435e3e
mov eax, dword [edi]
test eax, eax
je 0x435def
cmp word [eax], dx
je 0x435def
lea eax, [ebp - 0x10]
push eax
call fcn.004356d6
jmp 0x435df8
lea eax, [ebp - 0x10]
push eax
call fcn.00435771
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435e68
mov eax, dword [0x44ec94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44e988
call fcn.00435cf3
add esp, 0xc
test al, al
je 0x435e68
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435e33
cmp word [eax], di
je 0x435e33
lea eax, [ebp - 0x10]
push eax
call fcn.004356d6
pop ecx
jmp 0x435e6a
lea eax, [ebp - 0x10]
push eax
call fcn.00435771
jmp 0x435e30
mov eax, dword [edi]
test eax, eax
je 0x435e55
cmp word [eax], dx
je 0x435e55
lea eax, [ebp - 0x10]
push eax
call fcn.0043566d
pop ecx
jmp 0x435e68
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 0x435f33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435b78
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435f33
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435f33
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435f33
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435ec0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436c41
test ebx, ebx
je 0x435f2e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436c41
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435f33
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 0x435f33
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043bd63
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435f35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b9f
leave
ret
Function at 0x4368b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ffd4
push 0x44ffcc
push str.FlsAlloc
push 0x1f
call fcn.00436581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4368e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f0]
call esi
jmp 0x4368ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436931
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ffe4
push 0x44ffdc
push str.FlsGetValue
push 0x21
call fcn.00436581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436968
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436970
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ffec
push 0x44ffe4
push str.FlsSetValue
push 0x22
call fcn.00436581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4369aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c1f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]