joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002222
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp 0x14000d488
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140005157
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14000da50]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp 0x14000d488
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400200f0], 0
jne 0x1400051b6
add rsp, 0x38
pop r12
pop r13
jmp 0x140005157
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.1400050ba
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400200f0]
test r12, r12
je 0x1400051e9
test byte [r12 + 7], 0x40
jne 0x1400051e9
mov rcx, r12
call fcn.140003381
lea rcx, [0x14000e280]
call fcn.140008600
cmp byte [rax], 0
je 0x140005223
mov byte [rax], 0
lea rcx, [0x14000e1c0]
call fcn.140008600
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003909
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x14000519a
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14000da50]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp 0x14000d488
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400200f0], 0
jne 0x1400051b6
add rsp, 0x38
pop r12
pop r13
jmp 0x140005157
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.1400050ba
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400200f0]
test r12, r12
je 0x1400051e9
test byte [r12 + 7], 0x40
jne 0x1400051e9
mov rcx, r12
call fcn.140003381
lea rcx, [0x14000e280]
call fcn.140008600
cmp byte [rax], 0
je 0x140005223
mov byte [rax], 0
lea rcx, [0x14000e1c0]
call fcn.140008600
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003909
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x1400076a0
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.14000da50
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.14000da50
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 0x140007710
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14002d6f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400078c0
mov rax, qword [0x14002d6f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000775c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400077e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140007740
mov rcx, r12
call fcn.1400081c0
mov rbp, rax
test rax, rax
je 0x14000791d
mov rax, qword [0x14002d6f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400082f0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14002d6f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007902
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400077e0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140007870
add dword [0x14002d6f4], 1
cmp ebx, 8
jae 0x140007818
test bl, 4
jne 0x1400078d0
test ebx, ebx
je 0x140007809
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400078f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140007809
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000784a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x14002d6f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400077e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400076a0
xor edi, edi
jmp 0x140007767
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140007809
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140007809
mov rax, qword [0x14002d6f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400076a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400076a0
nop
nop dword [rax]
Function at 0x140007e30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14002d760]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002d740]
test rbx, rbx
je 0x140007e84
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 0x140007e7b
test r12, r12
je 0x140007e7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007e60
lea rcx, [0x14002d760]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400081c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14001d1b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140008239
mov rcx, r10
call fcn.140008090
test eax, eax
je 0x140008239
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140008236
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000822d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140008239
add r8, 0x28
cmp r8, r9
jne 0x140008218
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400085a0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x14002d7e0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14002d7e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400085f0
lea rdx, [0x1400084b0]
mov dword [0x14002d7d8], eax
call fcn.14000dc90
test eax, eax
jne 0x1400085f8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400085e7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140008600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x14001d140]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140008640
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400086a8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400086c0
mov r13d, dword [0x14002d7d8]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140008738
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140008780
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140008629
mov rcx, r12
call fcn.140008500
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140008629
call fcn.140008500
mov qword [r12 + 0x10], rax
jmp 0x140008629
mov r10d, dword [r13]
test r10d, r10d
je 0x1400087e2
mov r9d, dword [0x14001b520]
test r9d, r9d
je 0x140008810
lock add dword [0x14002d7e0], 1
jne 0x140008844
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x1400087f0
mov eax, dword [r13]
test eax, eax
je 0x140008649
mov eax, 0xffffffff
lock xadd dword [0x14002d7e0], eax
sub eax, 1
js 0x140008649
mov rcx, qword [0x14002d7e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140008649
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14000886b
mov qword [rax], rbx
mov ecx, dword [0x14002d7d8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140008687
call rdi
jmp 0x140008687
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14000886b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x140008759
call fcn.1400085a0
mov dword [0x14001b520], 1
mov edx, dword [r13]
test edx, edx
jne 0x1400086dd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140008649
mov rax, qword [0x14002d7d0]
lea rsi, [rax + 1]
mov qword [0x14002d7d0], rsi
mov qword [r12 + 0x10], rsi
jmp 0x1400086f9
lock add dword [0x14001b524], 1
je 0x1400087c7
mov r8d, dword [0x14001b520]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14001b520]
test r8d, r8d
jne 0x1400087d6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140008838
jmp 0x1400087d6
mov rcx, qword [0x14002d7e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400086eb
lock sub dword [0x14002d7e0], 1
jmp 0x1400086eb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140008890
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000889a
mov qword [rcx + 8], r8
test r9, r9
je 0x1400088a4
cmp qword [rcx], rdx
je 0x1400088a8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140020820
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, 0x30
mov rbp, rdx
mov rsi, r8
mov rdi, rcx
lea rdx, [0x1400e78e0]
mov r8d, 0xa
xor ecx, ecx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140020928
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
test eax, eax
je 0x140020928
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140020928
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140020928
mov ecx, 0x58
call fcn.1400cb590
test rax, rax
je 0x1400208ce
mov rcx, rax
call fcn.14001e4c0
mov rbx, rax
jmp 0x1400208d0
xor ebx, ebx
mov dword [rsp + 0x58], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rax, qword [rbx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rbp], rbx
mov dword [rbx + 0xc], 0
call qword [rax + VariantCopy]
test al, al
je 0x14002090d
lea rdx, [rsp + 0x58]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400aa090
mov rax, qword [rdi + 0xb80]
inc dword [0x140118408]
mov qword [0x140117660], rax
mov eax, 3
jmp 0x14002093a
lea rdx, str.Could_not_extract_script_from_EXE.
mov r8, rsi
mov rcx, rdi
call fcn.1400406a0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005f18
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001d1d0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140006278
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000633e
lea rcx, [0x14001f160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e5b0]
jmp 0x140006302
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400062ff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14001e5b0]
mov rdx, rsi
call fcn.140010878
jmp 0x140006302
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400062cf
mov rdx, qword [0x14001d158]
lea rcx, [0x14001e5b0]
mov rdi, rdx
inc rdx
mov qword [0x14001d158], rdx
lea edx, [rbx + 0x20]
call fcn.1400108c0
lea rcx, [0x14001f160]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400064d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140006634
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x1400175f4]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x140006600
cmp word [r14 + 2], di
je 0x140006600
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140006540
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000656d
cmp word [rbx], bp
je 0x14000656d
add rbx, 2
jmp 0x140006550
inc edi
cmp edi, r12d
je 0x140006582
cmp word [rbx], bp
je 0x14000658b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140006550
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140011240
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400065ba
mov ecx, r13d
call fcn.1400112b0
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.1400112e0
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400065de
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x14000660d
test ax, ax
jne 0x140006620
inc edi
cmp edi, edx
je 0x140006626
test ax, ax
je 0x14000658e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140006600
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14000658e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400113c0
Function at 0x140007000
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140007031
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007010
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140007040
mov ecx, r8d
jmp fcn.1400113c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.140011240
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400112e0
mov rdi, rax
test r14d, r14d
je 0x140007091
mov ecx, r14d
call fcn.140011400
mov rbx, rax
test rbx, rbx
je 0x1400070d7
cmp esi, 1
jle 0x1400070b1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400070d7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400070a0
movzx eax, word [rbx]
test ax, ax
je 0x1400070d7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400070d7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400070c0
mov ecx, ebp
call fcn.1400114b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140007100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400112e0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14001503c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140007130
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400114b0
Function at 0x14000aab4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000ab2b
movsxd rdx, ecx
lea rcx, [0x14000aa10]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001e5f0]
test rbx, rbx
je 0x14000ab9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000ab21
cmp byte [rbx + 0x20], 0
je 0x14000ab21
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14000aae7
jmp 0x14000ab9e
mov rbx, qword [0x14001e5f0]
test rbx, rbx
je 0x14000ab9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000ab96
cmp byte [rbx + 0x21], 0
je 0x14000ab5a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000ab86
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001e5f0]
call fcn.140010878
mov rbx, rdi
test rdi, rdi
jne 0x14000ab37
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000acf8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14001f1c0]
call fcn.14000fc54
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x14000adf5
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14000ad4f
add rax, 2
cmp word [rax], 0x20
je 0x14000ad45
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14000ad8d
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14000adcd
cmp cx, r9w
je 0x14000ad7f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000ad6d
cmp word [rax], bp
je 0x14000adcd
mov rcx, rax
add rax, 2
jmp 0x14000add5
test dx, dx
je 0x14000add2
mov rbx, rax
cmp dx, 0x20
je 0x14000ad7f
add rax, 2
cmp word [rax], r9w
jne 0x14000adc3
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14000adcd
cmp cx, r9w
je 0x14000adc3
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000adb1
movzx edx, word [rax]
test dx, dx
jne 0x14000ad95
jmp 0x14000ad7f
mov rcx, rax
jmp 0x14000add5
mov r8d, ebp
cmp dword [r14], esi
jne 0x14000addf
test rdi, rdi
jne 0x14000adff
test r8d, r8d
je 0x14000ade6
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14000ad3f
test rdi, rdi
jne 0x14000ae14
movsxd rax, esi
jmp 0x14000ae16
test rbx, rbx
je 0x14000ae14
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14000ae16
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ae2c
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001f1c0]
call fcn.14000fc54
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000acf8

Function at 0x14000aec0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14001f1c0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14000fc54
test ebx, ebx
js 0x14000aeef
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14000acf8
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400112e0
mov ecx, ebp
jmp 0x14000af2b
test edi, edi
je 0x14000af30
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14000af1e
inc ecx
jmp 0x14000af25
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14000af0d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400114b0

Function at 0x14000afcc
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x14000afec
test rax, rax
lea rdx, [0x1400175f4]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x14000c484
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14000c50e
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000c4fa
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14000c4fa
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14000c4fa
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000c4cc
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x14000c510
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x14000c51c
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14000c52d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x14000c534
Capabilities:
Delete file

Disassembly:
xor edx, edx
jmp 0x14000c53c
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000c567
test dl, 2
je 0x14000c55a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14000c569
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000c53c
Capabilities:
Delete file
Set file attributes

Disassembly:
xor edx, edx
jmp 0x14000c53c
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000c567
test dl, 2
je 0x14000c55a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14000c569
xor eax, eax
add rsp, 0x20
pop rbx
ret