joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009244
Capabilities:
Parse pe header

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

Function at 0x140009570
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ecx, dword [rax]
mov dword [rsp + 0x90], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400095a8
mov ecx, dword [rsp + 0x90]
call fcn.1400016d0
add rsp, 0x88
ret
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov rdi, rax
test rax, rax
jne 0x1400095ef
mov r15, qword [rsp + 0x48]
lea rax, [rdi - 1]
mov rdi, qword [rsp + 0x68]
add rsp, 0x88
ret
mov eax, dword [rsp + 0x90]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400085fc
mov r14, rax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x90]
xor ebx, ebx
test eax, eax
je 0x1400096ef
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x60], r12
mov r12, r14
mov qword [rsp + 0x58], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400085fc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x90]
inc r14d
cmp r14d, eax
jne 0x140009660
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x90]
mov rdx, r14
call fcn.1400016d0
mov esi, eax
cmp dword [rsp + 0x90], ebx
je 0x14000973c
mov rdi, r14
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000973c
call fcn.1400084b0
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x90]
jne 0x140009720
mov rcx, r14
call fcn.1400084b0
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x48]
add rsp, 0x88
ret
jmp 0x140009570
Function at 0x140009770
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ecx, dword [rax]
mov dword [rsp + 0x90], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400095a8
mov ecx, dword [rsp + 0x90]
call fcn.1400016d0
add rsp, 0x88
ret
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov rdi, rax
test rax, rax
jne 0x1400095ef
mov r15, qword [rsp + 0x48]
lea rax, [rdi - 1]
mov rdi, qword [rsp + 0x68]
add rsp, 0x88
ret
mov eax, dword [rsp + 0x90]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400085fc
mov r14, rax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x90]
xor ebx, ebx
test eax, eax
je 0x1400096ef
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x60], r12
mov r12, r14
mov qword [rsp + 0x58], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400085fc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x90]
inc r14d
cmp r14d, eax
jne 0x140009660
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x90]
mov rdx, r14
call fcn.1400016d0
mov esi, eax
cmp dword [rsp + 0x90], ebx
je 0x14000973c
mov rdi, r14
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000973c
call fcn.1400084b0
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x90]
jne 0x140009720
mov rcx, r14
call fcn.1400084b0
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x48]
add rsp, 0x88
ret
jmp 0x140009570
Function at 0x14001fc00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140023d70
sub rsp, rax
mov rax, qword [0x140060d40]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001fcc2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140032c4c
cmp rax, 1
jne 0x14001fd1e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001fc9f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001fc93
cmp rcx, 1
jb 0x14001fd1e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001fc60
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001fcf3
lea rcx, [rsp + 0x80]
call fcn.140035878
jmp 0x14001fcf5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140023aa0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400329f8
int3
Function at 0x140020990
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, 0x20
cmp byte [0x14006265e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140020a15
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400625f8], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1400625f8], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1400625f8], rdx
call fcn.14001e970
cmp eax, ebx
jne 0x140020b7d
mov byte [0x14006265e], 1
lea rdx, [0x140044180]
mov rcx, rsi
call fcn.1400346f0
test eax, eax
je 0x140020aa0
cmp byte [0x14006265d], 1
je 0x140020aa0
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633b8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633c0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633c8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633d0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633d8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633e0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633e8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633f0], rax
mov byte [0x14006265d], 1
mov r8, qword [0x1400625f8]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x140020ac7
inc rax
test cl, cl
jne 0x140020ab0
mov ecx, r9d
jmp 0x140020acc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x140020ad3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140020b38
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140020b15
inc rax
test cl, cl
jne 0x140020b00
mov ecx, r9d
jmp 0x140020b1a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140020b21
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140020af0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140020b68
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001cff0
add rdi, 8
sub rbx, 1
jne 0x140020b50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14002f434
call fcn.1400329f8
int3
Function at 0x140023630
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140060d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1400236e1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140032c4c
cmp rax, 1
jne 0x140023717
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1400236bd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1400236b0
cmp rcx, 1
jb 0x140023717
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140023680
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023aa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400329f8
int3

Function at 0x140023920
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140060d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x1400239cf
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140032c4c
cmp rax, 1
jne 0x140023a05
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400239ac
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400239a0
cmp rcx, 1
jb 0x140023a05
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140023970
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023aa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400329f8
int3

Function at 0x1400244d4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400288b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400288b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400288b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400288b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400288b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400288b3
cmp dword [rcx + 0xf8], 0
je 0x1400288b3
mov ecx, ebx
call fcn.140028964
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140028740
nop
cmp dword [rbp + 0x20], 0
je 0x140028901
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002890c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140028844

Function at 0x140028a48
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400288b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400288b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400288b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400288b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400288b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400288b3
cmp dword [rcx + 0xf8], 0
je 0x1400288b3
mov ecx, ebx
call fcn.140028964
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140028740
nop
cmp dword [rbp + 0x20], 0
je 0x140028901
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002890c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140028844
Function at 0x14003a7d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003a857
mov rsi, rbx
cmp word [rax], bp
je 0x14003a816
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003a800
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003a7fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140035964
mov rdi, rax
test rax, rax
je 0x14003a844
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140040b50
mov rbp, rdi
xor ecx, ecx
call fcn.140036898
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003cf5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003cf72
mov al, 1
jmp 0x14003cfd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003cf83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003cfd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003af74
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003cfd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003cfd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003cfd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003cfd2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140040930
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b8ea
mov al, 1
jmp 0x14001b94a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b8fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b948
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019a28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b948
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b948
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b948
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b94a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fd88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fd88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x38
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1400013d2
nop
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, qword [rsp + 0x20]
mov edx, 0x12
mov rcx, rax
call fcn.140001610
cmp rax, 0x12
je 0x14000104a
movabs rax, 0x9ba102cfe7869ae2
jmp 0x14000104c
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400013d2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
rdtsc
shl rdx, 0x20
or rdx, rax
mov rdi, rcx
mov rcx, rdx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 2]
xor rdx, 0xffffffffffffffff
and rdx, 0xff
sub rdx, 0xff
jb 0x14000142e
mov rdx, qword [rax + 0xbc]
xor rdx, 0xffffffffffffffff
cmp rdx, 0xa9c
nop
and rdx, 0x70
sub rdx, 1
jb 0x14000142e
mov rax, rcx
sub rcx, rdi
sub rcx, 0x5000
jb 0x140001452
cld
mov rcx, 0x20
mov rdi, rsp
mov rax, 0
rep stosq qword [rdi], rax
lea rax, [0x140002f6e]
sub rax, 0x1928
jmp rax
ret
Function at 0x140012ce0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1a0
mov rdi, rcx
add rcx, 0x10
call fcn.140008270
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x84]
mov dword [rdi + 4], eax
mov eax, dword [rsp + 0x8c]
lea rdx, [rsp + 0x94]
lea rcx, [rdi + 0x10]
mov dword [rdi], r11d
mov dword [rdi + 8], eax
call fcn.1400118e0
lea rdx, [0x140095bf0]
lea rcx, [rdi + 0x10]
call fcn.140014030
lea rdx, [0x140095bf0]
lea rcx, [rdi + 0x10]
call fcn.1400140f0
mov eax, dword [rdi]
mov byte [rdi + 0x3a], 0
sub eax, 5
mov byte [rdi + 0x34], 0
mov byte [rdi + 0x35], 0
mov byte [rdi + 0x30], 0
mov byte [rdi + 0x31], 0
mov byte [rdi + 0x36], 0
mov byte [rdi + 0x37], 0
mov byte [rdi + 0x38], 0
mov byte [rdi + 0x39], 0
mov byte [rdi + 0x32], 0
mov byte [rdi + 0x33], 0
je 0x140033181
cmp eax, 1
jne 0x140012dbc
mov byte [rdi + 0x35], al
mov byte [rdi + 0x31], al
mov byte [rdi + 0x39], al
cmp byte [rsp + 0x19a], al
jne 0x140033170
mov byte [rdi + 0x38], al
xor esi, esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
call fcn.140012e70
test al, al
je 0x140012e15
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x1b0], esi
call fcn.140012e70
test al, al
je 0x1400331d9
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x1b0]
mov rcx, rax
call rbx
cmp dword [rsp + 0x1b0], 1
je 0x1400331e5
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], esi
lea r8d, [rdx + 0x2c]
call fcn.140018a60
cmp byte [rdi + 0x3a], sil
jne 0x1400331ee
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x50]
mov word [rdi + 0x3c], ax
test rcx, rcx
je 0x140012e57
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x1a0]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov byte [rdi + 0x37], 1
mov byte [rdi + 0x33], 1
mov byte [rdi + 0x32], 1
jmp 0x140012dbc
mov eax, dword [rdi + 4]
test eax, eax
jne 0x140033195
mov byte [rdi + 0x35], 1
mov byte [rdi + 0x34], 1
jmp 0x140012dbc
cmp eax, 1
jne 0x1400331a8
mov byte [rdi + 0x35], al
mov byte [rdi + 0x31], al
mov byte [rdi + 0x30], al
jmp 0x140012dbc
cmp eax, 2
jne 0x140012dbc
cmp byte [rsp + 0x19a], 1
mov byte [rdi + 0x35], 1
mov byte [rdi + 0x31], 1
mov byte [rdi + 0x37], 1
jne 0x1400331d0
mov byte [rdi + 0x30], 1
jmp 0x140012dbc
mov byte [rdi + 0x36], 1
jmp 0x140012dbc
lea rbx, [0x14003f2a0]
jmp 0x140012df4
mov byte [rdi + 0x3a], 1
jmp 0x140012e15
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
call fcn.140044070
test al, al
je 0x140033227
lea rcx, [rsp + 0x38]
call fcn.1400520a0
lea rcx, [rsp + 0x50]
call rax
lea rcx, [rsp + 0x38]
call fcn.14003f390
nop
jmp 0x140012e3e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x38]
call fcn.14003f390
nop
jmp 0x140012e3e
Function at 0x1400150a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
lea eax, [r9 + r9]
mov rdi, r8
mov dword [rsp + 0x58], eax
xor eax, eax
mov r9d, 1
mov word [rbx], ax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001511c
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x58]
test r11d, r11d
je 0x140015111
shr r11d, 1
mov dword [rsp + 0x58], r11d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140015f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x60]
mov rdi, rcx
cmp dword [rcx + 0x64], esi
je 0x140015f5e
movsxd rcx, dword [rdi + 0x64]
movzx eax, byte [rcx + rdi + 0x1c]
inc ecx
mov dword [rdi + 0x64], ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 4
mov qword [rsp + 0x30], rbx
cmp esi, eax
cmovg esi, eax
sub eax, esi
movsxd rbx, esi
lea rdx, [rbx + rcx + 0x18]
movsxd r8, eax
add rcx, 0x18
call fcn.140018630
movsxd r11, dword [rdi + 0x60]
mov rcx, rdi
sub r11, rbx
sub rcx, rbx
mov r8, rbx
lea rdx, [r11 + rdi + 0x1c]
add rcx, 0x1c
call fcn.140018630
mov r9, qword [rdi + 8]
mov edx, 1
lea r8d, [rdx + 0x3f]
lea rcx, [rdi + 0x1c]
mov dword [rdi + 0x5c], esi
call fcn.14001a708
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x64], 0
mov dword [rdi + 0x60], eax
test eax, eax
jne 0x140015f45
mov rcx, qword [rdi + 8]
call fcn.14001a728
test eax, eax
je 0x1400319a0
or eax, 0xffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi + 8]
call fcn.14001a760
test eax, eax
jne 0x140015fe2
jmp 0x140015f53