Function at 0x10005140
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x908]
sub esp, 0x908
push 0xffffffffffffffff
push 0x10081d3e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp + 0x904], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x38], 0x400
mov eax, 1
shl eax, 0
mov byte [ebp + eax + 0x8f0], 0x76
mov ecx, 1
imul ecx, ecx, 6
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 7
jae 0x100051a4
jmp 0x100051a9
call fcn.10063ae1
mov edx, dword [ebp - 0x34]
mov byte [ebp + edx + 0x8f0], 0
mov eax, 1
imul eax, eax, 3
mov byte [ebp + eax + 0x8f0], 0x66
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx + 0x8f0], 0x76
mov edx, 1
imul edx, edx, 0
mov byte [ebp + edx + 0x8f0], 0x73
mov eax, 1
shl eax, 2
mov byte [ebp + eax + 0x8f0], 0x62
mov ecx, 1
imul ecx, ecx, 5
mov byte [ebp + ecx + 0x8f0], 0x68
mov edx, 1
shl edx, 0
mov byte [ebp + edx + 0x8f8], 0x66
mov eax, 1
shl eax, 1
mov byte [ebp + eax + 0x8f8], 0x62
mov ecx, 1
imul ecx, ecx, 7
mov byte [ebp + ecx + 0x8f8], 0x6d
mov edx, 1
imul edx, edx, 6
mov byte [ebp + edx + 0x8f8], 0x6a
mov eax, 1
shl eax, 2
mov byte [ebp + eax + 0x8f8], 0x6e
mov ecx, 1
imul ecx, ecx, 3
mov byte [ebp + ecx + 0x8f8], 0x68
mov edx, 1
imul edx, edx, 0
mov byte [ebp + edx + 0x8f8], 0x76
mov eax, 1
imul eax, eax, 5
mov byte [ebp + eax + 0x8f8], 0x6a
mov ecx, 1
shl ecx, 3
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 9
jae 0x10005295
jmp 0x1000529a
call fcn.10063ae1
mov edx, dword [ebp - 0x3c]
mov byte [ebp + edx + 0x8f8], 0
mov byte [ebp + 0x4f0], 0
push 0x3ff
push 0
lea eax, [ebp + 0x4f1]
push eax
call fcn.10064860
add esp, 0xc
lea ecx, [ebp]
call fcn.10016520
lea ecx, [ebp + 0x8f8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp + 0x8f8]
push edx
lea ecx, [ebp]
call fcn.10017610
lea eax, [ebp + 0xd8]
push eax
lea ecx, [ebp]
call fcn.10017a00
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 0x10
jb 0x1000531f
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
jmp 0x10005325
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1000c340
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 0xd8]
call fcn.1000e630
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0x910]
push eax
lea ecx, [ebp + 0x8f0]
push ecx
push 0x10099ec0
push 0x400
lea edx, [ebp + 0x4f0]
push edx
call fcn.100624dd
add esp, 0x14
lea ecx, [ebp + 0x60]
call fcn.10016520
lea eax, [ebp + 0x4f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp + 0x4f0]
push ecx
lea ecx, [ebp + 0x60]
call fcn.10017610
lea edx, [ebp + 0xc0]
push edx
lea ecx, [ebp + 0x60]
call fcn.10017a00
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x100053cb
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
jmp 0x100053d1
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000c340
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 0xc0]
call fcn.1000e630
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push str.Global_s
push 0x400
lea eax, [ebp + 0x4f0]
push eax
call fcn.100624dd
add esp, 0x10
lea ecx, [ebp + 0x4f0]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10005462
mov byte [ebp - 0xf], 0
mov edx, dword [ebp - 0x14]
sub edx, 0x10
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x48]
call fcn.100026e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.100026e0
mov al, byte [ebp - 0xf]
jmp 0x1000553a
mov ecx, dword [ebp - 0x38]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100054bb
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp - 0x14]
sub ecx, 0x10
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
call fcn.100026e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
sub edx, 0x10
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x60]
call fcn.100026e0
mov al, byte [ebp - 0xe]
jmp 0x1000553a
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp + 0xf0]
push edx
call fcn.100649a0
add esp, 0xc
push 0x20
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp + 0xf0]
push ecx
call fcn.1006aec5
add esp, 0xc
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x100054f4
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x14]
sub edx, 0x10
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x5c]
call fcn.100026e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.100026e0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x904]
xor ecx, ebp
call fcn.10061e3f
add ebp, 0x908
mov esp, ebp
pop ebp
ret