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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov r15, rdx
mov rsi, rcx
mov eax, dword [rdi + 0x18]
cmp eax, 0xc
jle 0x14013af5c
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSASetLastError
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
cmp dword [rdi + 0x2c], eax
jge 0x14013b044
nop
movzx ecx, byte [rdi + 0x50]
test cl, cl
jne 0x14013b017
mov r9, qword [rsi + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013af9c
lea rdx, [rdi + 0x50]
mov r8d, 1
mov rcx, rsi
call rax
cdqe
jmp 0x14013afb2
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rdi + 0x50]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x14013b0ba
movzx eax, byte [rdi + 0x50]
test al, al
je 0x14013b0af
mov r9, qword [rsi + 0x70]
lea r14, [rdi + 0x51]
mov r10, qword [r9 + 0x40]
test r10, r10
je 0x14013afea
movzx r8d, al
mov rdx, r14
mov rcx, rsi
call r10
cdqe
jmp 0x14013b000
mov r9, qword [r9 + 0x38]
movzx r8d, al
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rdi + 0x50]
cmp rax, rcx
jne 0x14013b0ba
movzx edx, byte [r14]
mov byte [r14], 2
jmp 0x14013b025
movzx eax, byte [rdi + 0x51]
movzx edx, byte [rax + rdi + 0x50]
inc al
mov byte [rdi + 0x51], al
dec cl
movzx eax, dl
mov byte [rdi + 0x50], cl
mov ecx, dword [rdi + 0x2c]
shl eax, cl
or dword [rdi + 0x30], eax
lea eax, [rcx + 8]
mov dword [rdi + 0x2c], eax
cmp eax, dword [rdi + 0x18]
jl 0x14013af70
movsxd rax, dword [rdi + 0x18]
lea rcx, [0x1401bb4e8]
movzx ecx, word [rcx + rax*2]
and ecx, dword [rdi + 0x30]
mov dword [r15], ecx
mov edx, dword [rdi + 0x18]
sub dword [rdi + 0x2c], edx
mov ecx, edx
shr dword [rdi + 0x30], cl
mov ecx, dword [rdi + 0x14]
cmp ecx, 0x1001
jge 0x14013b08f
mov r8d, dword [rdi + 0x1c]
inc ecx
mov dword [rdi + 0x14], ecx
cmp ecx, r8d
jle 0x14013b08f
cmp edx, 0xc
jge 0x14013b08f
lea ecx, [r8 + r8]
mov dword [rdi + 0x1c], ecx
lea ecx, [rdx + 1]
mov dword [rdi + 0x18], ecx
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov dword [rsi + 0x60], reloc.WS2_32.dll_WSASetLastError
xor eax, eax
jmp 0x14013b094
mov dword [rsi + 0x60], 0x66
xor eax, eax
jmp 0x14013b094
Function at 0x14013b390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x14013b3c3
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14013b3da
mov r9, qword [rdi + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x14013b439
movzx ecx, byte [rsp + 0x30]
test cl, cl
je 0x14013b452
lea rax, [rdi + 0x50]
mov qword [rsi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013b414
mov rdx, qword [rsi]
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
inc rdx
call rax
cdqe
jmp 0x14013b42f
mov rcx, qword [rsi]
movzx r8d, byte [rsp + 0x30]
mov r9, qword [r9 + 0x38]
inc rcx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x14013b45d
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov qword [rsi], rax
mov byte [rdi + 0x50], al
mov dword [rdi + 0x34], eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14013b530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rsi + 0x40]
test rax, rax
je 0x14013b563
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14013b57a
mov r9, qword [rsi + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x14013b5d9
movzx ecx, byte [rsp + 0x30]
test cl, cl
je 0x14013b5f2
lea rax, [rsi + 0x50]
mov qword [rdi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013b5b4
mov rdx, qword [rdi]
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
inc rdx
call rax
cdqe
jmp 0x14013b5cf
mov rcx, qword [rdi]
movzx r8d, byte [rsp + 0x30]
mov r9, qword [r9 + 0x38]
inc rcx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x14013b5f9
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14013baf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
test byte [r9], 8
jne 0x14013bb1e
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSAGetLastError
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013bb38
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14013bb4f
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
je 0x14013bb69
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rsp + 0x30]
cmp al, 0x21
je 0x14013bbc0
cmp al, 0x2c
je 0x14013bbaa
cmp al, 0x3b
je 0x14013bb94
mov dword [rdi], 0
xor eax, eax
mov dword [rbx + 0x60], WSASetLastError
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi], 4
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi], 2
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov dword [rdi], 3
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14013bbe0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x70]
mov rbx, rcx
test byte [rax], 8
jne 0x14013bc01
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSAGetLastError
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, rcx
call fcn.14013bdf0
test eax, eax
je 0x14013bbf9
lea rdx, [rbx + 4]
mov rcx, rbx
call fcn.14013bdf0
test eax, eax
je 0x14013bbf9
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013bc3e
lea rdx, [rsp + 0x30]
mov r8d, 3
mov rcx, rbx
call rax
cdqe
jmp 0x14013bc56
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 3
je 0x14013bc7c
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x60], 0x66
call fcn.14013c860
mov qword [rbx + 0x18], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret
movzx edx, byte [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov eax, edx
mov ecx, edx
movzx edi, dl
shr eax, 4
shr dil, 3
and ecx, 7
and eax, 7
and dil, 1
inc ecx
inc eax
mov dword [rbx + 8], eax
movzx eax, byte [rsp + 0x31]
mov dword [rbx + 0xc], eax
movzx eax, byte [rsp + 0x32]
mov byte [rbx + 0x10], al
test dl, dl
jns 0x14013bdcf
mov eax, 1
xor edx, edx
shl eax, cl
mov ecx, eax
call fcn.14013c9a0
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14013bcf2
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x60], WSASetLastError
add rsp, 0x20
pop rbx
ret
mov byte [rax + 8], dil
mov rax, qword [rbx + 0x18]
xor esi, esi
cmp dword [rax], esi
jle 0x14013bdd7
xor edi, edi
nop word [rax + rax]
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013bd31
lea rdx, [rsp + 0x30]
mov r8d, 3
mov rcx, rbx
call rax
cdqe
jmp 0x14013bd49
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 3
jne 0x14013bda5
mov rax, qword [rbx + 0x18]
inc esi
add rdi, 3
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x30]
mov byte [rdi + rcx - 3], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x31]
mov byte [rcx + rdi - 2], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x32]
mov byte [rcx + rdi - 1], al
mov rax, qword [rbx + 0x18]
cmp esi, dword [rax]
jl 0x14013bd10
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call fcn.14013c860
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x60], 0x66
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x18], 0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14013bdf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013be1e
lea rdx, [rsp + 0x30]
mov r8d, 2
call rax
cdqe
jmp 0x14013be36
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 1]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 2
je 0x14013be50
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
shl edx, 8
mov eax, 1
or edx, ecx
mov dword [rdi], edx
add rsp, 0x20
pop rdi
ret

