joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005bd90
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14010de30]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x140152818]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3f08], ebx
jne 0x14005be26
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14006e980
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140068830
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140152818]
mov edi, ecx
cmp byte [rbx + 0x4a4d], 0
jne 0x140068891
cmp byte [rbx + 0x4a4e], 0
jne 0x140068891
movsx r9d, word [rbx + 0x5b4a]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.140058730
test dil, 1
je 0x1400689af
jmp 0x140068917
vmovss xmm1, dword [rbx + 0x3898]
vmulss xmm0, xmm1, dword [0x1401170e4]
vaddss xmm2, xmm0, dword [rbx + 0xdfc]
vmulss xmm1, xmm1, dword [0x1401170bc]
vaddss xmm0, xmm1, dword [rbx + 0xe00]
movsx r9d, word [rbx + 0x5b4a]
lea r8, str.Tooltip__02d
xor eax, eax
mov dword [rbx + 0x479c], 1
vmovss dword [rbx + 0x47ac], xmm0
vmovss dword [rbx + 0x47a8], xmm2
mov qword [rbx + 0x47b0], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x3914]
vmulss xmm1, xmm0, dword [0x14011703c]
or dword [rbx + 0x4798], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x47f8], xmm1
call fcn.140058730
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140068967
lea r11, [0x14010de30]
cmp r9b, 0x23
jne 0x14006894a
cmp byte [r8], r9b
jne 0x14006894a
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140068937
not ecx
call fcn.14005f810
test rax, rax
je 0x1400689af
cmp byte [rax + 0xae], 0
je 0x1400689af
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b4a]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5b4a]
call fcn.140058730
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140061f50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400bf1c0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006d9f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140152818]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14006da53
mov qword [rsp], rbx
lea rbx, [0x14010de30]
nop dword [rax]
cmp r9b, 0x23
jne 0x14006da33
cmp byte [r8], r9b
jne 0x14006da33
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14006da20
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ba8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14006da87
mov r10, qword [r10 + 0x5bb0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14006da8e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14006da74
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400838b0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov r8d, 1
bsr rcx, rax
shlx rax, r8, rcx
cmp rdx, rax
ja 0x140083a62
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140153d08]
or rax, r8
bsr rcx, rax
mov qword [rsp + 0x20], rdi
inc ecx
shlx rdi, r8, rcx
mov r8, rbx
lea rcx, [0x140153d18]
lea rdx, [rdi + rdi]
call fcn.140083480
mov rax, qword [0x140153d08]
lea r9, [rdi - 1]
mov qword [0x140153d30], r9
mov qword [0x140153d38], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140083a53
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop dword [rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x140153d18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14008399f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140083a14
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400839dc
mov r10, qword [rdx]
cmp r10, rax
je 0x1400839d6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140083a14
cmp r9, rdx
je 0x1400839f0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140083a28
cmp r9, rdx
jne 0x1400839e1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140083a4e
mov r9, qword [0x140153d30]
jmp 0x140083950
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140083a14
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1400bd448
int3
Function at 0x14008d4a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, qword [rcx]
mov rbp, rdx
mov r14, rcx
test rsi, rsi
jne 0x14008d5f0
movabs rax, 0x136907f37262dc9f
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rax, 0xff1aec965e302fea
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
movabs rax, 0x7f0d299f1e06a8f1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
movabs rax, 0xff1aec965e302f86
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
vmovdqu xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x58], rax
vpxor xmm1, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [rsp + 0x30], xmm1
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14008d5c7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14008d5c7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14008d5c2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x14008d5a0
cmp r8d, 0xe463da3c
je 0x14008d5cc
test r9d, r9d
jne 0x14008d580
mov rax, qword [rax]
jmp 0x14008d550
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
mov rsi, rax
mov qword [r14], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14008d687
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14008d687
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14008d682
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14008d660
cmp r8d, 0xf8f45725
je 0x14008d68c
test r9d, r9d
jne 0x14008d640
mov rax, qword [rax]
jmp 0x14008d610
mov r8d, dword [rbx + 0x24]
mov rdx, rbp
add r8, r10
mov rcx, rsi
movzx r9d, word [r8 + r9*2]
mov r8d, dword [rbx + 0x1c]
add r8, r10
mov eax, dword [r8 + r9*4]
add rax, r10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
jmp rax
Function at 0x14008d750
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
sub rsp, 0x20
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DebugBreak]
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
cmp rax, 0x19
jbe 0x14008d77e
mov al, 1
jmp 0x14008d784
xor al, al
jmp 0x14008d784
add rsp, 0x20
pop rbx
ret
Function at 0x1400af2f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov rbx, rdx
call fcn.1400af540
mov r8, rbx
mov edx, edi
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400af34d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400bf1c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
lea rdx, [0x140116a48]
lea rcx, [rsp + 0x20]
call fcn.140026080
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400af160
lea rdx, [0x140131e50]
lea rcx, [rsp + 0x40]
call fcn.1400c1948
int3

