Function at 0x100193d0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
sub esp, 0x80c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x828]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
cmp dword [edi + 0x928], esi
jne 0x1001940b
mov ebx, dword [esp + 0x820]
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [ebx + 0x58]
push ecx
call dword [sym.imp.USER32.dll_CharToOemA]
jmp 0x10019421
mov ebx, dword [esp + 0x820]
lea eax, [esp + 0x1c]
mov edx, dword [ebx + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [edi + 0x92c], esi
je 0x100194bd
cmp dword [ebx + 0x14], esi
jg 0x10019453
jl 0x1001943a
cmp dword [ebx + 0x10], 0xffffffff
ja 0x10019453
cmp dword [ebx + 0x1c], esi
jg 0x10019453
jl 0x1001944a
cmp dword [ebx + 0x18], 0xd09dc300
ja 0x10019453
test byte [edi + 0x4ef5], 0x80
je 0x100194bd
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x10], 0x14
add ecx, 0x14
push ecx
call fcn.10039ff8
add esp, 4
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x10019974
mov word [eax], 1
mov word [eax + 2], 0x10
mov edx, dword [ebx + 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x24]
cmp ecx, esi
jbe 0x100194bd
mov esi, dword [ebx + 0x4c]
mov edx, eax
mov eax, ecx
lea edi, [edx + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x828]
mov eax, dword [edi + 0xa8]
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x100196ed
mov ecx, dword [edi + 0x4e88]
mov eax, dword [ebx + 0x20]
and esi, 0xffff
mov edx, dword [ebx + 0x24]
neg ecx
sbb ecx, ecx
push edi
and ecx, 0xc
push 0
add ecx, eax
add ecx, esi
lea eax, [ecx + edx + 0x1e]
mov ecx, dword [esp + 0x82c]
push eax
push ecx
push ebx
call fcn.10020210
add esp, 0x14
test eax, eax
je 0x10019535
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001951b
push eax
call fcn.10039f0f
add esp, 4
mov eax, dword [edi + 0xa0]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x80c
ret
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
add edx, esi
lea ecx, [edx + eax + 0x1f]
push ecx
call fcn.10039ff8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x100196dc
mov cx, word [esp + 0x10]
mov dword [ebp], 0x4034b50
test cx, cx
jbe 0x1001956f
mov dx, word [ebx + 2]
mov word [ebp + 4], dx
jmp 0x1001958a
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x10019586
xor eax, eax
cmp word [ebx + 6], 9
sete al
add eax, 0x14
mov word [ebp + 4], ax
mov dx, word [ebx + 0x36]
mov word [ebp + 6], dx
mov ax, word [ebx + 6]
mov word [ebp + 8], ax
mov edx, dword [ebx + 8]
mov dword [ebp + 0xa], edx
mov eax, dword [ebx + 0xc]
test cx, cx
mov dword [ebp + 0xe], eax
jbe 0x100195e4
mov eax, dword [ebx + 0x14]
test eax, eax
jg 0x100195d7
jl 0x100195ba
cmp dword [ebx + 0x10], 0xffffffff
ja 0x100195d7
mov eax, dword [ebx + 0x1c]
test eax, eax
jg 0x100195d7
jl 0x100195c9
cmp dword [ebx + 0x18], 0xffffffff
ja 0x100195d7
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x12], ecx
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0x16], edx
jmp 0x100195f0
lea ecx, [ebp + 0x12]
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100195f0
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x12], edx
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x16], eax
mov cx, word [ebx + 0x20]
mov edi, dword [esp + 0x10]
mov word [ebp + 0x1a], cx
mov dx, word [ebx + 0x24]
add edi, edx
lea esi, [esp + 0x1c]
mov ax, di
mov dword [esp + 0x10], edi
mov word [ebp + 0x1c], ax
mov ecx, dword [ebx + 0x20]
sub ax, word [ebx + 0x24]
mov edx, ecx
lea edi, [ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov word [esp + 0x10], ax
and ecx, 3
test ax, ax
mov eax, dword [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
jbe 0x1001964a
mov esi, dword [ebx + 0x24]
mov ecx, eax
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x10019654
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10019669
mov esi, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x20]
lea edi, [edx + ebp + 0x1e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov esi, eax
lea eax, [esp + 0x18]
and esi, 0xffff
push 0
add ecx, esi
push eax
lea eax, [ecx + edx + 0x1e]
mov ecx, dword [esp + 0x82c]
push eax
push ebp
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100196b2
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
add eax, esi
lea edx, [eax + ecx + 0x1e]
mov eax, dword [esp + 0x18]
cmp eax, edx
je 0x100198fb
push ebp
call fcn.10039f0f
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x100196cc
push eax
call fcn.10039f0f
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x80c
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10019974
jmp 0x1001996b
push edi
and esi, 0xffff
call fcn.10020aa0
mov ebp, eax
mov eax, dword [edi + 0x4e88]
add esp, 4
mov ecx, edx
mov edx, dword [ebx + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
add eax, edx
mov edx, dword [ebx + 0x24]
add eax, esi
lea eax, [eax + edx + 0x1e]
cdq
cmp ecx, edx
jg 0x1001975c
jl 0x10019726
cmp ebp, eax
jae 0x1001975c
mov eax, dword [esp + 0x824]
push edi
push eax
push ebx
call fcn.10020bc0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1001975c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001974f
push eax
call fcn.10039f0f
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add ecx, esi
lea eax, [ecx + edx + 0x1f]
push eax
call fcn.10039ff8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10019963
cmp word [esp + 0x10], 0
mov dword [ebp], 0x4034b50
jbe 0x10019794
mov cx, word [ebx + 2]
mov word [ebp + 4], cx
jmp 0x100197b5
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x100197b1
xor edx, edx
cmp word [ebx + 6], 9
sete dl
add edx, 0x14
mov word [ebp + 4], dx
jmp 0x100197b5
mov word [ebp + 4], ax
mov ax, word [ebx + 0x36]
mov word [ebp + 6], ax
mov cx, word [ebx + 6]
mov word [ebp + 8], cx
mov edx, dword [ebx + 8]
mov dword [ebp + 0xa], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xe], eax
mov eax, dword [edi + 0x92c]
test eax, eax
je 0x10019814
mov eax, dword [ebx + 0x14]
test eax, eax
jg 0x10019807
jl 0x100197ea
cmp dword [ebx + 0x10], 0xffffffff
ja 0x10019807
mov eax, dword [ebx + 0x1c]
test eax, eax
jg 0x10019807
jl 0x100197f9
cmp dword [ebx + 0x18], 0xffffffff
ja 0x10019807
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x12], ecx
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0x16], edx
jmp 0x10019820
lea ecx, [ebp + 0x12]
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10019820
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x12], edx
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x16], eax
mov cx, word [ebx + 0x20]
mov word [ebp + 0x1a], cx
mov eax, dword [edi + 0x92c]
test eax, eax
je 0x10019852
mov dx, word [ebx + 0x24]
mov esi, dword [esp + 0x10]
add esi, edx
mov ax, si
mov dword [esp + 0x10], esi
mov word [ebp + 0x1c], ax
sub ax, word [ebx + 0x24]
mov word [esp + 0x10], ax
jmp 0x1001985a
mov ax, word [ebx + 0x24]
mov word [ebp + 0x1c], ax
mov ecx, dword [ebx + 0x20]
lea esi, [esp + 0x1c]
mov edx, ecx
lea edi, [ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x828]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x92c]
test ecx, ecx
je 0x10019898
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x24]
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x100198a2
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100198b7
mov esi, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x20]
lea edi, [edx + ebp + 0x1e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x18]
mov eax, dword [eax + 0xa8]
and esi, 0xffff
push 0
push ecx
mov ecx, dword [ebx + 0x24]
add edx, esi
lea edx, [edx + ecx + 0x1e]
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10019939
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add ecx, esi
lea eax, [ecx + edx + 0x1e]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x10019939
push ebp
call fcn.10039f0f
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x10019925
push eax
mov dword [ebx + 0x60], esi
call fcn.10039f0f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret
pop edi
pop esi
mov dword [ebx + 0x60], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x80c
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001994a
push eax
call fcn.10039f0f
add esp, 4
push ebp
call fcn.10039f0f
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10019974
push eax
call fcn.10039f0f
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x80c
ret