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

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

Function at 0x140016c68
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140016c96
xor eax, eax
jmp 0x140016d7c
cmp qword [rcx + 0x68], 0
je 0x140016ca7
call fcn.140016d98
jmp 0x140016d7c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140016cbe
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140016cc0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016cf2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140017ef0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140016d76
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140016d29
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140016d52
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002ad4c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140016d76
cmp rsi, rbx
ja 0x140016d30
test rsi, rsi
je 0x140016d76
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002ad4c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x140027690
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002748c
Function at 0x14002fd88
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002fd9e
mov al, 1
jmp 0x14002fdfe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002fdaf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002fdfc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400323c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002fdfc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002fdfc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002fdfc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002fdfe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140031960
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140031990
xor eax, eax
jmp 0x140031a53
mov rbp, rbx
cmp word [rax], si
je 0x1400319b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003199c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031998
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140031880
movsxd r14, eax
test eax, eax
jne 0x1400319f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031989
mov rcx, r14
call fcn.14002bd2c
mov rdi, rax
test rax, rax
jne 0x140031a0c
xor ecx, ecx
call fcn.14002c4dc
jmp 0x1400319e8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140031880
test eax, eax
jne 0x140031a3d
mov rcx, rdi
call fcn.14002c4dc
jmp 0x140031a47
xor ecx, ecx
call fcn.14002c4dc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140034aac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002c104
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140034b4d
cmp ebx, dword [rsp + 0x30]
je 0x140034b46
test esi, esi
je 0x140034b46
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034b21
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034b2e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140034b0b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034b32
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140034b4f
mov eax, 1
jmp 0x140034b4f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140036890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003d480
sub rsp, rax
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002e4cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400368df
mov rax, rbp
jmp 0x1400369e7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x562b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140037770
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x562b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400369e3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400369e3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140037770
test rax, rax
js 0x1400369e3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400369e3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400369d5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400369d5
cmp byte [rcx], 0xd
jne 0x1400369bb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400369ca
cmp byte [rcx + 1], 0xa
jne 0x1400369ca
inc rcx
jmp 0x1400369ca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54a00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003699d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400369e7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003d3d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140036b10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400562b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140036b67
cmp word [rdx], r13w
jne 0x140036b67
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140036b6c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140036c91
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140036cb2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140036ba5
mov rdx, r9
mov word [rbx], cx
jmp 0x140036bcc
cmp r9, r8
jae 0x140036bdc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140036b86
jmp 0x140036c91
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140036c86
cmp dword [rsp + 0x80], esi
je 0x140036c86
lea r8, [0x1400562b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140036c5e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140036c2e
mov word [rbx], r13w
jmp 0x140036c8e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140036c3b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140036c8e
cmp word [rsp + 0x70], r13w
jne 0x140036c6b
cmp rbx, r14
je 0x140036c28
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140037778
cmp word [rsp + 0x70], r13w
je 0x140036c91
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400562b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140036c8b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140036c91
Function at 0x14003b704
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140021608
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003b78e
cmp byte [rbp - 0x21], r15b
je 0x14003b789
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003b7c4
call fcn.14002c7e0
test eax, eax
jne 0x14003b7b0
cmp byte [rbp - 0x21], r15b
je 0x14003b7a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003b7c4
cmp byte [rbp - 0x21], r15b
je 0x14003b7c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002b59c
test eax, eax
jne 0x14003b864
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021608
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003b803
cmp byte [rbp - 0x21], r15b
je 0x14003b838
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003b838
call fcn.14002c7e0
test eax, eax
jne 0x14003b824
cmp byte [rbp - 0x21], r15b
je 0x14003b81d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003b838
cmp byte [rbp - 0x21], r15b
je 0x14003b835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002b59c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003b864
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003b867
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003b875
mov rcx, rdi
call fcn.14002c4dc
cmp byte [rbp + 0x3f], r15b
je 0x14003b884
mov rcx, qword [rbp + 0x27]
call fcn.14002c4dc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003c76c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140037778
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140037778
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003c8bc
cmp rax, 0xffffffffffffffff
je 0x14003c8bc
xor edi, edi
test rbp, rbp
jle 0x14003c867
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002c464
mov rbx, rax
test rax, rax
jne 0x14003c7f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003c85d
mov edx, 0x8000
mov ecx, r14d
call fcn.14002770c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002f988
cmp eax, 0xffffffff
je 0x14003c83d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003c804
mov edx, r15d
mov ecx, r14d
call fcn.14002770c
jmp 0x14003c85d
cmp byte [rsi + 0x38], dil
je 0x14003c854
cmp dword [rsi + 0x34], 5
jne 0x14003c854
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003c85d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002c4dc
jmp 0x14003c8d0
jns 0x14003c8d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140037778
cmp rax, 0xffffffffffffffff
jne 0x14003c888
cmp byte [rsi + 0x30], dil
je 0x14003c8d0
mov edi, dword [rsi + 0x2c]
jmp 0x14003c8d0
mov ecx, r14d
call fcn.1400323c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003c8d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14003c8d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003c8c9
mov eax, dword [rsi + 0x2c]
jmp 0x14003c8ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140037778
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140005950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rbx
cmp dword [0x1400124c0], ebx
jne 0x140005a13
mov eax, dword [0x1400124bc]
test eax, eax
jne 0x140005a13
mov ecx, dword [0x1400124b4]
test ecx, ecx
je 0x1400059b3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400124bc]
mov ecx, dword [0x1400124b4]
test eax, eax
jne 0x140005a13
test ecx, ecx
jne 0x1400059c4
call fcn.140003200
test eax, eax
je 0x1400059da
lea rdx, [rsp + 0x68]
mov rcx, qword [0x140010048]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140005a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x140005a09
cmp eax, 0x78
je 0x140005a09
cmp eax, 1
je 0x140005a09
cmp eax, 0x32
je 0x140005a09
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [0x1400124bc], 1
mov qword [rsp + 0x20], rbx
lea r9, [0x140004240]
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp dword [0x1400124c0], 0
je 0x140005a47
cmp dword [0x1400124bc], 0
jne 0x140005a75
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x140005a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x140005a75
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007c74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007cbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007cbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007cbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007cbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140007cbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007cc0
xor al, al
add rsp, 0x28
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
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
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 r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
push rax
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 0x140005130
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005164
cmp word [rcx], 0x5a4d
jne 0x140005164
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005164
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005164
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005070
test eax, eax
jne 0x140005180
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400050e0
test rax, rax
je 0x140005175
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000592f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005830
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400057d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005c94
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b7178]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b7174]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005ce2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005cda
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005dc9
inc ebx
add rax, 0x28
jmp 0x140005cba
mov rcx, r12
call fcn.1400064c1
mov rbp, rax
test rax, rax
jne 0x140005d01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005c30
movsxd rbx, ebx
mov rax, qword [0x1409b7178]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000656f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b7178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005d63
mov rax, qword [0x1409b7178]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005c30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005dc3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005dc3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409b7178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005c30
inc dword [0x1409b7174]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400061f0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b71e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409b71c0]
test rbx, rbx
je 0x14000623c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006236
test eax, eax
jne 0x140006236
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000620e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400063f0
Capabilities:
Parse pe header

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

Function at 0x140006414
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000644e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006445
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006450
inc r8d
add rax, 0x28
jmp 0x14000642c
xor eax, eax
ret

Function at 0x1400064c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b1e70]
mov r8, rcx
mov rcx, r9
call fcn.1400063f0
test eax, eax
je 0x1400064ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006414
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000973c
Capabilities:
Parse pe header

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