joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8730
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp byte [0x140250db9], 0
je 0x1400a8968
mov qword [rsp + 0x68], rbx
mov ecx, reloc.WS2_32.dll_recvfrom
mov qword [rsp + 0x50], rdi
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
movzx edi, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rcx, qword [0x14024a2d8]
movzx ebx, ax
movss xmm6, dword [0x140209788]
call fcn.14006b6d0
lea rdx, [rax + 0x90]
call fcn.1400f55d0
movss xmm7, dword [0x140209688]
movaps xmm8, xmm0
test di, di
jne 0x1400a87eb
test bx, bx
jne 0x1400a87eb
ucomiss xmm8, xmm7
jp 0x1400a87ba
je 0x1400a87eb
mov rax, qword [0x140251338]
mov rcx, qword [0x14024a2d8]
cmp byte [rax], 0
je 0x1400a87d7
call fcn.14006b6d0
xorps xmm2, xmm2
jmp 0x1400a87df
call fcn.14006b6d0
movaps xmm2, xmm7
lea rdx, [rax + 0x90]
call fcn.1400f5680
mov rcx, qword [0x14024a2d8]
call fcn.14006b6d0
lea rdx, [rax + 0x14b]
call fcn.1400f5300
test al, al
jne 0x1400a8833
ucomiss xmm8, xmm7
jp 0x1400a8813
je 0x1400a894e
mov rcx, qword [0x14024a2d8]
call fcn.14006b6d0
movaps xmm2, xmm7
lea rdx, [rax + 0x90]
call fcn.1400f5680
jmp 0x1400a894e
mov qword [rsp + 0x70], rsi
test di, di
je 0x1400a886c
mov rax, qword [0x1402512e0]
cmp byte [rax], 0
je 0x1400a8851
movss xmm6, dword [0x140209864]
mov rcx, qword [0x14024a2d8]
call fcn.14006b6d0
movaps xmm2, xmm6
lea rdx, [rax + 0x90]
call fcn.1400f5680
test bx, bx
je 0x1400a88a7
mov rax, qword [0x1402512e0]
cmp byte [rax], 0
je 0x1400a8885
movss xmm6, dword [0x1402097e4]
mov rcx, qword [0x14024a2d8]
call fcn.14006b6d0
xorps xmm6, xmmword [0x140209c30]
movaps xmm2, xmm6
lea rdx, [rax + 0x90]
call fcn.1400f5680
lea rcx, [rsp + 0x60]
call fcn.1400550d0
mov rbx, qword [rsp + 0x60]
movabs rax, 0x7ffffffffd050f7e
cmp rbx, rax
jg 0x1400a88ce
add rbx, 0x2faf080
jmp 0x1400a88d8
movabs rbx, 0x7fffffffffffffff
movabs rdi, 0x4e94914effff
movabs rsi, 0x431bde82d7b634db
nop dword [rax]
lea rcx, [rsp + 0x60]
call fcn.1400550d0
mov rax, qword [rsp + 0x60]
cmp rbx, rax
je 0x1400a8949
jl 0x1400a8949
mov rcx, rbx
sub rcx, rax
cmp rcx, rdi
jg 0x1400a893d
mov rax, rsi
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x1400a8934
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x1400a88f0
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x1400a88f0
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
movaps xmm8, xmmword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x1400b1ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movzx eax, byte [rdx]
lea rsi, [rdx + 0x68]
mov byte [rcx], al
lea r14, [rcx + 0x68]
mov rax, qword [rdx + 8]
mov rdi, rdx
mov qword [rcx + 8], rax
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movsd xmm0, qword [rdx + 0x18]
movsd qword [rcx + 0x18], xmm0
mov eax, dword [rdx + 0x20]
mov dword [rcx + 0x20], eax
movzx eax, byte [rdx + 0x24]
mov byte [rcx + 0x24], al
movsd xmm0, qword [rdx + 0x28]
movsd qword [rcx + 0x28], xmm0
mov eax, dword [rdx + 0x30]
mov dword [rcx + 0x30], eax
movsd xmm0, qword [rdx + 0x34]
movsd qword [rcx + 0x34], xmm0
mov eax, dword [rdx + 0x3c]
mov dword [rcx + 0x3c], eax
movsd xmm0, qword [rdx + 0x40]
movsd qword [rcx + 0x40], xmm0
mov eax, dword [rdx + 0x48]
mov dword [rcx + 0x48], eax
movsd xmm0, qword [rdx + 0x4c]
movsd qword [rcx + 0x4c], xmm0
mov eax, dword [rdx + 0x54]
mov dword [rcx + 0x54], eax
movzx eax, byte [rdx + 0x58]
mov byte [rcx + 0x58], al
mov eax, dword [rdx + 0x5c]
mov dword [rcx + 0x5c], eax
movzx eax, byte [rdx + 0x60]
mov byte [rcx + 0x60], al
movzx eax, byte [rdx + 0x61]
mov byte [rcx + 0x61], al
cmp r14, rsi
je 0x1400b1f9a
mov rcx, r14
call fcn.1400f0670
mov rax, qword [rsi]
mov qword [r14], rax
mov rax, qword [rsi + 8]
mov qword [r14 + 8], rax
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
movzx eax, byte [rdi + 0x80]
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 0x80], al
movzx eax, byte [rdi + 0x81]
mov byte [rbx + 0x81], al
mov eax, dword [rdi + 0x84]
mov dword [rbx + 0x84], eax
mov eax, dword [rdi + 0x88]
mov dword [rbx + 0x88], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x90], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x1400ecd80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400ecda8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400ecdce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400ecdd0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400ece29
test ecx, ecx
jle 0x1400ece09
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400ece29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400ece29
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400ece50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400ece72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400ece88
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ecea4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400ecea6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400ecee2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400ecf7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400ecf1d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400ecf5e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400ecf7e
cmp rbx, rax
ja 0x1400ecf30
test rbx, rbx
je 0x1400ecf7e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400ed3b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402325c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400ed3dd
xor eax, eax
jmp 0x1400ed549
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ed417
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400ed417
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400ed549
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400ed53c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400ed45a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400ed485
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ed541
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400ed4f4
sub eax, 1
je 0x1400ed4f4
cmp eax, 2
jne 0x1400ed53c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ed541
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400ed522
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400ed53c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ed541
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401b5590
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400f0730
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402325c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400f0803
cmp byte [rcx + 0x71], 0
je 0x1400f0803
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400f07ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400f07c4
sub eax, 1
je 0x1400f07c8
cmp eax, 2
jne 0x1400f07ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401b5590
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400f07f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400f07ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400f07ac
xor al, al
jmp 0x1400f07ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401b5590
add rsp, 0x60
pop rbx
ret

Function at 0x1400f4c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402325c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x20], rdx
mov rbx, rcx
mov qword [rsp + 0x28], r8
lea rdx, [rsp + 0x38]
mov r8d, 0x100
mov qword [rsp + 0x30], 0
xor eax, eax
nop
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, r8d
jl 0x1400f4cb0
xor r11d, r11d
lea r10, [rsp + 0x38]
xor r9d, r9d
nop dword [rax + rax]
movzx edx, byte [r10]
lea rcx, [rsp + 0x38]
movzx eax, dl
lea r10, [r10 + 1]
add al, byte [rsp + r9 + 0x20]
add al, r11b
movzx r11d, al
movzx eax, byte [rcx + r11]
mov byte [r10 - 1], al
lea rax, [r9 + 1]
xor r9d, r9d
mov byte [rcx + r11], dl
cmp rax, 8
cmovl r9, rax
sub r8, 1
jne 0x1400f4cd0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140062fe0
mov rax, qword [rsp + 0x28]
xor rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401b5590
add rsp, 0x150
pop rbx
ret
Function at 0x140106a30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140106a91
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140106a50
mov ecx, dword [r9]
jmp 0x140106b7b
cmp ecx, 0x4e0
jb 0x140106b7b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140106ab0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140106b00
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1401471b0
Capabilities:
Encrypt data using rc4 prga

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 rax, qword [rcx + 0x28]
xor esi, esi
sub rax, 0x34
mov qword [rcx + 0x88], rsi
mov qword [rcx + 0x30], rax
mov r14d, edx
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov word [rcx + 0x7a], si
mov r10d, esi
mov dword [rcx + 0x44], esi
mov ebp, esi
mov qword [rcx + 0x80], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x78], si
cmp si, word [rcx + 0xc8]
jge 0x140147308
mov edi, esi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xe0]
mov r9d, r14d
mov dword [rbx + 0x98], esi
movzx edx, r10w
mov qword [rbx + 0x90], rsi
mov rcx, rbx
movzx r8d, word [rax + rdi]
call fcn.140147600
test al, al
jne 0x14014733a
mov rax, qword [rbx + 0xe0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x6c]
movzx r10d, word [rax + rdi]
inc r10d
lea eax, [r8 - 1]
test edx, eax
jne 0x14014729d
cmp edx, dword [rbx + 0x70]
jl 0x14014729d
cmp edx, dword [rbx + 0x74]
jg 0x14014729d
mov r9, qword [rbx + 0x90]
test r9, r9
je 0x14014729d
mov rax, qword [rbx + 0x80]
movzx ecx, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x14014729d
add qword [rbx + 0x38], 0xfffffffffffffffc
mov r9, qword [rbx + 0x80]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x38], rax
je 0x1401472c3
test byte [r9 + 0x18], 8
je 0x1401472c3
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1401472d4
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.140148050
test al, al
jne 0x14014733a
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x1401472f3
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xc8]
inc ebp
add rdi, 2
cmp ebp, eax
jl 0x140147220
mov rcx, rbx
call fcn.140148100
test al, al
jne 0x14014733a
mov rcx, qword [rbx + 0x30]
cmp qword [rbx + 0x38], rcx
setae al
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 al, 1
jmp 0x14014731f
Function at 0x140172280
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa97], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140172349
cmp qword [rcx + 0x250], 0
je 0x1401722fe
mov qword [rsp + 0x40], rbx
call fcn.1401605b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140160930
mov rcx, qword [rdi + 0x1c8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x250]
movzx edx, bl
mov rcx, rdi
call fcn.140160930
mov rbx, qword [rsp + 0x40]
jmp 0x140172349
mov ecx, esi
test edx, edx
je 0x14017230e
sub ecx, 1
je 0x14017230e
cmp ecx, 1
jne 0x140172349
mov r9, qword [rdi + 0x1c0]
lea rax, [0x1401e3ea0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1c0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140174040
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x140174330
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14017435a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401e40e8]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x1401743bd
mov rcx, rbx
test r14, r14
je 0x1401743a7
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 0x1401743f5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401743f5
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
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1401744b8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140174420
lea ecx, [rax + 1]
add rcx, rdx
call qword [str.Nhe_]
mov rdi, rax
test rax, rax
je 0x1401744aa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401744aa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140174450
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140174464
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140174480
mov rcx, rdi
test r14, r14
je 0x1401744a1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1401744a7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [str.Bhe_]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140174520
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1402325c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140174586
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140174569
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140174563
shr ax, 8
cmp al, 2
je 0x140174586
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401b5590
add rsp, 0x1e8
ret
call fcn.1401a74e0
test eax, eax
jne 0x140174790
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1401745c6
mov qword [0x1402488c8], rsi
jmp 0x14017474d
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
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, [0x1401e40e8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14017462a
mov rcx, rbx
test rbp, rbp
je 0x14017461c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14017470c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14017470c
test rbp, rbp
je 0x140174659
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140174659
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14017470c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140174704
lea ecx, [rax + 1]
add rcx, 0xc
call qword [str.Nhe_]
mov rdi, rax
test rax, rax
je 0x1401746fb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401746fb
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x1401746a5
mov edx, 0x5c
mov word [rax + rdi], dx
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], sil
jne 0x1401746c0
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401746d2
mov rcx, rdi
test rbp, rbp
je 0x1401746f2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1401746f8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [str.Bhe_]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1402488c8], rsi
test rsi, rsi
je 0x14017474d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402488c0]
test rax, rax
cmovne rcx, rax
mov qword [0x1402488c0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401a7090
test al, al
lea rcx, [0x140257398]
setne byte [0x140257390]
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.1401b5590
add rsp, 0x1e8
ret