Function at 0x3f7e9a1d
Capabilities:
Write file on windows

Disassembly:
push 0x118
push 0x3f7e9d10
call fcn.3f77936f
mov eax, dword [0x3f7ed4b8]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x3f7efc00]
xor ecx, ecx
cmp eax, ecx
je 0x3f7e9a61
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x3f7e9b5f
mov eax, dword [ebp + 8]
dec eax
je 0x3f7e9a7a
mov edi, 0x3f7e9cec
mov dword [ebp - 0x20], 0x3f7e9c38
mov esi, 0xd4
jmp 0x3f7e9a8b
mov edi, 0x3f7e9c18
mov dword [ebp - 0x20], 0x3f7e9b78
mov esi, 0xb9
mov byte [ebp - 0x24], cl
push 0x104
lea eax, [ebp - 0x128]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x3f7e9ab8
push 0x3f7db940
lea eax, [ebp - 0x128]
push eax
call fcn.3f7b48cc
pop ecx
pop ecx
lea ebx, [ebp - 0x128]
lea eax, [ebp - 0x128]
push eax
call fcn.3f78f5e4
pop ecx
add eax, 0xb
cmp eax, 0x3c
jbe 0x3f7e9afc
lea eax, [ebp - 0x128]
push eax
call fcn.3f78f5e4
mov ebx, eax
lea eax, [ebp - 0x128]
sub eax, 0x31
add ebx, eax
push 3
push 0x3f7db93c
push ebx
call fcn.3f7ba35b
add esp, 0x10
push ebx
call fcn.3f78f5e4
pop ecx
lea eax, [eax + esi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.3f72d2cb
mov dword [ebp - 0x18], esp
mov esi, esp
push edi
push esi
call fcn.3f7b48cc
mov edi, 0x3f7db938
push edi
push esi
call fcn.3f7ba125
push 0x3f7e9b68
push esi
call fcn.3f7ba125
push ebx
push esi
call fcn.3f7ba125
push edi
push esi
call fcn.3f7ba125
push dword [ebp - 0x20]
push esi
call fcn.3f7ba125
push 0x12010
push 0x3f7db910
push esi
call fcn.3f768589
add esp, 0x3c
push 3
call fcn.3f7e6e88
nop
nop
push eax
jb 0x3f7e9bda
jb 0x3f7e9bcf
insd dword es:[edi], dx
cmp ah, byte [eax]
add byte [eax - 0x6f6f6f70], dl
nop
inc ecx
and byte [edx + 0x75], ah
jb 0x3f7e9ba1
outsd dx, dword [esi]
jbe 0x3f7e9be9
jb 0x3f7e9bf8
jne 0x3f7e9bf6
and byte [eax + 0x61], ch
jae 0x3f7e9bad
bound esp, qword [ebp + 0x65]
outsb dx, byte [esi]
and byte [ebp + 0x74], ah
arpl word gs:[ebp + 0x64], si
and byte [edi + 0x68], dh
imul esp, dword [ebx + 0x68], 0x73616820
and byte [ebx + 0x6f], ah
push 0x63207361
outsd dx, dword [esi]
jb 0x3f7e9c1b
jne 0x3f7e9c1b
je 0x3f7e9c12
and byte fs:[eax + ebp*2 + 0x65], dh
and byte [eax + 0x72], dh
outsd dx, dword [esi]
jb 0x3f7e9c1a
insd dword es:[edi], dx
daa
jae 0x3f7e9bc7
imul ebp, dword [esi + 0x74], 0x616e7265
insb byte es:[edi], dx
and byte [ebx + 0x74], dh
popal
je 0x3f7e9c2a
je 0x3f7e9c30
and byte cs:[eax], ah
push esp
push 0x72702065
outsd dx, dword [esi]
jb 0x3f7e9c39
insd dword es:[edi], dx
and byte [ebx + 0x61], ah
outsb dx, byte [esi]
arpl word [ecx + 0x6e], sp
outsb dx, byte [esi]
outsd dx, dword [esi]
je 0x3f7e9c01
jae 0x3f7e9c44
insb byte es:[edi], dx
jns 0x3f7e9c08
arpl word [edi + 0x6e], bp
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x3f7e9c56
outsb dx, byte [esi]
jne 0x3f7e9c55
and byte [ebp + 0x78], ah
arpl word gs:[ebp + 0x74], si
imul ebp, dword [edi + 0x6e], 0x646e6120
and byte [ebp + 0x75], ch
je 0x3f7e9c61
outsd dx, dword [esi]
outsb dx, byte [esi]
and byte [ecx + 0x6e], ah
and byte fs:[ebp + 0x75], ch
jae 0x3f7e9c77
or ch, byte [esi + 0x6f]
ja 0x3f7e9c28
bound esp, qword [ebp + 0x20]
je 0x3f7e9c72
jb 0x3f7e9c7c
imul ebp, dword [esi + 0x61], 0x2e646574
or al, byte [eax]
je 0x3f7e9c79
or al, byte cs:[eax]
inc edx
jne 0x3f7e9c81
jb 0x3f7e9c3f
jb 0x3f7e9c3f
outsd dx, dword [esi]
jbe 0x3f7e9c87
jb 0x3f7e9c96
jne 0x3f7e9c94
and byte [ebp + 0x74], ah
je 0x3f7e9c90
arpl word gs:[ebp + 0x64], si
arpl word [ebp + 0x64], si
and dword [eax], eax
nop
nop
nop
nop
nop
add byte [eax - 0x6f6f6f70], dl
nop
nop
inc ecx
and byte [ebx + 0x65], dh
arpl word [ebp + 0x72], si
imul esi, dword [ecx + edi*2 + 0x20], 0x6f727265
jb 0x3f7e9cb8
outsd dx, dword [esi]
jb 0x3f7e9c69
outsd dx, dword [esi]
and byte [ebp + 0x6e], dh
imul ebp, dword [esi + 0x6f], 0x77
outsb dx, byte [esi]
and byte [ebx + 0x61], ah
popal
jne 0x3f7e9ccb
and byte gs:[eax + 0x61], ch
jae 0x3f7e9c7e
bound esp, qword [ebp + 0x65]
outsb dx, byte [esi]
and byte [ebp + 0x74], ah
arpl word gs:[ebp + 0x64], si
and byte [edi + 0x68], dh
and byte fs:[edi + 0x68], dh
imul esp, dword [ebx + 0x68], 0x73616820
or ah, byte [ebx + 0x6f]
push 0x630a7361
outsd dx, dword [esi]
jb 0x3f7e9cec
jb 0x3f7e9cf0
jne 0x3f7e9cec
jo 0x3f7e9cf1
je 0x3f7e9ce3
and byte fs:[eax + ebp*2 + 0x65], dh
and byte fs:[eax + ebp*2 + 0x65], dh
push 0x72702065
and byte [eax + 0x72], dh
outsd dx, dword [esi]
jb 0x3f7e9ceb
insd dword es:[edi], dx
daa
jae 0x3f7e9cae
imul ebp, dword [esi + 0x74], 0x616e7265
je 0x3f7e9cf7
jb 0x3f7e9d02
popal
insb byte es:[edi], dx
and byte [ebx + 0x74], dh
popal
je 0x3f7e9d01
and byte cs:[eax], ah
push esp
push 0x72702065
outsd dx, dword [esi]
jb 0x3f7e9d0a
insd dword es:[edi], dx
and byte [ebx + 0x61], ah
outsb dx, byte [esi]
outsb dx, byte [esi]
outsd dx, dword [esi]
je 0x3f7e9cd2
jae 0x3f7e9d15
insb byte es:[edi], dx
jns 0x3f7e9cc3
or ah, byte [ebx + 0x6f]
outsb dx, byte [esi]
arpl word [edi + 0x6e], bp
je 0x3f7e9d27
outsb dx, byte [esi]
jne 0x3f7e9d26
and byte [ebp + 0x78], ah
arpl word gs:[ebp + 0x74], si
js 0x3f7e9d2a
arpl word [ebp + 0x74], si
imul ebp, dword [edi + 0x6e], 0x646e6120
and byte [ebp + 0x75], ch
and byte [ecx + 0x6e], ah
and byte fs:[ebp + 0x75], ch
jae 0x3f7e9d48
and byte [esi + 0x6f], ch
ja 0x3f7e9cf9
bound esp, qword [ebp + 0x20]
je 0x3f7e9d43
jb 0x3f7e9d4d
imul ebp, dword [esi + 0x61], 0x2e646574
or al, byte [eax]
je 0x3f7e9d4a
or al, byte cs:[eax]
nop
nop
nop
push ebp
outsb dx, byte [esi]
imul ebp, dword [esi + 0x6f], 0x77
outsb dx, byte [esi]
outsd dx, dword [esi]
ja 0x3f7e9d61
and byte [ebx + 0x65], dh
arpl word [ebp + 0x72], si
jne 0x3f7e9d6b
imul esi, dword [ecx + edi*2 + 0x20], 0x6c696166
jne 0x3f7e9d75
jb 0x3f7e9d69
and byte gs:[ebp + 0x74], ah
and byte [ebp + 0x74], ah
arpl word gs:[ebp + 0x64], si
and dword [eax], eax
je 0x3f7e9d71
and dword fs:[eax], eax
nop
lcall 0x3f7e, 0x9a5c3f7e
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x3f7ed4b8]
mov eax, 0x333f7ed4
inc ebp
add al, 0x8b
dec ebp
or byte [ebx], bh
or eax, 0x3f7ee140
aam 0x7e
aas
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x3f7ee140]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x3f7e9eac
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x3f7edb60]
rol ecx, 0xf8
add eax, 0x60851c8d
sbb al, 0x85
pushal
fstp xword [esi + 0x3f]
aas
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x3f7e9eac
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
adc byte [ecx + 0x7d89f47d], cl
in al, dx
jne 0x3f7e9d7b
xor eax, eax
jmp 0x3f7e9ec0
shr cl, 0x45
add dword [eax], eax
add byte [eax + 0x6a0d7420], ch
add dl, byte [edi + 0x57]
test al, 0x20
je 0x3f7e9d8c
push 2
push edi
push edi
push ecx
call fcn.3f768589
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x3f7e9e48
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x3f7e9e80
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x3f7e9de2
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x3f7e9dd3
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x3f7e9db8
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x3f7e9e22
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x3f7e9e2b
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x3f7e9dac
jmp 0x3f7e9e2d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x3f7e9ea7
cmp dword [ebp + 8], edi
je 0x3f7e9e80
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x3f7e9e75
mov dword [0x3f7efba0], eax
jmp 0x3f7e9eb3
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x3f7e9e6a
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x3f7e9e2d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x3f7e9e2d
push dword [ebp + 8]
call fcn.3f7ea33a
pop ecx
jmp 0x3f7e9ebd
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x3f7e9e95
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x3f7e9d74
mov dword [0x3f7efb9c], 0x1c
mov dword [0x3f7efba0], edi
jmp 0x3f7e9ebd
sub eax, dword [ebp - 0x14]
jmp 0x3f7e9ec0
and dword [0x3f7efba0], 0
mov dword [0x3f7efb9c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.3f78f5bc
leave
ret