Function at 0x4023f0
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x63afd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push 0
push 0x80
push 3
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov dword [ebp - 0x44], ebx
push 0
push 1
mov dword [ebp - 0x40], ecx
movzx edx, word [ecx + 0x14]
lea edi, [ecx + 0x18]
movzx ecx, word [ecx + 6]
add edx, edi
push closesocket
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 0
push 2
mov edi, eax
push 0
push edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x40246b
xor esi, esi
jmp 0x402767
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x402488
xor esi, esi
jmp 0x40275e
push ebx
call fcn.005879c0
mov edi, eax
add esp, 4
mov eax, esi
mov dword [ebp - 0x34], edi
add eax, ebx
mov ebx, esi
cmp ebx, eax
jae 0x4024f1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, esi
sub eax, ebx
cmp dword [ebp - 0x10], 0x2000
lea ebx, [eax + edi]
mov edi, dword [ebp - 0x14]
push edi
je 0x4024c4
push esi
jmp 0x4024d7
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.00402390
add esp, 4
add eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.0057f5e0
mov eax, dword [ebp - 0x44]
add esi, edi
mov ebx, dword [ebp - 0x38]
add esp, 0xc
mov edi, dword [ebp - 0x34]
add eax, ebx
cmp esi, eax
jb 0x4024a0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x16], 1
jne 0x402575
cmp dword [eax + 0xa4], 0
lea ecx, [eax + 0x18]
je 0x402575
mov edi, dword [ebp - 0x28]
mov eax, edi
push dword [ecx + 0x88]
mov edx, dword [ebp - 0x2c]
sub eax, ebx
mov ebx, dword [eax + ecx + 0x1c]
mov ecx, dword [ebp - 0x30]
call fcn.00402390
add esp, 4
cmp dword [edi + eax], 0
lea esi, [edi + eax]
je 0x402575
mov eax, dword [esi + 4]
mov edx, 0
lea edi, [eax - 8]
shr edi, 1
je 0x40256e
movzx ecx, word [esi + edx*2 + 8]
mov eax, ecx
and eax, 0xf000
cmp eax, 0x3000
jne 0x402566
and ecx, 0xfff
mov eax, ebx
add ecx, dword [esi]
add ecx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
add dword [ecx], eax
inc edx
cmp edx, edi
jb 0x402541
mov eax, dword [esi + 4]
add esi, eax
cmp dword [esi], 0
jne 0x402532
mov esi, dword [ebp - 0x2c]
xor al, al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x22], al
xor eax, eax
cmp ax, si
jae 0x40273d
mov edi, dword [ebp - 0x30]
mov ebx, edi
movzx ecx, si
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ecx
nop dword [eax]
mov eax, dword [ebx + 0x24]
and eax, 0xa2000020
cmp eax, 0x20000020
jne 0x40272b
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je 0x402637
mov edx, dword [ebx + 0xc]
cmp ecx, edx
jb 0x402637
mov eax, dword [ebx + 0x10]
add eax, edx
cmp ecx, eax
jae 0x402637
cmp byte [ebp - 0x21], 0
jne 0x402637
push ecx
mov edx, esi
mov ecx, edi
call fcn.00402390
mov edi, eax
add esp, 4
add edi, dword [ebp - 0x28]
cmp dword [edi], 0
je 0x402630
mov ebx, dword [ebp - 0x34]
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp - 0x2c]
push ecx
lea esi, [ecx + ebx]
mov ecx, dword [ebp - 0x30]
call fcn.00402390
add eax, dword [ebp - 0x28]
add esp, 4
cmp dword [esi], 0
je 0x402622
mov ecx, dword [eax]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
lea eax, [eax + 4]
cmp dword [esi], 0
jne 0x402612
add edi, 0x14
cmp dword [edi], 0
jne 0x4025f5
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov byte [ebp - 0x21], 1
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
test ecx, ecx
je 0x4026c1
mov edx, dword [ebx + 0xc]
cmp ecx, edx
jb 0x4026c1
mov eax, dword [ebx + 0x10]
add eax, edx
cmp ecx, eax
jae 0x4026c1
cmp byte [ebp - 0x22], 0
jne 0x4026c1
push ecx
mov edx, esi
mov ecx, edi
call fcn.00402390
add eax, dword [ebp - 0x28]
add esp, 4
lea edi, [eax + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4026bd
mov ebx, dword [ebp - 0x34]
nop
mov edx, dword [ebp - 0x2c]
lea esi, [eax + ebx]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.00402390
add eax, dword [ebp - 0x28]
add esp, 4
cmp dword [esi], 0
je 0x4026b0
nop word [eax + eax]
mov ecx, dword [eax]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
lea eax, [eax + 4]
cmp dword [esi], 0
jne 0x4026a0
mov eax, dword [edi + 0x20]
add edi, 0x20
test eax, eax
jne 0x402680
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 0x22], 1
mov eax, dword [ebx + 0xc]
xor esi, esi
mov edx, dword [ebx + 0x14]
add eax, dword [ebp - 0x34]
add edx, dword [ebp - 0x28]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], edx
cmp esi, edi
jae 0x402722
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx]
cmp al, byte [edx + ecx]
jne 0x4026f0
inc esi
inc ecx
cmp esi, edi
jb 0x4026e1
jmp 0x402722
mov ecx, dword [ebp - 0x40]
mov ebx, esi
add ecx, esi
mov al, byte [ecx]
cmp al, byte [ecx + edx]
je 0x402704
inc esi
inc ecx
cmp esi, edi
jb 0x4026f7
mov ecx, dword [ebp - 0x38]
mov edx, esi
add ecx, ebx
sub edx, ebx
mov ebx, dword [ebp - 0x3c]
add ecx, dword [ebx + 0xc]
call fcn.00401c30
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
cmp esi, edi
jb 0x4026dc
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
add ebx, 0x28
sub ecx, 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ecx
jne 0x4025a0
mov eax, dword [ebp - 0x34]
mov esi, 1
test eax, eax
je 0x402752
push eax
call fcn.00587998
add esp, 4
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402772
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057d277
mov esp, ebp
pop ebp
ret