joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e858
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 0x14005e888
xor eax, eax
jmp 0x14005e94b
mov rbp, rbx
cmp word [rax], si
je 0x14005e8ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005e894
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005e890
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.14005b3c8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14005e8ee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005e881
call fcn.140054b40
mov rdi, rax
test rax, rax
jne 0x14005e904
xor ecx, ecx
call fcn.140054ae0
jmp 0x14005e8e3
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.14005b3c8
test eax, eax
jne 0x14005e935
mov rcx, rdi
call fcn.140054ae0
jmp 0x14005e93f
xor ecx, ecx
call fcn.140054ae0
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 0x14005e968
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 0x14005e9ef
mov rsi, rbx
cmp word [rax], bp
je 0x14005e9ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005e998
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005e994
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140054b40
mov rdi, rax
test rax, rax
je 0x14005e9dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400673e0
mov rbp, rdi
xor ecx, ecx
call fcn.140054ae0
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 0x140061e74
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140061ee7
cmp word [rcx], si
je 0x140061ee7
lea rdx, [0x140073068]
call fcn.140065d88
test eax, eax
je 0x140061ee7
lea rdx, [0x140073080]
mov rcx, rbx
call fcn.140065d88
test eax, eax
jne 0x140061edd
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140061f04
mov eax, dword [rsp + 0x30]
jmp 0x140061f16
mov rcx, rbx
call fcn.140054370
jmp 0x140061f16
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140061f08
xor eax, eax
jmp 0x140061f16
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140061f16
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140061f28
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140054920
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140061fcb
cmp edi, dword [rsp + 0x30]
je 0x140061fc4
test ebp, ebp
je 0x140061fc4
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140061fa0
sub dx, 0x61
cmp dx, 0x19
ja 0x140061fac
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140061f8d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140061fb0
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140061fcd
mov eax, 1
jmp 0x140061fcd
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140065a88
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.140046b64
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140065b12
cmp byte [rbp - 0x21], r15b
je 0x140065b0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140065b48
call fcn.14005835c
test eax, eax
jne 0x140065b34
cmp byte [rbp - 0x21], r15b
je 0x140065b2c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140065b48
cmp byte [rbp - 0x21], r15b
je 0x140065b45
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.14004c04c
test eax, eax
jne 0x140065be8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140046b64
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140065b87
cmp byte [rbp - 0x21], r15b
je 0x140065bbc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140065bbc
call fcn.14005835c
test eax, eax
jne 0x140065ba8
cmp byte [rbp - 0x21], r15b
je 0x140065ba1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140065bbc
cmp byte [rbp - 0x21], r15b
je 0x140065bb9
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.14004c04c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140065be8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140065beb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140065bf9
mov rcx, rdi
call fcn.140054ae0
cmp byte [rbp + 0x3f], r15b
je 0x140065c08
mov rcx, qword [rbp + 0x27]
call fcn.140054ae0
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 0x140066764
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.14005a154
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005a154
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400668b1
cmp rax, 0xffffffffffffffff
je 0x1400668b1
xor edi, edi
test rbp, rbp
jle 0x14006685f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140057fd0
mov rbx, rax
test rax, rax
jne 0x1400667ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140066855
mov edx, 0x8000
mov ecx, r14d
call fcn.1400527cc
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.140057540
cmp eax, 0xffffffff
je 0x140066835
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400667fc
mov edx, r15d
mov ecx, r14d
call fcn.1400527cc
jmp 0x140066855
cmp byte [rsi + 0x38], dil
je 0x14006684c
cmp dword [rsi + 0x34], 5
jne 0x14006684c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140066855
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140054ae0
jmp 0x1400668c3
jns 0x1400668c3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005a154
cmp rax, 0xffffffffffffffff
jne 0x14006687d
cmp byte [rsi + 0x30], dil
je 0x1400668c3
jmp 0x1400668b9
mov ecx, r14d
call fcn.14005f97c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400668c3
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 0x1400668c3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400668be
mov edi, dword [rsi + 0x2c]
jmp 0x1400668c3
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005a154
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 0x140067130
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140067158
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140067158
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400019b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x140299ac0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rdi, rcx
mov edx, 0xd
call fcn.140006610
test rax, rax
jne 0x1400019e3
mov al, 1
jmp 0x140001bb4
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rbp
test rdi, rdi
je 0x140001ba5
mov edx, 0x40
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x140001ba5
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140001ba5
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140001ba5
lea rbx, [rdi + rax]
mov edx, 0xf8
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x140001ba5
cmp dword [rbx], 0x4550
jne 0x140001ba5
test rbx, rbx
je 0x140001ba5
mov edx, 0xf8
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x140001ba5
mov eax, 0x20b
cmp word [rbx + 0x18], ax
jne 0x140001ba5
mov rcx, rdi
call fcn.140006830
mov ebp, eax
mov edx, 0xd
lea rax, vtable.peconv::default_func_resolver.0
mov rcx, rdi
mov qword [rsp + 0x40], rax
call fcn.140006610
test rax, rax
je 0x140001ba5
mov ebx, dword [rax]
mov edx, dword [rax + 4]
lea rcx, [rbx + rdi]
cmp edx, 0x20
jb 0x140001ba5
test rcx, rcx
je 0x140001ba5
cmp rcx, rdi
jb 0x140001ba5
lea rax, [rbx + 0x20]
cmp rax, rbp
ja 0x140001ba5
cmp rax, 0x20
jb 0x140001ba5
cmp rax, rbx
jb 0x140001ba5
mov qword [rsp + 0x50], r15
mov r8b, 1
mov r15d, edx
shr r15, 5
test r15, r15
je 0x140001b9a
add rbx, 0x20
mov qword [rsp + 0x58], rsi
xor esi, esi
lea rdx, [rdi - 0x20]
add rdx, rbx
je 0x140001b95
cmp rdx, rdi
jb 0x140001b95
cmp rbx, rbp
ja 0x140001b95
cmp rbx, 0x20
jb 0x140001b95
lea rax, [rbx - 0x20]
cmp rbx, rax
jb 0x140001b95
mov eax, dword [rdi + rbx - 0x1c]
test eax, eax
je 0x140001b95
cmp rax, r14
jbe 0x140001b42
sub rax, r14
lea r9, [rdi + rax]
test r9, r9
je 0x140001b85
cmp r9, rdi
jb 0x140001b85
lea rcx, [rax + 1]
cmp rcx, rbp
ja 0x140001b85
cmp rcx, 1
jb 0x140001b85
cmp rcx, rax
jb 0x140001b85
lea rax, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov qword [rsp + 0x28], rdx
mov rdx, rbp
call fcn.140001bd0
movzx r8d, al
inc rsi
add rbx, 0x20
cmp rsi, r15
jb 0x140001b10
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
movzx eax, r8b
jmp 0x140001ba7
xor al, al
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003dac0
add rsp, 0x68
pop r14
pop rdi
ret
Function at 0x140001db0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov r13, rdx
mov r12, rcx
xor edi, edi
cmp qword [r8], rdi
je 0x140001ef4
mov r8, qword [r8 + 8]
test r8, r8
je 0x140001ef4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001e0c
inc rcx
mov qword [rbx + 0x10], rcx
mov rax, qword [rbx + 0x18]
dec rax
mov qword [rbx + 0x18], rax
jmp 0x140001e88
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
mov qword [rsp + 0x28], rdi
test rax, rax
je 0x140001eed
movzx esi, word [rax + 0x14]
add rsi, 0x18
add rsi, rax
mov qword [rsp + 0x28], rsi
movzx r14d, di
mov word [rsp + 0x20], di
nop
cmp r14w, word [r15 + 6]
jae 0x140001e6d
mov r8d, 8
mov rdx, rsi
mov rcx, r13
call fcn.140028008
test eax, eax
jne 0x140001ec6
mov eax, dword [rsi + 0xc]
add rax, r12
mov qword [rbx + 0x10], rax
mov eax, dword [rsi + 8]
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001ede
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140001ede
mov r8, qword [rbx + 8]
cmp rax, r8
jb 0x140001ede
mov r14, rcx
sub r14, r8
add r14, rax
cmp rcx, r14
ja 0x140001ede
mov rsi, qword [rbx + 8]
mov rdx, rcx
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, rsi
je 0x140001f05
mov rcx, qword [rbx + 0x10]
inc rcx
mov qword [rbx + 0x10], rcx
mov rax, qword [rbx + 0x18]
dec rax
mov qword [rbx + 0x18], rax
mov r8, rsi
jmp 0x140001e91
add rsi, 0x28
mov qword [rsp + 0x28], rsi
inc r14w
mov word [rsp + 0x20], r14w
jmp 0x140001e40
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov edi, 0xc0000225
jmp 0x140001f01
mov edi, 0xc00000ef
jmp 0x140001f01
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov edi, 0xc000000d
mov dword [rsp + 0x24], edi
jmp 0x140001f0d
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x1400022e0
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push r12
push r13
mov rbp, rsp
sub rsp, 0x48
mov rax, qword [0x140299ac0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13d, edx
mov r12, rcx
call fcn.140002000
mov rbx, rax
test rax, rax
jne 0x140002319
mov eax, 0xc00000bb
jmp 0x1400024f3
xor eax, eax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
lea r8, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rdi, [rbp - 0x28]
mov dword [rbp - 0x20], eax
lea rdx, [rbp - 0x24]
mov ecx, 0xc
mov qword [rsp + 0x40], r15
rep stosb byte [rdi], al
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
xor esi, esi
cmp dword [rbp - 0x28], 6
jne 0x140002367
cmp dword [rbp - 0x24], 3
jne 0x140002367
mov r15d, 1
jmp 0x14000236b
seta r15b
test r15b, r15b
je 0x140002385
mov rdx, rbx
mov ecx, 4
call fcn.140001f30
test eax, eax
js 0x1400024e1
xor eax, eax
mov qword [rsp + 0x88], r14
mov r14d, dword [rbx]
lea rdi, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], eax
lea rdx, [rbp - 0x24]
mov ecx, 0xc
mov dword [rbp - 0x18], esi
rep stosb byte [rdi], al
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x28], 6
jne 0x1400023cc
cmp dword [rbp - 0x24], 2
jne 0x1400023cc
mov eax, 1
jmp 0x1400023cf
seta al
movzx edi, al
cmp r14d, dword [rbx + 4]
je 0x140002464
test r14d, r14d
je 0x140002431
cmp edi, r14d
jae 0x140002402
lea rax, [rdi + 1]
lea rcx, [rax + rax*2]
lea rax, [rbx + rcx*8]
cmp r12, qword [rax]
jb 0x140002404
inc edi
add rax, 0x18
cmp edi, r14d
jb 0x1400023f2
je 0x140002431
lea eax, [rdi + 1]
sub r14d, edi
mov ecx, eax
lea rdx, [rdi + 1]
add rcx, 2
lea rdx, [rdi + rdx*2]
lea rdx, [rbx + rdx*8]
lea r8, [r14 + r14*2]
shl r8, 3
lea rax, [rcx + rax*2]
lea rcx, [rbx + rax*8]
call fcn.140049380
lea rcx, [rdi + rdi*2]
mov r8d, 3
lea rdi, [rbx + rcx*8]
mov dl, 1
mov rcx, r12
lea r9, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
mov qword [rdi + 0x10], rax
mov eax, dword [rbp - 0x18]
mov dword [rdi + 0x24], eax
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x20], r13d
inc dword [rbx]
jmp 0x140002478
test al, al
je 0x140002471
mov dword [rbx + 0xc], 1
jmp 0x140002478
mov dword [rbx + 8], 1
mov r14, qword [rsp + 0x88]
test r15b, r15b
je 0x140002496
mov rdx, rbx
mov ecx, 2
call fcn.140001f30
test eax, eax
js 0x1400024e1
xor eax, eax
lea rdi, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], eax
lea rdx, [rbp - 0x24]
mov ecx, 0xc
rep stosb byte [rdi], al
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x28], 6
jne 0x1400024c8
cmp dword [rbp - 0x24], 2
je 0x1400024d0
seta sil
test esi, esi
je 0x1400024d5
mov eax, dword [rbx + 0xc]
jmp 0x1400024d8
mov eax, dword [rbx + 8]
neg eax
sbb eax, eax
and eax, 0xc0000017
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003dac0
add rsp, 0x48
pop r13
pop r12
pop rbx
pop rbp
ret
Function at 0x140005fc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov rax, qword [0x140299ac0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov rbx, rcx
call fcn.140006830
mov ebp, eax
test eax, eax
je 0x140006186
test rbx, rbx
je 0x140006186
mov edx, 0x40
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x140006186
mov r15d, 0x5a4d
cmp word [rbx], r15w
jne 0x140006186
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006186
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x140006186
cmp dword [rdi], 0x4550
jne 0x140006186
test rdi, rdi
je 0x140006186
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x140006186
mov r12d, 0x20b
cmp word [rdi + 0x18], r12w
jne 0x140006186
mov qword [rsp + 0x98], r14
lea rax, vtable.peconv::default_func_resolver.0
test rsi, rsi
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
cmovne r14, rsi
mov qword [rsp + 0x38], rbp
xor esi, esi
mov edx, 0x40
mov rcx, rbx
mov dword [rsp + 0x41], esi
mov word [rsp + 0x45], si
mov byte [rsp + 0x47], sil
call fcn.1400078d0
test al, al
jne 0x140006118
cmp word [rbx], r15w
jne 0x140006118
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006118
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x140006118
cmp dword [rdi], 0x4550
jne 0x140006118
test rdi, rdi
je 0x140006118
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x140006118
movzx esi, word [rdi + 0x18]
lea rax, vtable.FillImportThunks.0
mov qword [rsp + 0x48], r14
cmp si, r12w
mov qword [rsp + 0x28], rax
mov edx, 1
mov rcx, rbx
sete byte [rsp + 0x40]
call fcn.140006610
mov r14, qword [rsp + 0x98]
test rax, rax
jne 0x140006150
mov al, 1
jmp 0x140006188
mov ecx, dword [rax]
lea r8, [rcx + rbx]
test r8, r8
je 0x140006186
cmp r8, rbx
jb 0x140006186
lea rax, [rcx + 0x14]
cmp rax, rbp
ja 0x140006186
cmp rax, 0x14
jb 0x140006186
cmp rax, rcx
jb 0x140006186
lea r9, [rsp + 0x28]
mov rdx, rbp
mov rcx, rbx
call fcn.140005bf0
jmp 0x140006188
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003dac0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006340
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140006365
test rdx, rdx
je 0x140006377
cmp rdx, 0x40
jae 0x140006385
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.1400078d0
test al, al
jne 0x140006365
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140006365
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140006365
lea rbx, [rax + rdi]
mov rcx, rax
test rsi, rsi
je 0x1400063ca
test rbx, rbx
je 0x140006365
cmp rbx, rdi
jb 0x140006365
add rax, 0xf8
cmp rax, rsi
ja 0x140006365
cmp rax, 0xf8
jb 0x140006365
cmp rax, rcx
jb 0x140006365
jmp 0x1400063db
mov edx, 0xf8
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x140006365
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006400
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400064fe
mov edx, 0x40
call fcn.1400078d0
test al, al
jne 0x1400064fe
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x1400064fe
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400064fe
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.1400078d0
test al, al
jne 0x1400064fe
cmp dword [rsi], 0x4550
jne 0x1400064fe
test rsi, rsi
je 0x1400064fe
mov edx, 0x40
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x1400064eb
cmp word [rbx], di
jne 0x1400064eb
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400064eb
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400064eb
cmp dword [rdi], 0x4550
jne 0x1400064eb
test rdi, rdi
je 0x1400064eb
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400064eb
xor eax, eax
mov ecx, 0x20b
cmp word [rdi + 0x18], cx
cmovne rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006510
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400065f3
mov edx, 0x40
call fcn.1400078d0
test al, al
jne 0x1400065f3
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x1400065f3
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400065f3
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.1400078d0
test al, al
jne 0x1400065f3
cmp dword [rsi], 0x4550
jne 0x1400065f3
test rsi, rsi
je 0x1400065f3
mov edx, 0x40
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x1400065f3
cmp word [rbx], di
jne 0x1400065f3
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400065f3
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400065f3
cmp dword [rdi], 0x4550
jne 0x1400065f3
test rdi, rdi
je 0x1400065f3
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400065f3
xor eax, eax
mov ecx, 0x20b
cmp word [rdi + 0x18], cx
cmove rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140006610
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x1400066fc
mov edx, 0x40
call fcn.1400078d0
test al, al
jne 0x1400066fc
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x1400066fc
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400066fc
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.1400078d0
test al, al
jne 0x1400066fc
cmp dword [rsi], 0x4550
jne 0x1400066fc
test rsi, rsi
je 0x1400066fc
mov edx, 0x40
mov rcx, rbx
call fcn.1400078d0
test al, al
jne 0x1400066ea
cmp word [rbx], di
jne 0x1400066ea
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400066ea
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400066ea
cmp dword [rdi], 0x4550
jne 0x1400066ea
test rdi, rdi
je 0x1400066ea
mov edx, 0xf8
mov rcx, rdi
call fcn.1400078d0
test al, al
jne 0x1400066ea
mov eax, 0x20b
cmp word [rdi + 0x18], ax
lea rax, [rbp + 0x11]
je 0x1400066ee
lea rax, [rbp + 0xf]
lea rax, [rsi + rax*8]
xor ecx, ecx
cmp dword [rax], ecx
cmove rax, rcx
jmp 0x1400066fe
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret