Function at 0x4807e0
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 0x48081b
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 0x480831
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 0x4808d5
cmp dword [edi + 0x8c4], esi
jne 0x48086b
cmp dword [ebx + 0x14], esi
jg 0x48086b
jl 0x480852
cmp dword [ebx + 0x10], 0xffffffff
ja 0x48086b
cmp dword [ebx + 0x1c], esi
jg 0x48086b
jl 0x480862
cmp dword [ebx + 0x18], 0xd09dc300
ja 0x48086b
test byte [edi + 0x5735], 0x80
je 0x4808d5
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x10], 0x14
add ecx, 0x14
push ecx
call fcn.004adbfa
add esp, 4
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x480d8c
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 0x4808d5
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 0x480b05
mov ecx, dword [edi + 0x4ea0]
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.00483e80
add esp, 0x14
test eax, eax
je 0x48094d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x480933
push eax
call fcn.004ad74d
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.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x480af4
mov cx, word [esp + 0x10]
mov dword [ebp], 0x4034b50
test cx, cx
jbe 0x480987
mov dx, word [ebx + 2]
mov word [ebp + 4], dx
jmp 0x4809a2
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x48099e
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 0x4809fc
mov eax, dword [ebx + 0x14]
test eax, eax
jg 0x4809ef
jl 0x4809d2
cmp dword [ebx + 0x10], 0xffffffff
ja 0x4809ef
mov eax, dword [ebx + 0x1c]
test eax, eax
jg 0x4809ef
jl 0x4809e1
cmp dword [ebx + 0x18], 0xffffffff
ja 0x4809ef
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x12], ecx
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0x16], edx
jmp 0x480a08
lea ecx, [ebp + 0x12]
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x480a08
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 0x480a62
mov esi, dword [ebx + 0x24]
mov ecx, eax
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x480a6c
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x480a81
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 0x480aca
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 0x480d13
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x480ae4
push eax
call fcn.004ad74d
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 0x480d8c
jmp 0x480d83
push edi
and esi, 0xffff
call fcn.00484710
mov ebp, eax
mov eax, dword [edi + 0x4ea0]
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 0x480b74
jl 0x480b3e
cmp ebp, eax
jae 0x480b74
mov eax, dword [esp + 0x824]
push edi
push eax
push ebx
call fcn.00484830
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x480b74
mov eax, dword [esp + 0x14]
test eax, eax
je 0x480b67
push eax
call fcn.004ad74d
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.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x480d7b
cmp word [esp + 0x10], 0
mov dword [ebp], 0x4034b50
jbe 0x480bac
mov cx, word [ebx + 2]
mov word [ebp + 4], cx
jmp 0x480bcd
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x480bc9
xor edx, edx
cmp word [ebx + 6], 9
sete dl
add edx, 0x14
mov word [ebp + 4], dx
jmp 0x480bcd
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 0x480c2c
mov eax, dword [ebx + 0x14]
test eax, eax
jg 0x480c1f
jl 0x480c02
cmp dword [ebx + 0x10], 0xffffffff
ja 0x480c1f
mov eax, dword [ebx + 0x1c]
test eax, eax
jg 0x480c1f
jl 0x480c11
cmp dword [ebx + 0x18], 0xffffffff
ja 0x480c1f
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x12], ecx
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0x16], edx
jmp 0x480c38
lea ecx, [ebp + 0x12]
or eax, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x480c38
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 0x480c6a
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 0x480c72
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 0x480cb0
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x24]
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x480cba
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x480ccf
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 0x480d51
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 0x480d51
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x480d3d
push eax
mov dword [ebx + 0x60], esi
call fcn.004ad74d
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 0x480d62
push eax
call fcn.004ad74d
add esp, 4
push ebp
call fcn.004ad74d
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 0x480d8c
push eax
call fcn.004ad74d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x80c
ret