joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2d10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400a2e13
xor ebp, ebp
cmp bp, word [rdx]
je 0x1400a2e13
cmp qword [rcx + 0x50], rbp
je 0x1400a2d48
mov eax, 0xb7
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0xa0
mov rcx, rax
mov esi, ebp
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x50], rcx
test rax, rax
je 0x1400a2d98
cmp rax, 0xffffffffffffffff
je 0x1400a2d98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
jne 0x1400a2db7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx + 0x50], rbp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 3
jne 0x1400a2dda
lea r9d, [rdi - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea eax, [rdi - 1]
cmp eax, 1
ja 0x1400a2e04
lea r9, [rsp + 0x78]
mov word [rsp + 0x68], 0xfeff
mov r8d, 2
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, 0x57
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400a4610
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov rcx, qword [rcx + 0x68]
mov qword [rax - 0x10], r12
mov r12, rdx
mov qword [rax - 0x18], r13
xor r13d, r13d
mov qword [rax - 0x20], r14
mov ebx, r13d
mov qword [rax - 0x28], r15
mov r14d, r9d
mov qword [rax - 0x30], rbx
mov r15, r8
mov dword [rax + 8], r13d
mov dword [rax - 0x38], r13d
test rcx, rcx
je 0x1400a4662
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsi + 0x98]
mov rcx, rsi
mov edi, 0x57
call qword [case.0x14005c601.0]
test al, al
je 0x1400a4762
mov qword [rsp + 0x90], rbp
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x1400a475a
cmp r13w, word [rbp]
je 0x1400a475a
mov rcx, rsi
call fcn.1400a2e20
mov edi, eax
test eax, eax
je 0x1400a46bc
cmp eax, 0xb7
jne 0x1400a475a
lea rax, [rsp + 0x48]
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov r8, r15
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.1400a1400
mov rbx, qword [rsp + 0x48]
mov edi, eax
test eax, eax
jne 0x1400a475a
test rbx, rbx
jne 0x1400a4709
lea edi, [rax + 0xe]
jmp 0x1400a475a
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400a4710
mov rcx, qword [rsi + 0x50]
lea r8d, [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test byte [rsi + 0x7c], 1
mov ebp, eax
je 0x1400a474e
cmp r13w, word [rbx]
je 0x1400a474e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebp, ebp
jne 0x1400a475a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsi + 0x50]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
lea rax, [rcx - 1]
mov qword [rsi + 0x50], r13
mov r13, qword [rsp + 0x60]
cmp rax, 0xfffffffffffffffd
ja 0x1400a478e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400a479b
mov rcx, rbx
call fcn.1400b2c30
mov rcx, qword [rsi + 0x68]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400a47ba
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x1400be038
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, [0x140161970]
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 0x1400be096
cmp word [rdx], r12w
jne 0x1400be096
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400be09c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400be1f7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400be1d2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400be0d5
mov rcx, r9
jmp 0x1400be0f8
cmp r9, rdx
jae 0x1400be10f
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 0x1400be0b9
jmp 0x1400be1f7
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 0x1400be1cc
cmp dword [rsp + 0x80], edi
je 0x1400be1cc
mov rdx, r14
lea r11, [0x140161970]
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 0x1400be1a5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400be178
mov word [rbx], r12w
jmp 0x1400be1f3
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 0x1400be181
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400be1f3
cmp word [rsp + 0x70], r12w
jne 0x1400be1b2
cmp rbx, rsi
je 0x1400be172
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400bdf94
cmp word [rsp + 0x70], r12w
je 0x1400be1f7
mov word [rbx], r13w
jmp 0x1400be1f3
lea r11, [0x140161970]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400be1ef
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400be1f7
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 0x1400c146c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140109da8]
mov rbp, rcx
call fcn.1400d5130
xor edi, edi
test rax, rax
je 0x1400c1552
mov ebx, edi
call fcn.1400b91ec
mov r14d, dword [rax]
call fcn.1400b91ec
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400d507c
mov rsi, rax
test rax, rax
je 0x1400c14e3
call fcn.1400b91ec
mov dword [rax], r14d
jmp 0x1400c150d
call fcn.1400b91ec
cmp dword [rax], 0x22
jne 0x1400c154a
call fcn.1400b91ec
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400d507c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400c154a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400c1511
cmp rax, 3
je 0x1400c152c
mov rcx, rsi
call fcn.1400c13c8
test al, al
je 0x1400c153d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400c153d
mov dil, 1
mov rcx, rbx
call fcn.1400b2c30
mov al, dil
jmp 0x1400c1554
mov rcx, rbx
call fcn.1400b2c30
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400ab6c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400c8444
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 0x1400c8297
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8297
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8297
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8297
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8297
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8297
cmp dword [rcx + 0xf8], 0
je 0x1400c8297
mov ecx, ebx
call fcn.1400c8354
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.1400c8124
nop
cmp dword [rbp + 0x20], 0
je 0x1400c82e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c82f0
int3
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400c8228
Function at 0x1400d257c
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 rbx, rcx
test rcx, rcx
jne 0x1400d229e
call fcn.1400b91ec
mov dword [rax], 0x16
call fcn.1400b2b98
jmp 0x1400d23ee
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400d23ee
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400d23ee
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400d22cd
lock or dword [rcx + 0x14], 0x10
jmp 0x1400d23ee
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400d22e1
call fcn.1400d297c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400d22f1
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400d22f4
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400d0f60
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400be4e4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400d23dc
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400d2387
mov rcx, rbx
call fcn.1400d0f60
cmp eax, 0xffffffff
je 0x1400d2372
mov rcx, rbx
call fcn.1400d0f60
cmp eax, 0xfffffffe
je 0x1400d2372
mov rcx, rbx
call fcn.1400d0f60
movsxd rdi, eax
lea rsi, [0x140161970]
mov rcx, rbx
sar rdi, 6
call fcn.1400d0f60
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400d2379
lea rdx, [0x140150ec0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400d2387
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400d23ab
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400d23ab
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400d23ab
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400d23c9
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400d23d4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400d23f3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1400d2268
Function at 0x1400d2f78
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.1400ac160
sub rsp, rax
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d0f60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d2fc7
mov rax, rbp
jmp 0x1400d30cf
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 + 0x161970]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400bdf8c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x161970]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d30cb
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 0x1400d30cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400bdf8c
test rax, rax
js 0x1400d30cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d30cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d30bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d30bd
cmp byte [rcx], 0xd
jne 0x1400d30a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d30b2
cmp byte [rcx + 1], 0xa
jne 0x1400d30b2
inc rcx
jmp 0x1400d30b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x150b70]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d3085
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d30cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ab6c0
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 0x1400d3f28
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.1400bdf94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bdf94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d4078
cmp rax, 0xffffffffffffffff
je 0x1400d4078
xor edi, edi
test rbp, rbp
jle 0x1400d4023
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ceac0
mov rbx, rax
test rax, rax
jne 0x1400d3fb0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d4019
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cc6ec
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.1400bf428
cmp eax, 0xffffffff
je 0x1400d3ff9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d3fc0
mov edx, r15d
mov ecx, r14d
call fcn.1400cc6ec
jmp 0x1400d4019
cmp byte [rsi + 0x38], dil
je 0x1400d4010
cmp dword [rsi + 0x34], 5
jne 0x1400d4010
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400d4019
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400cea84
jmp 0x1400d408c
jns 0x1400d408c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bdf94
cmp rax, 0xffffffffffffffff
jne 0x1400d4044
cmp byte [rsi + 0x30], dil
je 0x1400d408c
mov edi, dword [rsi + 0x2c]
jmp 0x1400d408c
mov ecx, r14d
call fcn.1400d3a88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d408c
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 0x1400d408c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d4085
mov eax, dword [rsi + 0x2c]
jmp 0x1400d408a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bdf94
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 0x1400d7c8c
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 0x1400d7d13
mov rsi, rbx
cmp word [rax], bp
je 0x1400d7cd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d7cbc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d7cb8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400cfbb0
mov rdi, rax
test rax, rax
je 0x1400d7d00
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ada20
mov rbp, rdi
xor ecx, ecx
call fcn.1400cea84
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 0x140004420
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x10b8
call fcn.140010830
sub rsp, rax
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov r14, rdx
mov qword [rsp + 0x48], r9
mov rdx, qword [rsp + 0x1100]
xor ebp, ebp
mov qword [rsp + 0x40], rdx
mov r13, r8
mov qword [rsp + 0x50], rcx
test r8, r8
je 0x1400044f1
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x78], rax
lea r9d, [rbp + 0x28]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], ebp
mov edx, 0x80862007
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], 0x33
mov qword [rsp + 0x80], 0x1000
mov dword [rsp + 0x58], ebp
call qword [0x140012098]
test eax, eax
jne 0x1400044f9
mov rcx, qword [0x140012280]
lea rdx, str.____Cant_read_module_headers
call fcn.140006630
lea rdx, [0x140006810]
mov rcx, rax
call qword [0x1400121b0]
mov rdx, rbp
jmp 0x1400045e2
mov qword [rsp + 0x10e8], rsi
mov qword [rsp + 0x10b0], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x10a8], r12
mov qword [rsp + 0x10a0], r15
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140004520
movsxd rax, dword [rsp + 0xcc]
lea rcx, [rsp + 0x90]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x14000459c
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.14001087e
test eax, eax
jne 0x140004595
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140004583
cmp rdi, rax
je 0x14000461c
inc esi
cmp esi, r15d
jb 0x140004560
mov rcx, qword [0x140012280]
lea rdx, str.____Cant_find_section
call fcn.140006630
lea rdx, [0x140006810]
mov rcx, rax
call qword [0x1400121b0]
mov rdx, rbp
mov r12, qword [rsp + 0x10a8]
mov rdi, qword [rsp + 0x10b0]
mov rsi, qword [rsp + 0x10e8]
mov r15, qword [rsp + 0x10a0]
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140004280
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.14000f620
add rsp, 0x10b8
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x14000459c
mov ecx, dword [rbx + 8]
mov edx, eax
lea rax, [rsp + 0x90]
add rax, rdx
je 0x14000459c
test ecx, ecx
je 0x14000459c
mov ebp, ecx
add rdx, r13
jmp 0x1400045c2
Function at 0x14000cf10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000cfaf
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000cfaf
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14000cfa2
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14000cfa2
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14000cfaf
mov qword [rsp + 0x30], rbx
call qword [0x140012030]
mov ebx, eax
call qword [0x140012068]
mov eax, eax
movabs rcx, 0x2b992ddfa233
xor rax, rbx
mov rbx, qword [rsp + 0x30]
xor rax, rsi
cmp rax, rsi
cmove rax, rcx
mov qword [rdi], rax
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14000d7f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000d903
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000d903
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14000d868
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x14000d910
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x14000d8f1
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x14000d8f1
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14000d8ca
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x14000d8e6
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000df50
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000d880
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x14000d910
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f620
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x2f88824d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rcx
shr rcx, 0xf
push r12
psadbw mm6, mm0
nop
pop r12
packssdw mm1, mm7
pop rcx
push rcx
emms
pcmpgtb mm6, mm5
emms
push rdx
emms
shr cx, 7
and edx, ecx
push r10
rcr edx, 0xf
nop
emms
pop r10
maxss xmm7, xmm10
emms
pminsw mm7, mm3
pop rdx
inc rcx
dec ecx
rcr ecx, 0xc
pop rcx
mov rax, qword gs:[0x60]
push r15
psrlw mm1, 9
emms
rcpps xmm7, xmm8
push rcx
xorps xmm6, xmm8
xor r15d, ecx
push r14
nop
pop r14
pminsw mm4, mm5
psrlq mm6, 0x3e
pop rcx
rcr r15b, 0x11
emms
not r15
pop r15
movzx eax, byte [rax + 2]
mov dword [rcx], eax
push r11
mov r11, 2
push r13
emms
inc r13d
nop
emms
push r14
rcl r14w, 0xf
dec r13d
minps xmm9, xmm15
push r9
test r9w, r13w
subss xmm2, xmm7
push r8
movss xmm0, xmm6
pop r8
sub r13w, r9w
pslld mm7, 0x3d
pop r9
sbb r14d, 0x14
psraw mm3, 0x5f
emms
pop r14
not r13w
emms
emms
nop
pop r13
dec r11
jne 0x2f8882554
pop r11
ret
Function at 0x140001c34
Capabilities:
Parse pe header

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

Function at 0x140008524
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008320