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

Disassembly:
xchg rbx, rdi
mov qword [rsp + 8], rdi
xchg rdi, rbx
xchg rsi, r14
mov qword [rsp + 0x10], r14
xchg r14, rsi
mov qword [rsp + 0x18], rdi
mov r12, r12
nop
mov qword [rsp - 8], rbp
sub rsp, 8
nop
sub rsp, 8
mov qword [rsp], r12
nop
mov qword [rsp - 8], r14
sub rsp, 8
xchg rbx, rbp
mov rbx, rsp
xchg rbp, rbx
neg rsp
sub rsp, 0xffffffffffffff90
neg rsp
xchg rdi, rsp
mov rsp, r8
xchg rdi, rsp
xchg r10, rdx
mov r14, r10
xchg rdx, r10
mov rsi, rcx
movabs r12, 0x7839482a24b1886f
xor r12, 0x5a24f877
xor r12, 0x172a799
sub r12, 0x63e97ba4
cmp r9d, 0x60001
jne 0x140123ee5
mov dword [rbp - 0x40], 0x605c2878
sub dword [rbp - 0x40], 0x263b8b8c
add dword [rbp - 0x40], 0xf270e76
sub dword [rbp - 0x40], 0x166db6fb
xor edx, edx
mov dword [rbp - 0x3c], 0x5fd6f7ad
sub dword [rbp - 0x3c], 0x50b075f4
xor dword [rbp - 0x3c], 0x493a7342
xor dword [rbp - 0x3c], 0x180acde9
add dword [rbp - 0x3c], 0x43c78b53
mov dword [rbp - 0x38], 0x6173d5ec
sub dword [rbp - 0x38], 0x4d4fd3f8
add dword [rbp - 0x38], 0x65091584
sub dword [rbp - 0x38], 0xc5335f7
mov ecx, edx
mov dword [rsp - 0x40], esp
mov eax, 0x4dc9fd72
xor eax, 0x1ac96f7a
sub eax, 0x3a914a53
xor eax, 0x48ef1193
rol eax, cl
xor al, byte [rbp + rdx - 0x40]
xchg r8, r8
mov byte [rbp + rdx - 0x34], al
inc rdx
cmp rdx, 0xc
jb 0x140123dc8
mov dword [rsp - 0x18], ebx
mov r9d, 0x26820cf5
xor r9d, 0x18798a03
xor r9d, 0x148c3407
sub r9d, 0x2a77a2f2
mov qword [rsp + 0x20], 0x78654604
sub qword [rsp + 0x20], 0x36406632
sub qword [rsp + 0x20], 0x28b03202
sub qword [rsp + 0x20], 0x1974adc4
lea r8, [rbp - 0x34]
xchg r13, rdx
mov r13, rdi
xchg rdx, r13
xchg rdx, r14
mov rcx, rdx
xchg r14, rdx
call fcn.140121e98
mov dword [rsp - 0x38], 0x764d217c
mov rbx, rax
lea rdi, [rbp - 0x34]
xor eax, eax
mov rbp, rbp
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rbx, rbx
je 0x140123f2d
xchg r8, r8
lea rdx, [rbp - 0x28]
lea rcx, [rbx + 0xc]
call fcn.1400b4478
mov dword [rsp - 0x18], edx
test dword [rbp - 7], 0x1000
jne 0x140123f2d
cmp byte [rbp - 0x1d], 0xe8
jne 0x140123f2d
mov rsp, rsp
lea rdx, [rbx + 0xc]
xchg rcx, r8
mov r8, r14
xchg rcx, r8
call fcn.1400ab000
mov dword [rsp - 0xc], ebx
movzx edx, byte [rbp - 0x28]
add edx, dword [rbp - 0x13]
add edx, eax
xchg r9, r9
mov rax, qword [rsi + 8]
xor rax, r12
add rdx, rax
xor rdx, r12
mov dword [rsp - 0x2c], 0x2737a760
mov qword [rsi + 0x20], rdx
cmp qword [rsi + 0x20], r12
setne al
lea r11, [rsp + 0x70]
mov dword [rsp - 0x14], esi
mov rbx, qword [r11 + 0x20]
xchg rsi, rbx
mov rbx, qword [r11 + 0x28]
xchg rsi, rbx
mov rdi, qword [r11 + 0x30]
xchg rsp, rcx
mov rcx, r11
xchg rcx, rsp
nop
mov r14, qword [rsp]
add rsp, 8
nop
add rsp, 8
mov r12, qword [rsp - 8]
nop
mov rbp, qword [rsp]
add rsp, 8
ret
xor al, al
jmp 0x140123eec
Function at 0x1400016c7
Capabilities:
Terminate process