Function at 0x14013be80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ecx, 0x78
mov rbx, r8
mov rbp, rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14013bec4
test rbx, rbx
je 0x14013beb4
mov dword [rbx], WSASetLastError
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rsi
lea r8d, [rdx + 0x78]
mov qword [rsp + 0x48], r15
call sub.msvcrt.dll_memset
xor r15d, r15d
mov edx, 0x6160
lea ecx, [r15 + 1]
mov qword [rdi + 0x48], r15
mov qword [rdi + 0x18], r15
call qword [sym.imp.msvcrt.dll_calloc]
mov rsi, rax
test rax, rax
jne 0x14013bf1d
test rbx, rbx
je 0x14013bfc5
mov rcx, rdi
mov dword [rbx], WSASetLastError
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x14013c014
xor edx, edx
mov r8d, 0x6160
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rdi + 0x70], rsi
mov qword [rsi], 8
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x40], rbp
mov r9, qword [rdi + 0x70]
mov qword [rdi + 0x68], r14
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14013bf65
lea rdx, [rsp + 0x58]
mov r8d, 6
mov rcx, rdi
call rax
cdqe
jmp 0x14013bf7d
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 5]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 6
je 0x14013bf90
test rbx, rbx
je 0x14013bfbc
mov dword [rbx], 0x66
jmp 0x14013bfbc
lea rdx, [rsp + 0x58]
lea rcx, str.GIFVER
mov r8d, 3
mov byte [rsp + 0x5e], r15b
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
je 0x14013bfd2
test rbx, rbx
je 0x14013bfbc
mov dword [rbx], 0x67
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x14013c014
mov rcx, rdi
call fcn.14013bbe0
test eax, eax
jne 0x14013bfff
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
je 0x14013bffb
mov dword [rbx], 0x68
xor eax, eax
jmp 0x14013c014
mov dword [rdi + 0x60], r15d
cmp byte [rsp + 0x5b], 0x39
sete al
mov byte [rsi + 0x6158], al
mov rax, rdi
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14013c2f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x70]
mov rdi, rcx
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x14013c31b
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14013c332
mov r9, qword [rbx + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jb 0x14013c349
movzx ecx, byte [rsp + 0x30]
cmp ecx, 8
jle 0x14013c356
mov dword [rdi + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov dword [rbx + 8], ecx
mov byte [rbx + 0x50], 0
shl eax, cl
mov dword [rbx + 0x20], 0x1002
mov edx, 0x100
mov dword [rbx + 0xc], eax
inc eax
mov dword [rbx + 0x10], eax
inc eax
inc ecx
mov dword [rbx + 0x14], eax
mov eax, 1
mov dword [rbx + 0x18], ecx
shl eax, cl
lea rcx, [rbx + 0x2150]
mov dword [rbx + 0x1c], eax
xor eax, eax
mov qword [rbx + 0x28], rax
mov dword [rbx + 0x30], eax
movabs rax, 0x100200001002
nop word [rax + rax]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea rcx, [rcx + 0x40]
mov qword [rcx - 0x28], rax
mov qword [rcx - 0x20], rax
mov qword [rcx - 0x18], rax
mov qword [rcx - 0x10], rax
mov qword [rcx - 8], rax
dec rdx
jne 0x14013c3b0
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401469b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x140146abd
mov rdx, rcx
lea r8, [rsp + 0x50]
mov ecx, 2
call fcn.140162ea0
test eax, eax
jne 0x140146abd
lea r8, [rsp + 0x20]
lea ecx, [rax + 0x17]
mov rdx, rbx
call fcn.140162ea0
test eax, eax
jne 0x140146abd
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
xor r14d, r14d
or rdi, 0xffffffffffffffff
mov esi, r14d
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140146a12
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140162dd0
test rax, rax
je 0x140146a57
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call fcn.140162dd0
mov rsi, rax
test rax, rax
je 0x140146a57
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rax, [rdi + rbx]
mov edi, 0x1505
mov rbp, rax
sub rbp, rbx
cmp rbx, rax
cmova rbp, r14
mov r14, qword [rsp + 0x30]
test rbp, rbp
je 0x140146aa4
mov rsi, rbx
neg rsi
movzx ecx, byte [rbx]
call fcn.1401549e0
lea rbx, [rbx + 1]
imul rdi, rdi, 0x21
movsx rcx, al
lea rax, [rsi + rbx]
xor rdi, rcx
cmp rax, rbp
jb 0x140146a84
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140149820
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14014984a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, [0x1401bc248]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.msvcrt.dll_strpbrk]
test rax, rax
je 0x1401498ae
mov rcx, rbx
test r14, r14
je 0x140149898
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1401498e6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x1401498e6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1401499a9
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140149910
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14014999b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x14014999b
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140149940
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x140149954
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140149970
mov rcx, rdi
test r14, r14
je 0x140149992
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140149998
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400717fe]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140149b70
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x268
test cl, 2
je 0x140149bba
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140149bad
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x140149ba7
shr ax, 8
cmp al, 2
je 0x140149bba
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add rsp, 0x268
ret
call fcn.140166b30
test eax, eax
jne 0x140149cc1
lea rcx, [0x1401bc208]
call fcn.140149820
mov qword [0x141684d78], rax
test rax, rax
je 0x140149c04
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x141684d70]
test rax, rax
cmovne rcx, rax
mov qword [0x141684d70], rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x20], 0x9c
mov qword [rsp + 0x24], 6
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
mov r8b, 3
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
lea rcx, [rsp + 0x20]
mov edx, reloc.WS2_32.dll_gethostbyaddr
mov r8, rax
call qword [sym.imp.KERNEL32.DLL_VerifyVersionInfoA]
test eax, eax
je 0x140149cb8
lea rcx, [0x141686240]
mov byte [0x141686260], 1
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
xor eax, eax
add rsp, 0x268
ret
mov byte [0x141686260], 0
xor eax, eax
add rsp, 0x268
ret

