joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e8e50
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x68
ret

Function at 0x1800e8ea0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800e9002
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1800e8f04
jne 0x1800e8fa5
cmp dword [rbx + 8], 2
jb 0x1800e8fa5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x1800e8fa5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1800e8fa5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800e8fa5
movups xmm0, xmmword [0x1805a3658]
mov rcx, rax
movups xmm1, xmmword [0x1805a3668]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1800e8fa5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800e8fa5
cmp word [rdi + 2], ax
jbe 0x1800e8fa5
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800e8ff6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x1800e8ff6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1800e9004
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x170
pop rbx
ret
Function at 0x1800eab00
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov ebx, r12d
mov qword [rsp + 0x48], rbx
lea r13, [r12 - 1]
cmp r8d, 0x3fe
jbe 0x1800eabd3
lea ecx, [rbp + 2]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.18042d314
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800eab9f
cmp eax, ebp
ja 0x1800eab9f
mov ecx, eax
mov word [rbx + rcx*2], r12w
lea ecx, [rax + 1]
mov word [rbx + rcx*2], r12w
mov ebp, eax
jmp 0x1800eac02
test r14, r14
je 0x1800eabac
mov rcx, r14
call fcn.18042ce14
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbp
add rax, rax
cmp rax, 0x800
jae 0x1800ead36
mov word [rax + rdx], r12w
lea ecx, [rbp + 1]
add rcx, rcx
cmp rcx, 0x800
jae 0x1800ead30
mov word [rcx + rdx], r12w
mov eax, r12d
mov edi, r12d
test ebp, ebp
je 0x1800ead15
mov rsi, r14
cmp word [rsi], 0
jne 0x1800ead07
cmp eax, edi
je 0x1800ead07
lea rdx, [r14 + rax*2]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800eac50
lea rcx, [rsp + 0x20]
call fcn.18007d760
nop
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x1800eaca4
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
add qword [r15 + 8], 0x20
jmp 0x1800eacb2
lea r8, [rsp + 0x20]
mov rcx, r15
call fcn.1800adca0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1800eacf0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800eaceb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800ead29
call fcn.18042ce14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea eax, [rdi + 1]
inc edi
add rsi, 2
cmp edi, ebp
jb 0x1800eac13
test rbx, rbx
je 0x1800ead22
mov rcx, rbx
call fcn.18042ce14
mov al, 1
jmp 0x1800eabae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042d470
int3
call fcn.18042d470
int3
Function at 0x1800ebeb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1800ebf09
xor al, al
jmp 0x1800ebf5b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1800ebf34
cmp qword [rsp + 0x20], 0
je 0x1800ebf30
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x1800ebf5b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.18007d530
cmp qword [rsp + 0x20], 0
je 0x1800ebf59
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x450
pop rdi
ret

Function at 0x1800ec670
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_WSASetLastError
rep stosb byte [rdi], al
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xe0], 0
je 0x1800ec6ca
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
jmp 0x1800ec6d5
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800ec75c
cmp qword [rsp + 0x68], 0x20
jbe 0x1800ec74b
mov dword [rsp + 0x20], 1
jmp 0x1800ec753
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
jmp 0x1800ec779
cmp qword [rsp + 0xd0], 0
je 0x1800ec777
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
xor al, al
add rsp, 0xa0
pop rdi
ret
Function at 0x1800ed910
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x50], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 0x26]
lea rdx, str.98B9F6E6_463F_4E42_874C_927C4C84A8F7
lea rcx, [r11 - 0x48]
call fcn.18007d760
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x1800ed997
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x1800ed99a
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1800ed9be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800ed9be
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800eda03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ed9fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ed9fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.18007e500
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.18007e500
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800ee7e0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1800ee7fd
jmp 0x1800ee91c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1800ee82c
mov edx, 9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [rsp + 0x40], 0x64
jb 0x1800ee866
mov r9d, 3
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x44], eax
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x68
ret
Function at 0x1800efe40
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800efeae
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x1800efe94
jne 0x1800efeae
cmp dword [rsp + 0x28], 0
jbe 0x1800efeae
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret

Function at 0x1800efed0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1800eff2a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret

Function at 0x1800eff50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800effbe
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x1800effa4
jb 0x1800effbe
cmp dword [rsp + 0x28], 1
jb 0x1800effbe
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x158
ret

