Function at 0x10022882
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
jmp 0x1002289e
mov eax, dword [ebp - 0x38]
add eax, 0x44
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
add eax, 0x880
cmp dword [ebp - 0x38], eax
ja 0x10023120
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0x2f37
ja 0x1002298d
cmp dword [ebp - 0x70], 0x2f37
je 0x10022adb
cmp dword [ebp - 0x70], 0x2d17
ja 0x10022939
cmp dword [ebp - 0x70], 0x2d17
je 0x10022ce2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
sub dword [ebp - 0x74], 0x2b3b
je 0x10022cbf
sub dword [ebp - 0x74], 0x44
je 0x10022cd9
sub dword [ebp - 0x74], 0x44
je 0x10022a4a
sub dword [ebp - 0x74], 0x44
je 0x10023085
sub dword [ebp - 0x74], 0x44
je 0x10022c87
sub dword [ebp - 0x74], 0x44
je 0x10022d1c
sub dword [ebp - 0x74], 0x44
je 0x10022acd
jmp 0x1002311b
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
sub dword [ebp - 0x78], 0x2d5b
je 0x10023069
sub dword [ebp - 0x78], 0x44
je 0x10022d11
sub dword [ebp - 0x78], 0x44
je 0x10022af6
sub dword [ebp - 0x78], 0x44
je 0x100230cd
sub dword [ebp - 0x78], 0x44
je 0x10022b5e
sub dword [ebp - 0x78], 0x44
je 0x10022b08
sub dword [ebp - 0x78], 0x44
je 0x100230dd
jmp 0x1002311b
cmp dword [ebp - 0x70], 0x7742
ja 0x100229fa
cmp dword [ebp - 0x70], 0x7742
je 0x10022b20
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
sub dword [ebp - 0x7c], 0x5484
je 0x10023090
sub dword [ebp - 0x7c], 0x44
je 0x10022a97
sub dword [ebp - 0x7c], 0x44
je 0x10022bac
sub dword [ebp - 0x7c], 0x44
je 0x10022d7f
sub dword [ebp - 0x7c], 0x2126
je 0x10022bf4
sub dword [ebp - 0x7c], 0x44
je 0x100230b5
sub dword [ebp - 0x7c], 0x44
je 0x100230e6
jmp 0x1002311b
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
sub dword [ebp - 0x80], 0x7786
je 0x10022d2d
sub dword [ebp - 0x80], 0x44
je 0x10022cf7
sub dword [ebp - 0x80], 0x44
je 0x10022c43
sub dword [ebp - 0x80], 0x44
je 0x10022a5c
sub dword [ebp - 0x80], 0x44
je 0x10022ca4
sub dword [ebp - 0x80], 0x44
je 0x10022b72
sub dword [ebp - 0x80], 0x44
je 0x10022b39
jmp 0x1002311b
push edi
mov ecx, esi
call fcn.10021ae6
mov ecx, dword [ebp + 0x10]
xor edx, edx
jmp 0x1002311b
mov eax, 0xe5f2
mov word [0x1005da2e], ax
mov eax, 0xec
mov word [0x1005da30], ax
mov eax, 0xfb
mov word [0x1005da31], ax
mov dword [0x1005da32], 0xe0f020
mov eax, 0xe1
mov word [0x1005da35], ax
jmp 0x1002311b
push 0x6b
pop eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2e], 0x720065
push 0x6e
pop eax
mov word [ebp - 0x2a], ax
push 0x65
pop eax
mov word [ebp - 0x28], ax
push 0x6c
pop eax
mov word [ebp - 0x26], ax
push 0x33
pop eax
mov word [ebp - 0x24], ax
push 0x32
pop eax
mov word [ebp - 0x22], ax
jmp 0x1002311b
xor eax, eax
mov eax, dword [eax]
mov dword [edi + 0xc], eax
cmp eax, edx
jmp 0x1002311b
mov dword [ebp - 0x38], 0x2f37
mov eax, 0x6d4743cc
jmp 0x10020c65
cmp ecx, edx
jbe 0x10022d7f
mov edx, dword [ebx]
push edx
mov edx, edi
jmp 0x1002311b
ret 0xc
push 0x20
pop eax
mov word [0x1005da14], ax
mov eax, 0xeee4
mov word [0x1005da15], ax
jmp 0x1002311b
mov eax, 0xeb
mov word [0x1005da3f], ax
mov eax, 0xe0
mov word [0x1005da40], ax
mov dword [ebp - 0x10], 0x1005da00
mov eax, dword [ebp - 0x10]
jmp 0x10023123
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
jmp 0x1002311b
mov eax, 0xe5
mov word [0x1005da38], ax
mov eax, 0xeee3
mov word [0x1005da39], ax
push 0x20
pop eax
mov word [0x1005da3b], ax
mov eax, 0xf2f1
mov word [0x1005da3c], ax
mov eax, 0xee
mov word [0x1005da3e], ax
jmp 0x1002311b
push 0x2e
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], 0x6c0064
push 0x6c
pop eax
mov word [ebp - 0x1a], ax
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x30]
push eax
push 0x505d
lea eax, [ebp - 0xc]
push eax
call fcn.10036ab6
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x39], 0
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x11], al
jmp 0x1002311b
mov eax, 0xd1
mov word [0x1005da00], ax
mov eax, 0xf3eb
mov word [0x1005da01], ax
mov eax, 0xe6
mov word [0x1005da03], ax
mov eax, 0xe0e1
mov word [0x1005da04], ax
push 0x20
pop eax
mov word [0x1005da06], ax
mov eax, 0xef
mov word [0x1005da07], ax
mov dword [0x1005da08], 0xeee2e7ee
jmp 0x1002311b
mov eax, 0xed
mov word [0x1005da24], ax
mov eax, 0xf2e8
mov word [0x1005da25], ax
mov dword [0x1005da27], 0xedfcebe5
mov eax, 0xfb
mov word [0x1005da2b], ax
mov eax, 0xe5
mov word [0x1005da2c], ax
push 0x20
pop eax
mov word [0x1005da2d], ax
jmp 0x1002311b
lea edi, [esi + 0x1c]
mov dword [esi], 0x100589d4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [ebp + 0xc], edi
jmp 0x1002311b
mov eax, 0xee
mov word [0x1005da36], ax
mov eax, 0xf7
mov word [0x1005da37], ax
jmp 0x1002311b
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10022adb
push eax
mov dword fs:[0], esp
jmp 0x1002311b
push esi
mov esi, dword [ebp + 8]
jmp 0x1002311b
je 0x10023085
mov edx, dword [eax]
push eax
mov eax, dword [edx]
call eax
add esp, 4
jmp 0x1002311b
mov dword [0x1005da20], 0xeeefee
mov eax, 0xeb
mov word [0x1005da23], ax
jmp 0x1002311b
mov word [eax], cx
mov ecx, dword [ebx + 4]
jmp 0x1002311b
cmp ebx, edx
je 0x10022cd9
lea eax, [ebx + 0xc]
jmp 0x10022b5e
mov eax, 0xe1
mov word [0x1005da17], ax
mov eax, 0xe0
mov word [0x1005da18], ax
mov eax, 0xe2
mov word [0x1005da19], ax
mov eax, 0xffeb
mov word [0x1005da1a], ax
mov eax, 0xf2
mov word [0x1005da1c], ax
mov eax, 0xfc
mov word [0x1005da1d], ax
mov eax, 0xe420
mov word [0x1005da1e], ax
jmp 0x1002311b
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.1003770f
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.10037700
push eax
lea ecx, [ebp - 0x40]
call fcn.1003771d
movzx eax, al
test eax, eax
je 0x10022e78
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x40]
call fcn.1003762a
mov eax, dword [eax + 4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov al, byte [eax]
mov byte [ebp - 0x89], al
mov ecx, dword [ebp - 0x84]
cmp al, byte [ecx]
jne 0x10022e26
cmp byte [ebp - 0x89], 0
je 0x10022e1d
mov eax, dword [ebp - 0x88]
mov al, byte [eax + 1]
mov byte [ebp - 0x8a], al
mov ecx, dword [ebp - 0x84]
cmp al, byte [ecx + 1]
jne 0x10022e26
add dword [ebp - 0x88], 2
add dword [ebp - 0x84], 2
cmp byte [ebp - 0x8a], 0
jne 0x10022dcb
and dword [ebp - 0x90], 0
jmp 0x10022e31
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x10022e6b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.10037892
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x11], 1
jmp 0x10022e78
lea ecx, [ebp - 0x40]
call fcn.1003762d
jmp 0x10022d8e
mov dword [ebp - 0x38], 0x5550
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10023064
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0x10]
push dword [eax + 0x20]
call dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x10022eb4
mov eax, dword [ebp - 0x10]
jmp 0x10023123
and dword [ebp - 0x44], 0
and dword [ebp - 0x4c], 0
jmp 0x10022ec5
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.10037567
cmp dword [ebp - 0x4c], eax
jae 0x1002305b
push dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.10037573
mov eax, dword [eax + 4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
mov al, byte [eax]
mov byte [ebp - 0x9d], al
inc dword [ebp - 0x98]
cmp byte [ebp - 0x9d], 0
jne 0x10022efd
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
add eax, 3
push eax
call fcn.1000361d
pop ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
call fcn.10037573
mov eax, dword [eax + 4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
mov al, byte [eax]
mov byte [ebp - 0xb1], al
mov eax, dword [ebp - 0xac]
mov cl, byte [ebp - 0xb1]
mov byte [eax], cl
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp byte [ebp - 0xb1], 0
jne 0x10022f71
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov al, byte [eax + 1]
mov byte [ebp - 0xb9], al
inc dword [ebp - 0xb8]
cmp byte [ebp - 0xb9], 0
jne 0x10022fba
mov edi, dword [ebp - 0xb8]
mov esi, 0x10053b40
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
mov al, byte [eax]
mov byte [ebp - 0xc5], al
inc dword [ebp - 0xc0]
cmp byte [ebp - 0xc5], 0
jne 0x10022ffc
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc4]
mov dword [ebp - 0xcc], eax
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xcc]
push dword [ebp - 0x50]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
call fcn.100351b3
pop ecx
and dword [ebp - 0x50], 0
jmp 0x10022ebe
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002311b
xor edx, edx
lea eax, [edi + 0x10]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], 7
xor ecx, ecx
mov byte [ebp - 4], 1
jmp 0x1002311b
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
jmp 0x1002311b
mov dword [ebp - 0xc], 0x657243
mov dword [ebp - 9], 0x657461
mov dword [ebp - 6], 0x6c6946
push 0x65
pop eax
mov word [ebp - 3], ax
push 0x41
pop eax
mov word [ebp - 2], ax
jmp 0x1002311b
mov eax, 0xeb
mov word [0x1005da0c], ax
mov eax, 0xe5ff
mov word [0x1005da0d], ax
jmp 0x1002311b
call fcn.10023127
mov dword [esi + 0x3c], 0
mov eax, esi
jmp 0x1002311b
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xf2
mov word [0x1005da0f], ax
push 0x20
pop eax
mov word [0x1005da10], ax
mov eax, 0xc2
mov word [0x1005da11], ax
mov eax, 0xe0
mov word [0x1005da12], ax
mov eax, 0xec
mov word [0x1005da13], ax
jmp 0x10022895
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret