joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14009a744
cmp ecx, r10d
jge 0x14009a732
mov rcx, rbx
call fcn.140099f20
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14009a77e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14009a760
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14009a7a6
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14009a7d5
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14009a7bf
xor dl, dl
jmp 0x14009a7c8
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14009a7b6
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14009a782
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14009a83f
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14009a859
mov rcx, rbx
call fcn.14009a060
test eax, eax
je 0x14009a832
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400a3990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400a3b23
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a3a20
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x60]
call fcn.140065d40
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1400a3a53
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004a1a0
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
seta r9b
cmova rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x60]
test r9b, r9b
cmovne rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400644e0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400a3ac0
mov rax, qword [rax]
cmp r8, qword [rsp + 0x30]
jne 0x1400a3ad8
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a3ad8
mov sil, 1
jmp 0x1400a3adb
xor sil, sil
lea rcx, [rsp + 0x40]
call fcn.1400614c0
nop
lea rcx, [rsp + 0x20]
call fcn.1400614c0
test sil, sil
jne 0x1400a3b16
lea rcx, [rsp + 0x60]
call fcn.140061450
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400a3a00
jmp 0x1400a3b23
mov edi, dword [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.140061450
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14016b380
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c9980
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400c99dd
lea rbx, [0x140268ce0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400c99c4
cmp r10, 2
jb 0x1400c99c4
cmp byte [r9], r8b
jne 0x1400c99c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400c99a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400c9a1f
lea rbx, [0x140268ce0]
cmp r8b, 0x23
jne 0x1400c9a03
cmp byte [r9], r8b
jne 0x1400c9a03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400c99f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400c9b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400c9b7a
mov qword [r8], 0
lea rdx, [0x14022050c]
call fcn.1400c9a30
mov rbx, rax
test rax, rax
jne 0x1400c9b9a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400c9c71
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400c9c71
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400c9c71
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400c9c71
cmp rdi, 0xffffffffffffffff
je 0x1400c9c71
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400c9c0e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400c9c71
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400c9c5e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400c9c53
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400c9c7a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400c9c6c
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400c9c7c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400cbb30
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140268ce0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1402db5d8]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x3e7c], ebx
jne 0x1400cbbbd
mov dword [rax + 0x3e80], ebx
cmp dword [rax + 0x3ec8], ebx
jne 0x1400cbbcc
mov byte [rax + 0x3ecc], 1
cmp dword [rax + 0x3e64], ebx
jne 0x1400cbbe3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400ddc30
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400d7e80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1402db5d8]
mov edi, ecx
cmp byte [rbx + 0x41d5], 0
jne 0x1400d7ee1
cmp byte [rbx + 0x41d6], 0
jne 0x1400d7ee1
movsx r9d, word [rbx + 0x5ab6]
lea r8, [0x1402a6220]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1400c9900
test dil, 1
je 0x1400d8008
jmp 0x1400d7f6a
movss xmm1, dword [rbx + 0x3830]
lea r8, [0x1402a6220]
movsx r9d, word [rbx + 0x5ab6]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1402b3f04]
mulss xmm1, dword [0x1402b3eec]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd0c]
addss xmm1, dword [rbx + 0xd10]
mov qword [rbx + 0x3f50], rax
mov dword [rbx + 0x3f3c], 1
movss dword [rbx + 0x3f48], xmm0
movss dword [rbx + 0x3f4c], xmm1
movss xmm0, dword [rbx + 0x388c]
mulss xmm0, dword [0x1402b3e00]
or dword [rbx + 0x3f38], 0x41
movss dword [rbx + 0x3f98], xmm0
call fcn.1400c9900
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400d7fc0
lea r11, [0x140268ce0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400d7fa3
cmp byte [r8], r9b
jne 0x1400d7fa3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400d7f90
not ecx
call fcn.1400d0db0
test rax, rax
je 0x1400d8008
cmp byte [rax + 0x96], 0
je 0x1400d8008
mov byte [rax + 0x9d], 1
lea r8, [0x1402a6220]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5ab6]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5ab6]
call fcn.1400c9900
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400d3550
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016b380
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400dcaf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5b68], 0
lea rbx, [rcx + 0x5b70]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400dcb93
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x1400dcb46
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1400de8b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400ca150
mov eax, dword [rbx]
lea rcx, [0x1402db5d5]
mov r9, qword [rdi + 0x5b68]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x5b78]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400dcb9b
mov rcx, rbx
call fcn.1400ca150
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400eddf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x190]
mov r10, rcx
mov dword [rcx + 0x7c], edx
movsxd rax, edx
imul rbx, rax, 0x68
add rbx, qword [rcx + 0x18]
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x1400ede2c
addss xmm0, dword [rcx + 0x94]
lea rsi, [r9 + 0xe0]
movss dword [rsi], xmm0
movss xmm1, dword [rcx + 0xc8]
addss xmm1, dword [rcx + 0x84]
movss dword [r9 + 0xf8], xmm0
subss xmm0, dword [r9 + 0x10]
movss dword [r9 + 0xe4], xmm1
subss xmm0, dword [r9 + 0x120]
movss dword [r9 + 0x124], xmm0
mov eax, dword [rcx + 0x90]
mov dword [r9 + 0x118], eax
movsx eax, byte [rbx + 0x62]
mov dword [r9 + 0x134], eax
movss dword [r9 + 0x1fc], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x1f8], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x200], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x19c], eax
cmp byte [rbx + 0x5a], 0
jne 0x1400edec7
maxss xmm1, dword [rcx + 0x88]
movss dword [r9 + 0xe4], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r9 + 0x9b], al
cmp byte [rbx + 0x60], 0
je 0x1400edeed
mov rax, qword [0x1402db5d8]
xor ecx, ecx
mov dword [rax + 0x3ef8], ecx
mov dword [rax + 0x3f00], ecx
test dword [r10 + 4], 0x100000
je 0x1400edf02
mov r8d, 2
jmp 0x1400edf82
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x278]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x218], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x278]
mov rcx, qword [r10 + 0x1a8]
call fcn.1400c11e0
mov rdi, qword [0x1402db5d8]
cmp byte [rdi + 0x5b5c], 0
je 0x1400edfc7
cmp byte [rbx + 0x60], 0
jne 0x1400edfc7
xor r8d, r8d
lea rdx, [0x1402a6518]
mov rcx, rsi
call fcn.1400dcbf0
mov dword [rdi + 0x5b90], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ef470
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1402db5d8]
mov rdx, qword [rax + 0x4290]
cmp ecx, 0xffffffff
jne 0x1400ef48a
cmp dword [rdx + 0x7c], ecx
cmovne ecx, dword [rdx + 0x7c]
cmp ecx, dword [rdx + 0x74]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x1400ef507
mov r10d, dword [rdx]
lea r8, [0x1402a6509]
movzx eax, word [rdx + 0x80]
lea r11, [0x140268ce0]
not r10d
mov byte [rdx + 0x1f0], cl
mov ecx, r10d
mov byte [rdx + 0x1fe], 1
mov word [rdx + 0x82], ax
mov r9b, 0x23
cmp r9b, 0x23
jne 0x1400ef4e3
cmp byte [r8], r9b
jne 0x1400ef4e3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400ef4d0
not ecx
jmp fcn.1400d8090
ret
Function at 0x1400f3960
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x1402db73c]
mov edi, ecx
mov r8d, eax
inc eax
mov dword [0x1402db73c], eax
test r8d, r8d
je 0x1400f399a
xor eax, eax
jmp 0x1400f3a4c
test dl, dl
je 0x1400f39f2
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [fcn.14016c458], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1402d9120], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x14010f187.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [case.0x14010f187.1], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [0x1402d9110], rax
cmp byte [0x1402db618], 0
jne 0x1400f3a10
mov rax, qword [0x1402d9140]
mov byte [0x1402db618], 1
call qword [rax + 0x20]
test eax, eax
je 0x1400f3a41
test dil, 2
je 0x1400f3a65
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400f3a41
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400f3a3b
shr ax, 8
cmp al, 2
je 0x1400f3a65
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x1402db73c]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x1e0
pop rdi
ret
call fcn.14011cd90
test eax, eax
jne 0x1400f3a41
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x1f0], rbx
call fcn.1400fe070
mov qword [0x1402db740], rax
test rax, rax
je 0x1400f3a9e
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400f3af8
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExCancel
mov rcx, rbx
mov qword [0x1402db5f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x1402db600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402db5f8], rax
xor edx, edx
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14011cfa0
test al, al
mov dword [rsp + 0x20], 3
setne byte [0x1402dbf21]
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 4]
call fcn.14011cfa0
test al, al
lea rcx, [0x1402dbf18]
setne byte [0x1402dbf20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x1f0]
xor eax, eax
mov dword [0x1402db738], edi
jmp 0x1400f3a4c
Function at 0x1400fe070
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_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400fe09a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402a8ce8]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x1400fe0fa
mov rcx, rbx
test r14, r14
je 0x1400fe0e7
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1400fe131
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400fe131
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x1400fe1fa
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400fe160
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400fe1ec
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400fe1ec
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400fe193
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x1400fe1a5
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400fe1c0
mov rcx, rsi
test r14, r14
je 0x1400fe1e3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400fe1e9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14016c458]
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 0x140109c50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
test rcx, rcx
je 0x140109d61
lea rdx, [rsp + 0x20]
call fcn.140120fe0
test eax, eax
jg 0x140109d61
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x140109c90
test rdx, rdx
je 0x140109cec
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x140109cec
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x140109cbf
dec rcx
cmp rcx, rbx
jae 0x140109cb0
jmp 0x140109cec
cmp rcx, rbx
je 0x140109cec
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x140109cec
nop dword [rax]
cmp byte [rax], 0x2e
je 0x140109cdf
dec rax
cmp rax, rbx
jae 0x140109cd0
jmp 0x140109cec
lea r8, [rax + 1]
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x140109d27
lea rdx, [0x140269d90]
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x140109d10
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x30
pop rbx
ret

Function at 0x14010f360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x14010f3e4
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x14010f3e4
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x14010f3dc
test r8, r8
je 0x14010f3e4
cmp byte [rdx], 0
je 0x14010f3b1
lea r9, [0x140269d90]
nop
movzx eax, byte [r8]
test al, al
je 0x14010f3b1
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x14010f3d2
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x14010f390
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x14010f3e4
mov al, 1
ret
xor al, al
ret
Function at 0x1401156e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
mov rbx, rcx
je 0x1401157b6
cmp qword [rcx + 0x288], 0
je 0x1401157c7
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
test rax, rax
je 0x14011573f
cmp byte [rax + 0x1cb], 0
je 0x14011573f
lea rdi, [rcx + 0xe0]
mov sil, 1
jmp 0x14011575f
lea rdi, [rcx + 0xe0]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14011575c
cmp byte [rcx + 0x1cb], 0
je 0x14011575c
mov sil, 1
jmp 0x14011575f
xor sil, sil
mov rcx, qword [rdi]
test rcx, rcx
je 0x140115770
mov byte [rcx + 0x1cb], 1
jmp 0x14011577c
test rax, rax
je 0x14011577c
mov byte [rax + 0x1cb], 1
mov rax, qword [rbx + 0x200]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rbx + 0x288]
mov rax, qword [rdi]
mov rdi, qword [rsp + 0x48]
test rax, rax
jne 0x1401157aa
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1401157b1
mov byte [rax + 0x1cb], sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov ecx, edx
test edx, edx
je 0x1401157d7
sub ecx, 1
je 0x1401157d7
cmp ecx, 1
jne 0x1401157b6
mov r9, qword [rbx + 0x1f8]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1402699f0]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1f8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]