joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012d40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140012d70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x140012da0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x140012dfb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x140012dfb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x140012dfd
xor eax, eax
add rsp, 0x38
ret

Function at 0x140012e10
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x140012e40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140012e70
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140012ee0
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1400213a0]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140012f20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x140012f60
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x140013010
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140013360
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x1400213a0]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x1400213a0]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x14001f180]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
add rsp, 0x38
ret
Function at 0x140017434
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400211a8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400211b8]
jne 0x140017481
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, rbx
mov dword [0x1400211e0], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x1400211a8], 1
mov ecx, dword [0x1400211e0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140017556
mov rcx, qword [0x1400204bc]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017581
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rax, qword [0x1400211b0]
test rax, rax
je 0x1400174d1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400211b0], rbp
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001759c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
mov ecx, dword [0x1400211e0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x1400204bc]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
test rax, rax
je 0x140017581
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x45e200
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0045d2e0
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [fcn.0045d2e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call 0x602000
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045ae04
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret

Function at 0x1400019e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a2c
xor al, al
add rsp, 0x28
ret
Function at 0x1409df0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409df237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409df0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409df0c7
add dl, dl
jne 0x1409df0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409df14e
xor eax, eax
add dl, dl
jne 0x1409df0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409df205
add dl, dl
jne 0x1409df10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409df11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409df128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409df135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409df142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409df0d6
mov eax, 1
add dl, dl
jne 0x1409df15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409df16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409df153
sub eax, ebx
mov ebx, 1
jne 0x1409df1a4
mov ecx, 1
add dl, dl
jne 0x1409df186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409df193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409df17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409df0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409df1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409df1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409df1b5
cmp eax, 0x7d00
jae 0x1409df1f3
cmp eax, 0x500
jb 0x1409df1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409df0d6
cmp eax, 0x7f
ja 0x1409df1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409df0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409df22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409df0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100022344
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
cmp dword [rdx + 0x14], 2
mov rsi, rdx
mov rdi, rcx
jne 0x1000224d8
mov al, byte [rdx + 0x28]
cmp al, 1
jne 0x100022487
mov rax, qword [rcx + 0x108]
cmp qword [rdx], rax
jne 0x100022400
call fcn.10002490c
cmp al, 1
jne 0x1000224d8
mov rcx, rdi
call fcn.10005d0f8
mov eax, dword [rdi + 0x178]
mov r11, qword [0x1000ded18]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0x19c]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 0x198]
mov r8b, 1
mov dword [rsp + 0x44], eax
mov eax, dword [rdi + 0x1a8]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x5c], eax
mov eax, dword [rdi + 0x1a4]
mov dword [rsp + 0x58], eax
mov al, byte [rdi + 0x1a0]
neg al
sbb rcx, rcx
xor r9d, r9d
add rcx, 0xfffe
mov qword [rsp + 0x50], rcx
mov rcx, rdi
call fcn.10005b61c
jmp 0x1000224d8
cmp dword [rdx + 0x30], 1
ja 0x100022467
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [rdi + 0x1ac]
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp ebx, eax
jb 0x100022467
cmp dword [rsi + 0x30], 1
jne 0x1000224d8
mov rcx, rdi
call fcn.10005d0f8
mov r11, qword [0x1000ded10]
mov eax, dword [rdi + 0x178]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8b, 1
mov rcx, rdi
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x40], eax
call fcn.10005b61c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x1ac], eax
jmp 0x1000224d4
mov rcx, rdi
call fcn.10005d0f8
mov eax, dword [rdi + 0x178]
mov r11, qword [0x1000ded08]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x20]
jmp 0x1000224c1
cmp al, 2
jne 0x1000224d8
call fcn.10005d0f8
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rdi + 0x178]
mov r11, qword [0x1000ded20]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x78]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x48], eax
xor r9d, r9d
mov r8b, 1
mov rcx, rdi
mov qword [rsp + 0x28], r11
call fcn.10005b61c
mov byte [rsi + 8], 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10003583c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r15
sub rsp, 0x100
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rcx
lea r15, [0x1000dedd8]
mov rcx, qword [0x1000dedd8]
cmp rcx, r15
je 0x10003588e
test byte [rcx + 0x1c], 1
je 0x10003588e
cmp byte [rcx + 0x19], 5
jb 0x10003588e
mov edx, 0x1c5
lea r8, [0x100008e80]
mov rcx, qword [rcx + 0x10]
call fcn.100020584
mov ebx, 0x7d0
mov dword [rsp + 0x34], ebx
xor edi, edi
and qword [rsp + 0x40], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x10000b5e0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000358ce
mov rdi, qword [rsp + 0x40]
cdqe
test rax, rax
jne 0x100035948
and dword [rsp + 0x128], eax
mov dword [rsp + 0x130], 4
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x138]
xor r8d, r8d
lea rdx, [0x10000cfa8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100035931
mov eax, dword [rsp + 0x138]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
cdqe
test rax, rax
jne 0x100035948
mov eax, dword [rsp + 0x128]
test eax, eax
cmovne ebx, eax
mov dword [rsp + 0x34], ebx
test rdi, rdi
je 0x100035956
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1000de100]
mov rax, qword [0x1000de100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8d, ebx
mov edx, 0x1ad
lea rcx, [rsp + 0x48]
call fcn.100044914
and dword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
xor edx, edx
mov r8d, 0x9c
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], 0xa0
mov dword [rsp + 0xa8], 1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x140]
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x74], 0x1008
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x84], 0xfffe
mov qword [rsp + 0x7c], 0x1aa
mov qword [rsp + 0x8c], 0x1ab
mov qword [rsp + 0x94], 0x1ac
mov dword [rsp + 0xfc], 0xfa
mov qword [rsp + 0xd4], 0x99
mov qword [rsp + 0xcc], 0x98
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0xc4], rbx
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1000457c8
mov edi, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r15
je 0x100035a79
test byte [rcx + 0x1c], 1
je 0x100035a79
cmp byte [rcx + 0x19], 5
jb 0x100035a79
mov edx, 0x1c6
mov r9d, eax
lea r8, [0x100008e80]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100035a94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x1000dedd8]
cmp rcx, r15
je 0x100035ac4
test byte [rcx + 0x1c], 1
je 0x100035ac4
cmp byte [rcx + 0x19], 5
jb 0x100035ac4
mov edx, 0x1c7
mov r9d, edi
lea r8, [0x100008e80]
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
mov eax, edi
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop r15
pop rdi
pop rsi
ret
Function at 0x10003a498
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x10003a4e8
test byte [rcx + 0x1c], 1
je 0x10003a4e8
cmp byte [rcx + 0x19], 5
jb 0x10003a4e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e80]
mov edx, 0x237
call fcn.100020584
mov rcx, qword [rbx + 0x368]
xor r12d, r12d
mov ebp, 0x80004005
cmp rcx, r12
je 0x10003a51d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r12d
jne 0x10003a51d
mov rcx, qword [rbx + 0x368]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x368], r12
cmp qword [rbx + 0x368], r12
jne 0x10003a5f7
mov rdi, qword [rbx + 0x1d0]
mov dword [rbx + 0x358], r12d
mov dword [rbx + 0x35c], r12d
jmp 0x10003a5a3
lea rdx, [0x1000072b0]
mov rcx, rdi
call fcn.100055338
mov r11, rax
add rax, 8
cmp rax, r12
je 0x10003a56d
mov ecx, dword [rax]
add dword [rbx + 0x358], ecx
mov ecx, dword [rax + 4]
add dword [rbx + 0x35c], ecx
cmp r11, r12
je 0x10003a59f
mov ecx, dword [r11]
mov eax, ecx
and eax, 0xffffff80
cmp eax, 0xffffff80
je 0x10003a59f
mov eax, ecx
not ecx
and eax, 0xffffff80
and ecx, 0x7f
dec eax
xor eax, ecx
mov dword [r11], eax
test eax, 0xffffff80
jne 0x10003a59f
mov rcx, r11
call fcn.100059224
mov rdi, qword [rdi + 0x48]
cmp rdi, r12
jne 0x10003a541
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x140]
lea rdx, [rbx + 0x358]
mov rcx, rax
call qword [sym.imp.USER32.dll_ClientToScreen]
lea r11, [rbx + 0x370]
lea r8, [0x100020278]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, r12
mov qword [rbx + 0x368], rax
cmovne ebp, r12d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop r12
ret
Function at 0x100045204
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov esi, r9d
mov r12d, r8d
mov r13, rdx
mov r14, rcx
mov rbx, qword [0x1000e3008]
and qword [rax - 0x28], 0
xor edi, edi
mov eax, dword [0x1000e2c28]
test eax, eax
je 0x100045254
lea rcx, [0x10000c3b8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1000e2c28]
test eax, eax
jne 0x100045261
call fcn.1000454b0
test eax, eax
je 0x10004527d
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1000de160]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x1000452a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov ecx, 0x54f
test eax, eax
cmove r11d, ecx
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x100045313
test rbx, rbx
jne 0x1000452e7
lea rcx, [0x10000c410]
call fcn.100045714
mov rbx, rax
test rax, rax
jne 0x1000452e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x54f
test eax, eax
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x100045304
mov qword [0x1000e3008], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8d, r12d
mov rdx, r13
mov rcx, r14
call rbx
mov ebx, eax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x1000453cc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x1000e2c28]
test eax, eax
je 0x10004540b
lea rcx, [0x10000c3b8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1000e2c28]
test eax, eax
jne 0x100045418
call fcn.1000454b0
test eax, eax
je 0x100045434
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1000de160]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x10004543c
xor eax, eax
jmp 0x10004549a
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x100042854]
mov r8, rdi
mov edx, 0xe1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x10004547c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004547e
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100045497
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret