joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0b50
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400c0b7a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401756e0]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1400c0bde
mov rcx, rbx
test r14, r14
je 0x1400c0bc8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400c0c16
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c0c16
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400c0cd8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400c0c40
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400c0cca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400c0cca
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400c0c70
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400c0c84
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400c0ca0
mov rcx, rdi
test r14, r14
je 0x1400c0cc1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400c0cc7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140162e71]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400ccf40
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403d3080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ccf95
jmp 0x1400cd144
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400cd11b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400cd11b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400cd11b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400cd11b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400cd11b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400cd11b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400cd11b
mov r9, rsi
lea r8, [0x1401771f4]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400c13c0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400cd0b5
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400cd11b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400cd11b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400cd11b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400cd13c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401617c0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400d0bb0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400d0d74
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400d0d54
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400d0c0d
lea ebp, [rax + 0xe]
jmp 0x1400d0c19
cmp eax, 0x17
jne 0x1400d0cc1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400d0cc1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400d0cc1
cmp rax, rbp
jb 0x1400d0cc1
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400d0cfc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400d0ceb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400d0cae
call qword [case.0x1400b2649.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400d0cd0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400d0cbe
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400d0c00
jmp 0x1400d0d02
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140162e71]
mov rcx, rdi
call qword [fcn.140162e71]
jmp 0x1400d0d02
mov rcx, rdi
mov r14d, 8
call qword [fcn.140162e71]
jmp 0x1400d0d02
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d0d17
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400d0d4f
test rbx, rbx
je 0x1400d0d4a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140162e71]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140162e71]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140162e71]
mov rbx, rdi
test rdi, rdi
jne 0x1400d0d21
mov rbx, r13
jmp 0x1400d0d63
test rbx, rbx
jne 0x1400d0d63
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x1400d1230
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400d4420
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x1403d3010]
mov rdi, rax
test rax, rax
je 0x1400d449d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400d44c8
cmp ebx, esi
je 0x1400d44c8
cmp ebx, 0x8000
ja 0x1400d44c8
cmp ebx, esi
jb 0x1400d44c3
mov edx, ebx
mov rcx, rdi
call qword [0x1403d3010]
mov rdi, rax
test rax, rax
jne 0x1400d4460
mov rcx, rbp
call qword [fcn.140162e71]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400d44a8
mov rcx, rdi
jmp 0x1400d44a0
Function at 0x14015bc90
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14015bcac
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14015bd00
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14015be25
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x14015be25
test rax, rax
je 0x14015be25
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x14015be25
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14015bd9a
lea rax, [0x14015be80]
jmp 0x14015bdf3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14015be25
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015be13
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x14015bdc0
lea rax, [0x14015be50]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14015be3a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret

Function at 0x140162600
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016264a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016264a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016264a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016264a
cmp dword [rcx + 0x84], 0xe
jbe 0x14016264a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14016264c
xor al, al
add rsp, 0x28
ret
Function at 0x140003a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov cl, 1
call fcn.140017510
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
or r8d, 0xffffffff
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140018770
nop
test rbx, rbx
je 0x140003a91
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140003a80
cmp byte [rax], r12b
je 0x140003a80
or r8d, 0xffffffff
lea rdx, [0x1400a1b88]
lea rcx, [rsp + 0x38]
call fcn.140018770
or r8d, 0xffffffff
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140018770
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x1400036b0]
lea ecx, [r8 + 5]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rdx, rax
mov ecx, dword [0x1400cc588]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x20], r12d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400195d0
nop
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x20], r12d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400195d0
nop
or edi, 0x50000
mov r9d, edi
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
cmp byte [rsp + 0x58], 0
je 0x140003b5a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003b5f
movsxd rdx, dword [rsp + 0x48]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x50]
jmp 0x140003b5f
mov rcx, qword [rsp + 0x50]
call fcn.140064550
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
cmp byte [rsp + 0x70], 0
je 0x140003b93
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003b98
movsxd rdx, dword [rsp + 0x60]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x68]
jmp 0x140003b98
mov rcx, qword [rsp + 0x68]
call fcn.140064550
mov ecx, dword [0x1400cc588]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor edx, edx
mov ecx, dword [0x1400cc588]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
call fcn.140064550
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

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

Disassembly:
xor r9d, r9d
mov rdx, rcx
xor ecx, ecx
lea r8d, [r9 + 0x10]
jmp fcn.140003a00
Function at 0x140006790
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
call fcn.14001cb60
test al, al
je 0x14000691c
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x70], bl
mov dword [rsp + 0x20], ebx
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.1400195d0
nop
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x58], bl
mov dword [rsp + 0x20], ebx
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, qword [rsi]
lea rcx, [rsp + 0x48]
call fcn.1400195d0
nop
movzx eax, word [rsi + 0x14]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
cmp byte [rsp + 0x58], bl
je 0x14000685e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006863
movsxd rdx, dword [rsp + 0x48]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x50]
jmp 0x140006863
mov rcx, qword [rsp + 0x50]
call fcn.140064550
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
cmp byte [rsp + 0x70], 0
je 0x140006896
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000689b
movsxd rdx, dword [rsp + 0x60]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x68]
jmp 0x14000689b
mov rcx, qword [rsp + 0x68]
call fcn.140064550
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
cmp edi, 0x20
jle 0x1400068b5
mov al, 1
jmp 0x140006930
cmp edi, 5
jne 0x1400068be
xor al, al
jmp 0x140006930
mov r8d, edi
lea rdx, [0x1400a28d4]
lea rcx, [rsp + 0x38]
call fcn.140004bc0
nop
mov r8, qword [rax]
lea rcx, [0x1400ca100]
mov rax, rcx
cmp edi, dword [rax]
je 0x1400068f2
add ebx, 1
add rax, 0x10
cmp ebx, 0xf
jl 0x1400068e0
jmp 0x1400068fe
movsxd rax, ebx
shl rax, 4
mov r8, qword [rax + rcx + 8]
lea rdx, str.ShellExecute_runas__failed___s_._Relaunching_directly.
lea rcx, [0x1400cc5c0]
call fcn.140004c20
nop
mov rcx, qword [rsp + 0x38]
call fcn.140064550
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.140005b60
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140016fa0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
test rdx, rdx
je 0x140016fbe
call fcn.140016d80
jmp 0x140017026
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ecx
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140037d20
nop
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140016d80
nop
cmp byte [rsp + 0x58], 0
je 0x14001701c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017021
movsxd rdx, dword [rsp + 0x48]
call fcn.140019030
mov rcx, qword [rsp + 0x50]
jmp 0x140017021
mov rcx, qword [rsp + 0x50]
call fcn.140064550
add rsp, 0x60
pop rbx
ret
Function at 0x140021a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x1c8], ebp
call fcn.140021c80
cmp rax, rdi
je 0x140021aaf
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rdi
jne 0x140021a88
mov rdx, qword [rdi]
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140021aaf
mov r9d, 0x17
lea r8, str.....lib1locTransMap.cxx
lea rdx, str.thrInst__this
lea rcx, [rsp + 0x58]
call fcn.14001b760
mov rcx, rax
call fcn.14001b660
nop
mov rbx, qword [rdi + 0x28]
test rbx, rbx
je 0x140021adb
mov rsi, qword [rdi + 0x30]
cmp rbx, rsi
je 0x140021ad2
mov rcx, qword [rbx]
call fcn.140064550
add rbx, 8
cmp rbx, rsi
jne 0x140021ac1
mov rcx, qword [rdi + 0x28]
call fcn.140064540
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
lea rbx, [rdi + 8]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140021260
mov rcx, qword [rbx + 8]
call fcn.140064540
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call fcn.1400203f0
mov qword [rdi + 0x10], rax
mov byte [rax + 0x31], 1
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rax], rax
mov rax, qword [rdi + 0x10]
mov qword [rax + 0x10], rax
xor eax, eax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rax
mov rdx, rdi
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140021c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov eax, dword [0x1400ccab0]
test al, 1
jne 0x140021d37
or eax, 1
mov dword [0x1400ccab0], eax
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [0x1400cca70], rax
lea rcx, [0x1400cca78]
call fcn.1400203f0
mov qword [0x1400cca80], rax
mov byte [rax + 0x31], 1
mov rax, qword [0x1400cca80]
mov qword [rax + 8], rax
mov rax, qword [0x1400cca80]
mov qword [rax], rax
mov rax, qword [0x1400cca80]
mov qword [rax + 0x10], rax
xor eax, eax
mov qword [0x1400cca88], rax
mov qword [0x1400cca98], rax
mov qword [0x1400ccaa0], rax
mov qword [0x1400ccaa8], rax
lea rbx, [0x1400cca70]
mov rdx, rbx
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [0x1400a01a0]
call fcn.140065eb0
nop
mov rax, rbx
jmp 0x140021d3e
lea rax, [0x1400cca70]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021dbf
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x140021e66
mov eax, dword [0x1400ccab0]
test al, 1
jne 0x140021e5f
or eax, 1
mov dword [0x1400ccab0], eax
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [0x1400cca70], rax
lea rcx, [0x1400cca78]
call fcn.1400203f0
mov qword [0x1400cca80], rax
mov byte [rax + 0x31], 1
mov rax, qword [0x1400cca80]
mov qword [rax + 8], rax
mov rax, qword [0x1400cca80]
mov qword [rax], rax
mov rax, qword [0x1400cca80]
mov qword [rax + 0x10], rax
xor ecx, ecx
mov qword [0x1400cca88], rcx
mov qword [0x1400cca98], rcx
mov qword [0x1400ccaa0], rcx
mov qword [0x1400ccaa8], rcx
lea rdx, [0x1400cca70]
mov ecx, dword [0x1400ccab4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [0x1400a01a0]
call fcn.140065eb0
nop
lea rax, [0x1400cca70]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rbx, rcx
mov dword [rsp + 0x188], 0
mov ecx, dword [0x1400ccac8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbx
jne 0x140023636
mov rdx, qword [rbx + 0x18]
mov ecx, dword [0x1400ccac8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp qword [rbx + 0x10], 0
je 0x140023608
lea rdx, str.restoring_locale
lea rcx, [0x1400cc618]
call fcn.14000a370
nop
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140023622
mov rcx, rdi
call fcn.140021a30
mov rcx, rdi
call fcn.140064540
nop
mov rcx, qword [rbx + 0x10]
call fcn.140064550
nop
mov rcx, qword [rbx]
call fcn.140064550
jmp 0x14002365d
mov r9d, 0x2c
lea r8, str.....lib1locLocaleSetter.cxx
lea rdx, str.thrInst__this
lea rcx, [rsp + 0x28]
call fcn.14001b760
mov rcx, rax
call fcn.14001b660
nop
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop rdi
ret