joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003efb4
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.140029444
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003f03e
cmp byte [rbp - 0x21], r15b
je 0x14003f039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003f074
call fcn.140031ab8
test eax, eax
jne 0x14003f060
cmp byte [rbp - 0x21], r15b
je 0x14003f058
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003f074
cmp byte [rbp - 0x21], r15b
je 0x14003f071
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.14002b734
test eax, eax
jne 0x14003f114
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140029444
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003f0b3
cmp byte [rbp - 0x21], r15b
je 0x14003f0e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003f0e8
call fcn.140031ab8
test eax, eax
jne 0x14003f0d4
cmp byte [rbp - 0x21], r15b
je 0x14003f0cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003f0e8
cmp byte [rbp - 0x21], r15b
je 0x14003f0e5
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.14002b734
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003f114
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003f117
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003f125
mov rcx, rdi
call fcn.1400301e8
cmp byte [rbp + 0x3f], r15b
je 0x14003f134
mov rcx, qword [rbp + 0x27]
call fcn.1400301e8
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 0x14003ff40
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.140034950
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140034950
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140040090
cmp rax, 0xffffffffffffffff
je 0x140040090
xor edi, edi
test rbp, rbp
jle 0x14004003b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140031778
mov rbx, rax
test rax, rax
jne 0x14003ffc8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140040031
mov edx, 0x8000
mov ecx, r14d
call fcn.14002d090
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.140032e70
cmp eax, 0xffffffff
je 0x140040011
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003ffd8
mov edx, r15d
mov ecx, r14d
call fcn.14002d090
jmp 0x140040031
cmp byte [rsi + 0x38], dil
je 0x140040028
cmp dword [rsi + 0x34], 5
jne 0x140040028
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140040031
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400301e8
jmp 0x1400400a4
jns 0x1400400a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140034950
cmp rax, 0xffffffffffffffff
jne 0x14004005c
cmp byte [rsi + 0x30], dil
je 0x1400400a4
mov edi, dword [rsi + 0x2c]
jmp 0x1400400a4
mov ecx, r14d
call fcn.140038f48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400400a4
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 0x1400400a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004009d
mov eax, dword [rsi + 0x2c]
jmp 0x1400400a2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140034950
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 0x140040cd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140040cf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140040cf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800018c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
mov r9d, 4
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1801ba550]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x1800018cd
not r8d
mov eax, r8d
ret

Function at 0x1800018f8
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180001952
mov r11b, 0x23
lea rdi, [0x1801ba550]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000193c
cmp rdx, 2
jb 0x18000193c
cmp byte [r10], r11b
jne 0x18000193c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000191a
jmp 0x180001993
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180001993
mov r11b, 0x23
lea rdi, [0x1801ba550]
cmp dl, r11b
jne 0x180001977
cmp byte [r10], r11b
jne 0x180001977
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180001965
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180001ac8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x180001ae8
and qword [r8], 0
lea rdx, [0x1801ba2f0]
call fcn.1800019a4
mov rbx, rax
test rax, rax
je 0x180001bcf
mov rcx, rax
call fcn.180125788
mov ebp, eax
cmp eax, 0xffffffff
je 0x180001bc7
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.180125b28
test eax, eax
jne 0x180001bc7
mov rcx, rbx
call fcn.180125788
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180001bc7
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.180125b28
test eax, eax
jne 0x180001bc7
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x180001bc7
mov rax, qword [0x180216758]
test rax, rax
je 0x180001b69
inc dword [rax + 0xec]
mov rcx, rbp
call fcn.18011f3c0
mov rdi, rax
test rax, rax
je 0x180001bc7
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.180125e24
mov rcx, rbx
cmp rax, rbp
je 0x180001bb5
call fcn.1801250c8
mov rax, qword [0x180216758]
test rax, rax
je 0x180001bab
dec dword [rax + 0xec]
mov rcx, rdi
call fcn.18011f3c8
jmp 0x180001bcf
call fcn.1801250c8
test rsi, rsi
je 0x180001bc2
mov qword [rsi], rbp
mov rax, rdi
jmp 0x180001bd1
mov rcx, rbx
call fcn.1801250c8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800224d4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x180216758]
mov ecx, reloc.WS2_32.dll_recvfrom
add rbx, 8
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x1801f7888]
shr eax, 0xf
and al, 1
je 0x180022509
movaps xmm3, xmm6
jmp 0x18002250c
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x281
mov rcx, rbx
call fcn.1800014b8
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
je 0x180022533
movaps xmm3, xmm6
jmp 0x180022536
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x282
mov rcx, rbx
call fcn.1800014b8
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
je 0x18002255d
movaps xmm3, xmm6
jmp 0x180022560
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x283
mov rcx, rbx
call fcn.1800014b8
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
jne 0x180022585
xorps xmm6, xmm6
movaps xmm3, xmm6
mov r8b, al
mov edx, 0x284
mov rcx, rbx
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
jmp fcn.1800014b8
Function at 0x18002666c
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x18
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov qword [rbx + 0x38], rax
xor r8d, r8d
lea rdx, [0x1801be698]
call fcn.180029e20
nop
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x180028a18
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180028a38
xor eax, eax
jmp 0x180028b1e
cmp qword [rcx + 0x68], 0
je 0x180028a49
call fcn.180029adc
jmp 0x180028b1e
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180028a60
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180028a62
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180028a94
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180157310
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180028b18
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180028acb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180028af4
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180125e24
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x180028b18
cmp rdi, rbx
ja 0x180028ad2
test rdi, rdi
je 0x180028b18
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.180125e24
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800310b8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800310ee
and qword [rsp + 0x28], 0
lea r8, [0x180030820]
and dword [rsp + 0x20], 0
mov r9, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1800317c4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18003184b
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rsi, [rbx + 0x10]
mov ecx, 2
mov rdx, qword [rsi]
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18003184b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180031845
cmp qword [rbx + 0x18], 0xf
jbe 0x18003181d
mov rbx, qword [rbx]
mov rdx, qword [rsi]
mov r8, rbx
inc rdx
mov rcx, rax
call fcn.18012d724
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180031dc4
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, qword [0x180216880]
test rax, rax
jne 0x180031e80
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180031e5c
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x180031e5c
mov esi, dword [r9 + 0x20]
dec edx
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov r11d, 0x38fe7c1d
mov cl, byte [r10]
inc r10
test cl, cl
je 0x180031e58
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x180031e38
cmp r11d, 0xa2172c9d
je 0x180031e61
test edx, edx
jne 0x180031e1b
mov rax, qword [rax]
jmp 0x180031df7
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x180216880], rax
mov rcx, qword [rbx + 8]
call rax
nop
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180031e98
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x180216888]
mov r11, rcx
test rax, rax
jne 0x180031f50
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180031f2c
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x180031f2c
mov esi, dword [r9 + 0x20]
dec edx
mov ebx, 0x380b467d
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x180031f28
movsx ecx, cl
xor ecx, ebx
imul ebx, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x180031f0b
cmp ebx, 0x954371e5
je 0x180031f31
test edx, edx
jne 0x180031eef
mov rax, qword [rax]
jmp 0x180031ecb
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x180216888], rax
mov rdx, qword [r11 + 0x10]
lea r8, [r11 + 0x20]
mov rcx, qword [r11 + 8]
mov r9d, 0x30
call rax
mov rbx, qword [rsp + 0x30]
test rax, rax
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x180031f7c
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180216890]
mov rbp, rdx
mov rbx, rcx
test rax, rax
jne 0x180032040
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x18003201c
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x18003201c
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0xf8024b04
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x180032018
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x180031ff8
cmp r11d, 0x8c74d43e
je 0x180032021
test edx, edx
jne 0x180031fdb
mov rax, qword [rax]
jmp 0x180031fb7
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x180216890], rax
mov r9d, dword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
call rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
shr eax, 0x1f
xor al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180042b60
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x180042b7c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180042bd0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180042cf5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x180042cf5
test rax, rax
je 0x180042cf5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x180042cf5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x180042c6a
lea rax, [0x180042d50]
jmp 0x180042cc3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180042cf5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180042ce3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x180042c90
lea rax, [0x180042d20]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x180042d0a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x18004a7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r12d, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.180038f90
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x18004a7f8
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rbp
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x34]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r13d
test r12d, r12d
jg 0x18004a84f
mov ebx, 0x4b0000
jmp 0x18004a85f
shl r12d, 0x10
mov edx, ecx
mov ecx, r12d
call fcn.18003b3e0
mov ebx, eax
bsr ecx, ebx
bsr eax, edi
shl r13d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x18004a875
mov ecx, r13d
jmp 0x18004a880
mov edx, edi
mov ecx, ebx
call fcn.18003b3e0
mov ecx, eax
mov r8d, dword [rsp + 0x88]
mov eax, r8d
shl eax, 0x10
cmp ecx, eax
jge 0x18004a89c
shl esi, 0x10
mov ecx, esi
jmp 0x18004a962
mov edx, dword [rsp + 0x70]
mov r12d, edx
shl r12d, 0x10
cmp ecx, r12d
jge 0x18004a8cf
mov r13d, edx
mov ecx, eax
mov edx, edi
sub r13d, r8d
call fcn.180038f90
mov ecx, ebx
sub ecx, eax
test r13d, r13d
je 0x18004a91f
sub r15d, esi
mov r8d, r13d
mov edx, r15d
jmp 0x18004a908
mov eax, r14d
shl eax, 0x10
cmp ecx, eax
jl 0x18004a923
cmp ecx, r13d
jge 0x18004a95d
mov r15d, dword [rsp + 0x20]
mov edx, edi
sub r15d, r14d
shl r14d, 0x10
mov ecx, r14d
call fcn.180038f90
sub ebx, eax
test r15d, r15d
je 0x18004a95d
mov esi, dword [rsp + 0x78]
mov r8d, r15d
sub ebp, esi
mov ecx, ebx
mov edx, ebp
call fcn.18003b2b0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.180038f90
add ebx, eax
jmp 0x18004a96b
mov edx, dword [rsp + 0x70]
mov esi, r14d
mov ecx, r12d
sub esi, edx
mov edx, edi
call fcn.180038f90
mov ecx, ebx
sub ecx, eax
test esi, esi
je 0x18004a8de
mov edx, dword [rsp + 0x78]
mov r8d, esi
sub edx, r15d
call fcn.18003b2b0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.180038f90
add ebx, eax
jmp 0x18004a96b
shl ebp, 0x10
mov ecx, ebp
mov edx, edi
call fcn.180038f90
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rbx
jmp fcn.180038f90