joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0430
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x1400c05dd
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.1400023d0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x1400c05a6
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x1400c0520
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400c0595
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400c055d
mov r10, qword [rdx]
cmp r10, rax
je 0x1400c0557
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 0x1400c0595
cmp r9, rdx
je 0x1400c0571
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400c05b7
cmp r9, rdx
jne 0x1400c0562
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, rdi
jne 0x1400c04d0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
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 0x1400c0595
lea rcx, str.invalid_hash_bucket_count
call fcn.14012605c
int3
Function at 0x1400c05f0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400c03cc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x1400c035a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x30
pop rdi
jmp 0x1400c05f0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400c039a
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, Ordinal_27
call fcn.1401289cc
mov rcx, rbx
test rbx, rbx
jne 0x1400c0380
mov rbx, qword [rsp + 0x48]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.140002850
add rsp, 0x30
pop rdi
ret
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x1400c06f4
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rax + 0x10], rbx
mov rbx, r14
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
mov qword [rax - 0x20], r13
mov r13, qword [r14 + 8]
mov qword [rax - 0x28], r15
movabs rax, 0xcbf29ce484222325
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x11]
imul rcx, r8
mov qword [rsp + 0x30], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, Ordinal_27
call fcn.1401289cc
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x28]
je 0x1400c0700
cmp rbx, rbp
jne 0x1400c06a0
cmp qword [rsp + 0x20], r14
jne 0x1400c06cd
mov qword [r15], rbx
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rax, rbp
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x20], r14
jne 0x1400c070f
mov qword [r15], r12
mov rax, r12
jmp 0x1400c0712
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x1400c06cd
nop dword [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x30]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, Ordinal_27
call fcn.1401289cc
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x1400c07a6
cmp rbx, rbp
jne 0x1400c0780
jmp 0x1400c06ca
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x1400c0720
jmp 0x1400c06cd
Function at 0x1400c2f80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400c2fb4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400c2fa0
ret
Function at 0x1400c7500
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400c75cc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400c75cc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400c75e5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400c75bc
cmp byte [rax], 0x5c
jne 0x1400c75b6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400c75b6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400c75a2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400c75b3
test r8b, 0x10
jne 0x1400c75b6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400c75b6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400c4180
test edi, edi
jne 0x1400c7520
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400c4170
int3

Function at 0x1400d4c10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1401fe9c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400d4cbf
test rdi, rdi
je 0x1400d4cbf
mov eax, dword [0x1401fe9c4]
test eax, eax
jne 0x1400d4cb7
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400d4960
mov ecx, 2
call fcn.140138640
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400d6fd0
mov rcx, qword [0x1401fe9b8]
call fcn.140130380
call fcn.140139b70
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1401fe9c4], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1400d4ce7
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400d4960
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d4d60
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1401fe9c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400d4e0f
test rdi, rdi
je 0x1400d4e0f
mov eax, dword [0x1401fe9c4]
test eax, eax
jne 0x1400d4e07
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400d4960
mov ecx, 2
call fcn.140138640
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400d6fd0
mov rcx, qword [0x1401fe9b8]
call fcn.140130380
call fcn.140139b70
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1401fe9c4], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400d4e37
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400d4960
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ef3f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
lea r9, str.C:Users_sohai_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
xor ebp, ebp
mov ebx, 1
mov edx, ebx
xor ecx, ecx
lea r8d, [rbp + 0x2d]
call fcn.1400d4b00
mov rdi, rax
test rax, rax
je 0x1400ef479
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400ef4af
cmp ebx, esi
je 0x1400ef4af
cmp ebx, 0x8000
ja 0x1400ef4af
cmp ebx, esi
jb 0x1400ef4aa
mov edx, ebx
lea r9, str.C:Users_sohai_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
mov r8d, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rdi
call fcn.1400d4b00
mov rdi, rax
test rax, rax
jne 0x1400ef430
mov edx, Ordinal_50
mov rcx, rbp
lea r8, str.C:Users_sohai_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
call fcn.1400d4900
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400ef48f
mov edx, Ordinal_60
mov rcx, rdi
jmp 0x1400ef481
Function at 0x1401260f4
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 0x14012612e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140126133
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 0x14012617c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14012617c
dec r8
sub rdx, 1
jne 0x140126162
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14012985c
Capabilities:
Parse pe header

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

