joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18036abe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x18036ac7d
xor eax, eax
cmp r8d, 4
jl 0x18036ac31
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x18036ac78
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x18036ac71
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x18036ac69
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x18036ac61
add rax, 4
test r8d, r8d
jle 0x18036ae5a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x18036ac78
inc rax
test r8d, r8d
jg 0x18036ac40
jmp 0x18036ae5a
add eax, 3
jmp 0x18036ae55
add eax, 2
jmp 0x18036ae55
inc eax
jmp 0x18036ae55
jmp 0x18036ae55
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x18036ad96
add rax, 0x10
cmp rax, r10
jbe 0x18036aca0
mov eax, r8d
test al, 7
je 0x18036ae5a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x18036ae5a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x18036ae4c
mov ecx, 0x20
jmp 0x18036ae4f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x18036ae3d
mov r8d, 0x20
jmp 0x18036ae41
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x18036ae55
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x180005ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x180005e3a
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x180066028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x180005e7f
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x180005fab
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
jmp 0x180005fab
cmp byte [rsi + 0x61], 0
je 0x180005eaa
mov rcx, qword [rsi + 0x40]
call fcn.180036514
cmp eax, 0xffffffff
je 0x180005f90
test bl, bl
je 0x180005f97
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x180005fab
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.180036514
cmp eax, 0xffffffff
je 0x180005f90
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x180005ecc
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x18005d2f8]
cmp eax, 1
jne 0x180005fcb
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15, 8
je 0x180005fab
mov rcx, qword [rsi + 0x40]
call fcn.180036514
cmp eax, 0xffffffff
je 0x180005fab
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x180005f0a
mov edi, 0xffffffff
jmp 0x180005fab
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.1800374f4
cmp eax, 0xffffffff
cmove edi, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180022350
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 2
je 0x180005fab
cmp eax, 3
jne 0x180005fdd
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x180005feb
movzx edi, byte [rsp + 0x57]
jmp 0x180005ea2
mov ebx, r15d
test rbx, rbx
jle 0x18000600b
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + rbx + 0x57]
dec rbx
call fcn.1800374f4
cmp eax, 0xffffffff
jne 0x180005fee
jmp 0x180005fab
movzx edi, byte [rsp + 0x57]
jmp 0x180005fab

Function at 0x180006970
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1800069a7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x180006981
ret

Function at 0x180006a20
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x180006a58
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x180006a31
ret
Function at 0x180012e96
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.18001e89e
mov ebp, eax
test rdi, rdi
je 0x180012ecb
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x180012ee0
movzx eax, word [rax]
jmp 0x180012ef0
xor r15d, r15d
mov eax, 6
test bpl, bpl
jne 0x180012f7a
xor edi, edi
jmp 0x180012f08
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x18005d2f8]
xor r15d, r15d
cmp ax, 0xffff
sete cl
cmove rdi, r15
mov eax, 6
cmp bpl, cl
je 0x180012f7a
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x180012f1a
movzx ebp, word [rax]
jmp 0x180012f29
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x18005d2f8]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x18005d2f8]
test al, al
je 0x180012f72
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x18005d2f8]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x180012f8e
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x180012f9b
xor r15d, r15d
mov eax, 4
or dword [rsi], eax
mov eax, r15d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x18005d2f8]
mov r12d, dword [rsp + 0x80]
movsx r15d, bpl
mov rcx, r14
call fcn.18001e89e
mov ebp, eax
test rdi, rdi
je 0x180012fc5
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x180012fc9
movzx eax, word [rax]
jmp 0x180012fd9
mov al, 1
jmp 0x180012fe2
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x18005d2f8]
cmp ax, 0xffff
sete al
jne 0x180012fe4
xor edi, edi
add r15d, 0xffffffd0
cmp bpl, al
je 0x18001308a
cmp r12d, 2
jl 0x18001308a
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x18001300d
movzx ebp, word [rax]
jmp 0x18001301c
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x18005d2f8]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x18005d2f8]
test al, al
je 0x180012f7c
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x18005d2f8]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x180013069
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x180013076
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x18005d2f8]
lea eax, [r15 + r15*4]
movsx ecx, bpl
lea r15d, [rcx + rax*2]
dec r12d
jmp 0x180012fa7
mov rcx, r14
call fcn.18001e89e
mov ebx, eax
test rdi, rdi
je 0x1800130a8
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1800130ba
movzx eax, word [rax]
jmp 0x1800130ca
mov eax, 2
test bl, bl
jne 0x180012f7a
jmp 0x180012f7c
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x18005d2f8]
cmp ax, 0xffff
sete al
xor bl, al
mov eax, 2
je 0x180012f7a
jmp 0x180012f7c
Function at 0x1800383e0
Capabilities:
Parse pe header

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

