joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008a080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140058d35
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140058d96
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400335c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006c610
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140058e51
sub ecx, 1
je 0x140058ec4
sub ecx, 1
je 0x140058e00
cmp ecx, 1
je 0x140058de3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140077c40]
call fcn.1400335c0
jmp 0x140058ec4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400589d0
test eax, eax
je 0x140058ec4
jmp 0x140058d6a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140058ec4
sub rax, rsi
cmp rax, rbp
jae 0x140058ec4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140033740
jmp 0x140058ec4
cmp r8d, 4
jle 0x140058ec4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140058ec4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400334e0
mov esi, eax
test eax, eax
je 0x140058ea3
mov edx, 5
mov rcx, rbx
call fcn.140059990
mov eax, esi
jmp 0x140058d6a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140041dc0
mov rcx, r14
call fcn.1400420a0
test eax, eax
je 0x140058d68
mov edx, 5
mov rcx, rbx
call fcn.140059990
mov eax, Ordinal_46
jmp 0x140058d6a
Function at 0x14006bc60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006bca2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006bce9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006bd42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14006bd00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006bd83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007d3ca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007d3cb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006bd50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006cd1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006cd66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006cd66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006cd66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006cd66
cmp dword [rcx + 0x84], 0xe
jbe 0x14006cd66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006cd68
xor al, al
add rsp, 0x28
ret
Function at 0x140004450
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400044f0
jmp 0x1400044df
jae 0x1400045b0
cmp r8, 0x201
jae 0x1400044f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004548
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000451f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001b5f0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004571
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004618
mov r8d, r14d
cmp r15, r8
jne 0x1400044d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004645
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400044df
jmp 0x1400044f0
cmp rsi, r8
jb 0x14000465f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400065a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004601
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001c10
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400045e9
jmp 0x140004601
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001c0c0
jmp 0x140004674
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001c510
ud2
Function at 0x14000ba10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001f1d8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000ba54
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000baba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000baf1
test eax, eax
js 0x14000bacb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000bae4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400062e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002690
mov ecx, 7
int 0x29
ud2
Function at 0x140019960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400199da
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400199d0
cmp r11, r10
ja 0x140019a71
cmp r10, rdx
ja 0x140019a83
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400199d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400199b0
jmp 0x140019a47
ja 0x1400199da
mov r11, r10
cmp rax, r8
jne 0x140019982
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140019a4b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019a20
mov r8, r10
sub ecx, r9d
jns 0x140019a3e
jmp 0x140019a4d
cmp r10, rdx
je 0x140019a59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140019a4d
xor al, 1
cmp r8, rdx
jne 0x140019a00
jmp 0x140019a4d
xor eax, eax
jmp 0x140019a4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400211db]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001c0c0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c590
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c510
int3

Function at 0x14001b05c
Capabilities:
Parse pe header

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

Disassembly:
and edx, dword [rcx]
or dl, byte [rcx - 0x31a92b0]
xor dword [rsi - 0x47], eax
cmpsd dword [rsi], dword [rdi]
adc eax, 0x19f59d6c
add dword [r11 - 0x62d732f1], eax
mov byte [0x119568ebe], bh
xor esp, esi
mov edx, 0x90879147
mov ss, word [rbx + 0x33]
push rcx
xor eax, 0x750fa27e
jno 0x14002b078
lahf
xchg byte [rax], ch
or byte [rdi + rdi*2], 0x98
or edx, dword [rax + 0x778924a3]
sub eax, 0xe31b4e9
sub byte [rdx + 0x15d8775b], ah

Function at 0x140bce108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bce28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140bce139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bce11f
add dl, dl
jne 0x140bce146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bce1a6
xor eax, eax
add dl, dl
jne 0x140bce155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bce25d
add dl, dl
jne 0x140bce166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bce173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bce180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bce18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bce19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bce12e
mov eax, 1
add dl, dl
jne 0x140bce1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bce1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bce1ab
sub eax, ebx
mov ebx, 1
jne 0x140bce1fc
mov ecx, 1
add dl, dl
jne 0x140bce1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bce1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bce1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bce12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bce218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bce225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bce20d
cmp eax, 0x7d00
jae 0x140bce24b
cmp eax, 0x500
jb 0x140bce246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bce12e
cmp eax, 0x7f
ja 0x140bce24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bce12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bce282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140bce12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000631c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006496
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140155000
add rsp, 0x28
jmp 0x14000631c
Function at 0x140003674
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400c50b0]
movabs r15, 0x2aaaaaaaaaaaaaab
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1400036c3
lea eax, [rdx + 1]
jmp 0x14000385a
xor r8d, r8d
lea rcx, [0x140003878]
xor edx, edx
call fcn.1400604a4
mov rbx, qword [section..data]
cmp byte [rbx], 0
jne 0x1400036e4
xor eax, eax
jmp 0x1400036ec
mov rcx, rbx
call fcn.140045e50
lea r14, [0x1400c2008]
mov r8, rax
mov rcx, r14
mov rdx, rbx
call fcn.140004d8c
lea rcx, [0x14009d310]
call fcn.140045e50
mov r9, rax
lea rdx, [0x14009d310]
xor r8d, r8d
mov rcx, r14
call fcn.14000501c
mov ebx, 1
cmp rax, 0xffffffffffffffff
je 0x1400037b4
and qword [rsp + 0x30], 0
lea edi, [rbx + 0xe]
mov r9, rax
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov byte [rsp + 0x20], 0
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140004c64
mov rdx, qword [reloc.WSOCK32.dll_ntohs]
cmp rdx, 0x10
jb 0x140003776
mov rcx, qword [0x1400c2008]
inc rdx
mov r8d, ebx
call fcn.140004554
and qword [0x1400c2018], 0
lea rdx, [rsp + 0x20]
mov rcx, r14
mov qword [reloc.WSOCK32.dll_ntohs], rdi
mov byte [0x1400c2008], 0
call fcn.140004354
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400037b4
mov rcx, qword [rsp + 0x20]
inc rdx
mov r8, rbx
call fcn.140004554
mov r8, qword [0x1400c50b0]
mov rax, r15
xor esi, esi
mov rcx, qword [r8 + 8]
sub rcx, qword [r8]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140003847
xor r9d, r9d
mov rcx, qword [r8]
lea rdi, [r9 + r9*2]
shl rdi, 5
lea rdx, [0x14009d314]
add rcx, rdi
call fcn.140004f04
test eax, eax
jne 0x14000381b
mov rax, qword [0x1400c50b0]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r14
mov rdx, qword [rax]
add rdx, 0x40
add rdx, rdi
call fcn.140004a10
mov r8, qword [0x1400c50b0]
add esi, ebx
mov rax, r15
movsxd r9, esi
mov rcx, qword [r8 + 8]
sub rcx, qword [r8]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x1400037dd
xor r8d, r8d
lea rcx, [0x14000366c]
xor edx, edx
call fcn.1400604a4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140005e44
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rcx, [0x140005e64]
xor edx, edx
call fcn.1400604a4
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400079b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [0x1400c50f0]
movabs rsi, 0x6666666666666667
mov rax, rsi
xor edi, edi
mov rcx, qword [r8 + 8]
sub rcx, qword [r8]
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140007a59
mov ebx, edi
mov rcx, qword [r8]
add rcx, rbx
cmp qword [rcx + 0x18], 0x10
jb 0x140007a01
mov rcx, qword [rcx]
call fcn.14007ef6c
mov rax, qword [0x1400c50f0]
mov rcx, qword [rax]
add rcx, 0x20
add rcx, rbx
cmp qword [rcx + 0x18], 0x10
jb 0x140007a21
mov rcx, qword [rcx]
call fcn.14007ef6c
mov r8, qword [0x1400c50f0]
inc edi
mov rax, rsi
add rbx, 0xa0
mov rcx, qword [r8 + 8]
sub rcx, qword [r8]
imul rcx
sar rdx, 6
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
movsxd rcx, edi
cmp rcx, rdx
jb 0x1400079f1
xor r8d, r8d
lea rcx, [0x140007a80]
xor edx, edx
call fcn.1400604a4
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007f90
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rdi, rcx
mov r12, r9
mov ecx, 0x208
mov r15d, r8d
mov rbx, rdx
xor r14d, r14d
call fcn.140037e70
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x104
mov rsi, rax
call fcn.14003a5c0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14003a5c0
xor r8d, r8d
lea rdx, [0x14009d610]
mov rcx, r12
call fcn.140004d8c
lea rdx, [0x14009d610]
mov rcx, rbx
call fcn.140004f04
lea ecx, [r14 + 1]
test eax, eax
je 0x140008151
test r15d, r15d
je 0x140008034
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea ecx, [r14 + 1]
cmove r14d, ecx
lea rax, [rbp + 0x2c0]
mov r8d, ecx
lea rcx, [0x1400a8680]
mov qword [rsp + 0x20], rax
lea r9, [0x1400a68f0]
xor edx, edx
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008146
mov rcx, qword [rbp + 0x2c0]
lea r8, [rbp + 0x2c8]
and qword [rbp + 0x2c8], 0
lea rdx, [0x1400a7750]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140008139
xor edx, edx
mov r8d, 0x208
mov rcx, rsi
call fcn.14003a5c0
cmp qword [rbx + 0x18], 0x10
jb 0x1400080a7
mov rcx, qword [rbx]
jmp 0x1400080aa
mov rcx, rbx
mov rdx, rsi
call fcn.140006918
mov rcx, qword [rbp + 0x2c8]
xor r8d, r8d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x14000812c
mov rcx, qword [rbp + 0x2c0]
lea r9, [rbp + 0x150]
mov r8d, 0x104
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + 0x50]
cmp byte [rsp + 0x30], 0
jne 0x140008112
xor eax, eax
jmp 0x14000811c
lea rcx, [rsp + 0x30]
call fcn.140045e50
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140004d8c
mov rcx, qword [rbp + 0x2c8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
test r14d, r14d
je 0x140008151
call qword [sym.imp.ole32.dll_CoUninitialize]
test rsi, rsi
je 0x140008163
mov edx, 2
mov rcx, rsi
call fcn.140037e68
and qword [rdi + 0x10], 0
mov esi, reloc.WSOCK32.dll_ntohs
mov qword [rdi + 0x18], rsi
mov byte [rdi], 0
cmp byte [rbp + 0x40], 0
jne 0x14000817e
xor eax, eax
jmp 0x140008187
lea rcx, [rbp + 0x40]
call fcn.140045e50
mov r8, rax
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140004d8c
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400081b1
mov rcx, qword [rbx]
inc rdx
mov r8d, 1
call fcn.140004554
mov qword [rbx + 0x18], rsi
and qword [rbx + 0x10], 0
cmp rsi, 0x10
jb 0x1400081c3
mov rbx, qword [rbx]
lea r11, [rsp + 0x390]
mov byte [rbx], 0
mov rbx, qword [r11 + 0x40]
mov rax, rdi
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000b1a8
Capabilities:
Check os version

Disassembly:
sub rsp, 0xc8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x94
call fcn.14003a5c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
setb al
add rsp, 0xc8
ret