joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030910
Capabilities:
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx ecx, byte [rsp + 0x10]
mov rax, qword [rsp + 8]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rcx, [0x14000e850]
mov rax, qword [rsp + 8]
mov eax, dword [rax]
shr eax, 8
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax]
and ecx, 0xff
mov rax, qword [rsp + 8]
add ecx, dword [rax + 4]
mov rax, qword [rsp + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax + 4]
imul ecx, ecx, 0x8088405
add ecx, 1
mov rax, qword [rsp + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax + 4]
shr ecx, 0x18
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
mov edx, eax
lea rcx, [0x14000e850]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
shr eax, 8
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 8], ecx
ret

Function at 0x140031ec0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x60]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x140031f3b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140031f2e
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x58]
jmp 0x140031fb0
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
add ecx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x68]
cmp ecx, dword [rax + 0x28]
jbe 0x140031f67
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
mov eax, dword [rdx + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x2c]
mov rax, qword [rsp + 0x68]
add rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140050c20
mov r11d, dword [rsp + 0x34]
mov dword [rsp + 0x30], r11d
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
add ecx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x2c], ecx
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x1400343a0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x1400343ce
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x1400343d8
mov eax, 0x1000000
jmp 0x1400344e8
mov rdx, qword [rsp + 0x50]
add rdx, 0x150
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x50]
add rcx, 0x150
call fcn.14004f860
mov r11, rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + r11 + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x140034441
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x140034441
mov rcx, qword [rsp + 0x50]
add rcx, 0x150
lea rdx, [0x14000d214]
call fcn.140050310
cmp dword [rsp + 0x68], 1
jne 0x140034494
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x140034473
mov dword [rsp + 0x38], 1
jmp 0x14003447b
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x140034494
mov eax, 0x2000000
jmp 0x1400344e8
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140031a20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400344bf
mov eax, dword [rsp + 0x2c]
jmp 0x1400344e8
mov rcx, qword [rsp + 0x20]
call fcn.1400324d0
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x1400344e6
mov eax, 0x200
jmp 0x1400344e8
xor eax, eax
add rsp, 0x48
ret
Function at 0x140035320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x140009370]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0
je 0x140035371
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140035371
xor edx, edx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x288]
movsx eax, byte [rax]
test eax, eax
jne 0x140035385
jmp 0x1400354c4
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x1400353f1
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x1400353ce
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400353db
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
add rax, 1
mov qword [rsp + 0x148], rax
jmp 0x14003539f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x288]
cmp qword [rsp + 0x20], rax
je 0x140035473
mov rax, qword [rsp + 0x288]
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x150]
call fcn.140050c20
mov r11, qword [rsp + 0x288]
mov rax, qword [rsp + 0x20]
sub rax, r11
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x280]
call fcn.140035320
mov rax, qword [rsp + 0x140]
add rax, 1
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x280], 0
je 0x140035495
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call fcn.1400503b0
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x30]
call fcn.140050310
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400354c4
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004ebb0
add rsp, 0x278
ret
Function at 0x140037670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400376af
cmp dword [rcx + 0xa8], 0
jne 0x1400376af
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140048558
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140037614
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003f130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14003f198
call fcn.140048558
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14003f198
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14003f1ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14003eb48
mov esi, eax
test rdi, rdi
je 0x14003f1b8
test rbx, rbx
je 0x14003f1b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14003fee8
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14003ff26
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14003ffda
call fcn.1400443f8
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14003ff45
mov ecx, 0x80004005
call fcn.140027250
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140051a78
test eax, eax
je 0x14003ffad
cmp eax, 0xc
je 0x14003ffa7
cmp eax, 0x16
je 0x14003ffa1
cmp eax, 0x22
je 0x14003ffa1
cmp eax, 0x50
je 0x14003ffad
call fcn.140044304
int3
call fcn.140044304
int3
call fcn.1400442bc
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14003ffd8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005205c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14005ba40
nop
cmp dword [0x140004b10], 1
je 0x140052008
mov dword [0x140004b0c], 1
mov byte [0x140004b08], r12b
test ebx, ebx
jne 0x140051ff4
mov rcx, qword [0x140006db0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140051fe1
mov rcx, qword [0x140006da8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140051f80
call fcn.1400531ec
cmp qword [rdi], rax
jne 0x140051f80
jmp 0x140051f66
cmp rdi, rsi
jb 0x140051fe1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400531ec
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140006db0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140006da8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140051fbf
cmp r13, rax
je 0x140051fdf
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140051f66
lea rdx, [0x140007d40]
lea rcx, [0x140007d28]
call fcn.140051db0
lea rdx, [0x140007d50]
lea rcx, [0x140007d48]
call fcn.140051db0
nop
test r12d, r12d
je 0x140052017
mov ecx, 8
call fcn.14005b940
test r12d, r12d
jne 0x140052042
mov dword [0x140004b10], 1
lea ecx, [r12 + 8]
call fcn.14005b940
mov ecx, r15d
call fcn.140051d44
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140051ed0

Function at 0x140052068
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140051ed0
Function at 0x14005300f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140009370]
jne 0x14004ebca
rol rcx, 0x10
test cx, 0xffff
jne 0x14004ebc6
repz ret
ror rcx, 0x10
jmp 0x140052f68
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004bd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004cc8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140052fed
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004bd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14005300f
mov rax, qword [rsp + 0x88]
mov qword [0x140004cc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140004c68], rax
mov rax, qword [0x140004cc8]
mov qword [0x140004b40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140004c50], rax
mov dword [0x140004b30], 0xc0000409
mov dword [0x140004b34], 1
mov rax, qword [0x140009370]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140009378]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004bc8], eax
mov ecx, 1
call fcn.140056288
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140013b20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004bc8], 0
jne 0x140053096
mov ecx, 1
call fcn.140056288
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14005e114
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400531ec
xor ebx, ebx
mov rdi, rax
cmp qword [0x140005900], rbx
jne 0x14005e21a
lea rcx, [0x140014d68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14005e2ef
lea rdx, [0x140014d58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005e2ef
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014d48]
mov rcx, rsi
mov qword [0x140005900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014d30]
mov rcx, rsi
mov qword [0x140005908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140014d10]
mov rcx, rsi
mov qword [0x140005910], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140005920], rax
test rax, rax
je 0x14005e211
lea rdx, [0x140014cf8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140005918], rax
jmp 0x14005e221
mov rax, qword [0x140005918]
jmp 0x14005e228
mov rax, qword [0x140005918]
mov r11, qword [0x140005920]
cmp rax, rdi
je 0x14005e290
cmp r11, rdi
je 0x14005e290
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140005920]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14005e290
test rax, rax
je 0x14005e290
call rsi
test rax, rax
je 0x14005e28a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005e28a
test byte [rsp + 0x38], 1
jne 0x14005e290
bts ebp, 0x15
jmp 0x14005e2ce
mov rcx, qword [0x140005908]
cmp rcx, rdi
je 0x14005e2ce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005e2ce
call rax
mov rbx, rax
test rax, rax
je 0x14005e2ce
mov rcx, qword [0x140005910]
cmp rcx, rdi
je 0x14005e2ce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005e2ce
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140005900]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005e2ef
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14005e2f1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140065850
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140009370]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400658b1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400658ab
shr ax, 8
cmp al, 2
jne 0x1400658ab
call fcn.140065d00
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004ebb0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004ebb0
add rsp, 0x1d8
ret
Function at 0x140067d10
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x14007c020
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14007c07c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14007c08c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140067d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x140067d7c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.14007dfc0
Function at 0x140072cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140072cfb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140072e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140072ec3
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x140072f0a
cmp edx, 2
jg 0x140072f0a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140016b08]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.14004f7a4
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14004f7a4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140073590
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
mov rax, qword [rbx + 0x5e0]
mov rbp, qword [rbx + rcx*8 + 0x210]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x260]
sub rsi, qword [rdi + rbx + 0x268]
test byte [rax + 0x74], 3
je 0x1400736a7
lea rax, [0x1400732e0]
cmp qword [rbx + rcx*8 + 0x238], rax
jne 0x1400736a7
cmp qword [rdi + rbx + 0x258], 0
je 0x140073603
test rsi, rsi
je 0x1400736a7
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1400660a0
cmp eax, 0xffffffff
je 0x1400736a7
test al, 1
je 0x1400736a7
cmp qword [rdi + rbx + 0x258], 0
jne 0x140073679
mov ecx, 0x8000
mov qword [rdi + rbx + 0x260], 0x8000
call qword [fcn.14000ac40]
mov rsi, qword [rdi + rbx + 0x260]
xor ecx, ecx
mov qword [rdi + rbx + 0x268], rcx
mov qword [rdi + rbx + 0x270], rcx
mov qword [rdi + rbx + 0x258], rax
test rax, rax
jne 0x140073679
mov qword [rdi + rbx + 0x260], rcx
jmp 0x1400736a7
mov rdx, qword [rdi + rbx + 0x258]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x268]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400736a7
add qword [rdi + rbx + 0x268], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400736c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x210]
mov rbp, rcx
call fcn.140073590
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x14007375a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14007372c
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14007375d
mov edx, eax
mov rcx, rbp
call fcn.140079990
mov rcx, qword [rbp]
lea rdx, [0x140016bd8]
mov r8, rax
call fcn.1400730f0
mov r11, qword [rbp]
mov dword [r11 + 0x4a8c], ebx
mov dword [rsi], Ordinal_60
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140075b00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140009370]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x80c], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140075b6f
lea rdx, [0x140016e90]
mov r8, rdi
mov rcx, rbx
call fcn.140073040
jmp 0x140075bfe
mov ecx, dword [rbx + 0x810]
mov dword [rsp + 0x58], 1
call fcn.140077600
mov ecx, dword [rbx + 0x814]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.140077600
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140075bfe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140016e60]
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.140073040
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004ebb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret