Function at 0x39ea816d
Capabilities:
Write file on windows

Disassembly:
push 0x18c
mov eax, 0x39ebf58f
call fcn.39eaecb8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
xor ebx, ebx
push 2
mov dword [ebp - 0x178], ecx
pop edi
cmp eax, ebx
jne 0x39ea824d
push dword [0x39ee90cc]
lea ecx, [ebp - 0x34]
call fcn.39eb4742
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.39ea2163
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.39eb4742
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x198]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
push ebx
push 1
call fcn.39eb4742
cmp dword [esi + 0x14], ebx
je 0x39ea85a1
lea ecx, [ebp - 0x50]
call fcn.39e3c0a7
mov dword [ebp - 4], 3
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x178]
lea eax, [ebp - 0x50]
push eax
call fcn.39ea71c7
test al, al
je 0x39ea8592
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x39ea8220
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x170]
call fcn.39eb4742
mov byte [ebp - 4], 4
push dword [ebp - 0x170]
lea ecx, [ebp - 0x6c]
call fcn.39eb4742
mov byte [ebp - 4], 5
cmp dword [esi + 0x18], 8
jb 0x39ea8293
mov esi, dword [esi + 4]
jmp 0x39ea8296
cmp dword [esi + 0x18], 8
jb 0x39ea8258
mov eax, dword [esi + 4]
jmp 0x39ea825b
lea eax, [esi + 4]
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
je 0x39ea81e2
push esi
lea eax, [ebp - 0x198]
push eax
call fcn.39ea2499
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
jmp 0x39ea81da
add esi, 4
push ebx
push 0x80
push edi
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x39ea8565
mov esi, dword [sym.imp.kernel32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x17c]
push eax
push 6
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x17c], ebx
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xfe
mov byte [ebp - 0x16], 0xd
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xa
mov byte [ebp - 0x13], bl
call esi
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x174], ebx
jae 0x39ea82fb
lea eax, [ebp - 0x68]
push ebx
lea ecx, [ebp - 0x174]
push ecx
mov ecx, dword [ebp - 0x58]
add ecx, ecx
push ecx
push eax
push edi
call esi
test eax, eax
je 0x39ea855e
cmp dword [ebp - 0x174], ebx
je 0x39ea855e
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.39eb4742
mov esi, dword [eax + 0x40]
cmp esi, ebx
je 0x39ea851e
lea ecx, [ebp - 0x34]
call fcn.39e3c0a7
mov byte [ebp - 4], 6
push 0x39e0e418
push esi
call fcn.39eb4742
mov edi, dword [ebp - 0x178]
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 0xd
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea8383
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea8374
lea eax, [ebp - 0x30]
push eax
push 0x39e0e408
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xe
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea83af
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea83a0
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3f8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xf
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea83db
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea83cc
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3e8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x10
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea8407
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea83f8
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3d8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x11
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea8433
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea8424
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3c8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x12
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea845f
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea8450
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3b8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x13
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea848b
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea847c
lea eax, [ebp - 0x30]
push eax
push 0x39e0e3a8
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x14
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea84b7
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea84a8
lea eax, [ebp - 0x30]
push eax
push 0x39e0e398
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x15
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea84e3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea84d4
lea eax, [ebp - 0x30]
push eax
push 0x39e0e388
push esi
call fcn.39eb4742
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x16
mov ecx, edi
call fcn.39eb4742
test al, al
je 0x39ea850f
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x39ea8500
lea eax, [ebp - 0x30]
push eax
push 0x39e0e374
push esi
call fcn.39eb4742
add esp, 0xc
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.39eb4742
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.39eb4742
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x39ea854b
push dword [ebp - 0x170]
call fcn.39e6beaf
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.39eb4742
mov al, 1
jmp 0x39ea85a3
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.39eb4742
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x39ea8592
push dword [ebp - 0x170]
call fcn.39e6beaf
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.39eb4742
xor al, al
call fcn.39eaed4a
ret 8