joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401285
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
lea eax, [ebp - 0x40]
push esi
push 0x40
push 0
push eax
call fcn.004046e0
mov esi, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x40]
push 0
push 0x40
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4012be
xor eax, eax
jmp 0x40131e
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x4012ba
push ebx
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.004046e0
add esp, 0xc
lea eax, [ebp - 0x138]
push 0
push ebx
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
pop ebx
test eax, eax
je 0x4012ba
cmp dword [ebp - 0x138], 0x4550
jne 0x4012ba
mov ax, word [ebp - 0x122]
not ax
movzx eax, ax
shr eax, 0xd
and eax, 1
pop esi
leave
ret
Function at 0x4014c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push 4
push 0x1000
add eax, 0x1b8
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4016b9
and dword [ebp - 4], 0
push edi
push 0x40
pop edi
push edi
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.004046e0
add esp, 0xc
mov eax, 0x5a4d
mov word [ebp - 0xc8], ax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc8]
push eax
push ebx
mov dword [ebp - 0x8c], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 4], 0x40
jne 0x4016b6
push pe_nt_image_headers32
lea eax, [ebp - 0x1c0]
push 0
push eax
add ebx, 0x40
call fcn.004046e0
xor eax, eax
add esp, 0xc
inc eax
mov word [ebp - 0x1ba], ax
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x1c0]
push eax
push ebx
push esi
mov dword [ebp - 0x1c0], 0x4550
mov dword [ebp - 0x1ac], 0x200000e0
call edi
test eax, eax
je 0x4016b6
mov eax, pe_nt_image_headers32
cmp dword [ebp - 4], eax
jne 0x4016b6
add ebx, eax
xor eax, eax
push 0xa
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [str..detour]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4526c0]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x44], eax
mov eax, ebx
sub eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 4], 0x28
jne 0x4016b6
push 0x40
lea eax, [ebp - 0x88]
push 0
push eax
add ebx, 0x28
call fcn.004046e0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x7c], eax
push 0x40
pop ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
push ebx
push esi
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], 0x727444
mov dword [ebp - 0x80], ecx
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 4], 0x40
jne 0x4016b6
mov esi, dword [ebp + 0xc]
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x1c], 0
add eax, 0x18
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
push 0x18
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
push eax
add ebx, 0x40
push ebx
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 4], 0x18
jne 0x4016b6
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
lea ecx, [ebx + 0x18]
push ecx
push dword [ebp + 8]
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 4], esi
jne 0x4016b6
xor eax, eax
inc eax
jmp 0x4016b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401f4d
Capabilities:
Parse pe header

