Function at 0x10002120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027f6f
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x10038014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
add eax, 0x60
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100046a0
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.10002080
mov esi, eax
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call fcn.10002080
push ecx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.10006ab0
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.10006b40
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.10006ab0
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.10006b40
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call fcn.10006ab0
add esp, 4
push esi
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.10007de0
push ecx
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x68]
call fcn.10006ab0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.10004890
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x1000226d
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002263
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x100022b7
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100022ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x10002301
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100022f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x10002351
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002347
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp edx, 0x10
jb 0x100023aa
mov ecx, dword [ebp - 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100023a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
cmp edx, 0x10
jb 0x10002403
mov ecx, dword [ebp - 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100023f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
cmp edx, 0x10
jb 0x1000245c
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002452
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
cmp edx, 0x10
jb 0x100024b5
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100024ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x1000250e
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002504
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002665
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
lea edx, [ecx + ebx]
cmp edx, ecx
ja 0x1000254a
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edx], 0
jmp 0x1000258e
mov esi, dword [ebp - 0x18]
mov edi, edx
mov eax, esi
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x1000257b
cmp esi, 0x10
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push edi
push 0
lea esi, [ecx + eax]
push esi
call fcn.1000d8b0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1000258e
push 0
push edi
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x34]
push edi
call fcn.100075e0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
sub eax, ebx
push ebx
push dword [ebp - 0x38]
add eax, ecx
push eax
call fcn.1000d330
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dword [ebp - 0x30], 0
nop
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
sub ecx, esi
add eax, esi
push ecx
push eax
push dword [0x10038abc]
call edi
test eax, eax
je 0x100025ef
add esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
cmp esi, ecx
jb 0x100025c0
jmp 0x10002619
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.cannot_write_to_file_send:
mov ecx, 0x10039d18
call fcn.10006bf0
add esp, 4
mov ecx, eax
call fcn.10004440
push eax
call fcn.10006ea0
add esp, 4
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10002649
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000263f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000266a
push edx
push ecx
call fcn.1000b0a2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret
call fcn.1001162f
call fcn.1001162f
int3