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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402f5028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003273
cmp byte [rcx + 0x71], 0
je 0x140003273
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000326f
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 0x140003234
sub eax, 1
je 0x140003238
cmp eax, 2
jne 0x14000326f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005e40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003266
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 0x14000326f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000321c
xor al, al
jmp 0x14000321c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005e40
add rsp, 0x60
pop rbx
ret
Function at 0x140004130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402f5028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000415d
xor eax, eax
jmp 0x1400042c6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000419d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000419d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400042be
cmp qword [rdi + 0x80], 0
je 0x1400042b9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400041d7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140004202
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400042be
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140004271
sub eax, 1
je 0x140004271
cmp eax, 2
jne 0x1400042b9
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400042be
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000429f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400042b9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400042be
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005e40
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005820
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400058a4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402f08d0]
cmp byte [rcx + rax], 0
je 0x1400058a4
dec r8
sub rdx, 1
jne 0x14000588a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005be8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140005938
mov ebx, eax
test eax, eax
jne 0x140005c18
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140005c7b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005c72
test al, 0x10
je 0x140005c72
bt eax, 0xa
jae 0x140005c6b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140005c8c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140005c67
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140005c67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140005c72
and dword [rsp + 0x3c], 0
jmp 0x140005c77
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006790
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400067da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400067da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400067da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400067da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400067da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400067dc
xor al, al
add rsp, 0x28
ret
Function at 0x1400040b0
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x40]
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400040f4
mov eax, 0xffffdcd8
jmp 0x140004272
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x14000425c
shr ax, 8
cmp al, 1
jne 0x14000425c
xor ecx, ecx
mov qword [rsp + 0x228], rbp
call fcn.140004520
mov rcx, rax
call fcn.14003ddd0
mov ebp, 2
xor r8d, r8d
mov edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rbx
mov qword [0x1400986d0], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rdi
mov word [0x140098f00], bp
mov dword [0x140098f04], eax
call fcn.14003ea20
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea edx, [rbp + 2]
mov rcx, rsi
mov word [0x140098f02], ax
call fcn.140003fd0
mov dword [0x1400986e0], eax
call fcn.14003dda4
mov rcx, qword [0x1400986d0]
lea rbx, [0x140098f00]
xorps xmm0, xmm0
mov dword [0x1400986e4], eax
xor eax, eax
mov dword [rsp + 0x28], sendto
xor r9d, r9d
mov qword [0x140098f40], rax
lea r8d, [rbp + 0xe]
mov qword [0x140098f48], rax
lea rdx, [0x1400986e0]
mov dword [0x140098f50], eax
mov dword [0x1400986e8], 0
mov dword [0x1400986ec], 0xaf3c2828
movups xmmword [0x140098f10], xmm0
mov qword [rsp + 0x20], rbx
movups xmmword [0x140098f20], xmm0
movups xmmword [0x140098f30], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
lea ecx, [rbp + 0x12]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400986d0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140098af0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov dword [rsp + 0x30], sendto
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rbp, qword [rsp + 0x228]
test eax, eax
jns 0x140004247
mov eax, 0xffffdcdb
jmp 0x140004272
lea rdx, [0x1400986e0]
lea rcx, [0x140098af0]
call fcn.140003fb0
jmp 0x140004272
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcd9
mov qword [0x1400986d0], 0xffffffffffffffff
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x1f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004290
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rcx
movzx ecx, dl
jmp qword [rax + 0x18]
push rbx
sub rsp, 0x50
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x1400986d0], 0
mov ebx, ecx
ja 0x1400042c9
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
inc dword [0x1400986e8]
mov dword [0x1400986ec], 0x9823ae8d
call fcn.14003dda4
mov dword [0x1400986e4], eax
test ebx, ebx
je 0x1400042f1
or dword [0x140098f10], 1
jmp 0x1400042f8
and dword [0x140098f10], 0xfffffffe
movups xmm0, xmmword [0x140098f10]
mov rcx, qword [0x1400986d0]
xor r9d, r9d
movups xmm1, xmmword [0x140098f20]
lea rax, [0x140098f00]
mov dword [rsp + 0x28], sendto
movaps xmmword [0x1400986f0], xmm0
lea rdx, [0x1400986e0]
movups xmm0, xmmword [0x140098f30]
lea r8d, [r9 + 0x48]
mov qword [rsp + 0x20], rax
movaps xmmword [0x140098700], xmm1
movsd xmm1, qword [0x140098f40]
movaps xmmword [0x140098710], xmm0
movsd qword [0x140098720], xmm1
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x1400986d0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140098af0]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400043b6
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
lea rdx, [0x1400986e0]
lea rcx, [0x140098af0]
call fcn.140003fb0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, edx
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140004a70
nop
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.140005090
nop
mov r8, rax
lea rdx, str.km.left_
lea rcx, [rsp + 0x60]
call fcn.140004620
nop
lea r8, [0x140066148]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400045e0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004ab0
lea rcx, [rsp + 0x40]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x60]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x80]
call fcn.1400028b0
lea rcx, [rsp + 0x20]
call fcn.140003630
mov rdx, rax
mov rcx, rdi
call fcn.140004f90
nop
lea rcx, [rsp + 0x20]
call fcn.1400028b0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140035b40
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
mov r8d, dword [rcx + 0x278]
test r8d, r8d
je 0x1400178d4
sub r8d, 1
je 0x1400178be
sub r8d, 1
je 0x1400178b2
sub r8d, 1
je 0x1400178a1
cmp r8d, 1
jne 0x1400178da
cmp dl, r8b
jne 0x1400178da
mov ecx, r8d
jmp 0x140004290
cmp dl, 1
jne 0x1400178da
add rcx, 0x1d48
jmp 0x140003a70
cmp dl, 1
jne 0x1400178da
mov dl, 2
jmp fcn.1400158b0
cmp dl, 1
jne 0x1400178da
add rcx, 0xef0
mov edx, 1
jmp 0x140004d10
movsx eax, dl
mov dword [rcx + 0x40], eax
ret
Function at 0x140004f90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140004fa0
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x38
ret
Function at 0x14000c220
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
mov r8d, 0x104
mov rdx, rcx
lea rcx, [0x140066870]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000c3cd
mov rdx, rdi
lea rcx, [rbp + 0x27]
call fcn.1400021a0
nop
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1400021a0
nop
lea r8, str.engine
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000b320
lea rcx, [rdi + 0x170]
mov rdx, rax
call fcn.140004ab0
lea rcx, [rbp - 0x59]
call fcn.1400028b0
lea r8, str.config.ini
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x59]
call fcn.14000b320
lea rcx, [rdi + 0x110]
mov rdx, rax
call fcn.140004ab0
lea rcx, [rbp - 0x59]
call fcn.1400028b0
mov rcx, rdi
call fcn.14000bb70
lea r8, str.onnx_
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14000b320
nop
lea r8, [rdi + 0x198]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14000b2e0
nop
lea r8, [0x14006688c]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.1400045e0
lea rcx, [rdi + 0x130]
mov rdx, rax
call fcn.140004ab0
lea rcx, [rbp - 0x59]
call fcn.1400028b0
nop
lea rcx, [rbp - 0x19]
call fcn.1400028b0
nop
lea rcx, [rbp + 7]
call fcn.1400028b0
lea r8, str.engine_
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000b320
nop
lea r8, [rdi + 0x198]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14000b2e0
nop
lea r8, [0x1400668a0]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400045e0
lea rcx, [rdi + 0x150]
mov rdx, rax
call fcn.140004ab0
lea rcx, [rbp + 7]
call fcn.1400028b0
nop
lea rcx, [rbp - 0x19]
call fcn.1400028b0
nop
lea rcx, [rbp - 0x59]
call fcn.1400028b0
nop
lea rcx, [rbp - 0x39]
call fcn.1400028b0
nop
lea rcx, [rbp + 0x27]
call fcn.1400028b0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140035b40
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140011570
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov rbx, rcx
call fcn.140011540
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014580
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x140014599
call fcn.140017280
jmp 0x1400145a5
cmp eax, 0x4e0
jb 0x1400145a5
call fcn.140017190
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret
Function at 0x140017190
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r9, [rcx + 0x9c4]
mov r10, rcx
mov r11d, dword [r9]
mov ebx, 0xe3
nop word [rax + rax]
mov eax, r11d
mov r11d, dword [r9 + 4]
mov edx, eax
lea r9, [r9 + 4]
xor edx, r11d
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 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub rbx, 1
jne 0x1400171b0
lea r9, [r10 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r9]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r9 + 4]
mov edx, eax
lea r9, [r9 + 4]
xor edx, r11d
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 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub rbx, 1
jne 0x140017200
mov eax, dword [r10 + 0x1380]
mov edx, eax
xor edx, dword [r10 + 4]
btr edx, 0x1f
mov dword [r10], ebx
mov rbx, qword [rsp + 8]
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
ret

Function at 0x140017280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140017290
ret
Function at 0x140017870
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rcx
movzx ecx, dl
jmp qword [rax + 0x18]
push rbx
sub rsp, 0x50
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x1400986d0], 0
mov ebx, ecx
ja 0x1400042c9
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
inc dword [0x1400986e8]
mov dword [0x1400986ec], 0x9823ae8d
call fcn.14003dda4
mov dword [0x1400986e4], eax
test ebx, ebx
je 0x1400042f1
or dword [0x140098f10], 1
jmp 0x1400042f8
and dword [0x140098f10], 0xfffffffe
movups xmm0, xmmword [0x140098f10]
mov rcx, qword [0x1400986d0]
xor r9d, r9d
movups xmm1, xmmword [0x140098f20]
lea rax, [0x140098f00]
mov dword [rsp + 0x28], sendto
movaps xmmword [0x1400986f0], xmm0
lea rdx, [0x1400986e0]
movups xmm0, xmmword [0x140098f30]
lea r8d, [r9 + 0x48]
mov qword [rsp + 0x20], rax
movaps xmmword [0x140098700], xmm1
movsd xmm1, qword [0x140098f40]
movaps xmmword [0x140098710], xmm0
movsd qword [0x140098720], xmm1
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x1400986d0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140098af0]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400043b6
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
lea rdx, [0x1400986e0]
lea rcx, [0x140098af0]
call fcn.140003fb0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035b40
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140096a80]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, edx
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140004a70
nop
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.140005090
nop
mov r8, rax
lea rdx, str.km.left_
lea rcx, [rsp + 0x60]
call fcn.140004620
nop
lea r8, [0x140066148]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400045e0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004ab0
lea rcx, [rsp + 0x40]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x60]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x80]
call fcn.1400028b0
lea rcx, [rsp + 0x20]
call fcn.140003630
mov rdx, rax
mov rcx, rdi
call fcn.140004f90
nop
lea rcx, [rsp + 0x20]
call fcn.1400028b0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140035b40
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
mov r8d, dword [rcx + 0x278]
test r8d, r8d
je 0x1400178d4
sub r8d, 1
je 0x1400178be
sub r8d, 1
je 0x1400178b2
sub r8d, 1
je 0x1400178a1
cmp r8d, 1
jne 0x1400178da
cmp dl, r8b
jne 0x1400178da
mov ecx, r8d
jmp 0x140004290
cmp dl, 1
jne 0x1400178da
add rcx, 0x1d48
jmp 0x140003a70
cmp dl, 1
jne 0x1400178da
mov dl, 2
jmp fcn.1400158b0
cmp dl, 1
jne 0x1400178da
add rcx, 0xef0
mov edx, 1
jmp 0x140004d10
movsx eax, dl
mov dword [rcx + 0x40], eax
ret
Function at 0x1400178e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [rcx + 0x278]
mov rbx, rcx
test r8d, r8d
je 0x140017955
sub r8d, 1
je 0x14001793d
sub r8d, 1
je 0x14001792c
sub r8d, 1
je 0x140017919
cmp r8d, 1
jne 0x140017968
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp 0x140004290
add rcx, 0x1d48
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x140003a70
cmp dl, 2
jne 0x140017968
mov dl, 4
add rsp, 0x20
pop rbx
jmp fcn.1400158b0
cmp dl, 2
jne 0x140017968
add rcx, 0xef0
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x140004d10
add rcx, 0xee8
call fcn.1400018f0
mov dword [rbx + 0x40], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140022030
Capabilities:
Encode data using xor

Disassembly:
mov dword [rcx + 4], edx
lea r10, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r9d, edx
lea r10, [r10 + 4]
shr r9d, 0x1e
xor edx, r9d
imul edx, r8d
add edx, eax
inc rax
mov dword [r10 - 4], edx
cmp rax, 0x270
jb 0x140022040
mov dword [rcx], 0x270
ret
Function at 0x140033d90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140033db0
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140033dc4
call fcn.14000c660
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.1400166e0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140033e1f
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140001fc0
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140019800
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.140003700
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.140018d50
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x140033e9b
mov rcx, rsi
call fcn.140017350
mov rbx, qword [rsp + 0x50]
cmp rbx, 0xfff
jbe 0x140033e77
nop
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call fcn.140042f9c
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, 0xfff
jne 0x140033e9b
cmp rbx, rax
ja 0x140033e40
test rbx, rbx
je 0x140033e9b
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.140042f9c
mov rbx, qword [rsp + 0x50]
sub rbx, rax
sub rdi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003685c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400368a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400368a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400368a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400368a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400368a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400368a8
xor al, al
add rsp, 0x28
ret

Function at 0x1400482e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400480dc