Function at 0x140139944
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 0x14013997b
call fcn.140139b70
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14012fd40
xor eax, eax
jmp 0x140139a09
mov rdx, r9
mov rcx, r8
call fcn.1401398e0
mov rbx, rax
test rax, rax
je 0x140139a06
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14013980c]
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 0x1401399f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140139ae4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401399da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401399e9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140149164
jmp 0x140139a06
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140139a03
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 0x14013a1c8
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.1401294c0
sub rsp, rax
mov rax, qword [0x1401db200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401498d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14013a217
mov rax, rbp
jmp 0x14013a31f
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 + 0x1ffe40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14013d9c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1ffe40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14013a31b
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 0x14013a31b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14013d9c8
test rax, rax
js 0x14013a31b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14013a31b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14013a30d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14013a30d
cmp byte [rcx], 0xd
jne 0x14013a2f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14013a302
cmp byte [rcx + 1], 0xa
jne 0x14013a302
inc rcx
jmp 0x14013a302
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1db470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14013a2d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013a31f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140128970
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 0x14014184c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14014186c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140139ae4
or eax, 0xffffffff
jmp 0x14014186e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140142ee0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1401db200]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14017e700]
mov rbp, rcx
call fcn.14014fd1c
xor edi, edi
test rax, rax
je 0x140142fc6
mov ebx, edi
call fcn.140139b70
mov r14d, dword [rax]
call fcn.140139b70
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14014fc68
mov rsi, rax
test rax, rax
je 0x140142f57
call fcn.140139b70
mov dword [rax], r14d
jmp 0x140142f81
call fcn.140139b70
cmp dword [rax], 0x22
jne 0x140142fbe
call fcn.140139b70
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14014fc68
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140142fbe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140142f85
cmp rax, 3
je 0x140142fa0
mov rcx, rsi
call fcn.140142e3c
test al, al
je 0x140142fb1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140142fb1
mov dil, 1
mov rcx, rbx
call fcn.14012f940
mov al, dil
jmp 0x140142fc8
mov rcx, rbx
call fcn.14012f940
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140128970
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401454d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401452d0
Function at 0x140148740
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, [0x1401ffe40]
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 0x140148797
cmp word [rdx], r13w
jne 0x140148797
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14014879c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401488c1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401488e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401487d5
mov rdx, r9
mov word [rbx], cx
jmp 0x1401487fc
cmp r9, r8
jae 0x14014880c
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 0x1401487b6
jmp 0x1401488c1
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 0x1401488b6
cmp dword [rsp + 0x80], esi
je 0x1401488b6
lea r8, [0x1401ffe40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14014888e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14014885e
mov word [rbx], r13w
jmp 0x1401488be
mov ecx, reloc.WS2_32.dll_listen
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 0x14014886b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401488be
cmp word [rsp + 0x70], r13w
jne 0x14014889b
cmp rbx, r14
je 0x140148858
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14013d9d0
cmp word [rsp + 0x70], r13w
je 0x1401488c1
mov ecx, reloc.WS2_32.dll_listen
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, [0x1401ffe40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401488bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401488c1
Function at 0x1401499f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140149a0e
mov al, 1
jmp 0x140149a6e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140149a1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140149a6c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14014cf10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140149a6c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140149a6c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140149a6c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140149a6e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14014e0fc
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.14013d9d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14013d9d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14014e24c
cmp rax, 0xffffffffffffffff
je 0x14014e24c
xor edi, edi
test rbp, rbp
jle 0x14014e1f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14014b774
mov rbx, rax
test rax, rax
jne 0x14014e184
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14014e1ed
mov edx, 0x8000
mov ecx, r14d
call fcn.140146608
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.14014050c
cmp eax, 0xffffffff
je 0x14014e1cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14014e194
mov edx, r15d
mov ecx, r14d
call fcn.140146608
jmp 0x14014e1ed
cmp byte [rsi + 0x38], dil
je 0x14014e1e4
cmp dword [rsi + 0x34], 5
jne 0x14014e1e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14014e1ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140149164
jmp 0x14014e260
jns 0x14014e260
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14013d9d0
cmp rax, 0xffffffffffffffff
jne 0x14014e218
cmp byte [rsi + 0x30], dil
je 0x14014e260
mov edi, dword [rsi + 0x2c]
jmp 0x14014e260
mov ecx, r14d
call fcn.14014cf10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14014e260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14014e260
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14014e259
mov eax, dword [rsi + 0x2c]
jmp 0x14014e25e
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14013d9d0
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