joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14035570c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1403555ac
call fcn.14033a1cc
mov dword [rax], socket
call fcn.14033a07c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140355594
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140355594
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1403555de
lock or dword [rax + 0x14], 0x10
jmp 0x140355594
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1403555fb
mov rcx, qword [rbp + 0x10]
call fcn.140359a38
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14034ad08
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140354fe4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140355652
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140355594
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1403556be
mov rcx, qword [rbp + 0x10]
call fcn.14034ad08
cmp eax, 0xffffffff
je 0x1403556a5
mov rcx, qword [rbp + 0x10]
call fcn.14034ad08
cmp eax, 0xfffffffe
je 0x1403556a5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14034ad08
movsxd rdi, eax
lea rsi, [0x1404af420]
mov rcx, rbx
sar rdi, 6
call fcn.14034ad08
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1403556ac
lea rax, [0x14049b8d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1403556be
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1403556f4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1403556f0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1403556f0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140355597
jmp 0x140355564
Function at 0x180003070
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003098
xor eax, eax
lea r8, [0x180002f00]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180004780
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800049a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004887
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800047e4
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x1800047e4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800047a6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004813
jmp 0x180004887
cmp dword [rsp + 0x50], 0x10000
jne 0x18000486a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000486a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004858
mov rax, qword [rsp + 0x28]
jmp 0x180004889
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004882
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800049a0
mov qword [rsp + 0x20], rax
jmp 0x1800047a6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004890
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800049e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004993
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800048eb
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x1800048eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800048ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000491a
jmp 0x180004993
cmp dword [rsp + 0x50], 0x10000
jne 0x180004971
cmp qword [rsp + 0x48], 0x10000
jb 0x180004971
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000495f
mov rax, qword [rsp + 0x28]
jmp 0x180004995
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000498e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800049e0
mov qword [rsp + 0x20], rax
jmp 0x1800048ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004a30
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004fc0
mov qword [rsp + 0x28], 0
cmp qword [0x18000e378], 0
jne 0x180004a78
cmp qword [0x18000e370], 0
je 0x180004a78
mov rax, qword [0x18000e370]
mov qword [0x18000e378], rax
cmp qword [0x18000e378], 0
je 0x180004b1e
mov rax, qword [0x18000e378]
cmp qword [rax + 0x10], 0
je 0x180004b1e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004b1e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004b1e
mov rax, qword [0x18000e378]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004ae4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180004aeb
xor eax, eax
jmp 0x180004c99
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004c99
mov rax, qword [0x18000e370]
mov qword [0x18000e378], rax
jmp 0x180004b40
mov rax, qword [0x18000e378]
mov rax, qword [rax + 8]
mov qword [0x18000e378], rax
cmp qword [0x18000e378], 0
je 0x180004b8d
cmp qword [0x18000e378], 0
je 0x180004b8b
mov rax, qword [0x18000e378]
cmp qword [rax + 0x10], 0
je 0x180004b8b
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004b8b
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004b8b
jmp 0x180004abc
jmp 0x180004b2e
mov rcx, qword [rsp + 0x60]
call fcn.180006bf0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004ca0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004c97
mov rax, qword [rsp + 0x48]
mov qword [0x18000e378], rax
mov rax, qword [0x18000e378]
mov dword [rax], 0x52727464
mov rax, qword [0x18000e378]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000e378]
mov rcx, qword [0x18000e370]
mov qword [rax + 8], rcx
mov rax, qword [0x18000e378]
mov qword [0x18000e370], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000e378]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004c48
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004c82
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180004c3e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180004abc
xor eax, eax
add rsp, 0x58
ret
Function at 0x14005b8e0
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.140060160
sub rsp, rax
mov rax, qword [0x14009f1c0]
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 0x14005b9a2
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.14006f0c4
cmp rax, 1
jne 0x14005b9fe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14005b97f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14005b973
cmp rcx, 1
jb 0x14005b9fe
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 0x14005b940
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14005b9d3
lea rcx, [rsp + 0x80]
call fcn.140071c74
jmp 0x14005b9d5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14005fe90
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.140063620
int3
Function at 0x14005c8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x1400a296e], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14005c940
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 [0x1400a2750], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x1400a2750], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x1400a2750], rdi
call fcn.14005a780
cmp eax, ebx
jne 0x14005cae3
mov byte [0x1400a296e], 1
jmp 0x14005c947
mov rdi, qword [0x1400a2750]
lea rdx, [0x140080378]
mov rcx, rbp
call fcn.14006eb70
test eax, eax
je 0x14005ca01
cmp byte [0x1400a296d], 1
je 0x14005ca01
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a3690], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a3698], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36a0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36a8], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36b0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36b8], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36c0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400a36c8], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x1400a2750]
mov byte [0x1400a296d], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x1400a4a80], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14005ca27
inc rax
test cl, cl
jne 0x14005ca10
mov ecx, r9d
jmp 0x14005ca2c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14005ca33
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14005ca98
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14005ca75
inc rax
test cl, cl
jne 0x14005ca60
mov ecx, r9d
jmp 0x14005ca7a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14005ca81
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14005ca50
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14005cac8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140058f90
add rsi, 8
sub rbx, 1
jne 0x14005cab0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14006b884
call fcn.140063620
int3
Function at 0x14005fa40
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 [0x14009f1c0]
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 0x14005faf1
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.14006f0c4
cmp rax, 1
jne 0x14005fb27
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14005facd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14005fac0
cmp rcx, 1
jb 0x14005fb27
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 0x14005fa90
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005fe90
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.140063620
int3

Function at 0x14005fd10
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 [0x14009f1c0]
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 0x14005fdbf
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.14006f0c4
cmp rax, 1
jne 0x14005fdf5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14005fd9c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14005fd90
cmp rcx, 1
jb 0x14005fdf5
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 0x14005fd60
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005fe90
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.140063620
int3

Function at 0x1400608c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006090e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006090e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006090e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006090e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006090e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140060910
xor al, al
add rsp, 0x28
ret
Function at 0x140064c94
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 0x140064d03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064d03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140064d03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140064d03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140064d03
cmp dword [rcx + 0x84], 0xe
jbe 0x140064d03
cmp dword [rcx + 0xf8], 0
je 0x140064d03
mov ecx, ebx
call fcn.140064db4
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.140064b90
nop
cmp dword [rbp + 0x20], 0
je 0x140064d51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140064d5c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140064c94

Function at 0x140064e98
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 0x140064d03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064d03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140064d03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140064d03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140064d03
cmp dword [rcx + 0x84], 0xe
jbe 0x140064d03
cmp dword [rcx + 0xf8], 0
je 0x140064d03
mov ecx, ebx
call fcn.140064db4
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.140064b90
nop
cmp dword [rbp + 0x20], 0
je 0x140064d51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140064d5c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140064c94
Function at 0x140076bd0
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 0x140076c57
mov rsi, rbx
cmp word [rax], bp
je 0x140076c16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140076c00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140076bfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007214c
mov rdi, rax
test rax, rax
je 0x140076c44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007cf50
mov rbp, rdi
xor ecx, ecx
call fcn.140072c94
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 0x14007935c
Capabilities:
Get file size

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

Function at 0x14007cd30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007cd58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007cd58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001740
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
mov rbx, rcx
lea rdx, [0x140010129]
call fcn.140003ab0
test rax, rax
mov rbp, rax
je 0x140001870
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001848
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x140001886
cmp byte [r12 + 0x10], 1
je 0x140001818
test rsi, rsi
mov rdi, rax
jne 0x1400017c0
jmp 0x14000182d
add rdi, rbx
sub rsi, rbx
je 0x14000182d
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002170
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
jmp 0x14000182d
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001470
test eax, eax
jne 0x140001805
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002170
jmp 0x14000180d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400020d0
jmp 0x140001835
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x20], esi
lea r9, [r12 + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002170
jmp 0x14000180d