Function at 0x140149fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14014a03e
mov dl, 1
call fcn.14014b700
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14014b700
mov eax, ebx
jmp 0x14014a082
cmp ebx, 2
ja 0x14014a080
mov r9, qword [rdi + 0x668]
lea rdx, [0x1401bc2e8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14014a0a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x150
cmp byte [rcx + 0xe99], 0
mov rdi, rcx
jne 0x14014a0d1
cmp qword [rcx + 0x678], 0
je 0x14014a1ed
mov r8, rdx
lea r9, [rsp + 0x170]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov qword [rsp + 0x148], rbx
call fcn.14015e3e0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14014a100
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14014a149
cmp byte [rdi + 0x150f], 0
jne 0x14014a149
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
mov byte [rcx - 1], al
test al, al
jne 0x14014a130
mov byte [rdi + 0x150f], 1
cmp byte [rdi + 0xe99], 0
je 0x14014a1e5
cmp qword [rdi + 0x718], 0
mov word [rsp + rbx + 0x30], 0xa
je 0x14014a1ac
mov dl, 1
mov rcx, rdi
call fcn.14014b700
mov rax, qword [rdi + 0x670]
lea r9, [rbx + 1]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.14014b700
mov rbx, qword [rsp + 0x148]
add rsp, 0x150
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x1401bc2e8]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
mov r8d, 1
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x148]
add rsp, 0x150
pop rdi
ret

Function at 0x14014a200
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14014a34f
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x850
cmp byte [rcx + 0xe99], 0
mov rdi, rcx
je 0x14014a347
mov r8, rdx
lea r9, [rax + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [rax - 0x10], rbx
call fcn.14015e3e0
or rbx, 0xffffffffffffffff
movsxd rcx, eax
cmp rcx, 0x801
jb 0x14014a2a6
mov rcx, qword [rsp + 0x868]
mov rax, rbx
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14014a265
cmp byte [rax + rcx - 1], 0xa
jne 0x14014a28d
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14014a2a1
lea r8, [0x1401bc308]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.14015e260
lea rax, [rsp + 0x30]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14014a2b0
cmp qword [rdi + 0x718], 0
je 0x14014a307
mov dl, 1
mov rcx, rdi
call fcn.14014b700
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.14014b700
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x1401bc2e8]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret