Function at 0x41ba80
Capabilities:
Access peb ldr_data
Delete file
Get file size
Get ntdll base address
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x462ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x47aaac]
mov edx, dword [eax + 0xc]
mov ecx, 0x47aaac
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x30], 0
call fcn.0041b600
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00416a40
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xf
push str.VMRulerZipG.xml
lea ecx, [esp + 0x1c]
call fcn.00419ae0
mov ecx, dword [0x47a880]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
push esi
push 0
call eax
mov ebx, eax
cmp ebx, 1
mov dword [esp + 0x20], ebx
jne 0x41bcba
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, edi
je 0x41bb70
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x41bba3
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41bb8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [ebx + 1]
push eax
call fcn.0042ff51
push 0x500000
mov esi, eax
call fcn.0042ff51
add esp, 8
test esi, esi
mov edi, eax
je 0x41bd24
test edi, edi
je 0x41bd21
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.00441070
push 0x500000
push 0
push edi
call fcn.00441070
add esp, 0x18
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bcfd
cmp dword [esp + 0x18], ebx
jne 0x41bcfd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], 0x500000
call fcn.0045c4c0
add esp, 0x10
test eax, eax
jne 0x41bd04
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebx
mov ecx, dword [esp + 0x34]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41bd04
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bced
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x1c]
jne 0x41bced
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004410ea
push edi
call fcn.004410ea
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
add esp, 8
or edi, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41bcd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
push edx
call ebx
jmp 0x41bd04
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004410ea
push edi
call fcn.004410ea
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00401640
jmp 0x41bb8d
push esi
jmp 0x41bd29
test edi, edi
je 0x41bd31
push edi
call fcn.004410ea
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41bb81