joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001a3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x218
xor edi, edi
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov rbp, rsp
lea rsi, [rbp + 0x208]
add rax, rcx
mov r9d, dword [rax + 0x20]
mov r13d, dword [rax + 0x1c]
mov r14d, dword [rax + 0x24]
lea r12, [rcx + r9]
nop dword [rax]
mov ebx, dword [r12 + rdi*4]
mov rax, rbp
add rbx, rcx
nop word [rax + rax]
mov byte [rax], 0
add rax, 1
cmp rax, rsi
jne 0x180001a8d
movsx r10w, byte [rbx]
test r10b, r10b
je 0x180001b4d
xor eax, eax
jmp 0x180001ab0
mov eax, r15d
lea r15d, [rax + 1]
movsx r9w, byte [rbx + r15]
mov r11, r15
test r9b, r9b
jne 0x180001aad
test r11d, r11d
je 0x180001ae7
lea r11, [rbp + r15*2]
add rax, rbx
jmp 0x180001ada
movsx r9w, byte [rax]
sub rax, 1
mov word [r11], r9w
sub r11, 2
jmp 0x180001ae4
cmp rbx, rax
jne 0x180001ad1
mov word [rsp], r10w
xor r11d, r11d
jmp 0x180001af4
mov r11d, r9d
lea r9d, [r11 + 1]
cmp word [rsp + r9*2], 0
mov rax, r9
jne 0x180001af1
test eax, eax
je 0x180001b85
lea r9, [rbp + 2]
mov ebx, dword [r8 + 0x128]
xor eax, eax
lea r11, [r9 + r11*2]
jmp 0x180001b25
movzx r10d, word [r9]
add r9, 2
imul eax, ebx
movzx r10d, r10w
add eax, r10d
cmp r11, r9
jne 0x180001b1d
lea r9, [rdi + 1]
cmp edx, eax
je 0x180001b5d
mov rdi, r9
jmp 0x180001a7d
lea r9, [rdi + 1]
xor eax, eax
mov word [rsp], ax
xor eax, eax
cmp edx, eax
jne 0x180001b3c
lea rax, [rcx + rdi*2]
movzx eax, word [rax + r14]
lea rax, [rcx + rax*4]
mov eax, dword [rax + r13]
add rax, rcx
add rsp, 0x218
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x180001b34
Function at 0x180001cdd
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
mov rdi, qword [rsp + 0xb0]
mov r12, rcx
mov qword [rsp + 0xa8], r9
lea rcx, [rsp + 0x38]
nop word [rax + rax]
movzx r9d, byte [rdi + rax + 0x7c]
mov byte [rcx + rax], r9b
add rax, 1
cmp rax, 4
jne 0x180001d0d
xor eax, eax
add rcx, 4
nop word [rax + rax]
movzx r9d, byte [rdi + rax + 0xb8]
mov byte [rcx + rax], r9b
add rax, 1
cmp rax, 4
jne 0x180001d2d
lea ebp, [rdx - 8]
mov rbx, r12
xor r15d, r15d
xor r13d, r13d
xor r11d, r11d
xor r14d, r14d
lea r9, [r12 + 8]
lea rsi, [rsp + 0x37]
sub r9, r12
mov eax, ebp
sub eax, r9d
je 0x180001e4d
sub eax, 1
xor ecx, ecx
jmp 0x180001d8d
lea rdx, [rcx + 1]
cmp rcx, rax
je 0x180001e4d
mov rcx, rdx
lea r10, [rbx + rcx]
mov edx, 1
movzx r9d, byte [rsi + rdx]
cmp byte [r10 + rdx], r9b
je 0x180001da7
cmp r9b, 0x3f
jne 0x180001d7d
add rdx, 1
cmp rdx, 9
jne 0x180001d96
lea rbx, [rbx + rcx + 1]
test rbx, rbx
je 0x180001e4d
mov eax, dword [rbx]
lea r9, [rbx + 8]
mov r10d, eax
mov edx, eax
movzx ecx, ah
shl r10d, 0x18
shr edx, 0x18
add edx, r10d
mov r10d, ecx
shr eax, 8
shl r10d, 0x10
and eax, 0xff00
add r10d, edx
add r10d, eax
mov eax, dword [rdi + 0x3c]
cmp dword [rbx + 8], eax
je 0x180001e9d
test r11, r11
je 0x180001d60
lea ecx, [r14 + r10]
mov eax, r14d
add rax, r11
cmp ecx, r13d
ja 0x180001f1d
lea r14d, [r10 - 1]
test r10d, r10d
je 0x180001e37
xor edx, edx
jmp 0x180001e24
mov rdx, r10
movzx r10d, byte [rbx + rdx + 8]
cmp r14, rdx
mov byte [rax + rdx], r10b
lea r10, [rdx + 1]
jne 0x180001e21
sub r9, r12
mov eax, ebp
mov r14d, ecx
sub eax, r9d
jne 0x180001d6e
nop dword [rax + rax]
xor eax, eax
test r11, r11
je 0x180001e89
mov edx, dword [r15 + 8]
mov r9d, dword [r15 + 4]
test dl, 3
je 0x180001e69
sub edx, 1
test dl, 3
jne 0x180001e61
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x180001e80
xor dword [r11 + rax + 0x10], r9d
add ecx, 4
cmp ecx, edx
movsxd rax, ecx
jb 0x180001e71
test r14d, r14d
mov qword [r8], r11
setne al
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r11, r11
jne 0x180001e01
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x28], r9
mov ecx, 0x40
mov qword [rsp + 0xa0], r8
mov dword [rsp + 0x24], r10d
lea edx, [rax + 0x10]
mov rax, qword [rsp + 0xa8]
mov r13, rdx
call qword [rax + 0xc8]
mov r10d, dword [rsp + 0x24]
mov r11, rax
xor eax, eax
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0xa0]
lea ecx, [r10 - 1]
test r10d, r10d
jne 0x180001f00
jmp 0x180001f12
mov rax, rdx
movzx edx, byte [rbx + rax + 8]
cmp rcx, rax
mov byte [r11 + rax], dl
lea rdx, [rax + 1]
jne 0x180001efd
add r14d, r10d
mov r15, r9
jmp 0x180001d60
sub r13d, r14d
mov edx, 0
lea r10d, [r13 - 1]
jne 0x180001f33
jmp 0x180001e54
mov rdx, rcx
movzx ecx, byte [r9 + rdx]
cmp r10, rdx
mov byte [rax + rdx], cl
lea rcx, [rdx + 1]
jne 0x180001f30
jmp 0x180001e54
Function at 0x180003400
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, dword [rsp + 0x30]
mov dword [rsp + 4], eax
mov dword [rsp], 0
jmp 0x18000342b
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180003468
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x18000a7c0]
mov edx, dword [rsp + 4]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp + 4], eax
jmp 0x180003423
mov eax, dword [rsp + 4]
not eax
add rsp, 0x18
ret

Function at 0x1800035e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movzx eax, byte [rsp + 0x30]
mov byte [rsp], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
dec ecx
mov dword [rsp + 0x28], ecx
test eax, eax
jbe 0x18000363c
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
movzx ecx, byte [rsp]
xor eax, ecx
cdqe
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x1800035ff
movzx eax, byte [rsp]
add rsp, 0x18
ret

Function at 0x180003a40
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18000d380]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180003a71
xor eax, eax
jmp 0x180003ac2
mov r8d, 5
lea rdx, [0x18000d080]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180003a9a
xor eax, eax
jmp 0x180003ac2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180003ac0
mov eax, dword [rsp + 0x3c]
and eax, 4
test eax, eax
je 0x180003ac0
mov eax, 1
jmp 0x180003ac2
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180008980
add rsp, 0x68
ret
Function at 0x180004fba
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
mov ebx, ecx
add r11, 0x10
nop dword [rax + rax]
mov r11, qword [r11]
mov rcx, qword [r11 + 0x60]
test rcx, rcx
je 0x180004fda
test ebx, ebx
je 0x180004ff3
call fcn.180004f4a
cmp eax, ebx
jne 0x180004fda
mov rax, qword [r11 + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x180006b10
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x3c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180006b9d
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x3c], eax
jne 0x180006b9d
mov dword [rsp + 0x38], 0
jmp 0x180006b5c
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jge 0x180006b9d
movsxd rax, dword [rsp + 0x38]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax*8]
call sub.libglib_2.0_0.dll_g_utf16_to_utf8
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
mov qword [rdx + rcx*8], rax
jmp 0x180006b52
add rsp, 0x48
ret

