joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d248
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 0x14001d0a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d0a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d0a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d0a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d0a7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d0a7
cmp dword [rcx + 0xf8], 0
je 0x14001d0a7
mov ecx, ebx
call fcn.14001d164
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.14001cf34
nop
cmp dword [rbp + 0x20], 0
je 0x14001d0f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d100
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001d038

Function at 0x14001dc14
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001dc4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001e710
call fcn.14001e79c
mov eax, dword [rax]
jmp 0x14001dcc6
cmp rdi, qword [rbx + 0x18]
ja 0x14001dc5b
mov qword [rbx + 0x20], rdi
jmp 0x14001dcc4
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14001dc72
mov rcx, qword [rbx + 0x10]
call fcn.1400241a4
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14002790c
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14001dcc6
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14001dc39
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400260f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140026122
call fcn.14001e79c
mov dword [rax], 0x16
call fcn.1400181e8
jmp 0x140026241
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140026241
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140026241
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140026151
lock or dword [rcx + 0x14], 0x10
jmp 0x140026241
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140026165
call fcn.1400278a0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140024eb8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140026ed0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002622f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400261fa
mov rcx, rsi
call fcn.140024eb8
cmp eax, edi
je 0x1400261e5
mov rcx, rsi
call fcn.140024eb8
cmp eax, 0xfffffffe
je 0x1400261e5
mov rcx, rsi
call fcn.140024eb8
movsxd rbx, eax
lea r14, [0x14004cb60]
mov rcx, rsi
sar rbx, 6
call fcn.140024eb8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400261ec
lea rdx, [0x14004a4b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400261fa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002621e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002621e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002621e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140026244
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002656c
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.140011e30
sub rsp, rax
mov rax, qword [0x14004a108]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024eb8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400265bb
mov rax, rbp
jmp 0x1400266c3
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 + 0x4cb60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400276a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4cb60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400266bf
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 0x1400266bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400276a8
test rax, rax
js 0x1400266bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400266bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400266b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400266b1
cmp byte [rcx], 0xd
jne 0x140026697
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400266a6
cmp byte [rcx + 1], 0xa
jne 0x1400266a6
inc rcx
jmp 0x1400266a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026679
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400266c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140011b60
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 0x140026a24
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004cb60]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140026a82
cmp word [rdx], r12w
jne 0x140026a82
or byte [rax + r8*8 + 0x38], cl
jmp 0x140026a88
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140026be3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140026bbe
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140026ac1
mov rcx, r9
jmp 0x140026ae4
cmp r9, rdx
jae 0x140026afb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140026aa5
jmp 0x140026be3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026bb8
cmp dword [rsp + 0x80], edi
je 0x140026bb8
mov rdx, r14
lea r11, [0x14004cb60]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140026b91
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140026b64
mov word [rbx], r12w
jmp 0x140026bdf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140026b6d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140026bdf
cmp word [rsp + 0x70], r12w
jne 0x140026b9e
cmp rbx, rsi
je 0x140026b5e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400276b0
cmp word [rsp + 0x70], r12w
je 0x140026be3
mov word [rbx], r13w
jmp 0x140026bdf
lea r11, [0x14004cb60]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140026bdb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140026be3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029a2c
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.14001dcd8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140029ab6
cmp byte [rbp - 0x21], r15b
je 0x140029ab1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029aec
call fcn.1400244a8
test eax, eax
jne 0x140029ad8
cmp byte [rbp - 0x21], r15b
je 0x140029ad0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029aec
cmp byte [rbp - 0x21], r15b
je 0x140029ae9
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.140020818
test eax, eax
jne 0x140029b8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001dcd8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140029b2b
cmp byte [rbp - 0x21], r15b
je 0x140029b60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140029b60
call fcn.1400244a8
test eax, eax
jne 0x140029b4c
cmp byte [rbp - 0x21], r15b
je 0x140029b45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140029b60
cmp byte [rbp - 0x21], r15b
je 0x140029b5d
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.140020818
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140029b8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140029b8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140029b9d
mov rcx, rdi
call fcn.1400241a4
cmp byte [rbp + 0x3f], r15b
je 0x140029bac
mov rcx, qword [rbp + 0x27]
call fcn.1400241a4
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 0x14002cac8
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 0x14002caf8
xor eax, eax
jmp 0x14002cbbb
mov rbp, rbx
cmp word [rax], si
je 0x14002cb1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002cb04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002cb00
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.140029ca0
movsxd r14, eax
test eax, eax
jne 0x14002cb5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002caf1
mov rcx, r14
call fcn.14002790c
mov rdi, rax
test rax, rax
jne 0x14002cb74
xor ecx, ecx
call fcn.1400241a4
jmp 0x14002cb50
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.140029ca0
test eax, eax
jne 0x14002cba5
mov rcx, rdi
call fcn.1400241a4
jmp 0x14002cbaf
xor ecx, ecx
call fcn.1400241a4
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 0x140033cb0
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.1400276b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400276b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140033e00
cmp rax, 0xffffffffffffffff
je 0x140033e00
xor edi, edi
test rbp, rbp
jle 0x140033dab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002412c
mov rbx, rax
test rax, rax
jne 0x140033d38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140033da1
mov edx, 0x8000
mov ecx, r14d
call fcn.140021d50
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.140025de0
cmp eax, 0xffffffff
je 0x140033d81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033d48
mov edx, r15d
mov ecx, r14d
call fcn.140021d50
jmp 0x140033da1
cmp byte [rsi + 0x38], dil
je 0x140033d98
cmp dword [rsi + 0x34], 5
jne 0x140033d98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140033da1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400241a4
jmp 0x140033e14
jns 0x140033e14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400276b0
cmp rax, 0xffffffffffffffff
jne 0x140033dcc
cmp byte [rsi + 0x30], dil
je 0x140033e14
mov edi, dword [rsi + 0x2c]
jmp 0x140033e14
mov ecx, r14d
call fcn.14002d3a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140033e14
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 0x140033e14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140033e0d
mov eax, dword [rsi + 0x2c]
jmp 0x140033e12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400276b0
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 0x140001140
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x14000118c
cmp rax, rbx
jne 0x14000117f
mov ebx, 1
mov esi, ebx
jmp 0x140001191
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001164
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400011a7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140001216
mov eax, dword [0x140003640]
test eax, eax
jne 0x140001210
mov dword [0x140003640], ebx
lea r15, [0x140002320]
lea rdi, [0x140002308]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001202
test eax, eax
jne 0x140001206
cmp qword [rdi], 0
je 0x1400011f7
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [vtable.q:P:H_tH_:.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400011ce
test eax, eax
je 0x140001216
mov eax, 0xff
jmp 0x1400012fc
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x14000123d
lea rdx, [0x140002300]
lea rcx, [0x1400022f0]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x14000124a
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001288
lea rcx, [0x140003648]
call fcn.140001510
test eax, eax
je 0x140001288
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [vtable.q:P:H_tH_:.0]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.140001a78
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x1400012b8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400012cd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400012fc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140094000
add rsp, 0x28
jmp 0x140001140

Function at 0x1400013fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001448
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001440
cmp dword [rcx + 0x3c], edx
jl 0x140001440
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001440
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001448
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xef8570
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xef857d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xef858d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xef8575
lea eax, [rcx + 1]
jmp 0xef859b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xef85ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xef8594
sub eax, 3
jb 0xef85ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xef861d
sar eax, 1
movsxd rbp, eax
jb 0xef8604
jmp 0xef85dc
add ebx, ebx
jne 0xef85da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xef8604
inc ecx
add ebx, ebx
jne 0xef85ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xef8604
call r11
adc ecx, ecx
add ebx, ebx
jne 0xef85fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xef85ec
add ecx, 2
jmp 0xef8609
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00ef8532
jmp 0xef857d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x360200
mov dl, 0x69
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xef8669
cmp rsi, rcx
jae 0xef8671
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xef8650
cmp al, 0x8f
ja 0xef8650
cmp byte [rsi - 2], 0xf
je 0xef8656
sub al, 0xe8
cmp al, 1
ja 0xef863a
cmp rsi, rcx
jae 0xef8671
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xef8640
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xef8671
lodsb al, byte [rsi]
jmp 0xef8650
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xaef000]
mov eax, dword [rdi]
or eax, eax
je 0xef86ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xaf8000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xef867e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xef86c8
mov qword [rbx], rax
add rbx, 8
jmp 0xef869e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xef8712
cmp al, 0xef
ja 0xef86fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xef86da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xef86e9
mov eax, dword [rdi]
add rdi, 4
jmp 0xef86e9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xef8766
sub rsp, 0xffffffffffffff80
jmp 0x46c660
Function at 0x140003dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003dfd
xor eax, eax
jmp 0x140003f43
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003e37
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003f43
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003f36
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003e7a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003e89
movsx ecx, dil
jmp 0x140003edd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140003ef7
sub eax, 1
je 0x140003ef7
cmp eax, 2
jne 0x140003f36
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14002587c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003f3b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003f24
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140026168
cmp rsi, rax
jne 0x140003f36
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140003f3b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000f4b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret