joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10540980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push esi
mov esi, dword [esp + 0x2c]
push esi
push 1
push 2
push eax
call fcn.105272e5
add esp, 0x10
cmp eax, 1
jne 0x105409f2
movzx ecx, byte [esp + 4]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [esp + 5]
push esi
add cx, ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x12]
mov word [esp + 0x10], cx
push eax
call fcn.10540ae0
add esp, 0xc
test eax, eax
je 0x105409f2
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10540ae0
add esp, 0xc
test eax, eax
jne 0x105409f9
push dword [esp + 0xc]
call fcn.1051f7a2
add esp, 4
xor eax, eax
pop esi
add esp, 0x24
ret
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10540ae0
add esp, 0xc
test eax, eax
jne 0x10540a2c
push dword [esp + 0xc]
call fcn.1051f7a2
push dword [esp + 0x18]
call fcn.1051f7a2
add esp, 8
xor eax, eax
pop esi
add esp, 0x24
ret
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10540ae0
add esp, 0xc
test eax, eax
jne 0x10540a68
push dword [esp + 0xc]
call fcn.1051f7a2
push dword [esp + 0x18]
call fcn.1051f7a2
push dword [esp + 0x24]
call fcn.1051f7a2
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x24
ret
push 0x20
call fcn.1051f7bd
add esp, 4
test eax, eax
jne 0x10540abe
push dword [esp + 0xc]
call fcn.1051f7a2
push dword [esp + 0x18]
call fcn.1051f7a2
push dword [esp + 0x24]
call fcn.1051f7a2
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x105409f2
movzx eax, word [esp + 0x20]
push eax
push 0
push esi
call fcn.10513d40
push esi
call fcn.1051f7a2
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x24
ret
movups xmm0, xmmword [esp + 8]
pop esi
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x14]
movups xmmword [eax + 0x10], xmm0
add esp, 0x24
ret

Function at 0x10540ae0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 1
push 2
push eax
call fcn.105272e5
add esp, 0x10
cmp eax, 1
jne 0x10540b6b
movzx ecx, byte [esp + 0xc]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [esp + 0xd]
add cx, ax
movzx ebp, cx
test bp, bp
jne 0x10540b34
xor esi, esi
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
mov eax, dword [esp + 0x10]
pop esi
mov word [eax], bp
mov eax, 1
pop ebp
pop ecx
ret
mov edi, ebp
push edi
call fcn.1051f7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x10540b6b
push dword [esp + 0x1c]
push edi
push 1
push esi
call fcn.105272e5
add esp, 0x10
cmp eax, edi
je 0x10540b1d
push edi
push 0
push esi
call fcn.10513d40
push esi
call fcn.1051f7a2
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x1057bd10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1057bd3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1057bd3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403a69
nop
nop
sub eax, 0x403a0f
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4f5d0ad6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x188b24b7
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x61ef0ae6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7fbc6159
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4af20da2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x708a66e7
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
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.00401baf
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.00403080
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.00401baf
mov esp, ebp
pop ebp
ret

Function at 0x4013a0
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 0x40140c
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 0x40140c
cmp dword [ebp - 8], 1
jne 0x40140c
push esi
push dword [ebp - 4]
call fcn.00401ba6
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 0x401940
Capabilities:
Check mutex on windows

Disassembly:
push str.ASTRALFI_HD_GM000_BOOT
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x456a7c], eax
test eax, eax
je 0x401974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401974
push dword [0x456a7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
push str.ASTRALFI_HD_GM000_LAUNCHER_00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x456a7c], eax
test eax, eax
je 0x401999
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401965
mov eax, 1
ret

Function at 0x4027aa
Capabilities:
Parse pe header

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

Function at 0x40eeac
Capabilities:
Parse pe header

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

Function at 0x42ebe9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eabd
Function at 0x42f6e4
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 0x42f72f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042fb84
test al, al
jne 0x42f729
sub edx, 2
cmp edx, edi
jne 0x42f70f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f751
lea eax, [edi + 2]
cmp edx, eax
je 0x42f751
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f3ab
add esp, 0x10
jmp 0x42f84b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042fb84
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 0x42f794
push dword [ebp - 0x25c]
jmp 0x42f741
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 0x42f7d1
cmp word [ebp - 0x226], 0
je 0x42f7f2
cmp word [ebp - 0x226], ax
jne 0x42f7d1
cmp word [ebp - 0x224], 0
je 0x42f7f2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f3ab
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f83e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f7ab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f826
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f84b
push 0x42edfb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a8b0
add esp, 0x10
jmp 0x42f81b
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.00401baf
leave
ret
Function at 0x431173
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 0x431210
push ebx
push esi
call fcn.0043112f
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.0043106c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4311bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43120f
push edi
push eax
call fcn.00433976
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4311dd
call fcn.0042eda9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43120e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043106c
add esp, 0x20
test eax, eax
jne 0x4311fc
push edi
call fcn.0042eda9
jmp 0x431204
push ebx
call fcn.0042eda9
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 0x431213
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431224
pop esi
ret
push ebx
push edi
push esi
call fcn.0043112f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00433976
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43124c
push ebx
push esi
push edi
call fcn.0040b980
add esp, 0xc
push 0
call fcn.0042eda9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x431b3b
Capabilities:
Set environment variable

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

Function at 0x435c8e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042e103
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 0x435cfd
cmp esi, dword [ebp - 4]
je 0x435cf8
cmp dword [ebp + 0xc], 0
je 0x435cf8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435cd5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004357e0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x435cff
xor eax, eax
inc eax
jmp 0x435cff
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x435d64
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.0042e103
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.0042e103
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 0x435ddb
cmp word [ecx], dx
je 0x435ddb
mov eax, dword [0x44edb4]
push edi
dec eax
push eax
push 0x44eca0
call fcn.00435d03
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435e4e
cmp word [eax], dx
je 0x435e4e
mov eax, dword [edi]
test eax, eax
je 0x435dff
cmp word [eax], dx
je 0x435dff
lea eax, [ebp - 0x10]
push eax
call fcn.004356e6
jmp 0x435e08
lea eax, [ebp - 0x10]
push eax
call fcn.00435781
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435e78
mov eax, dword [0x44ec9c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44e990
call fcn.00435d03
add esp, 0xc
test al, al
je 0x435e78
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435e43
cmp word [eax], di
je 0x435e43
lea eax, [ebp - 0x10]
push eax
call fcn.004356e6
pop ecx
jmp 0x435e7a
lea eax, [ebp - 0x10]
push eax
call fcn.00435781
jmp 0x435e40
mov eax, dword [edi]
test eax, eax
je 0x435e65
cmp word [eax], dx
je 0x435e65
lea eax, [ebp - 0x10]
push eax
call fcn.0043567d
pop ecx
jmp 0x435e78
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 0x435f43
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435b88
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435f43
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435f43
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435f43
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435ed0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436c51
test ebx, ebx
je 0x435f3e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436c51
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435f43
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 0x435f43
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043bd73
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435f45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401baf
leave
ret
Function at 0x4368c3
Capabilities:
Allocate thread local storage

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

Function at 0x436941
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ffec
push 0x44ffe4
push str.FlsGetValue
push 0x21
call fcn.00436591
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436978
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 0x436980
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fff4
push 0x44ffec
push str.FlsSetValue
push 0x22
call fcn.00436591
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4369ba
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]