joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400930f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400931c3
cmp byte [rcx + 0x71], 0
je 0x1400931c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400931bf
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140093184
sub eax, 1
je 0x140093188
cmp eax, 2
jne 0x1400931bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400931b6
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 0x1400931bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14009316c
xor al, al
jmp 0x14009316c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x60
pop rbx
ret

Function at 0x1400933e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400934b3
cmp byte [rcx + 0x71], 0
je 0x1400934b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400934af
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 0x140093474
sub eax, 1
je 0x140093478
cmp eax, 2
jne 0x1400934af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400934a6
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 0x1400934af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14009345c
xor al, al
jmp 0x14009345c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x60
pop rbx
ret
Function at 0x14009c200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, eax
and r10d, 7
je 0x14009c231
cmp eax, r10d
jge 0x14009c21f
call fcn.14009ba00
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x10]
xor r8d, r8d
mov r9d, eax
test eax, eax
jle 0x14009c272
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, cl
nop word [rax + rax]
shr ecx, 8
lea eax, [r9 - 8]
mov byte [rdx], r10b
lea rdx, [rdx + 1]
inc r8d
mov dword [rbx + 0x14], ecx
mov r9d, eax
movzx r10d, cl
test eax, eax
jg 0x14009c250
mov dword [rbx + 0x10], eax
jns 0x14009c298
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 0x14009c2c7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14009c2b1
xor dl, dl
jmp 0x14009c2ba
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14009c2a5
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 0x14009c274
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14009c331
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 0x14009c34b
mov rcx, rbx
call fcn.14009bb40
test eax, eax
je 0x14009c324
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 0x1400a9080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rsi, rcx
mov ecx, Ordinal_41
call fcn.14016e120
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rdx, rbx
mov rcx, rax
call fcn.140061630
mov rax, qword [rbx + 0x20]
mov qword [rdi + 0x20], rax
mov qword [rsp + 0x30], rdi
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x1400a98e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x1400a911b
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400cbf20
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 0x1400cbf7d
lea rbx, [0x14026adc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400cbf64
cmp r10, 2
jb 0x1400cbf64
cmp byte [r9], r8b
jne 0x1400cbf64
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 0x1400cbf40
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400cbfbf
lea rbx, [0x14026adc0]
cmp r8b, 0x23
jne 0x1400cbfa3
cmp byte [r9], r8b
jne 0x1400cbfa3
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 0x1400cbf90
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400cc100
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400cc11a
mov qword [r8], 0
lea rdx, [0x1402225ec]
call fcn.1400cbfd0
mov rbx, rax
test rax, rax
jne 0x1400cc13a
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 0x1400cc213
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400cc213
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400cc213
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 0x1400cc213
cmp rdi, 0xffffffffffffffff
je 0x1400cc213
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400cc1b0
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 0x1400cc213
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 0x1400cc200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402de850]
test rax, rax
je 0x1400cc1f5
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400cc21c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400cc20e
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400cc21e
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 0x1400ce0d0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x14026adc0]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov rax, qword [0x1402de850]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
shr ebx, 8
xor rcx, r11
xor ebx, dword [r8 + rcx*4]
not ebx
cmp dword [rax + 0x3e7c], ebx
jne 0x1400ce15c
mov dword [rax + 0x3e80], ebx
cmp dword [rax + 0x3ec8], ebx
jne 0x1400ce16b
mov byte [rax + 0x3ecc], 1
cmp dword [rax + 0x3e64], ebx
jne 0x1400ce182
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.1400e0150
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400da410
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1402de850]
mov edi, ecx
cmp byte [rbx + 0x41d5], 0
jne 0x1400da471
cmp byte [rbx + 0x41d6], 0
jne 0x1400da471
movsx r9d, word [rbx + 0x5ab6]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1400cbea0
test dil, 1
je 0x1400da598
jmp 0x1400da4fc
movss xmm1, dword [rbx + 0x3830]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5ab6]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1402b6344]
mov edx, reloc.WS2_32.dll_recv
mulss xmm1, dword [0x1402b632c]
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 [0x1402b6240]
or dword [rbx + 0x3f38], 0x41
movss dword [rbx + 0x3f98], xmm0
call fcn.1400cbea0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400da550
lea r11, [0x14026adc0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400da533
cmp byte [r8], r9b
jne 0x1400da533
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 0x1400da520
not ecx
call fcn.1400d3340
test rax, rax
je 0x1400da598
cmp byte [rax + 0x96], 0
je 0x1400da598
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
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.1400cbea0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400d5a50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400df010
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 0x1400df0b3
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x1400df066
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.1400e0dc0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400cc6f0
mov eax, dword [rbx]
lea rcx, [0x1402de845]
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 0x1400df0bb
mov rcx, rbx
call fcn.1400cc6f0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f0240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
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 0x1400f027c
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 0x1400f0317
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 0x1400f033d
mov rax, qword [0x1402de850]
xor ecx, ecx
mov dword [rax + 0x3ef8], ecx
mov dword [rax + 0x3f00], ecx
test dword [r10 + 4], 0x100000
je 0x1400f034f
mov r8d, 2
jmp 0x1400f03c5
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x278]
movss xmm1, dword [rbx + 0x20]
movss xmm2, dword [rbx + 0x24]
movss xmm3, dword [rbx + 0x28]
movss xmm4, dword [rbx + 0x2c]
movups xmmword [r9 + 0x218], xmm0
movss dword [rax + 0x88], xmm1
movss dword [rax + 0x8c], xmm2
movss dword [rax + 0x90], xmm3
movss dword [rax + 0x94], xmm4
mov rax, qword [r9 + 0x278]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movss dword [rcx + rdx*8 - 0x10], xmm1
movss dword [rcx + rdx*8 - 0xc], xmm2
movss dword [rcx + rdx*8 - 8], xmm3
movss dword [rcx + rdx*8 - 4], xmm4
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x278]
mov rcx, qword [r10 + 0x1a8]
call fcn.1400c3d00
mov rdi, qword [0x1402de850]
cmp byte [rdi + 0x5b5c], 0
je 0x1400f040a
cmp byte [rbx + 0x60], 0
jne 0x1400f040a
xor r8d, r8d
lea rdx, [0x1402a8974]
mov rcx, rsi
call fcn.1400df110
mov dword [rdi + 0x5b90], 0x7f7fffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f1880
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1402de850]
mov rdx, qword [rax + 0x4290]
cmp ecx, 0xffffffff
jne 0x1400f189a
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 0x1400f1917
mov r10d, dword [rdx]
lea r8, [0x1402a8999]
movzx eax, word [rdx + 0x80]
lea r11, [0x14026adc0]
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 0x1400f18f3
cmp byte [r8], r9b
jne 0x1400f18f3
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 0x1400f18e0
not ecx
jmp fcn.1400da620
ret
Function at 0x1400f9040
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x1402de964]
mov edi, ecx
mov r8d, eax
inc eax
mov dword [0x1402de964], eax
test r8d, r8d
je 0x1400f907a
xor eax, eax
jmp 0x1400f912c
test dl, dl
je 0x1400f90d2
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.14016f1de], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [case.0x14015e1a2.2], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x140114cc7.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [case.0x14015e1a2.3], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [case.0x140114cc7.1], rax
cmp byte [0x1402de969], 0
jne 0x1400f90f0
mov rax, qword [case.0x14015e1a2.32]
mov byte [0x1402de969], 1
call qword [rax + 0x20]
test eax, eax
je 0x1400f9121
test dil, 2
je 0x1400f9145
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400f9121
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400f911b
shr ax, 8
cmp al, 2
je 0x1400f9145
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x1402de964]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x1e0
pop rdi
ret
call fcn.14012a5d0
test eax, eax
jne 0x1400f9121
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x1f0], rbx
call fcn.140104030
mov qword [0x1402de970], rax
test rax, rax
je 0x1400f917e
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 0x1400f91d8
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExCancel
mov rcx, rbx
mov qword [0x1402de860], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x1402de870], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402de868], rax
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
mov ecx, 6
call fcn.14012a7e0
test al, al
mov dword [rsp + 0x20], 3
mov edx, 2
mov ecx, 6
setne byte [0x1402df141]
xor r8d, r8d
call fcn.14012a7e0
test al, al
lea rcx, [0x1402df138]
setne byte [0x1402df140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x1f0]
xor eax, eax
mov dword [0x1402de960], edi
jmp 0x1400f912c
Function at 0x140101bd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140101cbb
xor r14d, r14d
nop dword [rax + rax]
mov rax, qword [case.0x14015e1a2.32]
lea rdx, [rsp + 0x20]
mov edi, 4
mov r8d, 4
cmp rsi, rdi
mov rcx, rbp
cmovb rdi, rsi
call qword [rax + 0x50]
mov edx, eax
cmp eax, 4
jne 0x140101c66
cmp byte [0x1402de968], r14b
jne 0x140101c70
mov r9d, 2
mov dword [rsp + 0x20], r14d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x140101cbb
mov eax, dword [rsp + 0x20]
jmp 0x140101c8f
imul eax, dword [0x1402de96c], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1402de96c], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rdi, rdi
je 0x140101cb2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140101ca0
mov dword [rsp + 0x20], eax
test rsi, rsi
jne 0x140101c10
mov eax, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140101ce0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
sub rsi, 1
je 0x140101dbe
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop dword [rax]
mov rax, qword [case.0x14015e1a2.32]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, rbx
call qword [rax + 0x50]
cmp eax, 4
jne 0x140101d67
cmp byte [0x1402de968], bpl
jne 0x140101d71
mov r9d, 2
mov dword [rsp + 0x20], ebp
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140101dc3
mov ecx, dword [rsp + 0x20]
jmp 0x140101d8e
imul ecx, dword [0x1402de96c], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1402de96c], ecx
ror ecx, 0x10
mov dword [rsp + 0x20], ecx
cmp ecx, 0xfffffffc
jae 0x140101d20
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x140101d20
mov byte [rdi], 0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140101df0
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 0x140101ec6
cmp qword [rcx + 0x288], 0
je 0x140101ed7
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
test rax, rax
je 0x140101e4f
cmp byte [rax + 0x1cb], 0
je 0x140101e4f
lea rdi, [rcx + 0xe0]
mov sil, 1
jmp 0x140101e6f
lea rdi, [rcx + 0xe0]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140101e6c
cmp byte [rcx + 0x1cb], 0
je 0x140101e6c
mov sil, 1
jmp 0x140101e6f
xor sil, sil
mov rcx, qword [rdi]
test rcx, rcx
je 0x140101e80
mov byte [rcx + 0x1cb], 1
jmp 0x140101e8c
test rax, rax
je 0x140101e8c
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 0x140101eba
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x140101ec1
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 0x140101ee7
sub ecx, 1
je 0x140101ee7
cmp ecx, 1
jne 0x140101ec6
mov r9, qword [rbx + 0x1f8]
mov r8d, 1
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14026b880]
add rcx, rax
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]