joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d88c0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d92c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d935a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d933e
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 0x2fc4d9332
cmp qword [rbp - 0x10], 0
je 0x2fc4d9332
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 0x2fc4d92f8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d935b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9460
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 0x2fc4d9488
mov eax, 0
jmp 0x2fc4d94d6
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 0x2fc4d94b1
mov eax, 0
jmp 0x2fc4d94d6
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 0x2fc4d94d1
mov eax, 0
jmp 0x2fc4d94d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d94dc
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 0x2fc4d955a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9551
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 0x2fc4d9551
mov rax, qword [rbp - 8]
jmp 0x2fc4d956f
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 0x2fc4d9524
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000a9d0
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000ab5c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x140033dd8]
mov rcx, qword [0x140033de0]
sub rax, rcx
je 0x14000aa44
mov rdx, qword [0x140033dd0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d4b0
add rbp, rbx
sub rdi, rbx
add qword [0x140033de0], rbx
jmp 0x14000ab42
mov rax, qword [0x140031dc0]
mov rcx, qword [0x140031db8]
cmp rax, rcx
jb 0x14000aaf0
test sil, sil
jne 0x14000aaf0
cmp rcx, rax
jne 0x14000ab5d
mov rcx, qword [0x140033de8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140033df0]
mov eax, eax
sub rcx, rax
je 0x14000ab42
mov rdx, qword [0x140031db0]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x140033de8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ab63
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000ab63
add qword [0x140031d90], rbx
mov qword [0x140031dc0], r14
mov qword [0x140031db8], rbx
jmp 0x14000ab42
mov rcx, qword [0x140031da8]
lea r8, [0x140031db0]
lea rdx, [0x140033dd0]
mov qword [0x140033de0], r14
mov qword [0x140033dd8], 0x20000
call fcn.140006f80
mov rcx, qword [0x140033de0]
cmp rcx, qword [0x140033dd8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000ab5d
mov qword [0x140033dd8], rcx
mov qword [0x140033de0], r14
test rdi, rdi
jne 0x14000aa00
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a970
int3
call fcn.14000a970
int3

Function at 0x14000ab70
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x140031da0]
xor ebx, ebx
test rcx, rcx
je 0x14000ac05
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000abe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fd7c
mov rcx, qword [rsp + 0x90]
call fcn.14000fd7c
mov rcx, qword [0x140031da0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140031da0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031dc8], bl
je 0x14000ac55
lea rax, [0x140031dd0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400298b8]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001c9a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400360f4]
call fcn.1400118cf
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001c9f7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001cb03
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001ca9c
cmp qword [rbp + 0x28], 0
jle 0x14001ca9c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ca3c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011852
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001caf2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001caf2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400114f6
Capabilities:
Terminate process

Disassembly:
jmp 0x14001f760
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011627
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020290
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400202b0
xor al, al
jmp 0x140020331
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400202c3
xor al, al
jmp 0x140020331
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400202ed
xor al, al
jmp 0x140020331
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140020301
xor al, al
jmp 0x140020331
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140020313
xor al, al
jmp 0x140020331
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002032f
xor al, al
jmp 0x140020331
mov al, 1
add rsp, 0x38
ret
Function at 0x140011686
Capabilities:
Create process on windows

Disassembly:
jmp 0x14001b1a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14003610a]
call fcn.1400118cf
mov rcx, qword [rbp + 0xe0]
call fcn.1400110fa
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400118b6
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018bb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14002f040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400360f4]
call fcn.1400118cf
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140018c16
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018c1d
mov al, 1
jmp 0x140018d6d
call fcn.140011285
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011285
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400116fe
movzx eax, al
test eax, eax
je 0x140018c6e
xor al, al
jmp 0x140018d6d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140018cd3
cmp dword [rbp + 0x154], 1
je 0x140018cde
cmp dword [rbp + 0x154], 3
je 0x140018d5c
jmp 0x140018d6b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018d2e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018d2e
xor al, al
jmp 0x140018d6d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018d49
mov dword [rbp + 0x154], 1
jmp 0x140018d53
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140018d6d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140018d6d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140028a90]
call fcn.140011758
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001144c
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140001740
Capabilities:
Parse pe header

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

Function at 0x140005934
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005730
Function at 0x1400089fc
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 0x140008a2c
xor eax, eax
jmp 0x140008aef
mov rbp, rbx
cmp word [rax], si
je 0x140008a51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008a38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008a34
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.14000891c
movsxd r14, eax
test eax, eax
jne 0x140008a8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008a25
mov rcx, r14
call fcn.1400098d8
mov rdi, rax
test rax, rax
jne 0x140008aa8
xor ecx, ecx
call fcn.140006f7c
jmp 0x140008a84
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.14000891c
test eax, eax
jne 0x140008ad9
mov rcx, rdi
call fcn.140006f7c
jmp 0x140008ae3
xor ecx, ecx
call fcn.140006f7c
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 0x14000bfe0
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.1400079ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c06a
cmp byte [rbp - 0x21], r15b
je 0x14000c065
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c0a0
call fcn.14000a0e8
test eax, eax
jne 0x14000c08c
cmp byte [rbp - 0x21], r15b
je 0x14000c084
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c0a0
cmp byte [rbp - 0x21], r15b
je 0x14000c09d
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.140006fcc
test eax, eax
jne 0x14000c140
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400079ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c0df
cmp byte [rbp - 0x21], r15b
je 0x14000c114
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c114
call fcn.14000a0e8
test eax, eax
jne 0x14000c100
cmp byte [rbp - 0x21], r15b
je 0x14000c0f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c114
cmp byte [rbp - 0x21], r15b
je 0x14000c111
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.140006fcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c140
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c143
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c151
mov rcx, rdi
call fcn.140006f7c
cmp byte [rbp + 0x3f], r15b
je 0x14000c160
mov rcx, qword [rbp + 0x27]
call fcn.140006f7c
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 0x14000ef90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000efb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000efb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x403fcd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x0040f028]
test ecx, ecx
je 0x4040d5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x404005
mov rbx, rax
cmp qword [rax + 8], 0
je 0x404005
add rbx, 0x10
jmp 0x4040ca
mov ecx, dword [0x0040f028]
test ecx, ecx
je 0x4040e8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4040c8
mov rdi, rax
test rax, rax
jne 0x404077
mov al, byte [0x004140c0]
mov ecx, 0x18
mov edx, 8
call fcn.004022e0
test rax, rax
je 0x40410e
mov rdi, rax
lea rax, [0x0040f010]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x0040f028]
test ecx, ecx
je 0x4040fb
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x4040a3
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rsi], 0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
test rcx, rcx
jne 0x4040a5
lea rcx, [rsp + 0x20]
call fcn.00404d75
xor eax, eax
movups xmm0, xmmword [rdi + 8]
lea rbx, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
lea rcx, [rsp + 0x20]
movups xmmword [rcx], xmm0
call fcn.00404d75
jmp 0x4040ca
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x0040f010]
call fcn.00405628
mov ecx, eax
jmp 0x403fe7
lea rcx, [0x0040f010]
call fcn.00405628
mov ecx, eax
jmp 0x404015
lea rcx, [0x0040f010]
call fcn.00405628
mov ecx, eax
jmp 0x40406f
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x0040f070]
test ecx, ecx
je 0x404ebb
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x404deb
mov rbx, rax
cmp qword [rax + 8], 0
je 0x404deb
add rbx, 0x10
jmp 0x404eb0
mov ecx, dword [0x0040f070]
test ecx, ecx
je 0x404ece
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x404eae
mov rdi, rax
test rax, rax
jne 0x404e5d
mov al, byte [0x004140c0]
mov ecx, 0x18
mov edx, 8
call fcn.004022e0
test rax, rax
je 0x404ef4
mov rdi, rax
lea rax, [0x0040f058]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x0040f070]
test ecx, ecx
je 0x404ee1
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x404e89
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rsi], 0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
test rcx, rcx
jne 0x404e8b
lea rcx, [rsp + 0x20]
call fcn.00404d94
xor eax, eax
movups xmm0, xmmword [rdi + 8]
lea rbx, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
lea rcx, [rsp + 0x20]
movups xmmword [rcx], xmm0
call fcn.00404d94
jmp 0x404eb0
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x0040f058]
call fcn.00405628
mov ecx, eax
jmp 0x404dcd
lea rcx, [0x0040f058]
call fcn.00405628
mov ecx, eax
jmp 0x404dfb
lea rcx, [0x0040f058]
call fcn.00405628
mov ecx, eax
jmp 0x404e55
ud2
Function at 0x405628
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x4056a2
lea r8, [rsp + 0x2c]
mov dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x4056e9
cmp dword [rsp + 0x2c], 0
je 0x4056ca
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4056d9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00414098]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00414098], rsi
jne 0x40567d
mov byte [0x00414090], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x4056cf
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4056e9
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x4056cf
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x4056cf
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x0040f090]
test ecx, ecx
je 0x406565
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x4064d3
cmp byte [rax + 8], 0
je 0x4064d3
add rax, 9
jmp 0x40655e
mov ecx, dword [0x0040f090]
test ecx, ecx
je 0x406578
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x40655c
mov rdi, rax
test rax, rax
jne 0x406539
mov al, byte [0x004140c0]
mov ecx, 0x10
mov edx, 8
call fcn.004022e0
test rax, rax
je 0x40659b
mov rdi, rax
lea rax, [0x0040f078]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x0040f090]
test ecx, ecx
je 0x40658b
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x40654f
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x40655e
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x0040f078]
call fcn.00405628
mov ecx, eax
jmp 0x4064b9
lea rcx, [0x0040f078]
call fcn.00405628
mov ecx, eax
jmp 0x4064e3
lea rcx, [0x0040f078]
call fcn.00405628
mov ecx, eax
jmp 0x406531
ud2