Function at 0x5dd4d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x5c]
add esi, eax
mov al, byte [esi + 1]
mov dl, al
mov cl, al
and al, 0x1f
mov bh, al
mov eax, dword [ebp + 0x2c]
mov bl, byte [esi + 2]
mov word [esp + 0x1c], bx
mov bl, byte [esi + 3]
shr cl, 6
shr bl, 4
shr dl, 7
and cl, 1
and bl, 3
test eax, eax
mov byte [esp + 0x19], dl
mov byte [esp + 0x1f], bl
je 0x5dd534
mov eax, dword [ebp + 8]
test eax, eax
jne 0x5dd534
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x30]
and eax, 0xffff
cmp edi, eax
jne 0x5dd534
mov al, byte [ebp + 0x38]
mov byte [esi + 2], al
cmp bl, 3
mov edi, 4
jne 0x5dd5c7
xor eax, eax
mov al, byte [esi + 4]
mov edi, eax
add edi, 5
test cl, cl
je 0x5dd5d6
mov al, byte [esi + 5]
shr eax, 4
and eax, 1
cmp eax, 1
jne 0x5dd5d6
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 6]
mov cl, byte [esi + 8]
mov al, byte [esi + 7]
xor edx, edx
mov dl, byte [esi + 9]
shl eax, 8
or eax, ecx
mov ecx, 1
shl eax, 8
or eax, edx
xor edx, edx
call fcn.0060d660
mov ecx, eax
mov al, byte [esi + 0xa]
shr al, 7
and eax, 0xff
mov dword [esp + 0x14], edx
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
mov edx, dword [ebp + 0x54]
cmp edx, eax
ja 0x5dd5d2
jb 0x5dd5b4
mov edx, dword [ebp + 0x50]
cmp edx, ecx
jae 0x5dd5d2
mov dword [ebp + 0x50], ecx
pop edi
mov dword [ebp + 0x54], eax
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x14
ret
test cl, cl
je 0x5dd5d6
mov edi, 5
jmp 0x5dd5d6
mov dl, byte [esp + 0x19]
mov eax, dword [ebp + 0x5c]
mov ecx, 0xbc
add eax, ecx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x18]
add eax, ecx
mov dword [ebp + 0x18], eax
mov eax, 0
adc dword [ebp + 0x1c], eax
cmp edi, ecx
jl 0x5dd653
mov ebp, dword [ebp + 0x3c]
mov edx, dword [ebp + 4]
cmp edx, eax
je 0x5dd87b
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + 0xbc]
cmp ecx, ebx
jb 0x5dd865
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
je 0x5dd87b
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5dd87b
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x5dd87b
jmp 0x5dd85e
test dl, dl
jne 0x5dd816
cmp bl, 2
je 0x5dd816
lea ecx, [edi + esi]
xor edx, edx
cmp word [esp + 0x1c], ax
mov dl, byte [ecx]
jne 0x5dd707
cmp edx, eax
jne 0x5dd707
mov eax, dword [ebp + 0x24]
mov edx, 0xbc
sub edx, edi
inc eax
push edx
push ecx
mov ecx, ebp
mov dword [ebp + 0x24], eax
call fcn.005dd460
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x5dd6fa
mov ebp, dword [ebp + 0x3c]
mov ecx, dword [ebp + 4]
cmp ecx, edi
je 0x5dd6fa
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + 0xbc]
cmp eax, ebx
jb 0x5dd6e4
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x5dd6fa
lea ebx, [esp + 0x10]
push edi
push ebx
push edx
push ecx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5dd6fa
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x5dd6fa
mov dword [ebp + 8], edi
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, 0x2f
add edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [ebp + 8], 0xbc
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
cmp edx, 2
jne 0x5dd7b9
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x28]
and edx, 0xffff
cmp ebx, edx
jne 0x5dd7b9
mov eax, dword [ebp + 0x20]
mov edx, 0xbc
sub edx, edi
inc eax
push edx
push ecx
mov ecx, ebp
mov dword [ebp + 0x20], eax
call fcn.005dd270
mov eax, dword [ebp + 8]
test eax, eax
je 0x5dd7a8
mov ebx, dword [ebp + 0x3c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5dd7a8
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
lea eax, [edx + 0xbc]
cmp eax, edi
jb 0x5dd792
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5dd7a8
lea edi, [esp + 0x10]
push 0
push edi
push edx
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5dd7a8
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x5dd7a8
mov dword [ebx + 8], 0
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov ecx, 0x2f
add edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 8], 0xbc
pop edi
mov byte [ebp + 0x74], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp dword [ebp + 8], eax
jne 0x5dd7c9
mov cl, byte [ebp + 0x74]
test cl, cl
je 0x5dd87b
mov ebp, dword [ebp + 0x3c]
mov edx, dword [ebp + 4]
cmp edx, eax
je 0x5dd87b
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + 0xbc]
cmp ecx, ebx
jb 0x5dd865
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
je 0x5dd87b
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5dd87b
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x5dd87b
jmp 0x5dd85e
mov ebp, dword [ebp + 0x3c]
mov ecx, dword [ebp + 4]
cmp ecx, eax
je 0x5dd87b
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [edx + 0xbc]
cmp eax, edi
jb 0x5dd865
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5dd87b
lea edi, [esp + 0x10]
push 0
push edi
push edx
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5dd87b
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x5dd87b
mov dword [ebp + 8], 0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, 0x2f
add edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [ebp + 8], 0xbc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret