joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140131000
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001ac8
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x670
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor ebx, ebx
cmp qword [0x1400315e8], rbx
jne 0x140001b9c
lea rax, [rsp + 0x450]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x140026828]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140001b9c
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140001b81
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140001b81
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r8d, r8d
lea rcx, [rsp + 0x450]
call fcn.140001a28
lea rcx, [rsp + 0x240]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp rbx, 0x20
jl 0x140001b9c
mov edx, 0x142
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400315e8], rax
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0x670
pop rbx
ret
Function at 0x140007814
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r13, qword [0x140031610]
xor r14d, r14d
mov byte [rsp + 0x50], r14b
mov r15, r8
mov rsi, rdx
mov ebx, r14d
test rdx, rdx
je 0x1400078ca
cmp byte [rdx], r14b
je 0x1400078ca
cmp byte [rdx + 1], 0x3a
jne 0x1400078ca
cmp byte [rdx + 2], 0x5c
jne 0x1400078ca
lea rdx, [rsp + 0x50]
mov ecx, 0x226
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [rsi]
mov rdx, rsi
jmp 0x1400078a4
cmp cl, 0x5c
mov rax, rdx
mov rcx, rdx
cmovne rax, rbx
mov rbx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdx, rax
mov cl, byte [rax]
test cl, cl
jne 0x140007889
mov rax, rbx
lea rdi, [rbx + 1]
sub rax, rsi
mov rcx, rsi
cmp rax, 2
cmovne rdi, rbx
mov bl, byte [rdi]
mov byte [rdi], r14b
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [rdi], bl
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rcx, rsi
mov qword [rsp + 0x30], r14
mov rdi, r14
mov qword [rsp + 0x38], r14
mov r12d, 8
call fcn.14001cd64
mov rsi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jns 0x140007909
mov edx, 0x6c366973
mov ecx, eax
call qword [sym.imp.OLMAPI32.dll_EtwTraceErrorTag]
jmp 0x140007985
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14001cd64
mov ebx, eax
test eax, eax
jns 0x14000792f
mov edx, 0x6c366974
mov ecx, eax
call qword [sym.imp.OLMAPI32.dll_EtwTraceErrorTag]
mov rdi, qword [rsp + 0x30]
jmp 0x140007985
lea rdx, [rsp + 0x38]
xor ecx, ecx
call fcn.14001cd64
mov ebx, eax
test eax, eax
jns 0x14000795a
mov edx, 0x6c366975
mov ecx, eax
call qword [sym.imp.OLMAPI32.dll_EtwTraceErrorTag]
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jmp 0x140007985
mov r14, qword [rsp + 0x38]
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov r9, r14
mov r8, rdi
mov qword [rsp + 0x28], r15
mov rcx, r13
call fcn.14001ce28
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test rsi, rsi
je 0x140007993
mov rcx, rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
test rdi, rdi
je 0x1400079a1
mov rcx, rdi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
test r14, r14
je 0x1400079af
mov rcx, r14
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
je 0x1400079c5
test ebx, ebx
jns 0x1400079c5
and qword [r15], 0
cmp byte [rsp + 0x50], 0
je 0x1400079d7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001fbe0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f894
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
call fcn.14001bc78
cmp dword [rbx], 0
mov rdi, rax
mov rcx, rax
je 0x14000f8e5
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea r8, [rsp + 0x30]
mov rcx, rsi
mov ebx, eax
lea edx, [rbx + 1]
call fcn.1400064a0
mov rdx, qword [rsp + 0x30]
lea r8d, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14000f8fa
cmp qword [rsi], 0
lea rdx, [0x1400271f4]
cmovne rdx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010eec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rsi, rcx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice16.0OutlookInstallRoot
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
test eax, eax
jne 0x140010f5a
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x31], rax
jmp 0x140010f5e
mov qword [rbp - 0x31], r14
lea rax, fcn.140011a00
mov qword [rbp - 0x39], rax
cmp qword [rbp - 0x31], r14
je 0x1400110ab
mov qword [rbp - 9], r14
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r14w
movdqa xmm0, xmmword [0x140027bc0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], r14w
lea r9, [rbp + 7]
lea r8, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.140011824
test al, al
je 0x140010fb1
cmp qword [rbp - 9], r14
jne 0x140010fb4
mov dil, r14b
mov r15d, 0x1000
mov rax, qword [rbp + 0x1f]
cmp rax, 8
jb 0x140010ff6
lea rax, [rax*2 + 2]
mov rcx, qword [rbp + 7]
mov rdx, rcx
cmp rax, r15
jb 0x140010ff0
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140010ff0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
je 0x14001106f
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
mov r8, rbx
mov rdx, rsi
call fcn.1400124d0
test al, al
je 0x14001106f
cmp qword [rbx + 0x18], 8
jb 0x140011022
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rax, qword [rbp - 1]
cmp rax, 8
jb 0x1400110ae
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rdx, rcx
cmp rax, r15
jb 0x140011067
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140011067
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400110ae
mov rax, qword [rbp - 1]
cmp rax, 8
jb 0x1400110ab
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rdx, rcx
cmp rax, r15
jb 0x1400110a5
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400110a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov bl, r14b
lea rax, fcn.140011a00
mov qword [rbp - 0x39], rax
cmp qword [rbp - 0x31], r14
je 0x1400110cc
lea rcx, [rbp - 0x39]
call fcn.140011a00
test al, al
je 0x1400110f1
mov al, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001fbe0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140011a1c
int3
Function at 0x140011824
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rsi, r9
mov rbx, r8
mov r14, qword [rcx + 8]
lea rax, [r11 + 0x10]
mov qword [r11 - 0x40], rax
xor r15d, r15d
mov qword [r11 - 0x48], r15
lea r9, [r11 + 8]
xor r8d, r8d
lea rdx, str.Path
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011931
lea ebp, [rax + 1]
cmp dword [rsp + 0x70], ebp
jne 0x140011931
mov ecx, dword [rsp + 0x78]
add rcx, 2
call fcn.14001ff4c
mov rdi, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011923
mov ecx, dword [rsp + 0x78]
xor eax, eax
mov word [rcx + rdi], ax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r15w
jne 0x1400118ce
cmp rdx, qword [rbx + 0x18]
ja 0x140011908
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400118eb
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r15w
jmp 0x140011914
mov r9, rdi
mov rcx, rbx
call fcn.1400116c8
nop
test rdi, rdi
je 0x140011983
mov rcx, rdi
call fcn.140001514
jmp 0x140011983
test rdi, rdi
je 0x140011931
mov rcx, rdi
call fcn.140001514
nop
cmp rbx, rsi
je 0x140011980
mov rdx, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140011944
mov rsi, qword [rsi]
cmp rdx, qword [rbx + 0x18]
ja 0x140011974
mov rdi, rbx
cmp qword [rbx + 0x18], 8
jb 0x140011957
mov rdi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r15w
jmp 0x140011980
mov r9, rsi
mov rcx, rbx
call fcn.1400116c8
nop
mov bpl, r15b
mov al, bpl
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011a78
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x140011b34
lea rax, [rbp + 0x10]
mov ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsInstaller
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
cmove rcx, qword [rbp + 0x10]
mov qword [rbp - 8], rcx
test rcx, rcx
je 0x140011b34
lea rax, [rbp + 0x10]
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.EnableAdminTSRemote
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011b0f
cmp dword [rbp + 0x18], 4
jne 0x140011b0f
cmp dword [rbp + 0x10], 4
jne 0x140011b0f
cmp dword [rbp + 0x20], eax
jne 0x140011b11
xor bl, bl
cmp qword [rbp - 8], 0
lea rax, fcn.140011a00
mov qword [rbp - 0x10], rax
je 0x140011b30
lea rcx, [rbp - 0x10]
call fcn.140011a00
test al, al
je 0x140011b41
mov al, bl
jmp 0x140011b36
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140011a1c
int3
Function at 0x140012100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rbx, rdx
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140012244
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140012244
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140036760], ecx
jle 0x14001218a
lea rcx, [0x140036760]
call fcn.140020408
cmp dword [0x140036760], 0xffffffff
jne 0x14001218a
and qword [0x140036768], 0
lea rcx, [0x140036760]
call fcn.1400203a8
mov byte [rbp + 0x28], 0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
lea r8, [rbp - 0x10]
lea rdx, [0x140012ab0]
lea rcx, [0x140036768]
call qword [sym.imp.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_]
test eax, eax
je 0x14001222e
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
nop
nop
mov rcx, qword [0x140036688]
test rcx, rcx
je 0x140012244
lea rdx, str.VerQueryValueW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x38]
lea rdx, [0x140026d20]
mov rcx, rdi
call qword [case.0x14002050e.0]
test eax, eax
je 0x140012244
mov rax, qword [rbp - 0x38]
movzx r8d, word [rax + 0xc]
movzx edx, word [rax + 0xe]
movzx ecx, word [rax + 8]
movzx eax, word [rax + 0xa]
mov word [rbx + 6], ax
mov word [rbx + 4], cx
mov word [rbx + 2], dx
mov word [rbx], r8w
mov al, 1
jmp 0x140012246
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_bool___cdecl___ExceptionPtrToBool_void_const____ptr64_]
nop
test al, al
jne 0x140012258
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_XGetLastError_void_]
nop
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x38]
call fcn.140012b54
mov rcx, rax
call fcn.140012b84
int3

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

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x30], 0
mov rbx, rcx
and qword [rcx + 0x38], 0
and qword [rcx + 0x40], 0
and qword [rcx + 0x48], 0
and qword [rcx + 0x50], 0
mov ecx, dword [0x1400308a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140013af6
mov ecx, dword [0x1400308a0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140013b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebx, 0xffffffff
mov eax, dword [0x1400308a0]
cmp eax, ebx
jne 0x140013b82
call fcn.1400145d8
mov dword [0x1400308a0], eax
cmp eax, ebx
jne 0x140013b82
xor eax, eax
jmp 0x140013bb6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140013bab
call fcn.140013b00
test rax, rax
je 0x140013ba9
mov rcx, rax
call fcn.140013ab4
mov rbx, rax
jmp 0x140013bab
xor ebx, ebx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400145d8
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x140014603
cmp al, 3
ja 0x140014603
cmp ebx, 2
ja 0x140014603
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
jmp 0x1400145f4
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140018688
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x48]
xor ebp, ebp
test rdi, rdi
jne 0x1400186b2
cmp qword [rcx + 0x50], rbp
jne 0x1400186b2
lea eax, [rdi + 1]
jmp 0x140018722
mov rsi, qword [rcx + 0x50]
test rdi, rdi
je 0x1400186f2
call fcn.140015480
mov rcx, rax
mov r8d, 5
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400186ee
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x1400186f2
xor eax, eax
jmp 0x140018722
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, 1
test byte [rax], bl
jne 0x14001870a
cmp word [rax + 0xa], bp
je 0x140018712
cmp word [rax + 0xc], bp
je 0x140018712
mov ebx, ebp
test rdi, rdi
je 0x140018720
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a308
Capabilities:
Extract resource via kernel32 functions

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 r12
push r14
push r15
sub rsp, 0x20
mov r14, rdx
xor ebx, ebx
xor esi, esi
call fcn.140015480
mov rdx, rcx
lea r8d, [rbx + 5]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14001a3bd
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14001a3bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14001a3b4
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x1400366b8]
test rax, rax
je 0x14001a395
mov ecx, esi
call qword [case.0x14002050e.0]
jmp 0x14001a39e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14001a3b4
mov r8, rsi
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test r14, r14
je 0x14001a3c5
mov dword [r14], esi
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001ca18
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
xor edi, edi
xor ebx, ebx
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14001ca7a
mov ecx, 0x202
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14001ca9c
mov r8d, 0x100
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8d, 0x100
mov rdx, rbx
mov rcx, rbp
mov edi, eax
call fcn.1400132bc
jmp 0x14001ca8e
mov r8d, 0x100
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, eax
test rbx, rbx
je 0x14001ca9c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001cab4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14001caf0
mov r8d, 0x100
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
jmp 0x14001cb30
mov ecx, 0x101
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rsi, rsi
je 0x14001cb22
mov r8d, 0x100
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rdx, rbx
mov rcx, rsi
mov edi, eax
call fcn.140013348
test rbx, rbx
je 0x14001cb30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d7a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400366c0], 0
jne 0x14001d83e
lea rcx, str.olmapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14001d83e
lea rdx, str.SetGuardValue
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetGuardValue
mov rcx, rbx
mov qword [0x1400366d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetExemptValue
mov rcx, rbx
mov qword [0x1400366e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetExemptValue
mov rcx, rbx
mov qword [0x1400366c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AssertGuardedAPIAllowed
mov rcx, rbx
mov qword [0x1400366d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1400366c0], 1
add rsp, 0x20
pop rbx
ret