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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009933
cmp byte [rcx + 0x71], 0
je 0x140009933
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000992f
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 0x1400098f4
sub eax, 1
je 0x1400098f8
cmp eax, 2
jne 0x14000992f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000cb80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009926
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 0x14000992f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400098dc
xor al, al
jmp 0x1400098dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000cb80
add rsp, 0x60
pop rbx
ret
Function at 0x14000c598
Capabilities:
Get geographical location

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

Function at 0x14000d808
Capabilities:
Parse pe header

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

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x180127c30]
lea rcx, [rsp + 0x20]
lea edx, [rax + 8]
mov r9d, 0xb5f
mov dword [rsp + 0x20], 0xb310b2a
mov dword [rsp + 0x24], 0xb310b34
mov dword [rsp + 0x28], 0xb280b30
mov qword [rsp + 0x2c], 0xb5f0b31
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret

Function at 0x180016950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180016984
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180016970
mov rcx, rax
shr rcx, 0x20
xor eax, ecx
ret
Function at 0x18003bb80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x752e
lea r8, [0x180128460]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xf]
mov dword [rsp + 0x20], 0x7540756b
mov dword [rsp + 0x24], 0x755c754d
mov dword [rsp + 0x28], 0x755e7557
mov dword [rsp + 0x2c], 0x7563755a
mov dword [rsp + 0x30], 0x755d754b
mov dword [rsp + 0x34], 0x754f755d
mov dword [rsp + 0x38], 0x754b7549
mov qword [rsp + 0x3c], r9
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret

Function at 0x18003bea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x1801284c0]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xc]
mov r9d, 0x431e
mov dword [rsp + 0x20], 0x437b436d
mov dword [rsp + 0x24], 0x436b437d
mov dword [rsp + 0x28], 0x432d436c
mov dword [rsp + 0x2c], 0x4330432c
mov dword [rsp + 0x30], 0x4372437a
mov qword [rsp + 0x34], 0x431e4372
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret
Function at 0x18003d090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x6a2d
lea r8, [0x180128618]
lea rcx, [rsp + 0x20]
lea edx, [rax + 9]
mov dword [rsp + 0x20], 0x6a7f6a7d
mov dword [rsp + 0x24], 0x6a6e6a72
mov dword [rsp + 0x28], 0x6a426a41
mov dword [rsp + 0x2c], 0x6a486a5e
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret

Function at 0x18003dab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x381d
lea r8, [0x180128658]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xb]
mov dword [rsp + 0x20], 0x386e384a
mov dword [rsp + 0x24], 0x3842382f
mov dword [rsp + 0x28], 0x382f382e
mov dword [rsp + 0x2c], 0x38793833
mov dword [rsp + 0x30], 0x38713871
mov qword [rsp + 0x34], r9
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret
Function at 0x18003dbb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x180128670]
lea rcx, [rsp + 0x20]
lea edx, [rax + 8]
mov r9d, 0x276d
mov dword [rsp + 0x20], 0x273e273a
mov dword [rsp + 0x24], 0x273e272c
mov dword [rsp + 0x28], 0x27032708
mov qword [rsp + 0x2c], 0x276d2709
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret
Function at 0x1800475b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x180128740]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0x20]
mov r9d, 1
mov dword [rsp + 0x20], 0x600042
mov dword [rsp + 0x24], 0x6f006f
mov dword [rsp + 0x28], 0x75006e
mov dword [rsp + 0x2c], 0x660021
mov dword [rsp + 0x30], 0x750064
mov dword [rsp + 0x34], 0x600021
mov dword [rsp + 0x38], 0x650065
mov dword [rsp + 0x3c], 0x640073
mov dword [rsp + 0x40], 0x720072
mov dword [rsp + 0x44], 0x6e0021
mov dword [rsp + 0x48], 0x210067
mov dword [rsp + 0x4c], 0x730071
mov dword [rsp + 0x50], 0x62006e
mov dword [rsp + 0x54], 0x21003b
mov dword [rsp + 0x58], 0x300024
mov qword [rsp + 0x5c], 0x10024
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.18004bc90
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x130
pop rbp
ret
Function at 0x18004b330
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov ebx, ecx
mov dword [rbp + 0x98], ecx
xor edi, edi
mov dword [rbp + 0xb0], edi
xor eax, eax
mov qword [rbp + 0xb4], rax
mov qword [rbp + 0xbc], rax
mov qword [rbp + 0xc4], rax
mov qword [rbp + 0xcc], rax
mov qword [rbp + 0xd4], rax
mov dword [rbp + 0xdc], eax
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp + 0xb0], di
jne 0x18004b3c0
xor al, al
jmp 0x18004b4fa
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.180065ae0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x18004b45b
cmp qword [rcx], 0
je 0x18004b45b
mov dword [rbp + 0x90], edi
lea rdx, [rbp + 0x90]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rbp + 0x90], 0
sete sil
mov rbx, qword [rbp + 0xa8]
test rbx, rbx
je 0x18004b452
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
dec eax
jne 0x18004b452
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x18004b452
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
movzx eax, sil
jmp 0x18004b4fa
call fcn.18004b530
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.180007420
nop
lea rdx, [rbp + 0x98]
mov rcx, rax
call fcn.18003fba0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1800075e0
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.18004c170
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004b4a2
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180089d60
nop
cmp qword [rsp + 0x40], 0x10
jb 0x18004b4c9
mov rcx, qword [rsp + 0x28]
call fcn.180089f18
mov qword [rsp + 0x40], setsockopt
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x28], 0
lea rax, vtable.message_exception.0
mov qword [rsp + 0x50], rax
lea rdx, [0x180115d10]
lea rcx, [rsp + 0x50]
call fcn.18008f9d8
nop
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.180089cf0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18004cd10
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call fcn.180090d90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x18004cd76
cmp dword [rsp + 0x28], 2
jb 0x18004cd76
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180089cf0
add rsp, 0x158
ret
Function at 0x18004da80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18004dac3
xor eax, eax
jmp 0x18004dcc6
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18004dafd
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18004dafd
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x18004dcc6
cmp qword [rbx + 0x90], 0
jne 0x18004db0f
or eax, 0xffffffff
jmp 0x18004dcc6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x80]
cmp qword [r8], rax
jne 0x18004db39
mov rdx, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x18004db5d
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call fcn.18008b8c8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x18004dcc4
mov byte [rbp - 1], sil
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x1f], setsockopt
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.180010820
nop
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop word [rax + rax]
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp + 7]
cmovae r8, r10
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x18004dca1
cmp eax, 1
jg 0x18004dc82
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x18004dc49
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.18008c1e0
cmp rdi, rax
jne 0x18004dca1
mov r9, qword [rbp + 0x1f]
mov r10, qword [rbp + 7]
mov byte [rbx + 0x81], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x18004dc7e
test rdi, rdi
jne 0x18004dba0
cmp qword [rbp + 0x17], 0x20
jae 0x18004dca1
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.180013e10
jmp 0x18004db8d
mov ebx, esi
jmp 0x18004dca4
cmp eax, 3
jne 0x18004dca1
movsx ecx, byte [rbp - 1]
mov rdx, qword [rbx + 0x90]
call fcn.18008b8c8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x18004dca4
or ebx, 0xffffffff
cmp qword [rbp + 0x1f], 0x10
jb 0x18004dcb4
mov rcx, qword [rbp + 7]
call fcn.180089f18
mov qword [rbp + 0x1f], setsockopt
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180089cf0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004e740
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x18004e8b7
cmp byte [rcx + 0x81], 0
je 0x18004e8b7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18004e79c
xor al, al
jmp 0x18004e8b9
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x18], setsockopt
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.180010820
nop
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x18004e810
dec eax
jne 0x18004e887
jmp 0x18004e817
mov byte [rdi + 0x81], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x18004e861
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.18008c1e0
cmp rbx, rax
jne 0x18004e88c
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x81], 0
je 0x18004e890
test rbx, rbx
jne 0x18004e7d0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.180013e10
jmp 0x18004e7c8
sub eax, 2
je 0x18004e890
xor bl, bl
jmp 0x18004e892
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x18004e8a2
mov rcx, qword [rbp - 0x30]
call fcn.180089f18
mov qword [rbp - 0x18], setsockopt
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x18004e8b9
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180089cf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180054180
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0
call fcn.180054090
mov dword [rsp + 0x68], 0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180053ff0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, rdi
call fcn.180065ae0
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
test rax, rax
je 0x180054246
cmp qword [rax], 0
je 0x180054246
lea rbx, [0x180126d30]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, rdi
call fcn.1800544b0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x180054273
lea rax, str.wtf__cannot_create_the_thread
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.180089d60
lea rdx, [0x180115cf0]
lea rcx, [rsp + 0x50]
call fcn.18008f9d8
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180089cf0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x1800542a0
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x180118b10]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.180054090
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.180054110
nop
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdi
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
je 0x180054326
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005430d
mov rcx, qword [rcx]
mov edx, 0x29a
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rbx, 0x10
cmp rbx, rdi
jne 0x180054302
mov qword [rsp + 0x48], rbx
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x180054393
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
je 0x180054379
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180054366
lock dec dword [rbx + 8]
jne 0x180054366
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180054366
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
add rdi, 0x10
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jne 0x180054340
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180089f18
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180089cf0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret