joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41189b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov edi, 0x4623a0
lea eax, [ebp - 0x1774]
push eax
call fcn.00404aab
push 0
call fcn.004201af
push edx
push eax
lea eax, [ebp - 0x1774]
push eax
push str._s_dir_d
push edi
call fcn.00403394
push edi
push str.Temp_dir3:__S
call fcn.0040f3f5
add esp, 0x24
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41192e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_dir___d_
call fcn.0040f3f5
inc esi
pop ecx
pop ecx
cmp esi, 0xa
jl 0x4118bb
push 0x445184
push 0x3f1
mov byte [0x4623a0], 0
call fcn.00403aba
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413c4b
leave
ret
Function at 0x4121aa
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412222
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412221
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413c4b
leave
ret

Function at 0x41226a
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ebp, str._JAVA_OPTIONS
push edi
xor edi, edi
push edi
push ebp
call esi
push edi
mov ebx, str.JDK_JAVA_OPTIONS
push ebx
call esi
push edi
mov edi, str.JAVA_TOOL_OPTIONS
push edi
call esi
mov esi, 0x442d1a
push esi
push ebp
call fcn.00426ec0
push esi
push ebx
call fcn.00426ec0
push esi
push edi
call fcn.00426ec0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4122b3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x412338
push edi
mov edi, 0x94
lea eax, [ebp - 0x98]
push edi
push 0
push eax
call fcn.00415560
add esp, 0xc
mov dword [ebp - 0x98], edi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
pop edi
jne 0x412316
cmp dword [ebp - 0x90], 0
je 0x412338
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412338
push 0xc00
call eax
push str.restrict_DLL_directories
call fcn.0040f3f5
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413c4b
leave
ret

Function at 0x4123cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x463b22], 0
push esi
je 0x41240c
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x41240c
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041f750
pop ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x412424
push dword [ebp + 8]
call fcn.00412427
push 1
call fcn.0041fa78
push eax
call fcn.0041fe14
add esp, 0xc
pop esi
leave
ret
Function at 0x41278c
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x4628]
mov eax, 0x46a8
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x4624], eax
push ebx
mov ebx, dword [ebp + 0x4630]
lea eax, [ebp + 0x2eb4]
push esi
push edi
mov edi, dword [ebp + 0x4634]
push edi
push eax
call fcn.0041f650
push str..pack
call fcn.0041f750
mov esi, eax
lea eax, [ebp + 0x2eb4]
push eax
call fcn.0041f750
sub eax, esi
add esp, 0x10
cmp eax, 0x1770
jae 0x412927
push edi
mov byte [ebp + eax + 0x2eb4], 0
call fcn.00403e71
pop ecx
test al, al
jne 0x412825
push str.pack_path_doesnt_exists
call fcn.0040f3f5
pop ecx
mov ecx, dword [ebp + 0x4624]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c4b
add ebp, 0x4628
leave
ret
push ebx
lea eax, [ebp - 0x2c]
push str._s_binunpack200.exe
push eax
call fcn.00403394
lea eax, [ebp + 0x2eb4]
push eax
push edi
lea eax, [ebp + 0x1744]
push str._r___s____s_
push eax
call fcn.00403394
lea eax, [ebp - 0x2c]
mov esi, 0x44076c
push eax
push esi
call fcn.0040f3f5
lea eax, [ebp + 0x1744]
push eax
push esi
call fcn.0040f3f5
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00415560
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00415560
add esp, 0x44
mov dword [ebp - 0x80], esi
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x50], ax
inc ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x20
push ecx
push ebx
push ebx
lea eax, [ebp + 0x1744]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4128d3
push str.could_not_create_unpack_process
call fcn.0040f3f5
push ebx
push 0x3fd
call fcn.00403aba
add esp, 0xc
push str.waiting_for_unpack200_to_finish
call fcn.0040f3f5
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.unpack_done
call fcn.0040f3f5
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41280d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x41280d
call esi
push eax
push str.could_not_delete_packed_file__error__d_
call fcn.0040f3f5
pop ecx
jmp 0x41280c
call fcn.00413b70
int3
Function at 0x41292d
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x3024
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, esp
mov dword [esp + 0x3020], eax
push ebx
mov ebx, dword [esp + 0x3034]
lea eax, [esp + 0x144]
push ebp
mov ebp, dword [esp + 0x3034]
push esi
push edi
mov edi, dword [esp + 0x3038]
push ebp
push edi
push str._s_s.jar.pack
push eax
call fcn.00403394
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x412a72
call fcn.00403b03
test al, al
jne 0x412a72
lea eax, [esp + 0x3c]
push eax
push eax
call fcn.0041f750
pop ecx
sub eax, 5
push eax
push ebp
push edi
lea eax, [esp + 0x160]
push str._s_s_.s
push eax
call fcn.00403394
lea eax, [esp + 0x168]
push eax
push str.checking__S
call fcn.0040f3f5
lea eax, [esp + 0x170]
push eax
call fcn.00403e71
add esp, 0x24
test al, al
jne 0x412a57
cmp byte [ebx], al
jne 0x412a08
push str.Unpacking_JRE
call fcn.0040f3f5
mov dword [esp], str.Preparing_JRE_..._n
call fcn.004123cc
pop ecx
mov byte [ebx], 1
lea eax, [esp + 0x3c]
push eax
push eax
call fcn.0041f750
pop ecx
sub eax, 5
push eax
push ebp
lea eax, [esp + 0x15c]
push str._s_.s
push eax
call fcn.00403394
lea eax, [esp + 0x164]
push eax
push edi
lea eax, [esp + 0x18dc]
push str._s_s.pack
push eax
call fcn.00403394
lea eax, [esp + 0x18e4]
push eax
push edi
call fcn.0041278c
add esp, 0x2c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412993
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x3030]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413c4b
add esp, 0x3024
ret

