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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x24bed6b
push eax
mov dword fs:[0], esp
sub esp, 0xec4
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
mov ebp, edx
je 0x2405bd7
cmp ebp, ebx
je 0x2405bd7
or edx, 0xffffffff
xor eax, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, 6
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x58], eax
mov ecx, 0x20
lea edi, [esp + 0x68]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], edx
rep stosd dword es:[edi], eax
mov edx, esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0xedc], ebx
call fcn.0247f900
test eax, eax
jne 0x2405863
mov dword [esp + 0x48], 0xc
jmp 0x240587d
push ebx
push ebx
push 3
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 3
call fcn.02406850
cmp eax, ebx
jne 0x240588f
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x2405b2e
jmp 0x2405b27
mov edx, dword [ebp + 0xdde]
xor eax, eax
mov dword [esp + 0xe8], ebx
mov ecx, 0x379
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x37a
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x1b]
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x24], ebx
call fcn.02406ba0
test eax, eax
je 0x2405ada
cmp dword [esp + 0x18], ebx
je 0x2405900
mov dword [esp + 0x48], 9
jmp 0x2405ada
cmp byte [esp + 0x13], bl
jne 0x2405913
mov dword [esp + 0x48], 9
jmp 0x2405ada
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ebx
push ebx
push edx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2405937
mov dword [esp + 0x48], 0xa
jmp 0x2405ada
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0xdea
lea edx, [esp + 0xf4]
push edx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x2405ad2
cmp dword [esp + 0x1c], 0xdea
jne 0x2405ad2
mov ecx, dword [esp + 0xeb8]
cmp ecx, dword [ebp + 0xdd0]
jne 0x2405ada
mov ecx, 0x32
lea edi, [ebp + 0x918]
lea esi, [esp + 0xa00]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x2405ada
mov eax, dword [esp + 0xb90]
cmp eax, dword [ebp + 0xaa8]
jne 0x2405ada
mov ecx, dword [esp + 0xebc]
cmp ecx, dword [ebp + 0xdd4]
jne 0x2405ada
mov dl, byte [esp + 0xec4]
cmp dl, byte [ebp + 0xddc]
jne 0x2405ada
mov eax, dword [ebp + 0xdde]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1b]
push ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x28], ebx
call fcn.02406ba0
test eax, eax
je 0x2405a95
cmp dword [esp + 0x1c], ebx
je 0x2405a1a
mov dword [esp + 0x48], 9
jmp 0x2405a95
cmp byte [esp + 0x13], bl
jne 0x2405a2a
mov dword [esp + 0x48], 9
jmp 0x2405a95
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push ebx
push edx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2405a4b
mov dword [esp + 0x48], 0xa
jmp 0x2405a95
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0xdea
push ebp
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2405a74
mov dword [esp + 0x48], 4
jmp 0x2405a95
cmp dword [esp + 0x14], 0xdea
je 0x2405a88
mov dword [esp + 0x48], 4
jmp 0x2405a95
lea ecx, [esp + 0x20]
call fcn.02406f60
test eax, eax
jne 0x2405aa7
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x2405b2e
jmp 0x2405b27
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x2405ab7
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], 0xffffffff
call fcn.024017d0
mov eax, 1
jmp 0x2405bd9
mov dword [esp + 0x48], 5
xor eax, eax
mov dword [esp + 0xe8], ebx
mov ecx, 0x379
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf0]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
call fcn.02405cd0
test eax, eax
jne 0x2405b44
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x2405b2e
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], 0xffffffff
call fcn.024017d0
jmp 0x2405bd7
cmp dword [esp + 0x14], ebx
jne 0x2405bc3
mov eax, dword [esp + 0xeb8]
cmp eax, dword [ebp + 0xdd0]
jne 0x2405b9e
mov ecx, 0x32
lea edi, [ebp + 0x918]
lea esi, [esp + 0xa00]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x2405b9e
mov eax, dword [esp + 0xb90]
cmp eax, dword [ebp + 0xaa8]
jne 0x2405b9e
mov ecx, dword [esp + 0xebc]
cmp ecx, dword [ebp + 0xdd4]
jne 0x2405b9e
mov dl, byte [esp + 0xec4]
cmp dl, byte [ebp + 0xddc]
je 0x2405bf2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf0]
push edx
lea ecx, [esp + 0x2c]
call fcn.02405cd0
test eax, eax
je 0x2405bc3
cmp dword [esp + 0x14], ebx
je 0x2405b4a
mov dword [esp + 0xedc], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.024608f0
xor eax, eax
mov ecx, dword [esp + 0xed4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xed0
ret
mov eax, dword [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.02405ef0
test eax, eax
mov dword [esp + 0xedc], 0xffffffff
lea ecx, [esp + 0x20]
je 0x2405bd2
call fcn.024608f0
mov eax, 1
jmp 0x2405bd9