Function at 0x1800f05f0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x180670480], rdi
jne 0x1800f067b
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x1800f0660
lea rdx, [rsp + 0x30]
lea rcx, [0x180670470]
call fcn.18007d760
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1800f0720
Capabilities:
Check os version
Get session user name

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov eax, dword [0x18067c08c]
test eax, eax
jle 0x1800f076d
inc eax
mov dword [0x18067c08c], eax
mov al, 1
jmp 0x1800f08cd
xor bpl, bpl
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea ecx, [r14 + 1]
call fcn.18042ce24
mov rbx, rax
mov qword [rsp + 0x30], rax
mov byte [rax], bpl
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800f07c4
cmp dword [rsp + 0x44], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.1800e7000
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.1800e5fb0
test bl, bl
je 0x1800f08b6
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1800f08b6
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
je 0x1800f08ab
inc dword [0x18067c08c]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800f0837
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
mov rbx, r14
mov bpl, 1
cmp qword [0x1806704a0], rbx
jne 0x1800f08ab
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], r14w
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1800f0890
lea rdx, [rsp + 0x40]
lea rcx, [0x180670490]
call fcn.18007d760
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800f08bb
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800f08c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18042cdf0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800f6870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test rcx, rcx
je 0x1800f6a15
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r15d, r9d
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x1800f69fd
movzx edx, r8w
lea r8, [0x1805a5ed8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1800f68cf
xor ebx, ebx
jmp 0x1800f69d2
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x1800f68e8
xor ebx, ebx
jmp 0x1800f69d2
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1800f6900
xor ebx, ebx
jmp 0x1800f69d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800f69d2
mov rdx, rbp
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x1800f6932
xor ebx, ebx
jmp 0x1800f69d2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x1800f6950
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x1800f69d2
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1800f69c9
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800f69c9
call fcn.1800f76c0
mov rdi, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
test rdi, rdi
je 0x1800f69c4
mov ecx, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test ecx, ecx
je 0x1800f69c4
mov rax, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [rax]
mov edi, ebx
mov rbx, rdi
jmp 0x1800f69d2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x1800f69eb
mov r8d, r15d
mov rdx, rbx
mov rcx, r14
call fcn.1800f66b0
nop
test rbx, rbx
je 0x1800f69fd
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18013a0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r14, r8
mov rbp, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x10]
sar rax, 2
cmp rax, rdx
jbe 0x18013a29a
test r8, r8
je 0x18013a29a
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
xor r15d, r15d
test rax, rax
jne 0x18013a1c7
lea ecx, [rax + 0x20]
call fcn.18042ce24
mov rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov rax, qword [rax + 0x10]
sub rax, qword [rdi]
sar rax, 3
cmp rax, 0x20
jae 0x18013a157
mov rcx, rdi
call fcn.18013a480
nop
mov qword [rsp + 0x80], rdi
mov rdx, rdi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, 1
jne 0x18013a262
lea rbx, [rsi + 8]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x28]
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 3
mov qword [rdi + 0x18], rax
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x18013a1b0
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x18013a1be
lea r8, [rsp + 0x80]
call fcn.18010f5b0
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 3
cmp rbp, rax
jb 0x18013a247
lea rbx, [rsi + 8]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rdi + 8]
mov rax, rcx
sub rax, qword [rdi]
sar rax, 3
cmp rbp, rax
jb 0x18013a23e
mov qword [rsp + 0x80], r15
cmp qword [rdi + 0x10], rcx
je 0x18013a218
mov qword [rcx], r15
add qword [rdi + 8], 8
jmp 0x18013a22b
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, rdi
call fcn.18010f5b0
mov rcx, qword [rdi + 8]
mov rax, rcx
sub rax, qword [rdi]
sar rax, 3
cmp rbp, rax
jae 0x18013a208
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
mov qword [rax + rbp*8], r14
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.TlsSetValue_tlsKey__pData___TRUE
lea rcx, [rsp + 0x38]
call fcn.180115210
nop
mov dword [rsp + 0x20], 0x3d4
lea r9, str.e:zhanlue_rcimage_vendordependsopencvmodulescore_src_system.cpp
lea r8, str.cv::TlsAbstraction::SetData
lea rdx, [rsp + 0x38]
mov ecx, 0xffffff29
call fcn.180474550
nop
lea rdx, str.tlsSlots.size_____slotIdx__pData___NULL
lea rcx, [rsp + 0x38]
call fcn.180115210
nop
mov dword [rsp + 0x20], 0x468
lea r9, str.e:zhanlue_rcimage_vendordependsopencvmodulescore_src_system.cpp
lea r8, str.cv::TlsStorage::setData
lea rdx, [rsp + 0x38]
mov ecx, 0xffffff29
call fcn.180474550
int3
Function at 0x180160510
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov ecx, dword [0x18067c294]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
mov rdx, rax
test rax, rax
je 0x18016053d
and rdx, 0xfffffffffffffffe
jmp 0x180160555
call fcn.18019ab60
nop
xor ecx, ecx
call fcn.1801e8210
nop
mov rdx, rax
mov byte [rax + 0xac], 1
mov byte [rbx - 0xc], 4
cmp qword [rbx - 0x30], rdx
jne 0x180160577
mov rax, qword [rdx + 0x98]
mov qword [rbx - 8], rax
mov qword [rdx + 0x98], rbx
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx - 0x40]
call qword [case.0x1801f7166.0]
nop
add rsp, 0x30
pop rbx
ret

Function at 0x180160590
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword [rcx - 0x20]
mov qword [rdx - 0x20], rax
mov ecx, dword [0x18067c294]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
mov rdx, rax
test rax, rax
je 0x1801605c5
and rdx, 0xfffffffffffffffe
jmp 0x1801605dd
call fcn.18019ab60
nop
xor ecx, ecx
call fcn.1801e8210
nop
mov rdx, rax
mov byte [rax + 0xac], 1
mov byte [rbx - 0xc], 4
cmp qword [rbx - 0x30], rdx
jne 0x1801605ff
mov rax, qword [rdx + 0x98]
mov qword [rbx - 8], rax
mov qword [rdx + 0x98], rbx
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx - 0x40]
call qword [case.0x1801f7166.0]
nop
add rsp, 0x30
pop rbx
ret