Disassembly:
push 0x10
push 0x45ad20
call fcn.00450bd0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x401f69
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edi], ax
je 0x401f81
push 0xc1
jmp 0x402024
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x401f98
push 0xbf
jmp 0x402024
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x40201f
lea edx, [ebx + 0x18]
add edx, eax
mov dword [ebp - 0x20], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
movzx eax, word [ebx + 6]
cmp ecx, eax
jae 0x40201f
mov eax, ecx
imul eax, eax, 0x28
add eax, edx
mov dword [ebp + 8], eax
push 8
push str..detour
push eax
call fcn.00405574
add esp, 0xc
test eax, eax
jne 0x40200f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40201f
cmp dword [eax + 0x10], 0
je 0x40201f
add edi, ecx
mov eax, dword [edi]
cmp eax, 0x40
jb 0x40201f
cmp dword [edi + 4], 0x727444
jne 0x40201f
cmp dword [edi + 8], 0
jne 0x401fff
mov dword [edi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x402030
mov ecx, dword [ebp - 0x1c]
inc ecx
mov edx, dword [ebp - 0x20]
jmp 0x401fab
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00450c10
ret 4

Function at 0x4022c9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x45acc0
call fcn.00450bd0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4022e3
mov esi, 0x10000
jmp 0x4022e9
add esi, 0x10000
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402355
cmp dword [ebp - 0x24], 0x1000
jne 0x402328
test dword [ebp - 0x20], 0x100
jne 0x402328
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
je 0x402330
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x4022f3
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x402324
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00450c10
ret 4
xor eax, eax
jmp 0x402342
Function at 0x40270a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x150
cmp dword [ebx], eax
jne 0x4027db
cmp dword [ebp + 0xc], eax
jb 0x4027db
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push dword [ebx + 4]
xor edi, edi
call esi
test eax, eax
je 0x4027d5
lea eax, [ebp - 4]
push eax
push 0x40
push pe_nt_image_headers32
push dword [ebx + 8]
call esi
test eax, eax
je 0x4027c7
cmp dword [ebx + 0xc], edi
je 0x402774
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push dword [ebx + 0xc]
call esi
test eax, eax
je 0x4027b6
mov edi, dword [ebx + 4]
push 0x10
pop ecx
lea esi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 8]
push 0x3e
lea esi, [ebx + 0x54]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x402799
mov eax, dword [ebx + 0x14c]
mov dword [ecx], eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
inc edi
cmp dword [ebx + 0xc], 0
je 0x4027b6
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 4
push dword [ebx + 0xc]
call esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push pe_nt_image_headers32
push dword [ebx + 8]
call esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [ebx + 4]
call esi
mov eax, edi
pop edi
pop esi
jmp 0x4027e8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 8
Function at 0x4028c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov ebx, ecx
test eax, eax
je 0x4029d2
push esi
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4029c7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
sub eax, edi
je 0x4029c0
sub eax, 1
je 0x402914
sub eax, 1
jne 0x4029c0
mov dword [ebp + 8], 2
jmp 0x402945
push 7
push 0x45d038
push esi
mov ecx, ebx
call fcn.004029e0
test eax, eax
jne 0x40293e
push 7
push 0x45d230
push esi
mov ecx, ebx
call fcn.004029e0
test eax, eax
je 0x4029c0
mov dword [ebp + 8], 1
push str.IsWow64Process
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402966
lea ecx, [ebp - 4]
push ecx
push esi
call eax
imul edx, dword [ebp + 8], 0x104
add edx, ebx
cmp dword [ebp - 4], edi
je 0x402980
mov eax, 0x108
mov ecx, 0x928
jmp 0x40298a
mov eax, 0x20c
mov ecx, 0x310
add eax, ebx
add ecx, edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call ebx
cmp eax, 0xffffffff
je 0x4029c0
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x4029c0
push 2
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004017eb
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push ebx
push esi
push edi
push 0x104
push 0
push eax
mov ebx, ecx
call fcn.004046e0
push 0x104
lea eax, [ebx + 4]
push 0
push eax
call fcn.004046e0
push 0x104
lea eax, [ebx + 0x108]
push 0
push eax
call fcn.004046e0
push 0x104
lea eax, [ebx + 0x20c]
push 0
push eax
call fcn.004046e0
add esp, 0x30
lea esi, [ebx + 0x61c]
mov edi, 3
nop word [eax + eax]
push 0x104
lea eax, [esi - 0x30c]
push 0
push eax
call fcn.004046e0
push 0x104
push 0
push esi
call fcn.004046e0
push 0x104
lea eax, [esi + 0x30c]
push 0
push eax
call fcn.004046e0
add esp, 0x24
add esi, 0x104
sub edi, 1
jne 0x402d40
push 0x104
lea eax, [ebp - 0x104]
push eax
push str._SYSTEMROOT_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push str.kernel32.dll
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.004125fb
lea eax, [ebp - 0x104]
push eax
push 0x104
lea esi, [ebx + 0x108]
push esi
call fcn.004125fb
push str.SysWOW64detoured.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
push 0x104
lea esi, [ebx + 0x20c]
push esi
call fcn.004125fb
push str.System32detoured.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x414]
push 0x104
push esi
call fcn.004125fb
add esp, 0x48
push str.System32_amdgfxinfo32.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x720]
push 0x104
push esi
call fcn.004125fb
push str.System32_amdgfxinfo64.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0xa2c]
push 0x104
push esi
call fcn.004125fb
push str.SysWOW64_amdgfxinfo32.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x518]
push 0x104
push esi
call fcn.004125fb
add esp, 0x48
push str.System32GameManager32.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x824]
push 0x104
push esi
call fcn.004125fb
push str.System32GameManager64.dll
push 0x104
push esi
call fcn.004126b8
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0xb30]
push 0x104
push esi
call fcn.004125fb
push str.SysWOW64GameManager32.dll
push 0x104
push esi
call fcn.004126b8
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe34
lea ecx, [ebp - 0xe34]
push ebx
xor ebx, ebx
call fcn.00402860
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.HookType
push eax
call fcn.00404840
add esp, 8
test eax, eax
je 0x403215
push esi
add eax, 9
je 0x403190
mov cl, byte [eax]
xor edx, edx
test cl, cl
je 0x403189
lea esi, [ebp - 0x100]
sub esi, eax
nop dword [eax]
cmp cl, 0x20
je 0x403189
cmp edx, 0xff
jae 0x403189
mov byte [esi + eax], cl
inc edx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403170
mov byte [ebp + edx - 0x100], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.ProcessID
push eax
call fcn.00404840
add esp, 8
test eax, eax
je 0x403214
add eax, 0xa
je 0x4031e0
mov cl, byte [eax]
xor edx, edx
test cl, cl
je 0x4031d9
lea esi, [ebp - 0x200]
sub esi, eax
nop dword [eax]
cmp cl, 0x20
je 0x4031d9
cmp edx, 0xff
jae 0x4031d9
mov byte [esi + eax], cl
inc edx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4031c0
mov byte [ebp + edx - 0x200], bl
push 0x10
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00430343
push 0x10
mov esi, eax
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00430343
add esp, 0x18
lea ecx, [ebp - 0xe34]
push esi
push eax
call fcn.004028c0
mov ebx, eax
pop esi
lea ecx, [ebp - 0xe34]
call fcn.00402880
xor eax, eax
cmp ebx, 1
pop ebx
setne al
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403b46
Capabilities:
Parse pe header

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

Function at 0x43212e
Capabilities:
Parse pe header

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

Function at 0x43a61e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a4f1
Function at 0x43af98
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45d440]
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 0x43afe3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043b3a4
test al, al
jne 0x43afdd
sub edx, 2
cmp edx, edi
jne 0x43afc3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43b005
lea eax, [edi + 2]
cmp edx, eax
je 0x43b005
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043ac58
add esp, 0x10
jmp 0x43b0fd
push esi
lea ecx, [ebp - 0x255]
call fcn.0043b3a4
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b046
push dword [ebp - 0x25c]
jmp 0x43aff5
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 0x43b083
cmp word [ebp - 0x226], 0
je 0x43b0a4
cmp word [ebp - 0x226], ax
jne 0x43b083
cmp word [ebp - 0x224], 0
je 0x43b0a4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043ac58
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43b0f0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43b05d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43b0d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43b0fd
push 0x43a6a8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00447e40
add esp, 0x10
jmp 0x43b0cd
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.00404286
leave
ret
Function at 0x43c86f
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 0x43c90c
push ebx
push esi
call fcn.0043c82b
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.004366d9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43c8b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c90b
push edi
push eax
call fcn.00436e60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43c8d9
call fcn.00436e10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c90a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004366d9
add esp, 0x20
test eax, eax
jne 0x43c8f8
push edi
call fcn.00436e10
jmp 0x43c900
push ebx
call fcn.00436e10
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 0x43c90f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43c920
pop esi
ret
push ebx
push edi
push esi
call fcn.0043c82b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00436e60
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43c948
push ebx
push esi
push edi
call fcn.004107d0
add esp, 0xc
push 0
call fcn.00436e10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43d234
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cbbb

Function at 0x44048e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043637f
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 0x4404fd
cmp esi, dword [ebp - 4]
je 0x4404f8
cmp dword [ebp + 0xc], 0
je 0x4404f8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4404d5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043ffe3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4404ff
xor eax, eax
inc eax
jmp 0x4404ff
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44056a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45d440]
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.0043637f
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.0043637f
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 0x4405e1
cmp word [ecx], dx
je 0x4405e1
mov eax, dword [0x455124]
push edi
dec eax
push eax
push 0x455010
call fcn.00440503
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x440654
cmp word [eax], dx
je 0x440654
mov eax, dword [edi]
test eax, eax
je 0x440605
cmp word [eax], dx
je 0x440605
lea eax, [ebp - 0x10]
push eax
call fcn.0043fee9
jmp 0x44060e
lea eax, [ebp - 0x10]
push eax
call fcn.0043ff84
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44067e
mov eax, dword [0x45500c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x454d00
call fcn.00440503
add esp, 0xc
test al, al
je 0x44067e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x440649
cmp word [eax], di
je 0x440649
lea eax, [ebp - 0x10]
push eax
call fcn.0043fee9
pop ecx
jmp 0x440680
lea eax, [ebp - 0x10]
push eax
call fcn.0043ff84
jmp 0x440646
mov eax, dword [edi]
test eax, eax
je 0x44066b
cmp word [eax], dx
je 0x44066b
lea eax, [ebp - 0x10]
push eax
call fcn.0043fe80
pop ecx
jmp 0x44067e
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 0x440749
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00440388
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x440749
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x440749
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x440749
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4406d6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004415f1
test ebx, ebx
je 0x440744
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004415f1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440749
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 0x440749
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044921b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44074b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404286
leave
ret
Function at 0x447bfa
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x447c14
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x447c2b
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x447c83
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0043d9d5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x447c83
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x447c83
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x447c83
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x447c7d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x447c7f
xor bl, bl
mov al, bl
jmp 0x447c85
xor al, al
pop esi
pop ebx
leave
ret