Function at 0x41454e
Capabilities:
Parse pe header

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

Function at 0x42e46e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449e40
push 0x449e38
push str.FlsAlloc
push 0x1f
call fcn.0042e259
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e4a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402b0]
call esi
jmp 0x42e4a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e4ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449e50
push 0x449e48
push str.FlsGetValue
push 0x21
call fcn.0042e259
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e523
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42e52b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449e58
push 0x449e50
push str.FlsSetValue
push 0x22
call fcn.0042e259
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e565
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4402b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430d17
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00430c99

Function at 0x431229
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 + 0x464410]
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 0x431269
cmp byte [ebx], 0xa
jne 0x431269
or byte [edi + eax + 0x28], 4
jmp 0x43126e
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 0x43136d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x431350
inc eax
cmp dl, 0xd
je 0x43129a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4312c0
cmp eax, ecx
jae 0x4312ce
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 0x431282
jmp 0x43136d
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 0x43134b
cmp dword [ebp - 0x10], 0
je 0x43134b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x464410]
test byte [eax + edi + 0x28], 0x48
je 0x431325
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x431310
mov byte [esi], dl
jmp 0x431321
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x464410]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43136d
cmp byte [ebp - 1], 0xa
jne 0x431334
cmp esi, ebx
jne 0x431334
mov byte [esi], 0xa
jmp 0x43136c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00431f49
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43136d
mov byte [esi], 0xd
jmp 0x43136c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x464410]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43136a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43136d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431376
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 + 0x464410]
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 0x4313bc
cmp word [ebx], dx
jne 0x4313bc
or byte [eax + edi + 0x28], 4
jmp 0x4313c1
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 0x431524
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 0x431504
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x431402
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x431438
cmp eax, edx
jae 0x431446
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 0x4313dd
jmp 0x431524
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 0x4314ff
cmp dword [ebp - 0x18], 0
je 0x4314ff
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x464410]
test byte [eax + edi + 0x28], 0x48
je 0x4314d5
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 0x431499
mov word [esi], cx
jmp 0x4314d0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x464410]
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 + 0x464410]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x464410]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x431524
pop eax
cmp word [ebp - 4], ax
jne 0x4314e5
cmp esi, ebx
jne 0x4314e5
mov word [esi], ax
jmp 0x431521
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00431f49
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x431524
push 0xd
pop eax
jmp 0x4314e0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x464410]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43151e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x431524
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 0x432313
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00413d20
mov eax, dword [0x455834]
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.0042d8fc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x432355
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4324b1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00413d80
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 + 0x464410]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00431f2b
mov ecx, dword [esi*4 + 0x464410]
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 0x4324aa
cmp eax, dword [ecx + edi + 0x24]
jne 0x4324aa
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 0x4324aa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00431f2b
add esp, 0x14
test edx, edx
jl 0x4324aa
jg 0x432420
test eax, eax
jb 0x4324aa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4324aa
jl 0x43243a
cmp dword [ebp - 0x1008], eax
ja 0x4324aa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x432458
test ebx, ebx
je 0x432491
cmp ecx, edi
jae 0x432491
mov al, byte [ecx]
cmp al, 0xd
jne 0x432472
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43247e
cmp byte [ecx + 1], 0xa
jne 0x43247e
inc ecx
jmp 0x43247e
movzx eax, al
movsx eax, byte [eax + 0x455ab0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x432458
cmp edx, ebx
jne 0x432458
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4324af
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413c4b
leave
ret

Function at 0x432d5b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432876
Function at 0x436f00
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 0x436f9d
push ebx
push esi
call fcn.00436ec9
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.004325aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436f4a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436f9c
push edi
push eax
call fcn.0042c9c4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436f6a
call fcn.0042c98a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436f9b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004325aa
add esp, 0x20
test eax, eax
jne 0x436f89
push edi
call fcn.0042c98a
jmp 0x436f91
push ebx
call fcn.0042c98a
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 0x436fa0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x436fb1
pop esi
ret
push ebx
push edi
push esi
call fcn.00436ec9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042c9c4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x436fd9
push ebx
push esi
push edi
call fcn.00414d80
add esp, 0xc
push 0
call fcn.0042c98a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43954f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042c699
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 0x4395be
cmp esi, dword [ebp - 4]
je 0x4395b9
cmp dword [ebp + 0xc], 0
je 0x4395b9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x439596
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043908f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4395c0
xor eax, eax
inc eax
jmp 0x4395c0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x439625
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455834]
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.0042c699
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.0042c699
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 0x43969c
cmp word [ecx], dx
je 0x43969c
mov eax, dword [0x44a5a4]
push edi
dec eax
push eax
push 0x44a490
call fcn.004395c4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43970f
cmp word [eax], dx
je 0x43970f
mov eax, dword [edi]
test eax, eax
je 0x4396c0
cmp word [eax], dx
je 0x4396c0
lea eax, [ebp - 0x10]
push eax
call fcn.00438f95
jmp 0x4396c9
lea eax, [ebp - 0x10]
push eax
call fcn.00439030
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x439739
mov eax, dword [0x44a48c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44a180
call fcn.004395c4
add esp, 0xc
test al, al
je 0x439739
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x439704
cmp word [eax], di
je 0x439704
lea eax, [ebp - 0x10]
push eax
call fcn.00438f95
pop ecx
jmp 0x43973b
lea eax, [ebp - 0x10]
push eax
call fcn.00439030
jmp 0x439701
mov eax, dword [edi]
test eax, eax
je 0x439726
cmp word [eax], dx
je 0x439726
lea eax, [ebp - 0x10]
push eax
call fcn.00438f47
pop ecx
jmp 0x439739
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 0x439804
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00439449
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x439804
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x439804
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x439804
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x439791
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042e66b
test ebx, ebx
je 0x4397ff
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042e66b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439804
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 0x439804
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00430a1c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x439806
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c4b
leave
ret