joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180016800
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xc0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x180050b58]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov r12, r8
mov rbp, rdx
xor r13d, r13d
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180016897
xor al, al
jmp 0x180016973
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov rsi, r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov ebx, r13d
cmp dword [rsp + 0x64], ebx
jbe 0x180016964
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.180008a70
mov r9d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r8, rsi
mov edx, ebx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180016953
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r13
mov word [rsp + 0x90], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.180007510
nop
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.180016440
nop
cmp qword [rsp + 0xa8], 8
jb 0x180016953
mov rcx, qword [rsp + 0x90]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
inc ebx
cmp ebx, dword [rsp + 0x64]
jae 0x180016964
mov eax, dword [rsp + 0x60]
jmp 0x1800168c0
test rsi, rsi
je 0x180016971
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.18002f870
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800180e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x180050b58]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r12d, r12d
mov rdi, r8
mov rbx, rdx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea rcx, [rbp + 0xf]
lea r8d, [r12 + 0x3c]
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r12
mov word [rbp + 0xf], r12w
call fcn.180007510
lea rcx, [rbp + 0xf]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
call fcn.180007700
cmp qword [rbp + 0x27], 8
lea r8, [rbp + 0xf]
cmovae r8, qword [rbp + 0xf]
lea r9d, [r12 + 2]
lea rcx, [rbp - 0x11]
mov rdx, 0xffffffff80000001
mov qword [rbp - 0x11], r12
mov dword [rbp - 9], r12d
mov qword [rbp - 1], r12
call fcn.180001320
mov rsi, qword [rbp - 0x11]
test eax, eax
jne 0x1800181e8
lea rdx, str.Progid
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.Application
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp qword [rdi + 0x18], 8
jb 0x1800181ab
mov rdi, qword [rdi]
test rdi, rdi
je 0x1800182a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.Progid
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1800182a2
cmp qword [rbp + 0x27], 8
lea rax, [rbp + 7]
lea rdx, [rbp + 0xf]
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
mov qword [rbp - 0x19], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800182a2
cmp qword [rdi + 0x18], 8
mov rbx, qword [rbp - 0x19]
jb 0x180018243
mov rdi, qword [rdi]
test rdi, rdi
je 0x180018294
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.Progid
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180018294
test rbx, rbx
je 0x180018289
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1800182b0
jmp 0x1800182aa
test rbx, rbx
je 0x1800182a2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x1800182b0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 0x27], 8
jb 0x1800182c0
mov rcx, qword [rbp + 0xf]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18002f870
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1800193a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r13d, r8d
mov rsi, rdx
xor r14d, r14d
mov dword [rax + 0x20], r14d
lea rcx, [0x180039fc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov r12d, r14d
lea rcx, [0x1800509f0]
mov r9, qword [0x1800509f0]
call qword [r9 + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rdx, [0x180039fb0]
test rdx, 0xffffffffffff0000
jne 0x180019432
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.180001260
test rax, rax
je 0x180019447
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800057c0
jmp 0x180019442
mov r8d, 3
lea rcx, [rsp + 0x20]
call fcn.180005490
mov rbx, qword [rsp + 0x20]
movzx edx, r13w
mov r8, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180019464
mov rbp, r14
jmp 0x180019495
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180019489
mov rbp, r14
jmp 0x180019495
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1800194b1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov ebx, r12d
mov edx, r12d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov dword [rsp + 0x88], 1
test rax, rax
je 0x180019580
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180019577
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call sub.MSVCR100.dll_memcpy
mov qword [rsp + 0x28], r14
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18001956e
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x180019555
mov rcx, qword [rsp + 0x28]
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x30]
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
jmp 0x180019558
mov rbx, r14
mov rdx, rbx
mov rcx, rsi
call fcn.180018ff0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001b500
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180050b58]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov ecx, 4
mov edi, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001b57f
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
cmp eax, 1
jne 0x18001b57f
cmp dword [rsp + 0x2c], edi
jne 0x18001b56d
mov r9d, dword [rsp + 0x28]
mov r8, qword [rbx]
mov rdx, qword [rbx + 8]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
cmp eax, 1
je 0x18001b550
mov rcx, rbx
call fcn.18001b3a0
mov rcx, rbx
call fcn.18001b420
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002f870
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x18001b5e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbx, rdx
mov rbp, rcx
xor r12d, r12d
mov dword [rsp + 0x70], r12d
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov dword [rsp + 0x70], 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, 2
mul rdi
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.18002c9f8
mov rsi, rax
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test rsi, rsi
je 0x18001b681
xor eax, eax
mov rcx, r13
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
mov r8d, r12d
mov rdx, rsi
mov rcx, rbp
call fcn.180005490
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, rbp
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180020290
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
test edi, edi
jns 0x1800202c0
mov ecx, 0x80070057
call fcn.1800011a0
int3
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x1800202de
mov edx, edi
mov rcx, rbx
call fcn.1800023c0
mov rdx, qword [rbx]
mov rcx, qword [rsi]
mov r8d, edi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov edi, eax
cmp eax, 0xffffffff
jne 0x18002030c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180020302
mov eax, esi
jmp 0x180020310
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x180020337
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x180020337
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov word [rax + rcx*2], si
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1800011a0
int3
Function at 0x18002c7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r8
mov r8, qword [r8]
movzx edx, dx
mov r12, r9
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x18002c808
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c7f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x18002c83c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x18002c861
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c85a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x18002c93d
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18002c91d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18002c914
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call sub.MSVCR100.dll_memcpy
lea r8, [rsp + 0x60]
xor ebp, ebp
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18002c90b
lea ecx, [rbp + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x18002c8f2
mov rcx, qword [rsp + 0x60]
lea rax, vtable.Gdiplus::Bitmap.0
lea rdx, [rsp + 0x20]
mov qword [rbx], rax
mov qword [rsp + 0x20], rbp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 8], rax
jmp 0x18002c8f5
mov rbx, rbp
mov rdx, rbx
mov rcx, r12
call fcn.180018ff0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c93b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18002ce60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180051678]
test rcx, rcx
jne 0x18002cdb7
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x18002cdb0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18002cde2
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x18002cdac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x180051678], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x18002ce55
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18002ce05
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x180051678]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x18002ce32
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x18002ce55
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x180051678]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x18002ce39
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x18002cd3c

Function at 0x18002d380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x180050a20]
cmp ecx, 0xffffffff
je 0x18002d445
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002d445
mov ecx, dword [0x180050a20]
mov qword [rsp + 0x20], rbx
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x18002d3b8
mov eax, ebx
jmp 0x18002d3c4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x180050a20]
cmp byte [rax + 0x90], bl
je 0x18002d440
cmp ecx, 0xffffffff
je 0x18002d440
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002d440
mov ecx, dword [0x180050a20]
cmp ecx, 0xffffffff
jne 0x18002d3ec
mov rax, rbx
jmp 0x18002d3f2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18002d440
mov ecx, dword [0x180050a20]
cmp ecx, 0xffffffff
je 0x18002d419
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r11d, r11d
lea rdx, [0x18004a9d8]
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], r11b
call sub.MSVCR100.dll__CxxThrowException
int3
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x18002d850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov ecx, dword [0x180050a20]
cmp ecx, 0xffffffff
jne 0x18002d87b
xor ebp, ebp
jmp 0x18002d884
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov qword [rsp + 0x50], rbp
test rbp, rbp
je 0x18002d9c4
cmp qword [rbp + 0x30], 0
jne 0x18002d8a6
cmp qword [rbp + 0x18], 0
je 0x18002d99d
jmp 0x18002d8b0
cmp qword [rbp + 0x18], 0
je 0x18002d906
nop dword [rax]
mov rdi, qword [rbp + 0x18]
mov rax, qword [rdi + 8]
mov qword [rbp + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002d8eb
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x18], 0
jne 0x18002d8b0
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x18002d892
mov rdi, rbx
cmp byte [rbx + 0x39], 0
jne 0x18002d966
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x39], 0
jne 0x18002d93f
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x39], 0
jne 0x18002d966
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x39], 0
je 0x18002d931
jmp 0x18002d966
mov rax, qword [rbx + 8]
cmp byte [rax + 0x39], 0
jne 0x18002d963
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x18002d963
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x39], 0
je 0x18002d950
mov rbx, rax
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x18002d97e
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x18002d97e
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x20]
call fcn.18000bdd0
cmp rbx, rsi
jne 0x18002d912
jmp 0x18002d892
lea rdx, [0x18002cfd0]
lea rcx, [0x1800516c8]
call fcn.18002d150
mov ecx, dword [0x180050a20]
cmp ecx, 0xffffffff
je 0x18002d9c4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rbp, rbp
je 0x18002d9ee
lock dec dword [rbp + 8]
jne 0x18002d9ee
mov rax, qword [rbp]
xor edx, edx
mov rcx, rbp
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18002da70
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
mov rdi, rcx
lea r8, [0x18002da10]
lea rax, [r9 + 0x40]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.MSVCR100.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x18002dab5
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
add rax, 8
lock inc dword [rax]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18002dadc
cmp rcx, 0xffffffffffffffff
je 0x18002dadc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x18003000f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180050b58]
jne 0x18002f88a
rol rcx, 0x10
test cx, 0xffff
jne 0x18002f886
repz ret
ror rcx, 0x10
jmp 0x18002ff68
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180051800]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800518f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002ffed
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180051800]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18003000f
mov rax, qword [rsp + 0x88]
mov qword [0x1800518f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180051898], rax
mov rax, qword [0x1800518f8]
mov qword [0x180051770], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180051880], rax
mov dword [0x180051760], 0xc0000409
mov dword [0x180051764], 1
mov rax, qword [0x180050b58]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180050b60]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800517f8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18003c7b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800517f8], 0
jne 0x180030096
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret