Function at 0x10037301
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x914
mov eax, dword [0x1013a420]
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 fcn.1003e9c0
add esp, 0xc
mov dword [esp + 0x28], 0x1012f673
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
push 0x5c
push ebx
call fcn.1003b670
pop ecx
pop ecx
test eax, eax
jne 0x100373a1
push 0x2f
push ebx
call fcn.1003b670
pop ecx
pop ecx
test eax, eax
jne 0x100373a1
mov eax, ebx
mov dword [esp + 0x2c], ebx
jmp 0x100373b2
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 0x100373c8
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100373bb
sub esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x510]
call fcn.10035c0a
test eax, eax
je 0x100373ec
push str.gethostname___failed__continuing_without__n
push dword [esp + 0x24]
call fcn.10018194
pop ecx
pop ecx
xor ebx, ebx
jmp 0x100373ff
lea ebx, [esp + 0x510]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100373f6
sub ebx, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], ebx
je 0x1003741c
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 0x100374fe
mov ecx, dword [esp + 0x20]
call fcn.100318c6
lea eax, [esp + 0x98]
push 8
push eax
call fcn.10053030
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 fcn.100532d0
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x10
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10053330
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.100531b0
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xd8]
push eax
call fcn.100381f4
add esp, 0xc
cmp eax, 0x1b
jne 0x100374e7
push 0x1b
pop eax
jmp 0x10037789
lea eax, [esp + 0xf8]
lea edx, [esp + 0xe8]
lea ecx, [esp + 0xd0]
jmp 0x10037550
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xd0]
push eax
mov edx, edi
call fcn.100381f4
pop ecx
cmp eax, 0x1b
je 0x100374df
lea eax, [esp + 0xf8]
push eax
lea edx, [esi + 8]
lea ecx, [esp + 0xd4]
call fcn.10038088
pop ecx
lea eax, [esp + 0xa0]
mov edx, edi
push eax
call fcn.10038116
pop ecx
lea eax, [esp + 0xb8]
lea edx, [esi + 8]
lea ecx, [esp + 0xa0]
push eax
call fcn.10038088
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.1001ea20
mov edx, eax
add esp, 0xec
mov eax, 0x3e8
cmp edx, eax
jae 0x10037689
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 0x10037689
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 0x100376b9
push str.user__domain__host_name_too_big
push dword [esp + 0x24]
call fcn.10018208
pop ecx
pop ecx
jmp 0x100374df
cmp dword [esp + 0x18], 0
je 0x100376da
shr ecx, 1
push ecx
lea ecx, [esp + 0x114]
add ecx, edx
mov edx, dword [esp + 0x2c]
call fcn.10037265
add esp, 4
jmp 0x100376f1
push ecx
push dword [esp + 0x2c]
lea eax, [esp + 0x118]
add eax, edx
push eax
call fcn.1003da60
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x10037714
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x110]
mov eax, ebx
add ecx, edi
shr eax, 1
push eax
call fcn.10037265
add esp, 4
jmp 0x1003772b
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x118]
add eax, edi
push eax
call fcn.1003da60
add esp, 0xc
add edi, ebx
cmp dword [esp + 0x18], 0
je 0x10037753
mov eax, esi
lea ecx, [esp + 0x110]
shr eax, 1
lea edx, [esp + 0x510]
push eax
add ecx, edi
call fcn.10037265
add esp, 4
jmp 0x1003776e
push esi
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x118]
add eax, edi
push eax
call fcn.1003da60
add esp, 0xc
push dword [esp + 0x34]
lea eax, [edi + esi]
push dword [esp + 0x34]
lea edx, [esp + 0x118]
push eax
call fcn.1003485c
add esp, 0xc
mov ecx, dword [esp + 0x91c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret