joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140125570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1401255a1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14012561b
mov rdi, r14
mov rcx, rbx
call fcn.14011e1b0
test rax, rax
jle 0x1401255f3
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.140355870
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 0x14012560b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140125613
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1401255b5
sub r14, rdi
jmp 0x1401256ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140125632
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140125634
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140125666
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140355870
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 0x1401256fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1401256a1
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 0x1401256dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14019edb4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1401256fc
cmp rbp, rax
ja 0x1401256b0
test rbp, rbp
je 0x1401256fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14019edb4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140127f00
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, qword [rcx + 0x10]
mov r9, rcx
add rdx, 1
mov r8, qword [rcx + 0x38]
xorps xmm1, xmm1
js 0x140127f1b
cvtsi2ss xmm1, rdx
jmp 0x140127f30
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm1, dword [rcx]
cvttss2si ecx, xmm1
cmp ecx, 0x80000000
je 0x140127f61
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
je 0x140127f61
unpcklps xmm1, xmm1
movmskps eax, xmm1
and eax, 1
xor eax, 1
add ecx, eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss xmm0, dword [0x14040d578]
xor ecx, ecx
comiss xmm1, xmm0
jb 0x140127f86
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x140127f86
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm1
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp r8, rcx
jae 0x140127fb8
cmp r8, 0x200
jae 0x140127fb5
lea r8, [r8*8]
cmp r8, rcx
jae 0x140127fb8
mov r8, rcx
mov rdx, r8
mov rcx, r9
jmp fcn.140128dd0
Function at 0x14016a660
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14016a713
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140186e80
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140169a60
jmp 0x14016a7db
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14016a7b0
sub edx, 1
je 0x14016a75a
cmp edx, 0x15
jne 0x14016a761
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.140187120
test rax, rax
je 0x14016a761
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14016a7db
lea rdx, [rsp + 0x34]
jmp 0x14016a732
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.140193868
mov dword [rax], 0x273f
call fcn.140193868
mov ebx, dword [rax]
call fcn.140193868
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140186e80
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140169a60
jmp 0x14016a7db
cmp dword [rsp + 0x20], 2
jle 0x14016a7d2
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x14040b264]
mov rcx, rbx
call fcn.14016eb30
jmp 0x14016a7d5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14016c330
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14016c396
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14016c379
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14016c373
shr ax, 8
cmp al, 2
je 0x14016c396
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14016c3c9
mov qword [0x14069eaf8], rsi
jmp 0x14016c554
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x140364f70]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x140364f80]
call fcn.1401adaf4
test rax, rax
je 0x14016c42d
mov rcx, rbx
test rbp, rbp
je 0x14016c41f
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14016c51c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14016c51c
test rbp, rbp
je 0x14016c45c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016c45c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14016c51c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14016c514
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.14019fb0c]
mov rdi, rax
test rax, rax
je 0x14016c50b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14016c50b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14016c4b0
mov dword [rdi + rax*2], 0x5c
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14016c4c2
add rcx, rcx
sub rcx, rbx
add rcx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14016c4e0
mov rcx, rdi
test rbp, rbp
je 0x14016c502
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14016c508
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140198f38]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14069eaf8], rsi
test rsi, rsi
je 0x14016c554
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016c554
mov qword [0x14069eaf0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140187690
test al, al
lea rcx, [0x1406a3560]
setne byte [0x1406a3558]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x1e8
ret
Function at 0x14017d390
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14017d52e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14017d50e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14017d3fe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14017d3f0
inc rbx
jmp 0x14017d400
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14017d40d
lea ebp, [rax + 0xe]
jmp 0x14017d419
cmp eax, 0x17
jne 0x14017d4b1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14017d4b1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14017d4b1
cmp rax, rbp
jb 0x14017d4b1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.14019fb0c]
mov r14, rax
test rax, rax
je 0x14017d4c0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.140355870
test rbx, rbx
je 0x14017d49e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.140355870
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x14017d4ae
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14017d3e0
jmp 0x14017d4c6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14017d4e0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14017d509
test rdi, rdi
je 0x14017d505
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.140198f38]
mov rdi, rbx
test rbx, rbx
jne 0x14017d4f0
xor edi, edi
jmp 0x14017d51d
test rdi, rdi
jne 0x14017d51d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x140185070
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x88
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rbx, rsi
mov rdi, rdx
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1401850a0
mov qword [rsp + 0xc0], rbp
xor r15d, r15d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
jne 0x14018528d
cmp rbx, 4
jb 0x140185286
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x140185286
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.1401afe10
cmp rbx, rax
je 0x1401851c4
cmp byte [rdi + rax], 0x25
lea r12, [rdi + rax]
mov rbx, rax
jne 0x140185286
lea r8d, [r15 + 2]
mov ebp, r15d
lea rdx, [0x14036861c]
lea rcx, [r12 + 1]
lea r14, [r12 + 1]
call fcn.1401a64e0
test eax, eax
jne 0x140185149
movzx eax, byte [r12 + 3]
lea rcx, [r12 + 3]
test al, al
je 0x140185149
cmp al, 0x5d
cmovne r14, rcx
movzx eax, byte [r14]
test al, al
je 0x14018527f
mov rcx, r15
cmp al, 0x5d
je 0x140185176
cmp rcx, 0xf
jge 0x140185176
inc r14
mov byte [rsp + rcx + 0x28], al
inc ebp
inc rcx
movzx eax, byte [r14]
test al, al
jne 0x140185158
test ebp, ebp
je 0x14018527f
cmp byte [r14], 0x5d
jne 0x14018527f
movsxd rax, ebp
cmp rax, 0x10
jae 0x1401852a8
lea rcx, [rsp + 0x28]
mov byte [rsp + rax + 0x28], r15b
call qword [fcn.14019f6e4]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
test rax, rax
jne 0x1401851bd
mov eax, 7
jmp 0x14018524b
mov word [r12], 0x5d
lea r8, [rsp + 0x28]
mov byte [rdi + rbx], r15b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140185286
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea ecx, [rax + 0x16]
call fcn.140187120
test rax, rax
je 0x140185238
lea rax, [rsp + 0x38]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140185204
cmp rsi, rbx
jae 0x140185238
lea rax, [rsp + 0x38]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x38]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140185222
mov rbx, rsi
mov byte [rdi + rsi + 1], r15b
mov byte [rdi + rbx], 0x5d
cmp byte [rdi], r15b
mov eax, ntohs
cmove r15d, eax
mov eax, r15d
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x88
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, 3
jmp 0x14018524b
mov eax, reloc.WS2_32.dll_shutdown
jmp 0x14018524b
lea rdx, str.__r_n_t_:___
mov rcx, rdi
call fcn.1401a0b40
cmp rbx, rax
je 0x14018523c
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x14018524b
call fcn.1401557d8
int3
Function at 0x14018c5f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14019fb0c]
mov rbx, rax
test rax, rax
jne 0x14018c633
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x14018c680
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x14018c6e2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x14018c6a0
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x14018c721
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140368df1]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140368df2]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x14018c6f0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x1401927e8
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 0x14019281f
call fcn.140193868
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140192ee4
xor eax, eax
jmp 0x1401928ad
mov rdx, r9
mov rcx, r8
call fcn.140192784
mov rbx, rax
test rax, rax
je 0x1401928aa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401926b0]
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 0x140192897
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401937dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14019287e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14019288d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401b0980
jmp 0x1401928aa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401928a7
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 0x1401a6f28
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.140155680
sub rsp, rax
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401b42cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a6f77
mov rax, rbp
jmp 0x1401a707f
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 + 0x69f350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401b6bb4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x69f350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a707b
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 0x1401a707b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401b6bb4
test rax, rax
js 0x1401a707b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a707b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a706d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a706d
cmp byte [rcx], 0xd
jne 0x1401a7053
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a7062
cmp byte [rcx + 1], 0xa
jne 0x1401a7062
inc rcx
jmp 0x1401a7062
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x68cee0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a7035
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a707f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140154c90
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 0x1401af2b8
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 [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14036f5d0]
mov rbp, rcx
call fcn.1401adaf4
xor edi, edi
test rax, rax
je 0x1401af39e
mov ebx, edi
call fcn.140193868
mov r14d, dword [rax]
call fcn.140193868
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401bf4a4
mov rsi, rax
test rax, rax
je 0x1401af32f
call fcn.140193868
mov dword [rax], r14d
jmp 0x1401af359
call fcn.140193868
cmp dword [rax], 0x22
jne 0x1401af396
call fcn.140193868
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401bf4a4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401af396
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401af35d
cmp rax, 3
je 0x1401af378
mov rcx, rsi
call fcn.1401af214
test al, al
je 0x1401af389
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401af389
mov dil, 1
mov rcx, rbx
call fcn.140198f38
mov al, dil
jmp 0x1401af3a0
mov rcx, rbx
call fcn.140198f38
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140154c90
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 0x1401b47cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401b47e2
mov al, 1
jmp 0x1401b4842
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401b47f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401b4840
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401bb784
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401b4840
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401b4840
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401b4840
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401b4842
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401b5f54
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, [0x14069f350]
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 0x1401b5fab
cmp word [rdx], r13w
jne 0x1401b5fab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401b5fb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401b60d5
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401b60f6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401b5fe9
mov rdx, r9
mov word [rbx], cx
jmp 0x1401b6010
cmp r9, r8
jae 0x1401b6020
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 0x1401b5fca
jmp 0x1401b60d5
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 0x1401b60ca
cmp dword [rsp + 0x80], esi
je 0x1401b60ca
lea r8, [0x14069f350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401b60a2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401b6072
mov word [rbx], r13w
jmp 0x1401b60d2
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 0x1401b607f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401b60d2
cmp word [rsp + 0x70], r13w
jne 0x1401b60af
cmp rbx, r14
je 0x1401b606c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401b6bbc
cmp word [rsp + 0x70], r13w
je 0x1401b60d5
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, [0x14069f350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401b60cf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401b60d5