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

Disassembly:
mov edx, dword [0x10005050]
mov eax, dword [esp + 8]
sub esp, 0x270
push ebx
xor ebx, ebx
push esi
cmp edx, ebx
push edi
je 0x1000192d
cmp eax, ebx
jne 0x10001925
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
push 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.10001c20
mov edx, dword [0x10005050]
add esp, 0xc
mov eax, 1
cmp edx, ebx
jne 0x10001bcf
cmp eax, ebx
je 0x10001940
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x270
ret
mov ecx, dword [esp + 0x280]
cmp dword [ecx + 0x418], ebx
je 0x10001bbe
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], bl
rep stosd dword es:[edi], eax
mov edx, dword [0x1000504c]
push ebp
stosw word es:[edi], ax
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
add edx, 4
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0x20], 0x25
mov byte [esp + 0x21], 0x78
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
call ebp
lea edx, [esp + 0x4c]
lea eax, [esp + 0x8c]
push edx
push eax
call fcn.100030a0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
mov byte [esp + 0x20], 0x4c
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x6c
mov byte [esp + 0x25], 0x5c
mov byte [esp + 0x26], bl
lea edx, [esp + 0x180]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x18], 0x54
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x19], 0x53
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x1a], 0x56
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
mov byte [esp + 0x1b], 0x4e
mov byte [esp + 0x1c], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x180]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x10], 0x25
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x12], bl
mov ecx, edx
and ecx, 3
lea edx, [esp + 0x180]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x184]
lea edx, [esp + 0x84]
push ecx
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x80]
push eax
push ebx
push 0xf001f
call fcn.100022a0
mov esi, eax
pop ebp
cmp esi, ebx
je 0x10001afc
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x10001af5
push 0x10005060
push 0x1000505c
push edi
call fcn.100032d0
add esp, 0xc
mov dword [0x10005050], eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10005050]
cmp eax, ebx
je 0x10001bbe
cmp dword [0x1000505c], ebx
je 0x10001b8f
mov edi, dword [esp + 0x280]
mov ecx, dword [edi + 0x400]
push ecx
call fcn.10001110
mov edx, dword [edi + 0x404]
mov eax, dword [edi + 0x400]
mov ecx, dword [0x10005050]
add esp, 4
push edx
push eax
push ecx
call dword [0x1000505c]
mov esi, eax
cmp esi, ebx
jne 0x10001b71
cmp dword [edi + 0x418], ebx
je 0x10001b5f
mov edx, dword [0x10005050]
push edx
call fcn.10003990
add esp, 4
mov eax, esi
pop edi
mov dword [0x10005050], ebx
pop esi
pop ebx
add esp, 0x270
ret
mov ecx, dword [edi + 0x418]
xor eax, eax
cmp ecx, ebx
pop edi
setne al
mov dword [0x10005058], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x270
ret
mov ecx, dword [esp + 0x280]
cmp dword [ecx + 0x418], ebx
je 0x10001ba7
push eax
call fcn.10003990
add esp, 4
mov dword [0x10005050], ebx
mov esi, 3
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x270
ret
mov esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x270
ret
cmp eax, ebx
je 0x10001c01
mov ecx, dword [0x1000505c]
cmp ecx, ebx
je 0x10001bad
mov eax, dword [esp + 0x280]
mov esi, dword [eax + 0x404]
mov eax, dword [eax + 0x400]
push esi
push eax
push edx
call ecx
mov esi, eax
pop edi
pop esi
pop ebx
add esp, 0x270
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x270
ret