Function at 0x100128f6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e9b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10012be0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x10012aa8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x34], 0x2534
mov dword [ebp - 0x7c], str.hfikafe_dwhydg_kzailxps
cmp dword [ebp - 0x34], 0x27e1
jle 0x10012a2e
push 0x1e45
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
and dword [ebp - 0x24], 0
jmp 0x10012998
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x5731
jge 0x10012a2e
and dword [ebp - 0x30], 0
jmp 0x100129b2
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x5c3
jge 0x10012a29
and dword [ebp - 0x2c], 0
jmp 0x100129c8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x9aa
jge 0x10012a27
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
sar eax, cl
cdq
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
lea ecx, [ebp - 0xc0]
call fcn.1000288f
pop ecx
pop ecx
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
call fcn.10006e26
push eax
call fcn.1004603d
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.10006e1c
jmp 0x100129c1
jmp 0x100129ab
jmp 0x10012991
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x24be
jge 0x10012a4a
push dword [ebp - 0x7c]
call fcn.1004603d
pop ecx
jmp 0x10012a66
or dword [ebp - 4], 0xffffffff
jmp 0x10012a70
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0xa8]
call fcn.1002048a
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10012bde
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0x5d2c
mov dword [ebp - 0x50], str.hvlirb_wpkkebuk_dpnzfod_hwr_epkxyiyxa_dmobqq_wipaqktc_shsywllut_zfrbzjkvu
cmp dword [ebp - 0x38], 0x5d64
jle 0x10012b8c
and dword [ebp - 0x18], 0
jmp 0x10012ad9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7c8b
jge 0x10012b8c
and dword [ebp - 0x1c], 0
jmp 0x10012af3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5ebb
jge 0x10012b87
and dword [ebp - 0x20], 0
jmp 0x10012b0d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5b0f
jge 0x10012b82
and dword [ebp - 0x28], 0
jmp 0x10012b23
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x6b5a
jge 0x10012b80
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
and eax, ecx
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xd8]
call fcn.1000288f
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.10006e26
push eax
call fcn.1004603d
pop ecx
lea ecx, [ebp - 0xd8]
call fcn.10006e1c
jmp 0x10012b1c
jmp 0x10012b06
jmp 0x10012aec
jmp 0x10012ad2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov edx, 0x4c705cf
mov ecx, dword [ebp - 0x48]
call fcn.1000d284
mov dword [ebp - 4], 2
cmp dword [ebp - 0x38], 0x5b52
jge 0x10012bb8
push dword [ebp - 0x50]
call fcn.1004603d
pop ecx
jmp 0x10012bd4
or dword [ebp - 4], 0xffffffff
jmp 0x10012bde
jmp 0x10012c41
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10012c26
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x88]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10012c41
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10012c41
push 0x960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret