Function at 0x415b80
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections
Write file on windows

Disassembly:
mov eax, 0xac58
call fcn.0042e520
xor eax, eax
push ebx
mov dword [esp + 0x11], eax
push ebp
mov dword [esp + 0x19], eax
push esi
mov dword [esp + 0x21], eax
push edi
mov dword [esp + 0x29], eax
mov ecx, 0x7f
mov word [esp + 0x2d], ax
lea edi, [esp + 0x35]
mov byte [esp + 0x2f], al
mov byte [esp + 0x34], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1a5d
xor eax, eax
lea edi, [esp + 0x42f1]
mov byte [esp + 0x42f0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x235]
mov byte [esp + 0x234], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43178c
push str..._log.txt
mov byte [esp + 0x24], 0
stosb byte es:[edi], al
call dword [0x472ec4]
mov ebx, eax
mov ecx, 0x1a5e
xor eax, eax
lea edi, [esp + 0x42f8]
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x23c]
rep stosd dword es:[edi], eax
mov ecx, 0xd2f
lea edi, [esp + 0xe3c]
rep stosd dword es:[edi], eax
mov edx, dword [0x431940]
mov ecx, 0x100
lea edi, [esp + 0xa3c]
mov esi, dword [esp + 0xac74]
rep stosd dword es:[edi], eax
mov ecx, dword [0x43193c]
mov eax, dword [0x431944]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x431948]
mov dword [esp + 0x28], edx
mov dl, byte [esi]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x26]
and ecx, 0xff
mov byte [esp + 0x2a], dl
inc ecx
mov dword [esp + 0x2c], eax
mov al, byte [esi + 1]
lea edx, [esp + 0x26]
push ecx
push edx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x33], al
call dword [0x472df0]
mov byte [esp + 0x3c], al
mov al, byte [esi + 2]
mov edi, eax
add esp, 0x10
and edi, 0xff
lea ecx, [esi + 3]
shl edi, 8
xor edx, edx
mov dl, byte [ecx]
add edi, edx
cmp edi, 8
jge 0x415fd3
mov eax, dword [0x432078]
mov ecx, dword [0x43207c]
mov edx, dword [0x432080]
mov dword [esp + 0xe34], eax
mov eax, dword [0x432084]
mov dword [esp + 0xe38], ecx
mov cl, byte [0x432088]
mov dword [esp + 0xe40], eax
mov al, byte [esi + 1]
mov dword [esp + 0xe3c], edx
mov dl, byte [esi]
mov byte [esp + 0xe44], cl
mov byte [esp + 0xe3c], al
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xe3c]
mov byte [esp + 0xe3b], dl
mov edx, dword [esp + 0xe3b]
mov eax, dword [esp + 0xe3a]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x40]
push str.Req:_02x__02x__02x
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xac6c]
xor edx, edx
lea edi, [esp + 0x34]
mov cl, byte [eax + ebp + 1]
xor eax, eax
mov byte [esp + ebp + 0xe3b], cl
mov dl, byte [esp + ebp + 0xe3b]
mov ecx, 0x80
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push 0x431770
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0xa
rep movsb byte es:[edi], byte [esi]
jl 0x415d8f
lea eax, [esp + 0xa34]
push 0x100
lea ecx, [esp + 0xe38]
push eax
push ecx
push 0x11
call dword [0x473ad4]
movsx edx, ax
mov edi, str.Ans:
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x10], edx
sub edi, ecx
lea edx, [esp + 0x234]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov al, byte [esp + ebp + 0xa34]
lea ecx, [esp + 0x34]
push eax
push 0x431770
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp ebp, 0xd
jne 0x415e99
lea edx, [esp + 0x234]
mov edi, str._nAns:
jmp 0x415ea4
lea edi, [esp + 0x34]
lea edx, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0x19
rep movsb byte es:[edi], byte [esi]
jl 0x415e5e
mov ebp, dword [esp + 0x10]
push 2
test ebp, ebp
push eax
push ebx
jge 0x415f57
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
push 1
push 0x431764
call esi
lea edi, [esp + 0x430c]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea eax, [esp + 0x4314]
push ecx
push eax
call esi
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
lea ecx, [esp + 0x26c]
push ecx
call esi
push ebx
push 1
push 1
push 0x431764
call esi
add esp, 0x4c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac58
ret
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
push 1
push 0x431764
call esi
lea edi, [esp + 0x430c]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea edx, [esp + 0x4314]
push ecx
push edx
call esi
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea eax, [esp + 0x268]
push ecx
push eax
call esi
push ebx
push 1
push 1
push 0x431764
call esi
add esp, 0x4c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac58
ret
mov edx, dword [0x43204c]
add al, 0x10
mov dword [esp + 0xe34], edx
mov edx, dword [0x432050]
mov dword [esp + 0xe38], edx
mov edx, dword [0x432054]
mov dword [esp + 0xe3c], edx
mov dl, byte [0x432058]
mov byte [esp + 0xe40], dl
mov dl, byte [esi]
mov byte [esp + 0xe36], dl
mov dl, byte [esi + 1]
lea esi, [edi - 6]
mov byte [esp + 0xe39], al
mov eax, esi
mov byte [esp + 0xe37], dl
cdq
mov edi, 7
idiv edi
mov eax, 0x92492493
test edx, edx
je 0x41604b
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax + 1]
jmp 0x416059
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea esi, [edx + 1]
mov dword [esp + 0x14], edx
mov eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [esp + 0xe34], al
mov eax, esi
and eax, 0x800000ff
jns 0x416085
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ecx]
mov byte [esp + 0xe35], al
mov ax, word [ecx + 4]
mov cl, byte [ecx + 6]
mov word [esp + 0xe3e], ax
mov byte [esp + 0xe40], cl
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0xe3a], edx
mov edx, dword [esp + 0xe37]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe36]
mov ecx, dword [esp + 0xe38]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x40]
push str.Req:_02x__02x__02x
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, 3
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov al, byte [esp + ebp + 0xe36]
lea ecx, [esp + 0x34]
push eax
push 0x431770
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0xb
rep movsb byte es:[edi], byte [esi]
jl 0x416129
mov edi, 0x431764
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x41637b
mov eax, dword [esp + 0xac6c]
lea ebx, [esp + 0xe42]
add eax, 0xa
mov dword [esp + 0x10], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
mov byte [ebx - 1], 8
mov edx, dword [esp + 0xe36]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xe37]
and edx, 0xff
and ecx, 0xff
lea eax, [esp + 0x34]
push ecx
push edx
push 8
push str.Req:_02x__02x__02x
push eax
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
and eax, 0x8000000f
rep movsb byte es:[edi], byte [esi]
jns 0x41625f
dec eax
or eax, 0xfffffff0
inc eax
add al, 0x21
cmp al, 0x30
mov byte [ebx], al
jne 0x41626a
mov byte [ebx], 0x20
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov al, byte [ebx]
lea ecx, [esp + 0x34]
push eax
push 0x431770
push ecx
call ebp
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, 0x80
lea edi, [esp + 0x34]
mov dl, byte [eax + ebp]
xor eax, eax
mov byte [ebx + ebp + 1], dl
and edx, 0xff
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x38]
push 0x431770
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 7
rep movsb byte es:[edi], byte [esi]
jl 0x4162bb
mov edi, 0x431764
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x42f0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, ebp
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add esi, 7
add ebx, 9
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
jl 0x4161db
mov ebx, dword [esp + 0x30]
mov eax, ecx
lea ecx, [esp + 0xa34]
push 0x400
lea edx, [esp + 0xe38]
push ecx
lea eax, [eax + eax*8 + 0xd]
push edx
push eax
call dword [0x473a5c]
movsx ecx, ax
mov dword [esp + 0x20], ecx
mov edi, str.Ans:
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov al, byte [esp + ebp + 0xa34]
lea ecx, [esp + 0x34]
push eax
push 0x431770
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp ebp, 0xd
jne 0x416416
lea edx, [esp + 0x234]
mov edi, str._nAns:
jmp 0x416421
lea edi, [esp + 0x34]
lea edx, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0x19
rep movsb byte es:[edi], byte [esi]
jl 0x4163db
push 2
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
push 1
push 0x431764
call esi
lea edi, [esp + 0x430c]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea eax, [esp + 0x4314]
push ecx
push eax
call esi
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
lea ecx, [esp + 0x26c]
push ecx
call esi
push ebx
push 1
push 1
push 0x431764
call esi
add esp, 0x4c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
xor edx, edx
test eax, eax
setle dl
pop edi
dec edx
pop esi
pop ebp
and eax, edx
pop ebx
add esp, 0xac58
ret