Function at 0x41cb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, word [0x490c10]
movzx ecx, word [esi]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041a000
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x41cc07
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cbf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add esi, 4
push esi
push 0x47fc58
lea edi, [ebp - 0x10]
call fcn.004138f0
movzx ecx, word [0x490c10]
mov edx, dword [ebp + 0xc]
add esp, 8
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0041a000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x41cc7b
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41cbe5
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x490c50]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp + 0xc]
call fcn.004019a0
mov eax, dword [0x490c38]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0xc]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00419df0
test eax, eax
jne 0x41cd1d
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cd11
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
jmp 0x41cc40
mov ecx, dword [0x490c54]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp + 0xc]
call fcn.004019a0
mov eax, dword [0x490c3c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0xc]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00419df0
test eax, eax
jne 0x41cda5
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cd11
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
jmp 0x41cc40
mov ecx, dword [0x490c60]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp + 0xc]
call fcn.004019a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ce87
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push ecx
push edx
push str.Ghost.exe__nousb__clone_modepload_src__s:1__dst__s___fro__crcignore__sure__rb__fx__afile_GHOSTERR.TXT__r_nrestart_r_n
lea edi, [ebp - 0x18]
call fcn.004019a0
mov eax, dword [ebp - 0x18]
mov edi, dword [eax - 0xc]
add esp, 0xc
inc edi
push edi
call fcn.0041d281
add esp, 4
lea ecx, [ebp - 0x1c]
mov esi, eax
push ecx
lea eax, [ebp - 0x18]
call fcn.0041a280
mov eax, dword [eax]
push eax
push edi
push esi
call fcn.0045d800
add esp, 0xc
lea eax, [ebp - 0x1c]
call fcn.0041b0e0
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41ce52
push 0
sub eax, ecx
lea edx, [ebp - 0x20]
push edx
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x41cea4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454f3d
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004020a0
lea ecx, [ebp + 0xc]
call fcn.004020a0
lea ecx, [ebp - 0x14]
call fcn.004020a0
lea ecx, [ebp - 0x10]
call fcn.004020a0
jmp 0x41cbf1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454f3d
add esp, 4
cmp dword [ebp + 8], 2
jne 0x41cf19
mov eax, dword [0x490c58]
movzx ecx, word [0x490c10]
push eax
push ecx
push str._c:_s
lea edi, [ebp + 0xc]
call fcn.004019a0
mov eax, dword [0x490c40]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.00419df0
test eax, eax
je 0x41ce7f
lea ecx, [ebp - 0x18]
call fcn.004020a0
lea ecx, [ebp + 0xc]
call fcn.004020a0
lea ecx, [ebp - 0x14]
call fcn.004020a0
lea ecx, [ebp - 0x10]
call fcn.004020a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8