Function at 0x180042678
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.18003c034
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 0x180042719
cmp ebx, dword [rsp + 0x30]
je 0x180042712
test esi, esi
je 0x180042712
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800426ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800426fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800426d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800426fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18004271b
mov eax, 1
jmp 0x18004271b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180043a44
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 0x180043a74
xor eax, eax
jmp 0x180043b37
mov rbp, rbx
cmp word [rax], si
je 0x180043a99
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180043a80
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180043a7c
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.180043964
movsxd r14, eax
test eax, eax
jne 0x180043ad7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180043a6d
mov rcx, r14
call fcn.18003ea00
mov rdi, rax
test rax, rax
jne 0x180043af0
xor ecx, ecx
call fcn.18003b6ec
jmp 0x180043acc
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.180043964
test eax, eax
jne 0x180043b21
mov rcx, rdi
call fcn.18003b6ec
jmp 0x180043b2b
xor ecx, ecx
call fcn.18003b6ec
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 0x180043b54
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 0x180043bdb
mov rsi, rbx
cmp word [rax], bp
je 0x180043b9a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180043b84
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180043b80
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18003ea00
mov rdi, rax
test rax, rax
je 0x180043bc8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180023ed0
mov rbp, rdi
xor ecx, ecx
call fcn.18003b6ec
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 0x180046c90
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, [0x180068c20]
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 0x180046ce7
cmp word [rdx], r13w
jne 0x180046ce7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180046cec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180046e11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180046e32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180046d25
mov rdx, r9
mov word [rbx], cx
jmp 0x180046d4c
cmp r9, r8
jae 0x180046d5c
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 0x180046d06
jmp 0x180046e11
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 0x180046e06
cmp dword [rsp + 0x80], esi
je 0x180046e06
lea r8, [0x180068c20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180046dde
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180046dae
mov word [rbx], r13w
jmp 0x180046e0e
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 0x180046dbb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180046e0e
cmp word [rsp + 0x70], r13w
jne 0x180046deb
cmp rbx, r14
je 0x180046da8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004612c
cmp word [rsp + 0x70], r13w
je 0x180046e11
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, [0x180068c20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180046e0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180046e11

Function at 0x1800472e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800472fa
mov al, 1
jmp 0x18004735a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004730b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180047358
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800312c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180047358
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180047358
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180047358
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004735a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.t___]
mov dword [rax], 1
mov rax, qword [str.x___]
mov dword [rax], 1
mov rax, qword [str.___]
mov dword [rax], 1
mov rax, qword [0x1401b1c20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400138c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140013a4b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x1400c76b8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140032a60
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x140013925
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x140013934
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x140013953
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x140013963
cmp rbx, 0x1000
jae 0x14001392b
jmp 0x1400139cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140013975
xor edx, edx
jmp 0x1400139c4
mov rcx, qword [0x1400c76b8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140032a60
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x140013959
jmp 0x140013948
call fcn.140070e60
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.1400375c0
lea rax, [0x1400fbfec]
mov ebx, 0x18
nop dword [rax]
call fcn.140037e40
mov rax, qword [rsp + 0x38]
call fcn.140037b80
lea rax, [0x1400fc463]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.140037e40
mov rax, qword [rsp + 0x30]
call fcn.140037b80
call fcn.140037800
call fcn.140037620
lea rax, [0x1400fe78b]
mov ebx, 0x21
call fcn.1400681c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006d720
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1400138c0
Function at 0x140013a80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140013ca6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x1400c76b0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140032ae0
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140013af3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x140013b02
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x140013b25
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x140013b35
cmp rbx, 0x1000
jae 0x140013af9
nop
jmp 0x140013bb8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x140013b4d
xor esi, esi
jmp 0x140013baa
mov rax, qword [0x1400c76b0]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140032ae0
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x140013b2b
jmp 0x140013b16
call fcn.140070e60
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x140013c40
nop dword [rax + rax]
call fcn.1400375c0
lea rax, [0x1400fc47c]
mov ebx, 0x19
call fcn.140037e40
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.140037b80
lea rax, [0x1400fc463]
mov ebx, 0x19
call fcn.140037e40
mov eax, dword [rsp + 0x34]
call fcn.140037b80
nop
call fcn.140037800
call fcn.140037620
lea rax, [0x1400f8de2]
mov ebx, 0xd
call fcn.1400681c0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x140013be0
call fcn.1400375c0
lea rax, [0x1400fc47c]
mov ebx, 0x19
call fcn.140037e40
mov rax, qword [rsp + 0x38]
call fcn.140037b80
lea rax, [0x1400fc463]
mov ebx, 0x19
call fcn.140037e40
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.140037b80
call fcn.140037800
call fcn.140037620
lea rax, [0x1400fe015]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.1400681c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006d720
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.140013a80