Function at 0x1001aae0
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c79fe
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x100ebb10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x280], eax
test ebx, ebx
je 0x1001b7ab
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ab40
sub eax, edx
sar eax, 1
je 0x1001b7ab
test esi, esi
je 0x1001b7ab
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ab62
sub eax, edx
sar eax, 1
je 0x1001b7ab
cmp dword [0x101005c0], 0
je 0x1001abe0
push ebx
push str.CompressFolder____1_lpwszCompressPath__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
cmp dword [0x101005c0], 0
je 0x1001abe0
push edi
push str.CompressFolder____1_lpwszPassword__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
cmp dword [0x101005c0], 0
je 0x1001abe0
push esi
push str.CompressFolder____1_lpwszCompressDir__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
push 0x100ccbc0
lea ecx, [ebp - 0x264]
call fcn.10051c60
xor edi, edi
push esi
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], edi
call fcn.10051c60
push 0x5c
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.10055d20
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x274]
call fcn.10051a00
push 0x100cdaa0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.10053050
push 0x100cf060
lea ecx, [ebp - 0x270]
call fcn.10053050
mov edx, dword [ebp - 0x26c]
push edx
call fcn.1001a9e0
mov ebx, eax
push 0x24c
lea eax, [ebp - 0x25c]
push edi
push eax
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x268], 1
xor esi, esi
mov dword [ebp - 0x260], edi
call fcn.1002c8c0
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x260]
push ecx
push edx
call fcn.1001fe60
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x1001ae1b
cmp dword [0x101005c0], esi
je 0x1001acce
lea eax, [ebp - 0x234]
push eax
push 0x697
push str.CompressFolder_line__d___wfd.cFileName__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
cmp word [ebp - 0x234], 0x2e
jne 0x1001acfb
mov ax, word [ebp - 0x232]
cmp ax, si
je 0x1001adf9
cmp ax, 0x2e
jne 0x1001acfb
cmp word [ebp - 0x230], si
je 0x1001adf9
cmp dword [ebp + 0x18], esi
je 0x1001ad84
test byte [ebp - 0x260], 0x10
je 0x1001ad7e
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x28c]
push eax
call fcn.10052b70
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.10057d20
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x2a4]
push ecx
push edx
mov byte [ebp - 4], 4
call fcn.10078540
add esp, 8
cmp dword [ebp - 0x2a0], esi
je 0x1001ad5e
mov dword [ebp - 0x268], esi
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.10057d30
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 2
call fcn.10052400
jmp 0x1001ad84
mov dword [ebp - 0x268], esi
lea ecx, [ebp - 0x264]
cmp ebx, esi
je 0x1001adce
push 0x100cfd10
call fcn.10053050
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x264]
call fcn.100530b0
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
call fcn.10053050
push 0x100cfd08
lea ecx, [ebp - 0x264]
call fcn.10053050
jmp 0x1001adf9
lea edx, [ebp - 0x274]
push edx
call fcn.100530b0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.10053050
push 0x7c
lea ecx, [ebp - 0x264]
call fcn.10053090
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001acce
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
or edi, 0xffffffff
cmp dword [0x101005c0], 0
je 0x1001ae4b
mov edx, dword [ebp - 0x264]
push edx
push 0x6cd
push str.CompressFolder_line__d___wstrFileNames__s_
push str.CompressFolder
push edi
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
mov eax, dword [ebp - 0x264]
cmp dword [eax - 8], 0
jne 0x1001af13
cmp dword [ebp + 0x14], 0
je 0x1001aeaa
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10020430
add esp, 4
cmp dword [0x101005c0], 0
mov esi, eax
je 0x1001ae99
push esi
push 0x6db
push str.CompressFolder_line__d__DeleteFileW__d_
push str.CompressFolder
push edi
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
test esi, esi
je 0x1001aedd
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x1001aeaa
or dword [eax], 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.10052400
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.10052400
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], edi
call fcn.10052400
xor eax, eax
jmp 0x1001b7b0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.10052400
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.10052400
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], edi
call fcn.10052400
mov eax, 0xa
jmp 0x1001b7b0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1001aff0
cmp dword [ebp - 0x268], 0
je 0x1001aff0
cmp dword [ebp + 0x18], 0
je 0x1001aff0
mov edx, dword [ebp - 0x26c]
push edx
call fcn.10020430
add esp, 4
cmp dword [0x101005c0], 0
mov esi, eax
je 0x1001af6e
push esi
push 0x6ee
push str.CompressFolder_line__d__DeleteFileW__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
test esi, esi
je 0x1001afb6
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x1001af7f
or dword [eax], 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.10052400
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.10052400
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call fcn.10052400
xor eax, eax
jmp 0x1001b7b0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.10052400
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.10052400
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call fcn.10052400
mov eax, 0xa
jmp 0x1001b7b0
cmp dword [0x101005c0], 0
je 0x1001b018
push esi
push 0x6fd
push str.CompressFolder_line__d___bNeedCompress__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
call fcn.10011350
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], 0
test eax, eax
je 0x1001b047
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x288]
push eax
push ecx
call fcn.10011490
add esp, 8
push 0x100ccbc0
lea ecx, [ebp - 0x284]
call fcn.10051c60
push 0x100ccbc0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.10051c60
mov byte [ebp - 4], 6
mov edi, 0xa
test esi, esi
je 0x1001b66a
cmp dword [0x101005c0], 0
mov esi, dword [ebp - 0x27c]
je 0x1001b0ab
push esi
push ebx
push 0x70d
push str.CompressFolder_line__d___bCompressNew__d__bRar__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x1c
test ebx, ebx
jne 0x1001b0b7
test esi, esi
je 0x1001b1a4
mov edx, dword [ebp - 0x26c]
push edx
call fcn.1001fef0
add esp, 4
cmp eax, 0xffffffff
je 0x1001b1a4
mov eax, dword [0x100d4d60]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x268]
test esi, esi
je 0x1001b0ef
push str..rarbak
jmp 0x1001b0f4
push str..bak
call fcn.10052680
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x294]
lea edx, [ebp - 0x278]
push edx
push eax
call fcn.100193c0
test ebx, ebx
je 0x1001b135
mov ecx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x26c]
push ecx
push edx
call fcn.10020090
add esp, 8
jmp 0x1001b14d
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x26c]
push 1
push eax
push ecx
call fcn.10020220
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x101005c0], 0
je 0x1001b187
mov edx, dword [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x26c]
push esi
push edx
push eax
push str.CompressFolder_bak_lpwszCompressPath__s___wstrFileNameBak__s___bMove__d__dwSysErr__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x20
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.10052400
test esi, esi
je 0x1001b66a
mov esi, dword [ebp - 0x27c]
cmp dword [0x101005c0], 0
je 0x1001b1cc
push esi
push 0x72a
push str.CompressFolder_line__d___bRar__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
test esi, esi
jne 0x1001b281
cmp dword [0x101005c0], esi
je 0x1001b24c
mov ecx, dword [ebp - 0x26c]
push ecx
push str.CompressFolder_lpwszCompressPath__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
cmp dword [0x101005c0], esi
je 0x1001b24c
mov edx, dword [ebp - 0x290]
push edx
push str.CompressFolder_lpwszPassword__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
cmp dword [0x101005c0], esi
je 0x1001b24c
mov eax, dword [ebp - 0x264]
push eax
push str.CompressFolder_wstrFileNames__s_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x26c]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call sym.7zArchive.dll_Compress
mov ecx, dword [ebp - 0x294]
mov dword [ecx + 0x4ac], eax
mov edi, eax
jmp 0x1001b666
push 0x100ccbc0
lea ecx, [ebp - 0x268]
call fcn.10051c60
mov bl, 8
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x294]
push eax
mov eax, dword [edx + 0x49c]
push eax
lea ecx, [ebp - 0x284]
push str._s_tec_08x.dat
push ecx
call fcn.10055380
mov edx, dword [ebp - 0x284]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
call fcn.1001fdb0
mov esi, eax
add esp, 0x2c
cmp esi, 0xffffffff
jne 0x1001b2f7
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.10052400
jmp 0x1001b66a
mov eax, dword [ebp - 0x264]
push eax
lea ecx, [ebp - 0x27c]
call fcn.1004c900
mov eax, dword [ebp - 0x27c]
push 0
mov dword [ebp - 0x280], 0
mov ecx, dword [eax - 8]
lea edx, [ebp - 0x280]
push edx
inc ecx
push ecx
push eax
push esi
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1001b360
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.1004d060
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.10052400
jmp 0x1001b66a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x290]
mov esi, dword [ebp - 0x26c]
test eax, eax
je 0x1001b397
mov ecx, dword [ebp - 0x284]
push ecx
push esi
push eax
lea edx, [ebp - 0x268]
push str.tsaferar.exe_a__p_s__ep1__y__ma4___s_____s_
push edx
call fcn.10055380
add esp, 0x14
jmp 0x1001b3b3
mov eax, dword [ebp - 0x284]
push eax
push esi
lea ecx, [ebp - 0x268]
push str.tsaferar.exe_a__ep1__y__ma4___s_____s_
push ecx
call fcn.10055380
add esp, 0x10
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.1004d060
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.1002c8c0
push 0x103
lea ecx, [ebp - 0x218]
push esi
push ecx
call fcn.1002c874
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.1002c846
add esp, 0x20
test eax, eax
je 0x1001b409
xor ecx, ecx
mov word [eax + 2], cx
push 0x40
lea edx, [ebp - 0x2e4]
push 0
push edx
mov dword [ebp - 0x2e8], 0x44
call fcn.1002c8c0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
call fcn.10011480
mov esi, eax
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2e8]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x268]
push 0xffffffffffffffff
call fcn.100530d0
push eax
push 0
test esi, esi
je 0x1001b49a
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [0x101005c0], 0
mov esi, eax
je 0x1001b4c9
push 0x775
jmp 0x1001b4b0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [0x101005c0], 0
mov esi, eax
je 0x1001b4c9
push 0x77a
push str.CompressFolder_rar_line__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [ebp - 0x268]
call fcn.100531a0
test esi, esi
je 0x1001b629
cmp dword [0x101005c0], 0
je 0x1001b505
push 0x780
push str.CompressFolder_rar_line__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x1001b512
push eax
call edi
cmp dword [ebp - 0x2a4], 0
je 0x1001b5f5
cmp dword [0x101005c0], 0
je 0x1001b546
push 0x788
push str.CompressFolder_rar_line__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
mov eax, dword [ebp - 0x2a4]
push 0xdbba0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1001b59a
cmp dword [0x101005c0], 0
je 0x1001b586
push 0x78d
push str.CompressFolder_rar_line__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
mov ecx, dword [ebp - 0x2a4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1001b652
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x280]
push edx
push eax
mov dword [ebp - 0x280], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x280]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xa
cmp dword [0x101005c0], 0
je 0x1001b657
push eax
push 0x79c
push str.CompressFolder_rar_line__d__dwExitCode__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
jmp 0x1001b657
cmp dword [0x101005c0], 0
je 0x1001b61c
push 0x7a2
push str.CompressFolder_rar_line__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001b652
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x101005c0], 0
je 0x1001b652
push eax
push str.CompressFolder_rar_create_tsaferar_fail__dwSysErr__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
mov edi, 0xa
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.10052400
test edi, edi
je 0x1001b6ba
mov eax, dword [ebp - 0x278]
cmp dword [eax - 8], 0
je 0x1001b702
mov ecx, dword [ebp - 0x26c]
push 1
push ecx
push eax
call fcn.10020150
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x101005c0], 0
je 0x1001b702
push eax
push esi
push str.CompressFolder_fail__move_bak_to_ori_file___d__dwSysErr__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x18
jmp 0x1001b702
mov eax, dword [ebp - 0x278]
cmp dword [eax - 8], 0
je 0x1001b702
push eax
call fcn.10020430
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x101005c0], 0
je 0x1001b702
mov edx, dword [ebp - 0x278]
push eax
push esi
push edx
push str.CompressFolder_success__del_bak__s____d__dwSysErr__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x1c
mov eax, dword [ebp - 0x284]
cmp dword [eax - 8], 0
je 0x1001b717
push eax
call fcn.10020430
add esp, 4
cmp dword [ebp - 0x28c], 0
je 0x1001b736
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x26c]
push eax
push ecx
call fcn.10011690
add esp, 8
cmp dword [0x101005c0], 0
je 0x1001b759
push edi
push str.CompressFolder_dwRet__d_
push str.CompressFolder
push 0xffffffffffffffff
push 0x100ffd2c
call fcn.10065110
add esp, 0x14
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.10052400
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.10052400
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.10052400
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.10052400
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call fcn.10052400
mov eax, edi
jmp 0x1001b7b0
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c64e
mov esp, ebp
pop ebp
ret 0x18