Function at 0x1800081b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x34]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x20], 0
lea rcx, str.POSIXLY_CORRECT
call sub.MSVCR100.dll_getenv
test rax, rax
je 0x18000820e
mov dword [rsp + 0x20], 1
jmp 0x180008216
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x60]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 0x2d
jne 0x180008252
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x28], 2
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x18000829f
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 0x2b
jne 0x18000827a
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x18000829f
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x2c], 0
je 0x180008293
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x28], 0
jmp 0x18000829f
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x28], 1
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x140002cd0
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 0x140002cf8
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 0x140002d1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002d20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002d79
test ecx, ecx
jle 0x140002d59
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 0x140002d79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002d79
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 0x140002da0
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 0x140002dc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002dd8
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 0x140002df4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002df6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002e32
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 0x140002ece
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002e6d
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 0x140002eae
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 0x140002ece
cmp rbx, rax
ja 0x140002e80
test rbx, rbx
je 0x140002ece
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 0x140003300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14007c700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000332d
xor eax, eax
jmp 0x140003499
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003367
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003367
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 0x140003499
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000348c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400033aa
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 0x1400033d5
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 0x140003491
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 0x140003444
sub eax, 1
je 0x140003444
cmp eax, 2
jne 0x14000348c
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 0x140003491
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003472
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 0x14000348c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003491
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140060810
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14007c700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003bb3
cmp byte [rcx + 0x71], 0
je 0x140003bb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140003baf
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 0x140003b74
sub eax, 1
je 0x140003b78
cmp eax, 2
jne 0x140003baf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140060810
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003ba6
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 0x140003baf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003b5c
xor al, al
jmp 0x140003b5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140060810
add rsp, 0x60
pop rbx
ret
Function at 0x140005430
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 0x140005491
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 0x140005450
mov ecx, dword [r9]
jmp 0x140005578
cmp ecx, 0x4e0
jb 0x140005578
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400054b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140005500
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 0x14001c020
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 + 0xaaf], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14001c0e9
cmp qword [rcx + 0x260], 0
je 0x14001c09e
mov qword [rsp + 0x40], rbx
call fcn.14000a0a0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14000a410
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.14000a410
mov rbx, qword [rsp + 0x40]
jmp 0x14001c0e9
mov ecx, esi
test edx, edx
je 0x14001c0ae
sub ecx, 1
je 0x14001c0ae
cmp ecx, 1
jne 0x14001c0e9
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140067338]
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 + 0x1d0]
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 0x14001e340
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 0x14001e7d0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14007c700]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14001e836
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001e819
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14001e813
shr ax, 8
cmp al, 2
je 0x14001e836
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140060810
add rsp, 0x1e8
ret
call fcn.140052470
test eax, eax
jne 0x14001ea35
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 0x14001e876
mov qword [0x14007cad8], rsi
jmp 0x14001e9f2
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, [0x1400676b0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14001e8da
mov rcx, rbx
test rbp, rbp
je 0x14001e8cc
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14001e9ba
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14001e9ba
test rbp, rbp
je 0x14001e909
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001e909
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14001e9ba
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 0x14001e9b2
lea ecx, [rax + 1]
add rcx, 0xc
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14001e9a9
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001e9a9
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x14001e955
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14001e966
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14001e980
mov rcx, rdi
test rbp, rbp
je 0x14001e9a0
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14001e9a6
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400618fa]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14007cad8], rsi
test rsi, rsi
je 0x14001e9f2
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001e9f2
mov qword [0x14007cad0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140052020
test al, al
lea rcx, [0x14007e4e8]
setne byte [0x14007e4e0]
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.140060810
add rsp, 0x1e8
ret