joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400638d4
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400ec720
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1400eb770
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ec757
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140178020]
jmp 0x1400ec75d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x140064590
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400ce4f0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400ce50d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400ce568
test al, 7
jne 0x1400ce500
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400ce521
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ce592
test dh, dh
je 0x1400ce58c
shr rdx, 0x10
test dl, dl
je 0x1400ce586
test dh, dh
je 0x1400ce580
shr rdx, 0x10
test dl, dl
je 0x1400ce57a
test dh, dh
je 0x1400ce574
shr edx, 0x10
test dl, dl
je 0x1400ce56e
test dh, dh
jne 0x1400ce521
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400648ab
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140085070
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400849f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400850af
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140178020]
jmp 0x1400850b9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400649e1
Capabilities:
Query environment variable

Disassembly:
jmp 0x140100190
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140100278
mov rsi, rax
cmp word [rax], r14w
je 0x1401001e3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401001cb
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401001c7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140065373
movsxd rbp, eax
test eax, eax
je 0x140100278
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400647b1
mov rdi, rax
test rax, rax
je 0x140100266
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140065373
test eax, eax
je 0x140100266
mov rsi, rdi
mov rdi, r14
jmp 0x140100269
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.14006384d
jmp 0x14010027b
mov rsi, r14
test rbx, rbx
je 0x140100289
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400649f0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140084fa0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140084970
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140084fe1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140178020]
jmp 0x140084fe7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140064a63
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400ec9f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400eb970
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400eca43
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140178020]
jmp 0x1400eca65
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14006431a
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x140064a6d
Capabilities:
Terminate process

Disassembly:
jmp 0x14006c200
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 0x140064c3e
Capabilities:
Print debug messages

Disassembly:
jmp 0x14011ab70
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140166008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14011ab96
jmp 0x14011ac13
mov rcx, qword [rbp + 0x30]
call fcn.140064590
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14011abaf
jmp 0x14011ac13
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14011abcc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140063875
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140063c30
test eax, eax
jne 0x14011ac13
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14006473e
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140065076
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006d550
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14006d570
xor al, al
jmp 0x14006d5f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14006d583
xor al, al
jmp 0x14006d5f1
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 0x14006d5ad
xor al, al
jmp 0x14006d5f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14006d5c1
xor al, al
jmp 0x14006d5f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14006d5d3
xor al, al
jmp 0x14006d5f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14006d5ef
xor al, al
jmp 0x14006d5f1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400654e0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400eaca0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400eacce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140065bbb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14006558f
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400ec7e0
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400eb7f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ec815
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140178020]
jmp 0x1400ec81f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x1400659a9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400ec840
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400eb830
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ec87f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140178020]
jmp 0x1400ec88e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140065c1a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400f8560
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140065cab
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400850e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140084a30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140085129
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140178020]
jmp 0x140085138
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140065d3c
Capabilities:
Set environment variable

Disassembly:
jmp 0x14011db20
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.140064202
lea rcx, [rsp + 0x40]
call fcn.140064202
call fcn.140064996
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140064027
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14011db8f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400644c8
lea rcx, [rsp + 0x70]
call fcn.1400644c8
mov eax, dword [rsp + 0x24]
jmp 0x14011dc1c
call fcn.140064996
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140064027
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14011dbd6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400644c8
lea rcx, [rsp + 0x70]
call fcn.1400644c8
mov eax, dword [rsp + 0x2c]
jmp 0x14011dc1c
lea rcx, [rsp + 0x40]
call fcn.14006418a
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.14006418a
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400644c8
lea rcx, [rsp + 0x70]
call fcn.1400644c8
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x14006619c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x140069880
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x126
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140166008]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x140177005]
call fcn.140065f12
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x1400698f3
mov eax, 1
jmp 0x140069aa4
lea rax, [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x14006993e
cmp dword [rbp + 0x24], 2
jne 0x140069937
mov eax, 1
jmp 0x140069aa4
xor eax, eax
jmp 0x140069aa4
mov rcx, qword [rbp + 0x478]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
mov rcx, qword [rbp + 0x478]
lea rax, [rcx + rax*2]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x14006998a
mov eax, 0x5c
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rax, qword [rbp + 8]
add rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140069a5c
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x478]
call fcn.140064158
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call fcn.14006619c
test eax, eax
jne 0x140069a0e
jmp 0x140069a5c
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400699dc
mov rax, qword [rbp + 8]
sub rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140069aa2
mov eax, 1
jmp 0x140069aa4
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140135230]
call fcn.1400656e8
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.14006473e
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x1400039ec
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, qword [rdx]
xor r11d, r11d
add eax, eax
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov r10d, 0x1505
movsxd r8, eax
test eax, eax
jle 0x140003a35
movzx edx, byte [r11 + rbx]
imul r10d, r10d, 0x21
inc r11
add r10d, edx
cmp r11, r8
jl 0x140003a21
mov rax, qword [rbp + 0x20]
and r10d, 0x3ff
and qword [rdi], 0
movsxd rcx, r10d
mov dword [r9], r10d
mov rbx, qword [rax + rcx*8]
jmp 0x140003a68
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
add rcx, 8
call fcn.1400019cc
test al, al
jne 0x140003a84
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140003a50
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi], rbx
jmp 0x140003a6f

Function at 0x140003a90
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 1
mov rsi, rdx
mov rbp, rcx
jne 0x140003ada
mov eax, dword [rsi + 0x10]
mov r9, qword [rdx + 8]
xor edx, edx
add eax, eax
mov ebx, 0x1505
movsxd r8, eax
test eax, eax
jle 0x140003add
movzx ecx, byte [rdx + r9]
imul ebx, ebx, 0x21
inc rdx
add ebx, ecx
cmp rdx, r8
jl 0x140003ac6
jmp 0x140003add
mov ebx, dword [rdx + 0x28]
mov ecx, 0x18
and ebx, 0x3ff
int3
Function at 0x140009a04
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor edi, edi
mov r14, rcx
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140009a55
xor al, al
jmp 0x140009acd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.140015698
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rcx, rbp
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140009ac2
mov r8d, dword [rsp + 0x70]
lea rax, str.SCRIPT
lea rcx, [r14 + 0x1818]
mov r9d, 0xa
mov rdx, rsi
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rax
int3
mov rcx, rsi
call fcn.140017d1c
mov al, dil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140009bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ecx, ecx
mov r14, r9
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x809
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x140009c6c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140009c6c
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
test eax, eax
je 0x140009c6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140009c6e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000b6d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov word [rsp + 0x10], dx
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 2]
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14000b704
xor al, al
jmp 0x14000b7df
lea r9, [rsp + 0x38]
lea r8, [0x14000b5fc]
mov edx, 0xe
mov rcx, rax
mov dword [0x140046040], ebx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x14000b739
cmp dword [rsp + 0x38], ebx
jne 0x14000b739
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000b6fd
mov edx, 0x63
mov rcx, rdi
lea r8d, [rdx - 0x55]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rdi
test rax, rax
je 0x14000b731
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b7d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r10, [0x140046050]
movzx edx, word [rax + 4]
mov dword [0x140046044], edx
test edx, edx
je 0x14000b79d
mov rcx, r10
lea r8, [rax + 0x12]
mov r9d, edx
movzx eax, word [r8]
lea r8, [r8 + 0xe]
mov word [rcx], ax
lea rcx, [rcx + 2]
dec r9
jne 0x14000b789
mov r9d, 0x10
cmp edx, r9d
jae 0x14000b7d2
mov r8d, dword [0x140046040]
lea rax, [r10 + rdx*2]
sub r8d, edx
inc r8d
add r8d, edx
sub r9d, edx
mov ecx, r9d
mov word [rax], r8w
inc r8d
add rax, 2
dec rcx
jne 0x14000b7c2
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010100
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 0x58]
mov rdi, rcx
cmp qword [rsi], 0
je 0x140010168
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140010168
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.14000fe1c
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140010fac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rbp, r8
mov r14, rdx
mov rdi, rcx
jne 0x140010ff6
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
mov rcx, qword [rcx]
lea r8, [rax + 8]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
xor esi, esi
test rbp, rbp
je 0x140011050
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
jne 0x140011036
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011050
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140011050
and dword [rdi + 0x14], 0
mov dword [rdi + 0x10], eax
movsxd rdx, dword [rdi + 0x14]
mov rcx, qword [rdi + 8]
mov dl, byte [rdx + rcx]
mov byte [rsi + r14], dl
inc dword [rdi + 0x14]
inc rsi
cmp rsi, rbp
jb 0x140010ffd
add qword [rdi + 0x18], rsi
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x1400116d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011727
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14001171a
or eax, 0xffffffff
jmp 0x140011727
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140015ef0
add rsp, 0x280
pop rbx
ret