joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a9b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
call fcn.14009ba60
mov qword [0x1403e4db8], rax
test rax, rax
je 0x14009ab6c
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14009aa67
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14009aa67
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x5d0ee6ba
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14009aa62
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14009aa40
cmp r8d, 0xbf24df27
je 0x14009aa6c
test r9d, r9d
jne 0x14009aa20
mov rax, qword [rax]
jmp 0x14009a9f0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x1403e4dc8]
mov rcx, qword [0x1403e4db8]
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14009ab27
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14009ab27
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xc211c450
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14009ab22
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x14009ab00
cmp r8d, 0x2c020cad
je 0x14009ab2c
test r9d, r9d
jne 0x14009aae0
mov rax, qword [rax]
jmp 0x14009aab0
mov ecx, dword [rbx + 0x24]
lea r8, [0x1403e4dc8]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 2
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
mov rcx, qword [0x1403e4db8]
add rax, r10
call rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov byte [0x1403e4cb4], 1
add rsp, 0x28
ret
Function at 0x14009ba60
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov dword [rsp + 0x40], ecx
movabs rdx, 0xc0b1f81773101525
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rcx, 0xfaf44eea9038e10e
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14009bb10
lea rcx, [rsp + 0x48]
cmp rdx, 7
ja 0x14009bb42
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x48], di
jmp 0x14009bb4c
lea r9, [rsp + 0x30]
call fcn.14009c750
mov qword [rsp + 0x68], rdi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14009bbe6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14009bbe6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0xb57981f1
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14009bbe1
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x14009bbc0
cmp r8d, 0x565bf5e9
je 0x14009bbeb
test r9d, r9d
jne 0x14009bba0
mov rax, qword [rax]
jmp 0x14009bb70
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, [rsp + 0x40]
lea rcx, [0x14009b730]
call r8
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140031cd0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401425d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x14009d670
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14009d6ad
mov r8, qword [rdx]
mov rdx, r8
add r8, qword [rdi + 0x10]
jmp 0x14009d6b4
mov r8, qword [rdx + 0x10]
add r8, rdi
lea rcx, [rsp + 0x470]
call fcn.14009d3e0
nop
mov edx, dword [rbx + 8]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009d738
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14009d72e
lea rdx, [rsp + 0x470]
cmp qword [rsp + 0x488], 7
cmova rdx, qword [rsp + 0x470]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14009d771
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14009d6f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x470]
call fcn.140031cd0
nop
mov rcx, rdi
call fcn.1400055e0
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401425d0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14009d7d0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14009da30
lea rdx, [0x14009dc00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x470]
call fcn.140031cd0
nop
mov rcx, rdi
call fcn.1400055e0
mov rax, rbx
jmp 0x14009d750
Function at 0x1400aa040
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
xor eax, eax
cmp byte [0x1403e4428], al
jne 0x1400aa0f9
movdqa xmm0, xmmword [0x14014b750]
movdqa xmm1, xmmword [0x14014b4f0]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x14014b690]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x14014b830]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x14014b860]
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x90], 0x100ecf0
nop dword [rax]
lea ecx, [rax + 0x4e]
xor byte [rsp + rax + 0x40], cl
lea ecx, [rax + 0x4f]
xor byte [rsp + rax + 0x41], cl
add rax, 2
cmp rax, 0x52
jb 0x1400aa0b0
lea r9, [rsp + 0xb0]
mov byte [rsp + 0x93], 0
lea r8, [rsp + 0x92]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140006de0
lea rcx, [rsp + 0x20]
call fcn.1400af4f0
add rsp, 0xa8
ret
Function at 0x1400b0350
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x1400
call fcn.140142ff0
sub rsp, rax
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 0x13f8], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov dword [rsp + 0x24], ebx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ebp, 1
mov ecx, ebp
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1400b03b0
mov dword [rsp + 0x50], 0x270
lea rcx, [rsp + 0x50]
call fcn.14003ddf0
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 3
ja 0x1400b0408
nop
lea rcx, [rsp + 0x50]
call fcn.14003ddf0
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 4
jb 0x1400b03f0
shr rax, 0x20
lea esi, [rax - 0x7ffffffb]
mov r14d, 0x80000000
xor esi, r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], bl
mov dword [rsp + 0x24], ebp
jbe 0x1400b053d
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14003ddf0
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 5
ja 0x1400b0478
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.14003ddf0
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 6
jb 0x1400b0460
shr rax, 0x20
lea r8d, [rax + r14]
xor r8d, r14d
lea r10, [rsp + 0x13f5]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x1400b0490
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x13f5]
mov rdx, r10
lea rcx, [rsp + 0x28]
call fcn.140006de0
or ebp, 6
mov dword [rsp + 0x24], ebp
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140005640
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400b0533
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b052e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b0568
call fcn.140142874
inc ebx
cmp ebx, esi
jl 0x1400b0440
mov rax, rdi
mov rcx, qword [rsp + 0x13f8]
xor rcx, rsp
call fcn.1401425d0
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400b05f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rcx, str.ALLUSERSPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400b0650
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1400b0637
mov rdx, rax
mov rcx, rbx
call fcn.140006390
jmp 0x1400b0704
lea rcx, [rsp + 0x40]
call fcn.1400aad00
nop
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x1400b0668
mov rsi, qword [rax]
mov rbp, qword [rax + 0x10]
call fcn.140141e9c
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
test rbp, rbp
je 0x1400b06fa
cmp rbp, 0x7fffffff
ja 0x1400b0726
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov ecx, eax
call fcn.140141f0c
mov rdi, rax
shr rax, 0x20
test eax, eax
jne 0x1400b0731
movsxd rdx, edi
xor r8d, r8d
mov rcx, rbx
call fcn.14000af90
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b06dd
mov r9, qword [rbx]
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rdx, rsi
mov ecx, r14d
call fcn.140141f0c
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x1400b071c
lea rcx, [rsp + 0x40]
call fcn.140031cd0
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
shr rcx, 0x20
call fcn.14001f7f0
int3
mov ecx, socket
call fcn.14001f510
int3
shr rdi, 0x20
mov ecx, edi
call fcn.14001f7f0
int3
Function at 0x1400c02c0
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 0x1400c7be0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400c7cc2
call fcn.1400e9f70
test al, al
jne 0x1400c7cc2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1400c7c12
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400f3e80
test rax, rax
je 0x1400c7c57
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400f3e80
mov rsi, rax
test rax, rax
je 0x1400c7c57
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1400c7c8b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400dd2c0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400c7c70
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400d01f0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov r8, qword [rdx + 0x18]
mov ecx, dword [rax + 8]
and ecx, 0xa
cmp cl, 0xa
jne 0x1400d0246
mov rbx, qword [r8 + 0xf0]
mov rsi, qword [r8 + 0xf8]
mov eax, dword [r8 + 0x100]
jmp 0x1400d0255
mov rbx, qword [r8 + 0x68]
mov rsi, qword [r8 + 0x70]
mov eax, dword [r8 + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], eax
test rbx, rbx
je 0x1400d0384
cmp byte [rbx], r14b
je 0x1400d0384
mov rcx, rbx
call qword [case.0x1400d14ac.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x1400d0389
test rsi, rsi
je 0x1400d02be
mov r8, rsi
sub r8, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x1400d02a3
inc rbx
test eax, eax
jne 0x1400d0290
test edx, edx
je 0x1400d02be
mov rcx, rsi
call qword [case.0x1400d14ac.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x1400d02c2
jmp 0x1400d0389
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400d031b
cmp byte [rbx], r14b
je 0x1400d031b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400d02f5
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x1400d03bc
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400d031b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x1400d03bc
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1400d0330
test rbx, rbx
je 0x1400d0348
cmp byte [rax + rbx - 1], 0x2e
jne 0x1400d0348
dec rbx
cmp rbx, 0xffff
jae 0x1400d037f
lea rdx, [rbx + 1]
mov ecx, 1
call qword [0x140379090]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400d0389
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.1400dd310
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x1400d03bc
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x1400d0398
call qword [fcn.140143970]
mov rcx, qword [rdi + 0x10]
call qword [fcn.140143970]
mov rcx, qword [rdi]
call qword [fcn.140143970]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401425d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d6ad0
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 + 0xa6e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400d6b99
cmp qword [rcx + 0x280], 0
je 0x1400d6b4e
mov qword [rsp + 0x40], rbx
call fcn.1400c1fa0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400c2aa0
mov rcx, qword [rdi + 0x1f8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x280]
movzx edx, bl
mov rcx, rdi
call fcn.1400c2aa0
mov rbx, qword [rsp + 0x40]
jmp 0x1400d6b99
mov ecx, esi
test edx, edx
je 0x1400d6b5e
sub ecx, 1
je 0x1400d6b5e
cmp ecx, 1
jne 0x1400d6b99
mov r9, qword [rdi + 0x1f0]
lea rax, [0x14014faa0]
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 + 0x1f0]
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 0x1400deb50
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1403e45b0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400debb4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1401179c0
test al, al
je 0x1400deba8
mov dword [0x1403e45b0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1403e45b0], 1
jmp 0x1400debb9
cmp eax, 2
je 0x1400dec0b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400debea
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400dec0b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400df860
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x1400df9ae
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x3e0]
test dword [rcx + 0x8c], 0x800
jne 0x1400df9ae
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400df93e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400badf0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400d6bb0
mov eax, 2
jmp 0x1400df9b0
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x100]
lea r8, [rbx + 0xce]
lea rcx, [rsp + 0x30]
call fcn.1400d96c0
test al, al
jne 0x1400df9ae
mov qword [rsp + 0x1e0], rdi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400badf0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400d6bb0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400df9b0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401425d0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret

Function at 0x1400e1080
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x140379608], rax
cmp rax, 0x10
jae 0x1400e10a5
call fcn.1400bee30
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x1403e45f8]
call fcn.1400e0da0
xor eax, eax
add rsp, 0x58
ret

Function at 0x1400e1100
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rcx
xor r9d, r9d
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], 0
test r8, r8
je 0x1400e1149
nop word [rax + rax]
mov rax, qword [rsp + 0x10]
movzx edx, byte [rax + r9]
mov rax, qword [rsp + 0x18]
movzx ecx, byte [rax + r9]
inc r9
movzx eax, byte [rsp + 8]
xor dl, cl
or dl, al
mov byte [rsp + 8], dl
cmp r9, r8
jb 0x1400e1120
movzx eax, byte [rsp + 8]
dec eax
sar eax, 8
and eax, 1
dec eax
ret

Function at 0x1400e2640
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx r8d, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, r8d
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x1400e2650
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret
Function at 0x1400e2690
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx r8d, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, r8d
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x20
jl 0x1400e26a0
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret

Function at 0x1400e5240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x140379f00]
xor rax, rsp
mov qword [rsp + 8], rax
xor edx, edx
lea r15, [0x1401596a0]
mov dword [rsp], edx
mov r8, rcx
movzx edi, byte [rsp + 3]
xor eax, eax
movzx esi, byte [rsp + 2]
movzx ebx, dl
movzx ebp, byte [rsp + 1]
movzx r14d, dl
mov word [rsp + 4], dx
movzx r11d, byte [rsp + 5]
nop dword [rax]
movzx r10d, byte [r8 + rax]
movzx ecx, r10b
xor cl, byte [rax + r15]
or cl, r14b
movzx r14d, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x20]
or cl, bpl
movzx ebp, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x40]
or cl, sil
movzx esi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x60]
or cl, dil
movzx edi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x80]
or cl, bl
movzx ebx, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0xa0]
xor r10b, byte [rax + r15 + 0xc0]
or cl, r11b
or r10b, dl
movzx r11d, cl
inc rax
movzx edx, r10b
cmp rax, 0x1f
jb 0x1400e52a0
movzx ecx, byte [rax + r8]
movzx r9d, byte [rax + r15 + 0x60]
and cl, 0x7f
movzx edx, byte [rax + r15 + 0x40]
movzx r8d, cl
xor edx, r8d
movzx ecx, r10b
or edx, esi
xor r9d, r8d
dec edx
or r9d, edi
dec r9d
or r9d, edx
movzx edx, byte [rax + r15 + 0x20]
xor edx, r8d
or edx, ebp
dec edx
or r9d, edx
movzx edx, byte [rax + r15]
xor edx, r8d
or edx, r14d
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0xc0]
xor edx, r8d
or edx, ecx
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0xa0]
movzx eax, byte [rax + r15 + 0x80]
xor edx, r8d
xor eax, r8d
or edx, r11d
or eax, ebx
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1401425d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret