joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009fda0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14009fde2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14009fe29
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14009fe82
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
sub rbp, 1
jne 0x14009fe40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14009fec3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b2662]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b2663]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14009fe90
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400a0e80
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
xor eax, eax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbx + 0x1c]
test ecx, ecx
je 0x140001947
dec ecx
je 0x1400018e5
lea eax, [rdi + 8]
jmp 0x140001a38
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140001bb0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
nop
test eax, eax
jne 0x14000192e
cmp qword [rsp + 0x78], 8
jb 0x140001924
mov rcx, qword [rsp + 0x60]
call fcn.1400137cc
mov eax, 4
jmp 0x140001a38
cmp qword [rsp + 0x78], 8
jb 0x140001940
mov rcx, qword [rsp + 0x60]
call fcn.1400137cc
xor eax, eax
jmp 0x140001a38
mov byte [rbx + 0x18], dil
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001970
mov eax, 2
jmp 0x140001a38
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140001bb0
nop
lea rcx, [rbx + 0xb0]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400019a1
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.1400024a0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov edx, 0x80003
mov r9d, 1
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x48], rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400019f5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], rdi
cmp qword [rbx + 0x48], 0xffffffffffffffff
jne 0x140001a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete dil
add edi, 2
jmp 0x140001a24
mov dword [rbx], edi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rbx
call fcn.1400012e0
mov edi, eax
cmp qword [rsp + 0x78], 8
jb 0x140001a36
mov rcx, qword [rsp + 0x60]
call fcn.1400137cc
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400130a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x140001c50
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x20], r9d
push rsi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
test rdx, rdx
je 0x140001d98
xor ecx, ecx
mov qword [rsp + 0x50], 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 0x140001d11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140001d81
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001d81
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 0x140001d81
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140001d72
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140001d72
mov rax, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov r8d, 0x410
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140001d81
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x140006400
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 rbp, qword [rcx + 0x80]
add rbp, 8
mov qword [rsp + 0x28], rbp
mov rcx, rbp
call fcn.1400126b0
mov dword [rsp + 0x30], 1
cmp qword [rdi + 0x90], 0
jbe 0x1400064a7
nop dword [rax + rax]
mov rbx, qword [rdi + 0x88]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006489
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x88]
call fcn.1400029d0
cmp qword [rdi + 0x90], 0
ja 0x140006450
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140006539
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, dword [0x14003a400]
test al, 1
jne 0x1400064e2
or eax, 1
mov dword [0x14003a400], eax
call fcn.1400091f0
lea rcx, [0x1400261f0]
call fcn.140013788
nop
lea rcx, [0x14003a390]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
lea rcx, [0x14003a398]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
lea rcx, [0x14003a3a0]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
lea rcx, [0x14003a3a8]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
mov rcx, qword [rdi + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140006539
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0xa0], 0
mov rcx, rbp
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.1400126f0
Function at 0x140008400
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.1400081a0
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], 0x10000
call fcn.1400081a0
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.1400081a0
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.1400081a0
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.1400081a0
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.1400081a0
Function at 0x140009460
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x68], 0
mov rdi, rcx
jne 0x140009566
lea rcx, str.mapi32.dll
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, 0x18
mov qword [rdi + 0x30], rax
call fcn.1400138b8
mov rsi, rax
test rax, rax
je 0x1400094de
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPIFreeBuffer
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPIAllocateBuffer
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, vtable.MapiAllocator.0
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
jmp 0x1400094e0
xor esi, esi
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPIInitialize
mov qword [rdi + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPIUninitialize
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPILogonEx
mov qword [rdi + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 0x30]
lea rdx, str.MAPIAdminProfiles
mov qword [rdi + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rsp + 0x38]
mov qword [rdi + 0x60], rax
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x140009566
cmp qword [rdi + 0x50], 0
je 0x140009566
cmp qword [rdi + 0x58], 0
je 0x140009566
xor ecx, ecx
call rax
mov dword [rdi + 0x28], eax
test eax, eax
js 0x140009566
mov dword [rdi + 0x68], 1
add rsp, 0x20
pop rdi
ret
Function at 0x140012350
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.1400138b8
xor edx, edx
test rax, rax
je 0x14001236f
mov qword [rax], rdx
jmp 0x140012372
mov rax, rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
lea r8, [0x1400123a0]
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 0x140012500
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
cmp eax, 0xffffffff
je 0x14001253e
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3

Function at 0x1400125d0
Capabilities:
Set thread local storage value

Disassembly:
test rdx, rdx
je 0x1400125fa
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
je 0x1400125fb
add rsp, 0x60
pop rbx
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012671
dec dword [rax]
jne 0x14001266b
mov rdx, rax
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x1400125d0
add rsp, 0x60
pop rbx
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
Function at 0x140012640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
test rdx, rdx
je 0x1400125fa
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
je 0x1400125fb
add rsp, 0x60
pop rbx
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012671
dec dword [rax]
jne 0x14001266b
mov rdx, rax
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x1400125d0
add rsp, 0x60
pop rbx
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3

Function at 0x1400126b0
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 0x1400126cd
cmp dword [rax], 0
jne 0x1400126d7
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.1400127e0
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x1400126f0
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140012700
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001274d
cmp dword [rax], 0
jbe 0x14001274d
mov rcx, rbx
call fcn.140012640
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012737
cmp dword [rax], 0
jne 0x140012747
lea rcx, [rbx + 0x10]
add rsp, 0x60
pop rbx
jmp 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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
Function at 0x140012700
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140012700
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001274d
cmp dword [rax], 0
jbe 0x14001274d
mov rcx, rbx
call fcn.140012640
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012737
cmp dword [rax], 0
jne 0x140012747
lea rcx, [rbx + 0x10]
add rsp, 0x60
pop rbx
jmp 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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3

Function at 0x1400127e0
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 0x140012828
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140012836
mov dword [rax], 0
mov ecx, dword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001286c
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
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.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3

Function at 0x140015ccc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140015b34
Function at 0x401571
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x3d0
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x60]
lea rax, [0x00488008]
mov ecx, 0x6f
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
mov ecx, dword [rax]
mov dword [rdx], ecx
lea rdx, [rdx + 4]
lea rax, [rax + 4]
movzx ecx, word [rax]
mov word [rdx], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
mov byte [rbp + 0x320], 0x6c
mov byte [rbp + 0x321], 0x66
mov byte [rbp + 0x322], 0x79
mov byte [rbp + 0x323], 0x6c
mov byte [rbp + 0x324], 0x66
mov byte [rbp + 0x325], 0x79
mov byte [rbp + 0x326], 0x32
mov byte [rbp + 0x327], 0x30
mov byte [rbp + 0x328], 0
mov dword [rbp + 0x344], 8
mov dword [rbp + 0x34c], 0
mov dword [rbp + 0x348], 0
jmp 0x40166c
mov eax, dword [rbp + 0x348]
cdqe
movzx edx, byte [rbp + rax - 0x60]
mov eax, dword [rbp + 0x34c]
cdqe
movzx eax, byte [rbp + rax + 0x320]
xor edx, eax
mov eax, dword [rbp + 0x348]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0x34c], 1
mov eax, dword [rbp + 0x34c]
cmp eax, dword [rbp + 0x344]
jne 0x401665
mov dword [rbp + 0x34c], 0
add dword [rbp + 0x348], 1
mov eax, dword [rbp + 0x348]
cdqe
cmp rax, 0x37e
jb 0x40161b
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x37e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x338]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x37e
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x338]
call rax
nop
add rsp, 0x3d0
pop rsi
pop rdi
pop rbp
ret
Function at 0x40e070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004a7064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40e18a
mov rax, qword [0x004a7068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40e0be
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40e170
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40e0a2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40e1c2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004a7068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a7068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40e1a5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40e169
sub eax, 0x40
and eax, 0xffffffbf
je 0x40e169
mov r9, rbp
add r9, qword [0x004a7068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e191
add dword [0x004a7064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40e0cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x004a7068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x40eda0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x40edb0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x40edc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40ee01
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40edf8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40ee03
add rax, 0x28
cmp rax, r9
jne 0x40ede4
xor eax, eax
repz ret

Function at 0x40eeb0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048ce20]
cmp word [rbx], 0x5a4d
je 0x40eed0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40eec4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection