Function at 0x1001ef6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
mov ebx, 0x80004005
xor esi, esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x17b0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.010011a0
test eax, eax
je 0x10020b5
lea eax, [ebp - 0x70]
push 5
push eax
push 0x1793
push dword [0x10041e4]
call fcn.01002fdb
test eax, eax
je 0x10020b5
lea eax, [ebp - 0x64]
push 5
push eax
push 0x1794
push dword [0x10041e4]
call fcn.01002fdb
test eax, eax
je 0x10020b5
push 0x1e
push 0x1004048
push 0x1769
push dword [0x10041e4]
call fcn.01002fdb
test eax, eax
je 0x10020b5
push 0x1e
push 0x1004088
push 0x176a
push dword [0x10041e4]
call fcn.01002fdb
test eax, eax
je 0x10020b5
push 0x28
push 0x1004108
push 0x176c
push dword [0x10041e4]
call fcn.01002fdb
test eax, eax
je 0x10020b5
push 0x1e
push 0x10040c8
push 0x176b
push dword [0x10041e4]
call fcn.01002fdb
mov eax, dword [ebp + 8]
cmp eax, 1
jle 0x10020b0
push esi
push esi
shl eax, 2
push eax
call fcn.01003154
mov dword [0x10041d4], eax
mov eax, dword [ebp + 8]
push esi
push esi
shl eax, 2
push eax
call fcn.01003154
mov edi, dword [0x10041d4]
mov dword [0x10041d8], eax
cmp edi, esi
mov dword [0x10041dc], esi
mov dword [0x10041e0], esi
je 0x10023c2
cmp eax, esi
je 0x10023c2
mov ecx, dword [ebp + 8]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x10041d8]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
dec dword [ebp + 8]
je 0x10020bd
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ax, word [ecx]
cmp ax, word [ebp - 0x70]
je 0x1002088
cmp ax, word [ebp - 0x64]
je 0x1002088
push ecx
push 0x1004168
call fcn.01001986
test eax, eax
je 0x100209b
jmp 0x100205a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.010019b1
test eax, eax
je 0x10020a8
jmp 0x100205a
call fcn.010011b7
mov dword [ebp - 4], ebx
jmp 0x10023c9
cmp dword [0x1004164], esi
jne 0x10020b5
call fcn.010011b7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
call fcn.01001682
test eax, eax
jne 0x10020d7
call fcn.010011b7
mov dword [ebp - 4], 0x80070057
jmp 0x10023c9
mov eax, dword [0x10041dc]
cmp eax, esi
je 0x1002151
push esi
push esi
shl eax, 2
push eax
call fcn.01003154
mov dword [ebp - 0xc], eax
mov eax, dword [0x10041dc]
push esi
push esi
shl eax, 2
push eax
call fcn.01003154
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
je 0x10023c2
cmp eax, esi
je 0x10023c2
mov ecx, dword [0x10041dc]
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x10041dc]
mov edi, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [0x10041dc]
cmp eax, esi
je 0x1002151
push dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.01002983
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023c9
test byte [0x1004158], 1
je 0x1002227
lea eax, [ebp - 0x1c]
mov edi, 0x17ac
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 8], edi
call fcn.01002812
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023c9
mov eax, dword [0x1004014]
lea ecx, [ebp - 0xa8]
neg eax
sbb eax, eax
push esi
not eax
push esi
and eax, ecx
push esi
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.SIGNER.dll_SignerSign
cmp eax, esi
mov dword [ebp - 4], eax
je 0x10021e7
mov dword [ebp - 8], edi
jmp 0x10023c9
test byte [0x1004158], 0xa
jne 0x100220a
cmp dword [0x1004160], esi
jne 0x100220a
push 0x17be
push dword [0x10041e4]
call fcn.01003208
pop ecx
pop ecx
cmp dword [ebp - 0x7c], esi
je 0x1002218
push dword [ebp - 0x7c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x1c], esi
je 0x1002227
push esi
push dword [ebp - 0x1c]
call dword [entry0]
mov al, byte [0x1004158]
test al, 2
je 0x10022a3
mov edi, dword [0x10041c0]
imul edi, edi, 0x3e8
test al, 1
jne 0x1002258
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.010027c0
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023c9
xor ebx, ebx
cmp dword [0x1004020], esi
jbe 0x1002292
push esi
push esi
push dword [0x10041a4]
lea eax, [ebp - 0x4c]
push eax
call sub.SIGNER.dll_SignerTimeStamp
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1002292
cmp dword [0x10041c0], esi
je 0x1002289
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, dword [0x1004020]
jb 0x1002262
cmp dword [ebp - 4], esi
je 0x10022a3
mov dword [ebp - 8], 0x17ad
jmp 0x10023c9
test byte [0x1004158], 8
je 0x1002301
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x10041ac]
call fcn.01003421
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10022f5
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.010027c0
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023c9
push esi
lea eax, [ebp - 0x4c]
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
push eax
call sub.SIGNER.dll_SignerAddTimeStampResponse
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1002301
mov dword [ebp - 8], 0x17af
jmp 0x10023c9
test byte [0x1004158], 4
je 0x10023c9
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.010027c0
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023c9
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x4c]
push esi
push eax
call sub.SIGNER.dll_SignerCreateTimeStampRequest
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023b9
push esi
push esi
push dword [ebp - 0x14]
call fcn.01003154
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x24], edi
jne 0x100235c
mov dword [ebp - 4], 0x8007000e
jmp 0x10023b9
lea eax, [ebp - 0x14]
push eax
push edi
push esi
lea eax, [ebp - 0x4c]
push esi
push eax
call sub.SIGNER.dll_SignerCreateTimeStampRequest
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10023b9
push esi
push pe_nt_image_headers32
push 4
push esi
push esi
push 0x40000000
push dword [0x10041a8]
call fcn.01002f5a
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x10023b1
lea ecx, [ebp - 0x28]
push esi
push ecx
push dword [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10023b1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
je 0x10023c9
call sub.SIGNER.dll_SignError
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x17ae
jmp 0x10023c9
mov dword [ebp - 4], 0x8007000e
cmp dword [0x1004160], esi
je 0x10023fb
mov eax, dword [0x100415c]
mov edi, dword [ebp - 4]
cmp edi, eax
push edi
jne 0x10023e5
push 0x17bc
jmp 0x1002426
push eax
push 0x17bd
push dword [0x10041e4]
call fcn.01003208
add esp, 0x10
jmp 0x1002479
mov edi, dword [ebp - 4]
cmp edi, esi
jne 0x1002436
push 0x17ba
push dword [0x10041e4]
call fcn.01003208
cmp dword [0x10041bc], esi
pop ecx
pop ecx
je 0x1002479
mov eax, dword [ebp - 0x48]
push dword [eax]
push 0x1b6e
push dword [0x10041e4]
call fcn.01003208
add esp, 0xc
jmp 0x1002479
push edi
call fcn.010014bf
test eax, eax
jne 0x1002464
cmp dword [ebp - 8], 0x17ad
jne 0x1002464
test byte [0x1004158], 1
jne 0x1002464
push 0x17b8
push dword [0x10041e4]
call fcn.01003208
pop ecx
pop ecx
push edi
push edi
push dword [ebp - 8]
push 0x17b9
push dword [0x10041e4]
call fcn.01003275
cmp dword [ebp - 0x20], esi
je 0x1002487
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.01002c85
mov eax, dword [0x10041d4]
cmp eax, esi
je 0x10024a1
push eax
call fcn.01003186
mov eax, dword [0x10041d8]
cmp eax, esi
je 0x10024b0
push eax
call fcn.01003186
cmp dword [ebp - 0x30], esi
je 0x10024bd
push dword [ebp - 0x30]
call fcn.01003186
cmp dword [ebp - 0x38], esi
je 0x10024ca
push dword [ebp - 0x38]
call fcn.01003186
cmp dword [ebp - 0xc], esi
je 0x10024d7
push dword [ebp - 0xc]
call fcn.01003186
cmp dword [ebp - 0x10], esi
je 0x10024e4
push dword [ebp - 0x10]
call fcn.01003186
cmp dword [ebp - 0x18], esi
je 0x10024f1
push dword [ebp - 0x18]
call fcn.01003186
cmp dword [ebp - 0x24], esi
je 0x10024fe
push dword [ebp - 0x24]
call fcn.01003186
mov eax, edi
neg eax
sbb eax, eax
jmp 0x10020b8