Disassembly:
jmp 0x140017608
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140017514
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017514
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001755e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001755e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001755e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001755e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001755e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017560
xor al, al
add rsp, 0x28
ret
Function at 0x140002fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400048f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400048f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003150
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000306b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003050
mov rcx, rbx
call fcn.140003a70
mov rdi, rax
test rax, rax
je 0x140003172
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003bb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003100
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002fb0
nop dword [rax]
xor esi, esi
jmp 0x140003078
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002fb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002fb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000373c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003733
test rsi, rsi
je 0x140003733
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003718
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003a70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003aed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003ae4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a90
add rax, 0x28
cmp rax, r9
jne 0x140003ad0
xor eax, eax
ret

Function at 0x140003af0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003b0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003b18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003b0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003bb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003bcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003bd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140036400
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140036499
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 8
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400eca24], ecx
jle 0x140036480
lea rcx, [0x1400eca24]
call fcn.140083318
cmp dword [0x1400eca24], 0xffffffff
jne 0x140036480
lea rcx, [0x1400bb410]
call fcn.140083604
lea rcx, [0x1400eca24]
call fcn.1400832ac
lea rax, [0x1400e4f50]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x1400364ae
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140083250
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1400c97e0]
lea rcx, [rsp + 0x20]
call fcn.1400362d0
int3

Function at 0x140036580
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400eca28], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400365f9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140083250
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140036630]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140083250
add rsp, 0x40
pop rbx
ret

Function at 0x140037810
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037849
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003cf80
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003cf80

Function at 0x140037860
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140037890
mov r9, qword [rax + 8]
jmp 0x140037893
mov r9, r8
cmp rdi, 0x3fc
ja 0x1400378b7
test r9, r9
je 0x1400378b7
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x1400378c5
inc r8d
inc rax
cmp rax, 2
jl 0x1400378a4
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp case.0x14007d5cb.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x140037b60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
xor r14d, r14d
mov rbx, rcx
mov qword [rdx], r14
mov rsi, rdx
mov qword [rdx + 8], r14
mov rbp, r8
mov edx, r14d
mov rcx, qword [rax]
mov r9d, r14d
test rcx, rcx
je 0x140037bc7
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r9
mov qword [rsi + 8], rdx
mov qword [rax], r14
cmp rbp, rdx
jbe 0x140037ce4
mov ebx, 6
test r9, r9
je 0x140037c29
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037bf1
mov rdx, qword [rax + 8]
jmp 0x140037bf4
mov rdx, r14
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x140037c21
test rdx, rdx
je 0x140037c21
mov ecx, ebx
mov rax, rbx
nop
cmp qword [rdx + rax*8], r14
je 0x140037c8a
inc ecx
inc rax
cmp rax, 8
jl 0x140037c10
mov rcx, r8
call case.0x14007d5cb.0
mov ecx, dword [0x1400ecd60]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x140037cb6
mov r9, qword [rax + 8]
test r9, r9
je 0x140037cb6
mov ecx, ebx
lea r8, [r9 + 0x30]
mov rdx, qword [r8]
test rdx, rdx
je 0x140037c66
movzx eax, byte [rdx]
cmp rax, rdi
jae 0x140037c9b
inc ecx
add r8, 8
cmp ecx, 8
jl 0x140037c56
mov rax, rbx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
jne 0x140037caa
inc ebx
inc rax
cmp rax, 8
jl 0x140037c74
jmp 0x140037cb6
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x140037c29
movsxd rax, ecx
mov qword [r9 + rax*8], r14
movzx eax, byte [rdx]
mov byte [rdx + rbp], al
jmp 0x140037cd8
movsxd rax, ebx
mov qword [r9 + rax*8], r14
call case.0x14007d5cb.0
lea rcx, [rdi*4 + 1]
call fcn.140083390
cmp rdi, 0xff
movzx ecx, dil
mov rdx, rax
cmova ecx, r14d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x50]
mov qword [rsi], rdx
mov qword [rsi + 8], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140083250
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400396d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400396f7
mov r8, qword [rax + 8]
jmp 0x1400396fa
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140039722
test r8, r8
je 0x140039722
mov ecx, 2
mov eax, ecx
nop
cmp qword [r8 + rax*8], 0
je 0x140039734
inc ecx
inc rax
cmp rax, 4
jl 0x140039710
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp case.0x14007d5cb.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, ecx
mov qword [r8 + rax*8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140039750
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x1400397f4
mov r10, qword [rax + 8]
test r10, r10
je 0x1400397f4
mov r9d, 2
lea r8, [r10 + 0x10]
mov ecx, r9d
mov rdx, qword [r8]
test rdx, rdx
je 0x1400397a3
movzx eax, byte [rdx]
cmp rax, rbx
jae 0x1400397c8
inc ecx
add r8, 8
cmp ecx, 4
jl 0x140039793
mov rax, r9
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x1400397e8
inc r9d
inc rax
cmp rax, 4
jl 0x1400397b1
jmp 0x1400397f4
movsxd rcx, ecx
mov rax, rdx
mov qword [r10 + rcx*8], rsi
movzx ecx, byte [rdx]
mov byte [rdx + rdi], cl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
mov qword [r10 + rax*8], rsi
call case.0x14007d5cb.0
lea rcx, [rbx*4 + 1]
call fcn.140083390
cmp rbx, 0xff
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
cmova ecx, esi
mov rsi, qword [rsp + 0x38]
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
ret
Function at 0x14003e050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp - 0x59], rdi
lea rax, [0x1400e4f60]
mov qword [rbp - 0x51], rax
mov rbx, qword [rcx + 0x18]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x14003e0a2
mov rcx, rbx
call fcn.1400386b0
jmp 0x14003e170
mov dword [rbp + 0x27], edi
lea rcx, [rbp + 0x2f]
call fcn.140077a28
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140038910
test rax, rax
je 0x14003e135
nop dword [rax]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140038910
test rax, rax
jne 0x14003e120
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003e15d
call case.0x14007d5cb.0
add rbx, 8
sub rdi, 1
jne 0x14003e150
lea rcx, [rbp + 0x2f]
call fcn.140077ab4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140083250
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14003f9c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov rbp, rcx
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rdi]
mov rbx, qword [rbx + 0x78]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rdi
mov rdx, rdi
mov ecx, 0xc0
call fcn.140037810
mov r14, rax
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x140040490]
mov qword [r14 + 0x28], rax
mov qword [r14], rcx
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], rcx
mov qword [r14 + 0x18], rcx
mov dword [r14 + 0x30], ecx
movups xmm0, xmmword [r13]
movups xmmword [r14 + 0x38], xmm0
lea rdx, [r14 + 0x48]
mov rax, qword [rdi]
mov qword [rdi], rcx
mov qword [rdx], rax
lea rcx, [r14 + 0x50]
mov r8, rsi
call fcn.140040270
mov qword [rsp + 0x40], r14
test rbx, rbx
je 0x14003fadb
mov r8d, 0x58
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140037b60
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x48]
mov qword [rdx], rax
mov rax, qword [r15]
xor esi, esi
mov qword [rdx + 0x28], rsi
lea r8, [0x140038e60]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x20], rsi
mov dword [rdx + 0x38], esi
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], r14
mov rax, qword [rsp + 0x50]
mov qword [rdx + 0x50], rax
mov qword [rbx], rdx
lea r14, [rdx + 8]
jmp 0x14003fadd
xor esi, esi
mov rdi, qword [r13]
mov rbx, qword [r13 + 8]
cmp dword [r15 + 8], 0
jne 0x14003faf8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r15 + 8], eax
jmp 0x14003fb0c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [r15 + 8], eax
je 0x14003fb0c
mov dword [r15 + 8], 0xffffffff
mov rax, qword [rbp + 0x28]
lock inc dword [rax + 0x30]
cmp qword [r15], 0xffffffffffffffff
jne 0x14003fb31
xor r9d, r9d
mov r8d, 0x2719
mov rdx, r14
mov rcx, qword [rbp + 0x28]
call fcn.140038820
jmp 0x14003fbaf
test rbx, rbx
jne 0x14003fb4a
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp + 0x28]
call fcn.140038820
jmp 0x14003fbaf
mov dword [rsp + 0x58], esi
mov dword [r14 + 0x10], r12d
shr r12, 0x20
mov dword [r14 + 0x14], r12d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14003fba3
cmp eax, 0x3e5
je 0x14003fba3
cmp eax, 0xea
je 0x14003fba3
mov r9d, dword [rsp + 0x58]
mov r8d, eax
mov rdx, r14
mov rcx, qword [rbp + 0x28]
call fcn.140038820
jmp 0x14003fbaf
mov rdx, r14
mov rcx, qword [rbp + 0x28]
call fcn.140038790
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x30]
call fcn.14003ffe0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140083250
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040620
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1400e4328]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
mov rax, qword [rdx]
mov qword [rdx], rsi
mov qword [rbp - 0x69], rax
lea rdx, [rbp - 0x49]
call fcn.140037aa0
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x11]
call fcn.140040ae0
mov rbx, rax
cmp qword [rax + 0x20], rsi
je 0x14004079a
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400406a0
lea rcx, [0x140040f90]
mov qword [rbp - 0x59], rcx
lea rcx, [rbp - 0x69]
mov qword [rbp - 0x51], rcx
lea rdx, [rbp - 0x59]
mov rcx, rbx
call rax
jmp 0x14004073f
mov rdi, qword [rcx + 0x10]
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x71], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x79]
mov qword [rbp + 0x27], rax
mov ecx, dword [0x1400ecd60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400406d7
mov rdx, qword [rax + 8]
jmp 0x1400406da
mov rdx, rsi
mov r8d, 0x18
call fcn.140040fb0
mov qword [rbp + 0x37], rsi
mov rcx, qword [rbp - 0x71]
mov qword [rbp - 0x71], rsi
mov qword [rax + 8], rcx
lea rcx, [0x140041140]
mov qword [rax], rcx
mov qword [rbp - 0x61], rax
mov qword [rbp + 0x2f], rsi
lea rcx, [rbp + 0x27]
call fcn.140040ee0
nop
mov rax, qword [rbp - 0x71]
test rax, rax
je 0x140040724
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbp - 0x61]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14004073f
mov rax, qword [rcx]
xor edx, edx
call rax
nop
cmp qword [rbp + 0xf], 0
je 0x140040754
mov rax, qword [rbp + 7]
mov rdx, qword [rax]
lea rcx, [rbp - 0x11]
call rdx
nop
cmp qword [rbp - 0x29], 0
je 0x140040769
mov rax, qword [rbp - 0x31]
mov rdx, qword [rax]
lea rcx, [rbp - 0x49]
call rdx
nop
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14004077b
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140083250
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp + 0x27]
call fcn.140037900
nop
lea rcx, [rbp + 0x27]
call fcn.14003d050
int3