Function at 0x100102228
Capabilities:
Create thread
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x100152198]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov r15, qword [rsp + 0x520]
mov rbp, qword [0x1001589a0]
mov rdi, rdx
lea rcx, [r11 - 0x246]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2a0], si
call sub.msvcrt.dll_memset
mov dword [r15], esi
cmp dword [rbp], esi
jne 0x10010229b
mov eax, 0x80004005
jmp 0x10010272c
call fcn.1000f5d80
cmp eax, esi
jne 0x1001022dc
mov rcx, qword [0x100153eb8]
lea rsi, [0x100153eb8]
cmp rcx, rsi
je 0x1001022d2
test byte [rcx + 0x1c], 4
je 0x1001022d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x18
call fcn.100034784
mov eax, 0x1000010c
jmp 0x10010272c
lea rax, [rsp + 0x2a0]
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
mov ebx, esi
mov r14d, 1
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x100102321
movzx eax, word [r8 + rcx]
cmp ax, si
je 0x100102321
mov word [rcx], ax
add rcx, 2
sub rdx, r14
jne 0x1001022ff
cmp rdx, rsi
jne 0x10010232f
sub rcx, 2
mov ebx, 0x8007007a
cmp ebx, esi
mov word [rcx], si
jge 0x100102371
mov rcx, qword [0x100153eb8]
lea rsi, [0x100153eb8]
cmp rcx, rsi
je 0x100102367
test byte [rcx + 0x1c], r14b
je 0x100102367
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x19
mov r9d, ebx
call fcn.100036510
mov eax, 0x80070057
jmp 0x10010272c
lea rax, [rbp + 0x40]
mov rcx, rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r13d, 0x103
mov r12, rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x2a0]
mov rcx, r12
sub rcx, rax
sar rcx, 1
sub r13, rcx
mov qword [rsp + 0x30], r13
cmp r12, rsi
jne 0x1001023f5
mov rcx, qword [0x100153eb8]
lea rsi, [0x100153eb8]
cmp rcx, rsi
je 0x1001023eb
test byte [rcx + 0x1c], r14b
je 0x1001023eb
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x1a
call fcn.100034784
mov ebx, 0x80070057
jmp 0x10010271f
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x10010244c
mov rcx, qword [0x100153eb8]
lea rsi, [0x100153eb8]
cmp rcx, rsi
je 0x100102442
lea edx, [rax + 2]
test byte [rcx + 0x1c], dl
je 0x100102442
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1c]
lea r8, [0x10001dad0]
mov r9, rdi
call fcn.1000347a8
mov ebx, 0x90080108
jmp 0x10010271f
lea rsi, [0x100153eb8]
cmp dword [rsp + 0x50], 0x10
je 0x100102609
lea r8, [rsp + 0x7c]
mov rdx, r13
mov rcx, r12
call fcn.10006ac9c
mov ebx, eax
test eax, eax
jns 0x1001024ad
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x100102609
mov eax, 1
test byte [rcx + 0x1c], al
je 0x100102609
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1b]
lea r8, [0x10001dad0]
mov r9d, ebx
call fcn.100036510
jmp 0x100102609
mov ecx, 0x28
call fcn.10011bd18
xor r12d, r12d
mov rdi, rax
cmp rax, r12
je 0x1001024cf
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
jmp 0x1001024d2
mov rdi, r12
cmp rdi, r12
je 0x1001026e0
lea rax, [rsp + 0x2a0]
cmp rax, qword [rdi]
je 0x10010250b
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
cmp rax, r12
je 0x1001026ca
mov rcx, qword [rdi + 8]
lea r13, [0x100026430]
cmp r13, rcx
je 0x100102537
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi + 8], rax
cmp rax, r12
je 0x1001026d5
mov rcx, qword [rdi + 0x10]
cmp rcx, r12
je 0x10010254a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x20], 6
movsxd r12, dword [rbp + 0x20]
lea r13d, [r12 + 1]
test r13d, r13d
jle 0x1001025da
cmp r12d, dword [rbp + 0x24]
jne 0x1001025b5
cmp r12d, 0x3fffffff
jg 0x1001025da
movabs rcx, 0xfffffffffffffff
cmp r12, rcx
ja 0x1001025da
cmp dword [rbp + 0x24], 0
mov rcx, qword [rbp + 0x18]
mov eax, 1
lea r14d, [r12 + r12]
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
test rax, rax
je 0x1001025d5
mov dword [rbp + 0x24], r14d
mov r14, qword [rsp + 0x40]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov dword [rbp + 0x20], r13d
lea rdx, [rax + r12*8]
test rdx, rdx
je 0x1001025c9
mov qword [rdx], rdi
mov eax, 1
add dword [r15], eax
xor ebx, ebx
jmp 0x1001025ff
mov r14, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call fcn.10011bc94
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100102453
xor r12d, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [r15], r12d
jbe 0x10010271f
cmp dword [rbp + 4], r12d
jne 0x10010271f
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbp + 0x78]
cmp rcx, r12
je 0x100102657
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x80]
lea r8, [0x100101938]
mov r9, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x78], rax
cmp rax, r12
jne 0x100102717
mov rax, qword [0x100153eb8]
cmp rax, rsi
je 0x1001026c3
mov edx, 1
test byte [rax + 0x1c], dl
je 0x1001026c3
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x100153eb8]
lea r8, [0x10001dad0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x1e
call fcn.100036510
mov ebx, 0x80004005
jmp 0x10010271f
mov ecx, 0x8007000e
call fcn.100036284
int3
mov ecx, 0x8007000e
call fcn.100036284
int3
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x10010270d
mov eax, 1
test byte [rcx + 0x1c], al
je 0x10010270d
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1c]
lea r9d, [rax + 0x27]
lea r8, [0x10001dad0]
call fcn.100036510
mov ebx, 0x8007000e
jmp 0x100102622
mov eax, 1
mov dword [rbp + 4], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.10011be80
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret