Function at 0x401560
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea ebx, [ebp - 8]
call fcn.00402030
push 0x403130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
lea ebx, [eax + esi + 0x78]
lea ecx, [ebp - 0x34]
push ecx
add edi, esi
push edi
push ebx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], 0x74726956
mov dword [ebp - 0x30], 0x416c6175
mov dword [ebp - 0x2c], 0x636f6c6c
mov byte [ebp - 0x28], 0
call fcn.00401f60
lea edx, [ebp - 0x34]
push edx
push edi
push ebx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0x74726956
mov dword [ebp - 0x30], 0x466c6175
mov dword [ebp - 0x2c], 0x656572
call fcn.00401f60
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xe00
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov ecx, edi
sub eax, edi
mov esi, 0xe00
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x401602
mov edx, 0x700
lea ecx, [edi + 0x700]
call fcn.00401520
mov edx, 0x700
mov ecx, edi
call fcn.00401520
lea eax, [edi + 0x700]
mov esi, 0x700
mov dl, byte [eax]
mov cl, byte [eax - 0x700]
mov byte [eax - 0x700], dl
mov byte [eax], cl
inc eax
dec esi
jne 0x401632
mov esi, dword [edi + 0x3c]
add esi, edi
lea eax, [esi + 0x18]
push 0x40
mov dword [ebp + 8], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 0x14]
mov ebx, eax
test ebx, ebx
je 0x401913
sub edi, ebx
mov ecx, 0x10
mov edx, dword [edi + eax]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x401672
movzx edx, word [esi + 0x14]
mov eax, dword [ebx + 0x3c]
mov ecx, edx
shr ecx, 2
add eax, ebx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4016b4
mov edi, esi
sub edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov edi, dword [edi + ecx]
mov dword [ecx], edi
add ecx, 4
dec dword [ebp - 0xc]
jne 0x4016a1
mov ecx, dword [ebp - 0x10]
lea edi, [ecx*4]
mov dword [ebp - 0x14], edi
cmp edi, edx
jae 0x4016db
mov ecx, esi
add edi, eax
sub ecx, eax
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov edi, edi
mov dl, byte [edi + ecx]
mov byte [edi], dl
inc edi
dec dword [ebp - 0x10]
jne 0x4016d0
movzx edx, word [esi + 0x14]
movzx esi, word [esi + 6]
movzx ecx, word [eax + 0x14]
mov edi, dword [ebp + 8]
add edx, edi
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4017d7
mov esi, edx
add eax, 4
sub esi, dword [ebp - 0x14]
lea ecx, [edx + 0xc]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ecx - 0xc]
mov dword [eax - 4], esi
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + eax]
mov dword [eax], esi
mov esi, dword [ecx - 4]
mov dword [eax + 4], esi
mov esi, dword [ecx]
mov dword [eax + 8], esi
mov esi, dword [ecx + 4]
mov dword [eax + 0xc], esi
mov esi, dword [ecx + 8]
mov dword [eax + 0x10], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 0x14], esi
mov esi, dword [ecx + 0x10]
mov dword [eax + 0x18], esi
mov esi, dword [ecx + 0x14]
mov dword [eax + 0x1c], esi
mov esi, dword [ecx + 0x18]
mov dword [eax + 0x20], esi
add ecx, 0x28
add eax, 0x28
dec dword [ebp - 0x10]
jne 0x401712
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4017d7
lea ecx, [edx + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], esi
lea ebx, [ebx]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
add edi, dword [ebp - 0x18]
mov eax, dword [ecx - 8]
mov edx, esi
shr edx, 2
add eax, ebx
mov dword [ebp - 0x20], edi
test edx, edx
je 0x4017a9
sub edi, eax
mov ecx, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
mov edi, dword [ebp - 0x1c]
mov edi, dword [edi + ecx]
mov dword [ecx], edi
add ecx, 4
dec dword [ebp - 0x10]
jne 0x401793
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
add edx, edx
add edx, edx
mov dword [ebp - 0x20], edx
cmp edx, esi
jae 0x4017c9
add edx, eax
sub edi, eax
sub esi, dword [ebp - 0x20]
jmp 0x4017c0
mov al, byte [edx + edi]
mov byte [edx], al
inc edx
dec esi
jne 0x4017c0
add ecx, 0x28
dec dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jne 0x401770
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x40186f
cmp dword [edi + 0x6c], 0
je 0x40186f
lea edi, [eax + ebx]
mov eax, dword [edi]
mov dword [ebp - 0x10], edi
test eax, eax
jne 0x4017ff
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40186c
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [edi]
mov ecx, eax
mov eax, dword [edi + 0x10]
add eax, ebx
add esi, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
test eax, eax
je 0x401867
xor edi, edi
jmp 0x401833
mov ecx, dword [ebp - 0x20]
test eax, eax
jns 0x40183d
movzx edx, ax
push edx
jmp 0x401842
lea eax, [eax + ebx + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x14]
inc eax
lea edi, [eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + esi]
test eax, eax
jne 0x401830
mov edi, dword [ebp - 0x10]
add edi, 0x14
jmp 0x4017ef
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x88]
test edx, edx
je 0x4018ef
mov esi, dword [edi + 0x8c]
test esi, esi
je 0x4018ef
mov eax, ebx
sub eax, dword [edi + 0x1c]
lea ecx, [edx + ebx]
mov dword [ebp - 0x20], eax
mov eax, ecx
sub eax, edx
sub eax, ebx
cmp eax, esi
jae 0x4018ef
mov esi, dword [ecx + 4]
sub esi, 8
shr esi, 1
mov edx, 0
je 0x4018da
jmp 0x4018b0
movzx eax, word [ecx + edx*2 + 8]
mov edi, eax
and edi, 0xf000
cmp edi, 0x3000
jne 0x4018d2
mov edi, dword [ebp - 0x20]
and eax, 0xfff
add eax, dword [ecx]
add dword [eax + ebx], edi
inc edx
cmp edx, esi
jb 0x4018b0
mov edi, dword [ebp + 8]
add ecx, dword [ecx + 4]
mov edx, ecx
sub edx, dword [edi + 0x88]
sub edx, ebx
cmp edx, dword [edi + 0x8c]
jb 0x401898
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x10]
mov dword [eax + 8], ebx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add ecx, ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
call ecx
push 0x8000
push 0
push ebx
call dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4