Function at 0x4138b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5912d6
mov eax, dword fs:[0]
push eax
mov eax, 0x3294
mov dword fs:[0], esp
call fcn.00554450
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2c]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call fcn.00410fa0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00410ec0
lea ecx, [ebp - 0x1960]
mov ebx, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1950]
mov dword [ebp - 0x24], ebx
call fcn.0043f590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1938]
call fcn.0043f590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1920]
call fcn.0043f590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1908]
call fcn.0043f590
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
sub esp, 0x110
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
mov byte [ebp - 0x1970], 0x6f
mov dword [ebp - 0x196c], 5
call fcn.00410a60
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x32a0]
call fcn.00411d00
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x31d8]
lea eax, [edi + 0x193]
add edi, 0x194
shl edi, 4
push edi
shl eax, 4
push 0
mov dword [ebp - 0x1964], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x413c75
push 0x10
lea ecx, [ebp - 0x1970]
push ecx
push edi
push esi
call fcn.00554202
push 0x1930
lea edx, [ebp - 0x32a0]
push edx
lea eax, [esi + 0x10]
push edi
push eax
call fcn.00554202
mov eax, dword [ebp - 0x31d8]
add esp, 0x20
mov dword [ebp - 0x18], 0
test eax, eax
jle 0x413a2a
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x54]
push 0x10
add edx, ebx
push edx
shl eax, 4
push eax
lea eax, [esi + ebx + 0x1940]
push eax
call fcn.00554202
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x31d8]
inc ecx
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jl 0x4139f4
mov ebx, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_SH_ADD_TASK_to_the_server:__d
call fcn.00554fbd
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3248]
call fcn.00401000
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x3260]
call fcn.00401000
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x3278]
call fcn.00401000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3290]
call fcn.00401000
mov byte [ebp - 4], 0
lea edx, [ebp - 0x1960]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1908]
call fcn.00401000
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1920]
call fcn.00401000
mov byte [ebp - 4], 0x17
jmp 0x413ce7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x413bcf
test esi, esi
je 0x413bcf
cmp dword [ebp - 0x1c], 0x6f
push ebx
je 0x413b51
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x32a0]
call fcn.00410f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1970]
call fcn.004110a0
jmp 0x413d01
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
push ecx
lea ecx, [ebp + 8]
push ecx
call fcn.004103a0
mov eax, dword [eax]
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x413b81
push edi
lea ecx, [esi + 0x1c]
call fcn.00410da0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x32a0]
call fcn.00410f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1970]
call fcn.004110a0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x413bba
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x3248]
call fcn.00401000
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x3260]
call fcn.00401000
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x3278]
call fcn.00401000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3290]
call fcn.00401000
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1960]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x1908]
call fcn.00401000
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1920]
call fcn.00401000
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x1938]
call fcn.00401000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1950]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x413d1c
mov ecx, dword [ebp - 0x14]
push ecx
jmp 0x413d12
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3248]
call fcn.00401000
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3260]
call fcn.00401000
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3278]
call fcn.00401000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3290]
call fcn.00401000
mov byte [ebp - 4], 0
lea edx, [ebp - 0x1960]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1908]
call fcn.00401000
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1920]
call fcn.00401000
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1938]
call fcn.00401000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1950]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x413d1c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4