Function at 0x523bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607f53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0xffffffff
je 0x524007
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x408]
cmp eax, 0x3fe
jne 0x523c5e
lea edx, [esi + 8]
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x3ff
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x523f7a
mov eax, dword [ebp - 0x2c]
test eax, eax
jbe 0x523f7a
mov dword [esi + 0x408], 0
jmp 0x523c65
inc eax
mov dword [esi + 0x408], eax
mov edx, dword [esi + 0x408]
lea ecx, [ebp - 0x14]
mov bl, byte [esi + edx + 8]
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x28]
push eax
call fcn.005d9934
cmp bl, 0x3c
je 0x523cdf
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 4
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x20]
test eax, eax
setne bl
call fcn.005e118c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005e118c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005e118c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005e118c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e118c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x6ce7c8
lea ecx, [ebp - 0x1c]
call fcn.005e1315
push 0x6ce7c8
lea ecx, [ebp - 0x18]
call fcn.005e1315
push 0x6ce7c8
lea ecx, [ebp - 0x20]
call fcn.005e1315
mov eax, dword [esi + 0x408]
cmp eax, 0x3fe
jne 0x523d55
lea edx, [esi + 8]
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x3ff
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x523f7a
mov eax, dword [ebp - 0x40]
test eax, eax
jbe 0x523f7a
mov dword [esi + 0x408], 0
jmp 0x523d5c
inc eax
mov dword [esi + 0x408], eax
mov edx, dword [esi + 0x408]
mov al, byte [esi + edx + 8]
mov byte [ebp - 0x28], al
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
call fcn.005e14b5
push str._r_n__r_n
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523d06
push 0x6baa40
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523fcb
push 3
push 0
lea ecx, [ebp - 0x14]
call fcn.005d9949
push 0x6a0cc0
lea ecx, [ebp - 0x14]
call fcn.005d9c35
mov edi, eax
cmp edi, 0xffffffff
jle 0x523fcb
lea edx, [ebp - 0x38]
push edi
push edx
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.005e12c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.005e118c
add edi, 2
lea ecx, [ebp - 0x14]
push edi
push 0
call fcn.005d9949
push str.referer:
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523e61
add eax, 9
lea ecx, [ebp - 0x14]
push eax
push 0
call fcn.005d9949
push 0x6a0cc0
lea ecx, [ebp - 0x14]
call fcn.005d9c35
mov edi, eax
cmp edi, 0xffffffff
jle 0x523e61
lea eax, [ebp - 0x30]
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.005e12c5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.005e118c
add edi, 2
lea ecx, [ebp - 0x14]
push edi
push 0
call fcn.005d9949
push str.cookie:
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523ec9
add eax, 8
lea ecx, [ebp - 0x14]
push eax
push 0
call fcn.005d9949
push 0x6a0cc0
lea ecx, [ebp - 0x14]
call fcn.005d9c35
mov edi, eax
cmp edi, 0xffffffff
jle 0x523ec9
lea ecx, [ebp - 0x34]
push edi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.005e12c5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.005e118c
add edi, 2
lea ecx, [ebp - 0x14]
push edi
push 0
call fcn.005d9949
push str.pd:
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523f31
add eax, 4
lea ecx, [ebp - 0x14]
push eax
push 0
call fcn.005d9949
push 0x6a0cc0
lea ecx, [ebp - 0x14]
call fcn.005d9c35
mov edi, eax
cmp edi, 0xffffffff
jle 0x523f31
lea edx, [ebp - 0x3c]
push edi
push edx
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.005e12c5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.005e118c
add edi, 2
lea ecx, [ebp - 0x14]
push edi
push 0
call fcn.005d9949
push 0x6baa7c
lea ecx, [ebp - 0x14]
call fcn.005d9c35
cmp eax, 0xffffffff
jle 0x523f4f
push 3
push 0
lea ecx, [ebp - 0x14]
call fcn.005d9949
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.0047bf80
jmp 0x523c0f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.005e118c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005e118c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005e118c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005e118c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e118c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.005e118c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005e118c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005e118c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005e118c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e118c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4