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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000242d
xor eax, eax
jmp 0x140002599
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002467
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002467
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 0x140002599
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000258c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400024aa
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 0x1400024d5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002544
sub eax, 1
je 0x140002544
cmp eax, 2
jne 0x14000258c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002572
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000258c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003d00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002c73
cmp byte [rcx + 0x71], 0
je 0x140002c73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002c6f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c34
sub eax, 1
je 0x140002c38
cmp eax, 2
jne 0x140002c6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002c66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002c6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002c1c
xor al, al
jmp 0x140002c1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d00
add rsp, 0x60
pop rbx
ret
Function at 0x140003960
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov ebx, 0x57
mov dword [rsp + 0x28], 1
mov ecx, ebx
mov qword [rsp + 0x48], rax
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x28
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x28]
mov word [rsp + 0x32], ax
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x32
call fcn.140003a70
mov r8d, 0x28
mov dword [rsp + 0x34], 2
lea rdx, [rsp + 0x28]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003d00
add rsp, 0x60
pop rbx
ret

Function at 0x140004680
Capabilities:
Parse pe header

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

Function at 0x14095fa0a
Capabilities:
Encode data using xor

Disassembly:
mov r11, qword [rsp + 0x10]
jbe fcn.140908234
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
call fcn.140b52bb9
or dh, byte [rcx + 0x33]
lahf
cmp ch, byte [rcx + rbp]
invalid
Function at 0x140001480
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov rbx, r9
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rdx
lea rcx, [rsp + 0x30]
mov r9d, 0x18
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000157c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000157c
mov r8d, dword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000157c
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14000157c
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000157c
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
ret

