Function at 0x5311a8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x914
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x910], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0xc], eax
mov ebx, edx
mov eax, dword [eax + 4]
push edi
and eax, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
push 0x400
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x515]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
push 0
push eax
mov dword [esp + 0x40], ecx
mov byte [esp + 0x51c], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x28], 0x583988
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
push 0x5c
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x53124a
push 0x2f
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x53124a
mov eax, ebx
mov dword [esp + 0x2c], ebx
jmp 0x53125b
mov edi, eax
mov dword [esp + 0x28], ebx
sub edi, ebx
inc eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x531271
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x531264
sub esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x510]
call fcn.00530323
test eax, eax
je 0x531295
push str.gethostname___failed__continuing_without__n
push dword [esp + 0x24]
call fcn.00512948
pop ecx
pop ecx
xor ebx, ebx
jmp 0x5312a8
lea ebx, [esp + 0x510]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53129f
sub ebx, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], ebx
je 0x5312c5
add edi, edi
add esi, esi
add ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x10]
test dword [esi + 4], 0x80000
je 0x5313ab
mov ecx, dword [esp + 0x20]
call fcn.0052b895
lea eax, [esp + 0x98]
push 8
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_464]
mov edx, dword [esp + 0xa0]
lea edi, [esp + 0xc8]
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
stosd dword es:[edi], eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xac], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_341]
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x10
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_342]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_340]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xd8]
push eax
call fcn.005320b7
add esp, 0xc
cmp eax, 0x1b
jne 0x531394
push 0x1b
pop eax
jmp 0x531636
lea eax, [esp + 0xf8]
lea edx, [esp + 0xe8]
lea ecx, [esp + 0xd0]
jmp 0x5313fd
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xd0]
push eax
mov edx, edi
call fcn.005320b7
pop ecx
cmp eax, 0x1b
je 0x53138c
lea eax, [esp + 0xf8]
push eax
lea edx, [esi + 8]
lea ecx, [esp + 0xd4]
call fcn.00531f3d
pop ecx
lea eax, [esp + 0xa0]
mov edx, edi
push eax
call fcn.00531fd8
pop ecx
lea eax, [esp + 0xb8]
lea edx, [esi + 8]
lea ecx, [esp + 0xa0]
push eax
call fcn.00531f3d
pop ecx
mov edi, dword [esp + 0x14]
mov esi, ebx
mov edx, dword [esp + 0xc]
mov ecx, ebx
mov eax, 0xff
shr esi, 8
and ecx, eax
and esi, eax
mov eax, edi
add edx, 0x70
shr eax, 8
add edx, edi
mov ebx, 0xff
and eax, ebx
and edi, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 8
and ebx, 0xff
and eax, 0xff
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 7]
push eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 6]
push eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 5]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 4]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, edx
shr eax, 8
and eax, 0xff
push eax
movzx eax, dl
xor edx, edx
push eax
push esi
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push edx
add ecx, 0x70
mov eax, ecx
shr eax, 8
and eax, 0xff
push eax
movzx eax, cl
push eax
mov eax, dword [esp + 0x7c]
push eax
push edi
push eax
mov eax, dword [esp + 0x104]
push edi
push edx
push edx
push edx
push 0x70
push eax
push ebx
push eax
push ebx
push edx
push edx
push edx
push 0x58
push edx
push 0x18
pop ebx
push ebx
push edx
push ebx
push edx
push edx
push edx
push 0x40
push edx
push ebx
push edx
push ebx
push edx
push edx
push edx
push edx
push str.NTLMSSP_c
lea eax, [esp + 0x1f4]
push 0x400
push eax
call fcn.0051d17e
mov edx, eax
add esp, 0xec
mov eax, 0x3e8
cmp edx, eax
jae 0x531536
lea edi, [esp + 0x110]
add edi, edx
lea esi, [esp + 0xb8]
push 6
add edx, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp edx, eax
jae 0x531536
lea edi, [esp + 0x110]
push 6
add edi, edx
lea esi, [esp + 0xfc]
pop ecx
rep movsd dword es:[edi], dword [esi]
add edx, ebx
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
lea edi, [edx + ecx]
lea eax, [edi + ebx]
add eax, esi
cmp eax, 0x400
jb 0x531566
push str.user__domain__host_name_too_big
push dword [esp + 0x24]
call fcn.005129bc
pop ecx
pop ecx
jmp 0x53138c
cmp dword [esp + 0x18], 0
je 0x531587
shr ecx, 1
push ecx
lea ecx, [esp + 0x114]
add ecx, edx
mov edx, dword [esp + 0x2c]
call fcn.0053110c
add esp, 4
jmp 0x53159e
push ecx
push dword [esp + 0x2c]
lea eax, [esp + 0x118]
add eax, edx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x5315c1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x110]
mov eax, ebx
add ecx, edi
shr eax, 1
push eax
call fcn.0053110c
add esp, 4
jmp 0x5315d8
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x118]
add eax, edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add edi, ebx
cmp dword [esp + 0x18], 0
je 0x531600
mov eax, esi
lea ecx, [esp + 0x110]
shr eax, 1
lea edx, [esp + 0x510]
push eax
add ecx, edi
call fcn.0053110c
add esp, 4
jmp 0x53161b
push esi
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x118]
add eax, edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push dword [esp + 0x34]
lea eax, [edi + esi]
push dword [esp + 0x34]
lea edx, [esp + 0x118]
push eax
call fcn.0052f103
add esp, 0xc
mov ecx, dword [esp + 0x91c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret