joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1880
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14023f780]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
mov edx, 0x20
call fcn.140083350
movzx eax, byte [rbx + 0x1f]
lea rdx, [rbp + 0x40]
or byte [rbx], 7
lea rcx, [rbp - 0x60]
and al, 0x3f
or al, 0x80
mov byte [rbx + 0x1f], al
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movd eax, xmm0
movups xmmword [rbp + 0x40], xmm0
and al, 0xf8
mov byte [rbp + 0x40], al
mov rax, qword [rbx + 0x18]
shr rax, 0x38
and al, 0x3f
or al, 0x40
movups xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x5f], al
call fcn.1400a6a10
movdqu xmm2, xmmword [rbp - 0x10]
movdqu xmm3, xmmword [rbp - 0x38]
mov rcx, qword [rbp + 0x10]
add rcx, qword [rbp - 0x18]
movdqu xmm1, xmmword [rbp - 0x28]
mov qword [rsp + 0x40], rcx
movq rcx, xmm2
movq rax, xmm3
paddq xmm1, xmmword [rbp]
sub rcx, rax
movabs rax, 0xfffffffffffda
movdqa xmm0, xmm3
add rcx, rax
paddq xmm0, xmm2
movdqa xmm2, xmmword [0x1401fcc30]
xor eax, eax
mov qword [rsp + 0x70], rcx
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
nop dword [rax + rax]
movdqu xmm1, xmmword [rbp + rax - 8]
movdqu xmm0, xmmword [rbp + rax - 0x30]
psubq xmm1, xmm0
paddq xmm1, xmm2
movdqu xmmword [rsp + rax + 0x78], xmm1
add rax, 0x10
cmp rax, 0x20
jl 0x1400a1960
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400a1c00
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400a2830
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400a24d0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14018eb60
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400a19e0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14023f780]
xor rax, rsp
mov qword [rbp + 0x60], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
lea rcx, [rbp - 0x60]
movups xmm1, xmmword [rdx + 0x10]
movd eax, xmm0
movups xmmword [rbp + 0x40], xmm0
and al, 0xf8
mov byte [rbp + 0x40], al
mov rax, qword [rdx + 0x18]
lea rdx, [rbp + 0x40]
shr rax, 0x38
and al, 0x3f
or al, 0x40
movups xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x5f], al
call fcn.1400a6a10
movdqu xmm2, xmmword [rbp - 0x10]
movdqu xmm3, xmmword [rbp - 0x38]
mov rcx, qword [rbp + 0x10]
add rcx, qword [rbp - 0x18]
movdqu xmm1, xmmword [rbp - 0x28]
mov qword [rsp + 0x40], rcx
movq rcx, xmm2
movq rax, xmm3
paddq xmm1, xmmword [rbp]
sub rcx, rax
movabs rax, 0xfffffffffffda
movdqa xmm0, xmm3
add rcx, rax
paddq xmm0, xmm2
movdqa xmm2, xmmword [0x1401fcc30]
xor eax, eax
mov qword [rsp + 0x70], rcx
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
nop word [rax + rax]
movdqu xmm1, xmmword [rbp + rax - 8]
movdqu xmm0, xmmword [rbp + rax - 0x30]
psubq xmm1, xmm0
paddq xmm1, xmm2
movdqu xmmword [rsp + rax + 0x78], xmm1
add rax, 0x10
cmp rax, 0x20
jl 0x1400a1aa0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400a1c00
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400a2830
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400a24d0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14018eb60
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop rbp
ret
Function at 0x1400d89e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.14016f850
test eax, eax
jne 0x1400d8b82
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [0x14023c044], bpl
mov qword [rsp + 0x38], rsi
jne 0x1400d8a15
mov esi, ebp
jmp 0x1400d8a31
mov ecx, 5
call qword [0x14023c0b0]
mov rsi, rax
test rax, rax
je 0x1400d8a31
mov rcx, rax
call qword [0x14023c0c0]
test ebx, ebx
jle 0x1400d8b64
test rdi, rdi
je 0x1400d8b64
cmp dword [0x140243910], ebp
jne 0x1400d8ae8
xor ecx, ecx
call fcn.1400c1760
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x140243910], xmm0
test rax, rax
jne 0x1400d8a88
xorps xmm0, xmm0
mov qword [0x140243940], rax
movups xmmword [0x140243920], xmm0
mov dword [0x140243948], eax
movups xmmword [0x140243930], xmm0
jmp 0x1400d8acc
mov ecx, dword [0x14023c1f0]
test ecx, ecx
je 0x1400d8aba
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140243920], xmm0
mov dword [0x140243920], ecx
movups xmmword [0x140243930], xmm0
mov qword [0x140243940], rax
mov dword [0x140243948], eax
jmp 0x1400d8acc
lea r8, [0x140243920]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x140243940]
xor cl, cl
mov byte [0x140243990], cl
mov dword [0x14024394c], eax
mov dword [0x140243940], ebp
jmp 0x1400d8aef
movzx ecx, byte [0x140243990]
movzx eax, cl
lea rbp, [0x140243950]
cmp ebx, eax
jle 0x1400d8b41
nop dword [rax]
test cl, cl
je 0x1400d8b1f
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.1401b9820
movzx ecx, byte [0x140243990]
sub ebx, ecx
add rdi, rcx
inc dword [0x140243940]
lea rdx, [0x140243910]
mov rcx, rbp
call fcn.1400e40e0
mov cl, 0x40
mov byte [0x140243990], cl
cmp ebx, 0x40
jg 0x1400d8b00
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.1401b9820
sub byte [0x140243990], bl
test rsi, rsi
jne 0x1400d8b6f
jmp 0x1400d8b78
mov dword [0x140243910], ebp
test rsi, rsi
je 0x1400d8b78
mov rcx, rsi
call qword [0x14023c0d0]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400def50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa0]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x1400df167
mov qword [rsp + 0x70], r12
xor r9d, r9d
mov qword [rsp + 0x78], r13
lea r12, [rdi + 0x88]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x68], rbp
nop word [rax + rax]
movsxd r14, dword [rsi + 0x10]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400defc0
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x1400defd6
dec al
lea r12, [rdi + 0x88]
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe0]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1400df003
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.1400fa130
jmp 0x1400df02e
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSAStartup
mov r9, qword [r9 + 0x68]
call fcn.14013c5e0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1400df072
mov edx, 5
mov rcx, rdi
call fcn.1400fa1a0
test eax, eax
jne 0x1400df14e
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r9d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r9b
mov qword [rax + 0x10], r9
mov word [rax + 2], r9w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r9
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r9
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r9
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r9
mov qword [rax + 0x70], r9
add dword [rdi + 0x90], 5
test rax, rax
je 0x1400df14e
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1400df13c
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400df13c
mov dword [rbx + rax*4 + 0xe0], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400df14e
mov rax, qword [rsp + 0x60]
jmp 0x1400defa0
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f0520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x1400f0539
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x1400f0543
mov rcx, qword [rdx + 0x20]
jmp 0x1400f0553
cmp al, 0x8a
jne 0x1400f06d7
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x1400f06d7
mov dword [r8], 0
cmp byte [rdx], 0x8a
jne 0x1400f057a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.140121120
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x1400f06c2
mov qword [rsp + 0x80], rbx
lea rcx, [0x14014d770]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.1400f18f0]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [r15 + rax + 8]
je 0x1400f0630
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x1400f0620
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1401647d0
cmp word [rsp + 0x44], 0
je 0x1400f0630
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14012a9f0
jmp 0x1400f0670
mov rsi, qword [rdi]
test rbx, rbx
je 0x1400f064c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400f09b0
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x1400f0660
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140128f90
test rbx, rbx
je 0x1400f0670
mov rdx, rbx
mov rcx, rsi
call fcn.14012ce90
inc ebp
lea rcx, [0x14014d770]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x1400f05e0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.14012c520
Function at 0x140110070
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.14013c210
test ebx, ebx
jne 0x1401100d9
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.14013c210
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 0x14012f8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x14012f9d9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x140202d60]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x14012f951
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x14012f98c
test ecx, ecx
jne 0x14012f99a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.1400f2ea0
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x14012f970
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x14012f910
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x14012f99f
inc r8
jmp 0x14012f940
test r10d, r10d
jne 0x14012f969
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x14012f9c5
test edx, edx
je 0x14012f951
inc rax
jmp 0x14012f9b0
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x14012f969
inc rax
jmp 0x14012f9b0
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14018bd18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14018bd52
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14018bd57
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14018bda0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14020c4c0]
cmp byte [rcx + rax], 0
je 0x14018bda0
dec r8
sub rdx, 1
jne 0x14018bd86
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14018f9cc
Capabilities:
Parse pe header

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

Function at 0x14019e1ac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14019e1e3
call fcn.14019b1e0
mov dword [rax], socket
call fcn.140195bfc
xor eax, eax
jmp 0x14019e271
mov rdx, r9
mov rcx, r8
call fcn.14019e148
mov rbx, rax
test rax, rax
je 0x14019e26e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14019e074]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14019e25b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019b154
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14019e242
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14019e251
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401a8d00
jmp 0x14019e26e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14019e26b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14019e5c8
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 0x14019e433
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019e433
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019e433
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019e433
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019e433
cmp dword [rcx + 0x84], 0xe
jbe 0x14019e433
cmp dword [rcx + 0xf8], 0
je 0x14019e433
mov ecx, ebx
call fcn.14019e4e4
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.14019e2c0
nop
cmp dword [rbp + 0x20], 0
je 0x14019e481
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14019e48c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14019e3c4

Function at 0x1401a1848
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.14018f260
sub rsp, rax
mov rax, qword [0x14023f780]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a1b9c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a1897
mov rax, rbp
jmp 0x1401a199f
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 + 0x244ea0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401abfa8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x244ea0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a199b
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 0x1401a199b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401abfa8
test rax, rax
js 0x1401a199b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a199b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a198d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a198d
cmp byte [rcx], 0xd
jne 0x1401a1973
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a1982
cmp byte [rcx + 1], 0xa
jne 0x1401a1982
inc rcx
jmp 0x1401a1982
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x23fbb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a1955
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a199f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14018eb60
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 0x1401a78fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401a7912
mov al, 1
jmp 0x1401a7972
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401a7923
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401a7970
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401a2070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401a7970
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401a7970
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401a7970
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401a7972
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401ab348
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, [0x140244ea0]
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 0x1401ab39f
cmp word [rdx], r13w
jne 0x1401ab39f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ab3a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ab4c9
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ab4ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ab3dd
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ab404
cmp r9, r8
jae 0x1401ab414
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 0x1401ab3be
jmp 0x1401ab4c9
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 0x1401ab4be
cmp dword [rsp + 0x80], esi
je 0x1401ab4be
lea r8, [0x140244ea0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401ab496
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401ab466
mov word [rbx], r13w
jmp 0x1401ab4c6
mov ecx, recv
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 0x1401ab473
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ab4c6
cmp word [rsp + 0x70], r13w
jne 0x1401ab4a3
cmp rbx, r14
je 0x1401ab460
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401abfb0
cmp word [rsp + 0x70], r13w
je 0x1401ab4c9
mov ecx, recv
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, [0x140244ea0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ab4c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ab4c9