Function at 0x1400016f0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140001729
xor edx, edx
movabs rcx, 0x100000000
cmp qword [rsp + 0x28], rcx
mov eax, 2
cmovbe eax, edx
add rsp, 0x68
ret
mov eax, 1
add rsp, 0x68
ret
Function at 0x140001740
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx r9d, ax
lea r8, str._04x
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.1400018a0
xor esi, esi
lea rcx, [rsp + 0x38]
mov edi, esi
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], sil
jne 0x140001780
mov qword [rsp + 0x40], rbx
test rax, rax
je 0x1400017c5
lea rbx, [rsp + 0x38]
movsx ecx, byte [rbx]
call fcn.1400060a8
mov byte [rbx], al
lea rbx, [rbx + 1]
lea rax, [rsp + 0x38]
inc edi
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], sil
jne 0x1400017b4
movsxd rax, edi
cmp rax, rcx
jb 0x140001798
movzx eax, word [0x1400221ac]
lea rcx, [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
mov word [rsp + 0x30], ax
movzx eax, byte [0x1400221ae]
mov byte [rsp + 0x32], al
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1400017f0
test rax, rax
je 0x140001831
lea rbx, [rsp + 0x30]
movsx ecx, byte [rbx]
call fcn.1400060a8
mov byte [rbx], al
lea rbx, [rbx + 1]
mov rax, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
inc esi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140001820
movsxd rcx, esi
cmp rcx, rax
jb 0x140001803
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
lea r8, [0x1400221b0]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001863
inc rax
test ecx, ecx
jne 0x140001850
test edx, edx
je 0x140001895
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001887
inc rax
test ecx, ecx
jne 0x140001874
test edx, edx
je 0x140001895
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, edx
mov edx, edx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.1400023a0
call rbx
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000700c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006e38
Function at 0x1b62058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01b621df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1b62089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b6206f
add dl, dl
jne 0x1b62096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b620f6
xor eax, eax
add dl, dl
jne 0x1b620a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b621ad
add dl, dl
jne 0x1b620b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b620c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b620d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b620dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1b620ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1b6207e
mov eax, 1
add dl, dl
jne 0x1b62106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b62113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b620fb
sub eax, ebx
mov ebx, 1
jne 0x1b6214c
mov ecx, 1
add dl, dl
jne 0x1b6212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b6213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b62123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b6207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1b62168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b62175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b6215d
cmp eax, 0x7d00
jae 0x1b6219b
cmp eax, 0x500
jb 0x1b62196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b6207e
cmp eax, 0x7f
ja 0x1b6219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b6207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1b621d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1b6207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140130000
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
hlt
xchg r9, rdx
mov qword [rsp + 0x20], rdx
xchg r9, rdx
mov qword [rsp + 0x18], r8
xchg rdi, rdx
mov qword [rsp + 0x10], rdi
xchg rdi, rdx
jne 0x14013005e
je 0x14013005e
inc r10
cmp rdx, rdx
inc rbx
lea r10d, [rdi - 0x8f46]
jmp rcx
jmp 0x140130108
sub rsp, 0x3b8
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r8d, r13d
je 0x1401300c2
jne 0x1401300c2
pop r9
jnp 0x14012faf4
call 0x14012fa8a
and r10d, 0x27fa1d9b
jmp rax
jmp 0x140130143
mov qword [rsp + 8], rcx
nop
mov qword [rsp - 8], rbp
sub rsp, 8
push rbx
nop
sub rsp, 8
jmp 0x140130156
xchg r9, r10
mov r9, qword [rax + 0x18]
xchg r9, r10
mov rax, qword [r10 + 0x10]
jmp 0x1401301d3
mov qword [rsp], rdi
nop
sub rsp, 8
mov qword [rsp], r13
push r14
push r15
lea rbp, [rsp - 0x2b8]
je 0x1401301b0
jne 0x1401301b0
rcl r15d, 0x66
test esi, 0x462bad9b
test rsi, rcx
lea r13d, [rbp - 0xbb5d]
test r14d, 0xfd6dbe8f
jmp 0x140130070
mov r10, qword [rax]
xchg r11, r8
mov r8, qword [r10 + 0x30]
Function at 0x140001140
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
mov esp, edi
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14000119a
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x1400011a2
mov r14, qword [r14]
jmp 0x14000116b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x1400011d7
jmp 0x1400011e5
inc rax
inc rax
inc rax
inc rax
jmp 0x1400011be
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x22e000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb7000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x496f
push rax
movabs r15, 0x3ae00
mov eax, 0x63
imul r12, rax
movabs rax, 0x4024
add rax, r11
add r12, rax
call fcn.14000129c
mov r12d, 0x206411
movabs r14, 0x26e000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.14000129c
pop rax
jmp 0x1400012c2
nop
ret
mov r12d, 0x8000000
mov r15d, 0x229
movabs r14, 0x22e000
mov eax, 7
imul r15d, eax
add r15d, 0xe1
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x20b011
add r12, r11
mov eax, dword [r12]
xor eax, 0xe95dcace
dec eax
cmp eax, 0
je 0x14000131f
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x1400012fd
sub rsp, 0x28
movabs r14, 0x28d4
mov r12d, 0x74ff
add r12, 0x247fb9
add r12, r14
add r12, r11
push r12
dec r10
lea r15d, [eax]
jmp 0x1400012c0
Function at 0x1400026b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400026d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000274c
mov rdi, r14
mov rcx, rbx
call fcn.140003fd0
test rax, rax
jle 0x140002724
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400083e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000273c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002744
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400026e6
sub r14, rdi
jmp 0x14000282f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002763
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002765
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002797
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400083e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000282c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400027d2
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
cmp rbp, 0xfff
jbe 0x14000280d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e2e4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000282c
cmp rbp, rax
ja 0x1400027e0
test rbp, rbp
je 0x14000282c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e2e4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400072c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000730a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000730a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000730a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000730a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000730a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000730c
xor al, al
add rsp, 0x28
ret
Function at 0x14000cc10
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 0x14000ca7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ca7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ca7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ca7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ca7b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ca7b
cmp dword [rcx + 0xf8], 0
je 0x14000ca7b
mov ecx, ebx
call fcn.14000cb2c
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.14000c908
nop
cmp dword [rbp + 0x20], 0
je 0x14000cac9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000cad4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ca0c

Function at 0x140015af0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015b06
mov al, 1
jmp 0x140015b66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015b17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015b64
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e234
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015b64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015b64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015b64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015b66
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018bec
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.140006ba0
sub rsp, rax
mov rax, qword [0x140038060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400159d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018c3b
mov rax, rbp
jmp 0x140018d43
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 + 0x3a290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019f94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018d3f
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 0x140018d3f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019f94
test rax, rax
js 0x140018d3f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018d3f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018d31
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018d31
cmp byte [rcx], 0xd
jne 0x140018d17
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018d26
cmp byte [rcx + 1], 0xa
jne 0x140018d26
inc rcx
jmp 0x140018d26
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018cf9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018d43
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006530
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 0x140019334
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, [0x14003a290]
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 0x14001938b
cmp word [rdx], r13w
jne 0x14001938b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019390
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400194b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400194d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400193c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400193f0
cmp r9, r8
jae 0x140019400
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 0x1400193aa
jmp 0x1400194b5
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 0x1400194aa
cmp dword [rsp + 0x80], esi
je 0x1400194aa
lea r8, [0x14003a290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140019482
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140019452
mov word [rbx], r13w
jmp 0x1400194b2
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 0x14001945f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400194b2
cmp word [rsp + 0x70], r13w
jne 0x14001948f
cmp rbx, r14
je 0x14001944c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019f9c
cmp word [rsp + 0x70], r13w
je 0x1400194b5
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, [0x14003a290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400194af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400194b5