joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dfa0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14009b9d0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14001e06d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400acc54
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001e04e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001e040
test rsi, rsi
je 0x1400acc54
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001e000
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001e09c
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001e0b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14001e16d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400acc5a
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001e14e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001e140
test rsi, rsi
je 0x1400acc5a
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001e100
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001e1a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor edx, edx
movzx eax, byte [rcx]
mov word [rsp + 0x30], dx
mov rbp, rcx
lea r15, [rsp + 0x30]
test al, al
je 0x14001e25d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
nop
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400acc60
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001e23e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001e230
test rsi, rsi
je 0x1400acc60
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001e1f0
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140054060
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14001dfa0
test rax, rax
je 0x140054170
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x30]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x30], cx
mov r13, rax
lea rbp, [rsp + 0x2a]
mov eax, 0x4e
lea rdi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400accf0
cmp word [r15], 0
movzx edx, word [rsp + 0x2c]
mov rax, r15
je 0x14005411e
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140054110
test rbx, rbx
je 0x1400accf0
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1400540d0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, r13
mov rcx, rax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140053ee0
mov rax, qword [0x1400d2428]
lea rsi, [0x1400d2428]
test bl, bl
je 0x140054190
mov rax, qword [0x1400d2430]
lea rsi, [0x1400d2430]
test rax, rax
je 0x1400541a9
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [0x1400d2662], 0
je 0x1400541d9
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d2460]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400541e3
mov edx, dword [rax]
add edx, 1
je 0x140054195
mov dword [rax], edx
jmp 0x140054195
movzx ecx, bl
call fcn.14001e910
jmp 0x1400541b2
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400541f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400d2420]
mov rsi, rcx
test rbx, rbx
je 0x140054270
mov rax, qword [0x1400c1140]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140054260
mov rdx, qword [0x1400d2668]
test rdx, rdx
je 0x140054360
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140054241
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14001dfa0
test rax, rax
je 0x140054380
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400accf6
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14005430e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140054300
test rbx, rbx
je 0x1400accf6
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400542c0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140053ee0
mov rbx, rax
mov qword [0x1400d2420], rbx
jmp 0x140054212
lea rcx, [0x1400bd322]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400d2668], rax
mov rdx, rax
jmp 0x140054232
mov rbx, qword [0x1400d2430]
test rbx, rbx
jne 0x140054351
cmp byte [0x1400d2662], 0
je 0x1400543c3
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d2460]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400d2430], rax
mov rbx, rax
test rax, rax
je 0x1400543cf
mov eax, dword [rax]
add eax, 1
je 0x140054351
mov dword [rbx], eax
jmp 0x140054351
mov ecx, 1
call fcn.14001e910
jmp 0x140054395
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1400980b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d2409], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140098158
lea rdx, [0x1400bcbfa]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400981c0
mov rbx, qword [0x1400d22a0]
jmp 0x1400980f5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400980f0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140098147
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14008db10
mov r8, rax
cmp rdi, rbx
jne 0x140098130
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
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]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400d22a0], rax
mov ebx, dword [rax]
mov qword [0x1400d22a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400d22a0], rdx
call fcn.1400971a0
cmp eax, ebx
jne 0x140098228
mov byte [0x1400d2409], 1
jmp 0x1400980d0
cmp byte [0x1400d2408], 0
jne 0x1400980e7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400d2fc8], rax
call rbx
mov qword [0x1400d2fc0], rax
call rbx
mov qword [0x1400d2fb8], rax
call rbx
mov qword [0x1400d2fb0], rax
call rbx
mov qword [0x1400d2fa8], rax
call rbx
mov qword [0x1400d2fa0], rax
call rbx
mov qword [0x1400d2f98], rax
call rbx
mov byte [0x1400d2408], 1
mov qword [0x1400d2f90], rax
jmp 0x1400980e7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14009a6b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400abc70
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400abc70
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14009b382
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d3488]
test eax, eax
je 0x14009b41a
lea rax, [0x1400d3460]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d3490]
mov qword [rbp - 8], rax
jmp 0x14009b3fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14009b3f2
cmp qword [rbp - 0x10], 0
je 0x14009b3f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14009b3b8
lea rax, [0x1400d3460]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009b41b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14009b520
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14009b548
mov eax, 0
jmp 0x14009b596
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14009b571
mov eax, 0
jmp 0x14009b596
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14009b591
mov eax, 0
jmp 0x14009b596
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009b59c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14009b61a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14009b611
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14009b611
mov rax, qword [rbp - 8]
jmp 0x14009b62f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14009b5e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401550
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x18]
movsxd rcx, eax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x401eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040c624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402038
mov rax, qword [0x0040c628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401efc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ee0
mov rcx, rbx
call fcn.00402b50
test rax, rax
mov r12, rax
je 0x40206d
mov rax, qword [0x0040c628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402c80
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040c628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402050
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401f7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401fe0
add dword [0x0040c624], 1
cmp edi, 8
jae 0x401fb3
test dil, 4
jne 0x402024
test edi, edi
je 0x401fa8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40203f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401fa8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401fcc
jmp 0x401fa8
add rsi, qword [0x0040c628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00407d70
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401fa8
xor esi, esi
jmp 0x401f07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401fa8
mov rax, qword [0x0040c628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00407d70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00407d70
nop
nop dword [rax]

Function at 0x4027c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040c900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c8e0]
test rbx, rbx
je 0x402814
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40280b
test rsi, rsi
je 0x40280b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027f0
lea rcx, [0x0040c900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409750]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bbd
mov rcx, r8
call fcn.00402a30
test eax, eax
je 0x402bbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402bbf
add rax, 0x28
cmp rax, r9
jne 0x402ba0
xor eax, eax
add rsp, 0x28
ret

Function at 0x407d70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.00407a90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00407a90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530

Function at 0x140f638f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f63902
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6392b
pop rbp
sub rbp, 0x33
sub rbp, 0xf638f8
sub rsp, 0x20
jmp 0x140f6394a
mov rax, 0xf638f8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x29164a2c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f63969
jmp 0x140f63980
movsd dword [rdi], dword fs:[rsi]
invalid
Function at 0x18017f4ef
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs rdx, 0x16af98985
jmp 0x18017f811
movabs r10, 0x18014d18c
jmp 0x18017f88b
push word [rsp + 5]
jo 0x18017f52a
jno 0x18017f514
invalid
lea rdi, [r10 + riz + 0xc1f2]
push bx
bswap r10d
jmp 0x18017f541
lea rdi, [r10 + riz + 0xc1f2]
push bx
bswap r10d
xchg rdx, rdi
jmp 0x18017f632
xchg rdx, rdi
pop ax
call fcn.18017f58a
xchg byte [rdi], bl
invalid
xor bl, 0xe4
mov r14b, 0xe
add r11b, al
jp 0x18017f611
btr r9, r13
jmp 0x18017f641
btr r9, r13
jmp 0x18017f61b
bsf r14, r12
xchg r9b, dil
xchg r10b, r13b
bsf di, r12w
jmp 0x18017f66b
pop ax
lea rsp, [rsp + 2]
lea rsp, [rsp + 8]
jmp 0x18017f5e7
bsf r14, r12
xchg r9b, dil
xchg r10b, r13b
jmp 0x18017f681
xor bl, 0x7a
mov r13b, sil
setnp r9b
sub rsp, 0xf
jmp 0x18017f9af
bsf di, r12w
jmp 0x18017f66b
mov di, 0x8df5
btc r14w, r12w
ror r8w, cl
xchg dword [rsp + 5], edx
jmp 0x18017f724
mov dl, dil
jmp 0x18017f6fd
inc bl
mov r13b, 0xdc
bsf edx, r15d
jb 0x18017f6bd
mov dl, dil
xchg r8w, r11w
mov r9b, byte [rsp]
mov eax, r15d
xchg r11b, r14b
jmp 0x18017f711
xchg r8w, r11w
mov r9b, byte [rsp]
mov eax, r15d
jmp 0x18017f70e
xchg r11b, r14b
rcr r9d, 0x14
mov eax, 0xaeea9983
jmp 0x18017f75c
push word [rsp + 0xa]
mov r8b, byte [rsp + 6]
lea rsp, [rsp + 1]
lea rsp, [rsp + 0x10]
jmp 0x18017f6d3
dec bl
mov r14w, bp
call fcn.18017f73a
xchg dword [rsp], r10d
lea r9, [r8*4]
jmp 0x18017f7c8
ror r8w, cl
xchg dword [rsp + 5], edx
push word [rsp + 0xa]
jmp 0x18017f729
push word [rsp + 6]
lea rsp, [rsp + 1]
jmp 0x18017dfd6
lea rsp, [rsp + 6]
jmp 0x18017f7e8
shl rdi, 2
mov r10w, 0x5b92
setl r9b
sub rsp, 0x17
jmp 0x18017f83a
mov r10, rbp
xchg r10b, r13b
add rdi, rdx
js 0x18017f813
mov eax, r15d
jmp 0x18017f96f
jmp 0x18017f7fb
mov eax, r15d
jmp 0x18017f81c
bswap rbp
mov rax, qword [rsp]
dec r10
xchg r11b, r13b
jmp 0x18017f871
jne 0x18017f7b2
push word [rsp + 6]
lea rsp, [rsp + 1]
jmp 0x18017dfd6
jmp 0x18017e0bd
mov edi, dword [rdi + riz + reloc.Rockey2.dll_RY2_Close]
mov rdx, r14
mov r11b, dil
call fcn.18017f84f
jp 0x18017f85a
jnp 0x18017e0bd
ror r11b, cl
jne 0x18017f939
mov r13, rdx
jmp 0x18017f8fb
xchg r11b, r13b
jmp 0x18017f871
jno 0x18017f8bd
mov bp, word [rsp]
inc r8w
jmp 0x18017f8cf
mov bp, word [rsp]
inc r8w
mov bpl, 0x6a
jmp 0x18017f8e5
mov bpl, 0x6a
jmp 0x18017f8e5
mov rsp, rsi
jmp 0x18017f919
mov r8, qword [rsp]
rdtsc
jmp 0x18017f942
mov r14, 0x194c01a2
mov r14w, word [rsp]
mov r9w, 0xa955
mov rbp, qword [rsp]
push rdi
ret
mov r13, rdx
mov r8, qword [rsp]
rdtsc
add rdi, r10
bsf r10w, ax
jmp 0x18017f8a7
bswap rbp
mov rax, qword [rsp]
dec r10
jmp 0x18017f8a2
jg 0x18017f688
mov di, 0x8df5
btc r14w, r12w
jmp 0x18017f7a0

Function at 0x18017f73a
Capabilities:
Execute anti-debugging instructions

Disassembly:
setb dil
mov rbp, r15
jmp 0x18017f77d
mov r10d, 0xac8960dd
xchg dword [rsp], r10d
lea r9, [r8*4]
jmp 0x18017f7e3
mov rdi, rbx
sub rsp, 6
ja 0x18017f743
mov r10d, 0xac8960dd
jmp 0x18017f767
lea rsp, [rsp + 6]
Function at 0x1801ae399
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rsp, [rsp + 8]
movsxd rax, dword [rcx + riz + 0x3c]
jmp 0x1801ae446
mov ecx, 0x20b
sete r10b
not r10w
mov r8, r13
cmc
jmp 0x1801ae3c3
bts r11d, r14d
mov r11, rcx
mov cl, byte [rsp]
neg r8
mov r10w, dx
jmp 0x1801ae3e1
Function at 0x18031214b
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
btc esi, esi
mov word [rsp + 8], sp
lea rsp, [rsp + 0xa]
rdtsc
xchg r13w, r12w
jmp 0x18031216f
cpuid
pop qword [rsp + 0x14]
mov ebp, 0x7e1c5ce7
jmp 0x180312129
xchg word [rsp + 5], r10w
mov dx, word [rsp + 6]
lea rsi, [rsi + rsi]
jmp 0x1803121b1
add rsp, 0xf
mov word [rsp + 5], bx
bt r13w, r13w
jmp 0x180312159
cpuid
pop bx
mov r15, 0x970b8d3
lea r15, [rbx*8]
add r11d, 0x26ec720
neg r15
jmp 0x18031219b

Function at 0x180312353
Capabilities:
Execute anti-debugging instructions

Disassembly:
push qword [rsp]
mov r12w, 0x3171
mov dx, 0xcd01
mov r10w, 0x40b0
xchg byte [rsp + 0x2d], sil
jmp 0x1803122bd

Function at 0x18031257c
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x14
not al
mov word [rsp + 0x2d], r11w
not r13b
jmp 0x180312616
mov r11d, esp
mov bl, 0xab
mov rcx, qword [rsp]
bswap r13d
mov ebx, dword [rsp]
jmp 0x180312673
mov al, byte [rsp + 0x1f]
add rsp, 0x3e
xchg byte [rsp], bpl
mov r11b, 0xf5
setge r13b
pop r10w
jmp 0x1803125db
pop word [rsp + 0xa]
pop r14
lea r13, [rsi + r9]
push qword [rsp + 0x18]
ror r14b, cl
bsr r15w, sp
jmp 0x1803125f1
pop bp
mov byte [rsp + 2], r12b
mov bp, word [rsp + 2]
xchg bp, si
jmp 0x180312683
mov rax, rsp
rdtsc
mov r14d, r10d
lea rsi, [rbp*8]
neg r11d
xchg r11b, cl
jmp 0x180312630
cpuid
cpuid
mov r15d, r11d
mov al, byte [rsp]
pushfq
xchg r12d, ebp
jmp 0x180312646
neg rcx
mov r15d, esp
mov cx, 0x6b67
dec r15d
rdtsc
mov dword [rsp], edx
jmp 0x1803126d1
xchg word [rsp + 0xa], di
push word [rsp + 7]
cmc
mov r15d, eax
jmp 0x1803126eb
sete sil
mov edi, edx
not r8d
xchg bl, r14b
lea rcx, [r13 + riz - 0xaa11]
sub rsp, 0x15
jmp 0x1803126bb
mov r13b, 0x57
mov r12, qword [rsp + 0xc]
shl dl, 5
rdtsc
xchg edx, edi
jmp 0x18031272e
xchg r14, rdi
mov qword [rsp + 7], rbp
mov r10d, r11d
push word [rsp + 0x1a]
call fcn.180312718