Function at 0x1400af380
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
lea rax, vtable.CryptoPP::NonblockingRng.0
mov qword [rsp + 0x20], rax
call fcn.1400af540
mov r8, rbx
mov edx, 0x20
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400af3dd
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400bf1c0
add rsp, 0xa0
pop rbx
ret
lea rdx, [0x140116a48]
lea rcx, [rsp + 0x28]
call fcn.140026080
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400af160
lea rdx, [0x140131e50]
lea rcx, [rsp + 0x50]
call fcn.1400c1948
int3

Function at 0x1400af540
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401541b0], eax
jle 0x1400af5b3
lea rcx, [0x1401541b0]
call fcn.1400bf548
cmp dword [0x1401541b0], 0xffffffff
jne 0x1400af5b3
mov qword [0x1401541b8], 0
lea rcx, [0x1400fc440]
call fcn.1400bf454
lea rcx, [0x1401541b0]
call fcn.1400bf4dc
mov rax, qword [0x1401541b8]
test rax, rax
jne 0x1400af622
lea ecx, [rax + 8]
call fcn.1400bf1e0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400af643
mov rdi, qword [0x1401541b8]
test rdi, rdi
je 0x1400af618
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, 8
mov rcx, rbx
call fcn.1400bf46c
mov rax, rdi
jmp 0x1400af622
mov qword [0x1401541b8], rbx
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400bf1c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x38]
call fcn.140026080
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400af160
lea rdx, [0x140131e50]
lea rcx, [rsp + 0x60]
call fcn.1400c1948
int3
Function at 0x1400bb840
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [rsp + 0x28]
add rsp, 8
syscall
sub rsp, 8
ret
Function at 0x1400bdfc0
Capabilities:
Get geographical location

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

Function at 0x1400bea0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400be4e4
mov ebx, eax
test eax, eax
jne 0x1400bea3c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400bea98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bea8f
test al, 0x10
je 0x1400bea8f
bt eax, 0xa
jae 0x1400bea88
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400beab0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400bea84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400beaa8
test edi, edi
jne 0x1400bea8f
and dword [rsp + 0x3c], 0
jmp 0x1400bea94
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400d7384
int3

Function at 0x1400c00d4
Capabilities:
Parse pe header

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

Function at 0x1400d68f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400d6914
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d2674
or eax, 0xffffffff
jmp 0x1400d6916
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400d6c10
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 0x1400d6c47
call fcn.1400d2700
mov dword [rax], socket
call fcn.1400d5cd0
xor eax, eax
jmp 0x1400d6cd5
mov rdx, r9
mov rcx, r8
call fcn.1400d6bac
mov rbx, rax
test rax, rax
je 0x1400d6cd2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d6ad8]
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 0x1400d6cbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d2674
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d6ca6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d6cb5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e0c6c
jmp 0x1400d6cd2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d6ccf
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 0x1400d87e4
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 0x1400d864f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d864f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d864f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d864f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d864f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d864f
cmp dword [rcx + 0xf8], 0
je 0x1400d864f
mov ecx, ebx
call fcn.1400d8700
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.1400d84dc
nop
cmp dword [rbp + 0x20], 0
je 0x1400d869d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d86a8
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d85e0
Function at 0x1400d8cf8
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.1400bfee0
sub rsp, rax
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e1ed0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d8d47
mov rax, rbp
jmp 0x1400d8e4f
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 + 0x152020]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e7024
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x152020]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d8e4b
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 0x1400d8e4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e7024
test rax, rax
js 0x1400d8e4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d8e4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d8e3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d8e3d
cmp byte [rcx], 0xd
jne 0x1400d8e23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d8e32
cmp byte [rcx + 1], 0xa
jne 0x1400d8e32
inc rcx
jmp 0x1400d8e32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1346a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d8e05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d8e4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400bf1c0
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 0x1400e2f48
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e2f5e
mov al, 1
jmp 0x1400e2fbe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e2f6f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e2fbc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400eb460
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e2fbc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e2fbc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e2fbc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e2fbe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e63c4
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, [0x140152020]
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 0x1400e641b
cmp word [rdx], r13w
jne 0x1400e641b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e6420
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e6545
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e6566
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e6459
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e6480
cmp r9, r8
jae 0x1400e6490
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 0x1400e643a
jmp 0x1400e6545
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 0x1400e653a
cmp dword [rsp + 0x80], esi
je 0x1400e653a
lea r8, [0x140152020]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e6512
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e64e2
mov word [rbx], r13w
jmp 0x1400e6542
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 0x1400e64ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e6542
cmp word [rsp + 0x70], r13w
jne 0x1400e651f
cmp rbx, r14
je 0x1400e64dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e702c
cmp word [rsp + 0x70], r13w
je 0x1400e6545
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, [0x140152020]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e653f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e6545