joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140064554
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140064540
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140066ae0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x40
call fcn.1400e9d8c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x30], rax
lea rbx, [rsi + 0x40]
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete dil
test eax, eax
jne 0x14006607f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rsp + 0x28], dil
lea rdx, [rsi + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140066a20
nop
test dil, dil
je 0x1400660a9
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x30]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140066169
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400660cf
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140066109
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400660e9
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140066109
test al, 0x10
je 0x140066109
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140066bb0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140066138
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140066133
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140066133
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140066120
mov rbx, rax
jmp 0x14006615f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14006615f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140066150
cmp byte [rbx + 0x19], 0
je 0x1400660c0
mov ebx, dword [rbp + 8]
lea rcx, [rsp + 0x30]
call fcn.14002b790
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140074180
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400741b8
cmp eax, 0x80010106
je 0x1400741bf
xor al, al
jmp 0x14007433b
mov dword [r14], 1
lea rsi, [r14 + 8]
mov qword [rsp + 0x20], rsi
lea r9, [0x14013d440]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14013d430]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400741f8
call qword [sym.imp.ole32.dll_CoUninitialize]
xor ebx, ebx
mov dword [r14], ebx
xor al, al
jmp 0x14007433b
mov rbp, qword [rsi]
mov rax, qword [rbp]
mov r12, qword [rax + 0x18]
lea r15, [r14 + 0x10]
mov ecx, 0x18
call fcn.1400e9d8c
mov rdi, rax
mov qword [rsp + 0x88], rax
xor ebx, ebx
test rax, rax
je 0x14007424b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400e9a30
mov qword [rdi], rax
jmp 0x14007424e
mov rdi, rbx
mov qword [rsp + 0x88], rdi
test rdi, rdi
je 0x140074354
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbp
call r12
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400742c7
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400742a8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400742ba
call fcn.1400e9d84
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.1400e9d84
test ebp, ebp
jns 0x1400742d8
mov rcx, qword [rsi]
test rcx, rcx
je 0x14007432c
mov qword [rsi], rbx
jmp 0x140074325
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r15]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140074339
mov rcx, qword [rsi]
test rcx, rcx
je 0x14007431a
mov qword [rsi], rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x14007432c
mov qword [r15], rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [r14], ebx
xor al, al
jmp 0x14007433b
mov al, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400e9a20
int3
Function at 0x140078470
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r9
mov rsi, r8
cmp qword [rdx + 0x10], 0
je 0x1400785d2
cmp qword [rdx + 0x18], 8
jb 0x1400784a3
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400785d2
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400784d1
mov rdx, qword [rsi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400785c7
cmp dword [rsp + 0x3c], 1
jne 0x1400785c7
xorps xmm0, xmm0
mov ebx, dword [rsp + 0x38]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x14007854f
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400089e0
mov rdi, rax
mov qword [rsp + 0x40], rax
lea r8, [rbx + rbx]
lea rbx, [r8 + rax]
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rax
call fcn.1400ec680
mov qword [rsp + 0x48], rbx
cmp qword [rsi + 0x18], 8
jb 0x140078559
mov rsi, qword [rsi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140078593
xor bl, bl
jmp 0x1400785b8
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400785a0
mov rdx, rdi
mov rcx, rbp
call fcn.1400088b0
mov bl, 1
lea rcx, [rsp + 0x40]
call 0x1400087e0
movzx eax, bl
jmp 0x1400785d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140081390
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rdx, str.ui.json
lea rcx, [rsp + 0x30]
call fcn.14004cc80
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.140008840
cmp ebx, 1
je 0x14008140e
xor ecx, ecx
call fcn.140027840
lea r9, str.UserInfoManager
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov r8d, 1
lea rdx, [0x140041af0]
mov rcx, rax
call fcn.140027a90
test rax, rax
je 0x14008140e
mov rcx, rax
call fcn.140086fb0
xor ecx, ecx
call fcn.140027840
lea r9, str.UserInfoManager
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
xor r8d, r8d
lea rdx, [0x140041af0]
mov rcx, rax
call fcn.140027a90
mov rcx, rax
mov rbx, rax
call fcn.1400869f0
lea rdx, [rbx + 0x38]
cmp rdi, rdx
je 0x140081460
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x140081458
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.140008ab0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
setne bl
test rcx, rcx
jne 0x140081482
lea r8d, [rcx + 7]
mov rcx, rdi
lea rdx, str.UnNamed
call fcn.140008ab0
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400935b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rdx
mov rdi, rcx
call fcn.140093410
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400935e4
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140093728
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140093600
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140093613
test al, 0x10
jne 0x140093728
lea rax, [0x1400965f0]
mov qword [rbp - 0x61], rax
lea rax, [0x140096610]
mov qword [rbp - 0x59], rax
lea rax, [0x140096690]
mov qword [rbp - 0x41], rax
lea rax, [0x1400966a0]
mov qword [rbp - 0x39], rax
xor esi, esi
mov qword [rbp - 0x31], rsi
lea rax, [0x1400934f0]
mov qword [rbp - 0x69], rax
lea rax, [0x140093580]
mov qword [rbp - 0x51], rax
lea rax, [0x140093590]
mov qword [rbp - 0x49], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140093673
mov rcx, qword [rbx]
movaps xmm0, xmmword [rbp - 0x69]
movaps xmmword [rbp - 9], xmm0
movaps xmm1, xmmword [rbp - 0x59]
movaps xmmword [rbp + 7], xmm1
movaps xmm0, xmmword [rbp - 0x49]
movaps xmmword [rbp + 0x17], xmm0
movaps xmm1, xmmword [rbp - 0x39]
movaps xmmword [rbp + 0x27], xmm1
mov qword [rbp + 0x3f], rsi
mov qword [rbp + 0x47], rsi
lea rdx, [rbp - 9]
call fcn.1400947a0
mov qword [rdi + 8], rax
test rax, rax
je 0x140093728
cmp qword [rbx + 0x18], 8
jb 0x1400936b7
mov rbx, qword [rbx]
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], si
jne 0x1400936d0
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400088b0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.140024f90
nop
lea rcx, [rdi + 0x38]
cmp rcx, rax
je 0x140093715
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14009370c
mov rax, qword [rax]
mov rdx, rax
call fcn.1400088b0
nop
lea rcx, [rbp - 0x69]
call fcn.140008840
nop
lea rcx, [rbp - 0x29]
call fcn.140008840
cmp qword [rdi + 8], 0
setne al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400a8e00
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140108070
cdqe
add rsp, 0x28
ret

Function at 0x1400ae840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400ae89e
mov dl, 1
call fcn.1400a9b10
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400a9b10
mov eax, ebx
jmp 0x1400ae8e0
cmp ebx, 2
ja 0x1400ae8de
mov r9, qword [rdi + 0x650]
lea rdx, [0x14012eca0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400f72d4
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.1400f72d4
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ae900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf6e], 0
mov rdi, rcx
jne 0x1400ae943
cmp qword [rcx + 0x660], 0
je 0x1400aea20
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400b1d40
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ae971
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x1400ae9b8
cmp byte [rdi + 0x16d3], 0
jne 0x1400ae9b8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ae9a0
mov byte [rdi + 0x16d3], 1
cmp byte [rdi + 0xf6e], 0
je 0x1400aea18
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1400aea71
cmp qword [rdi + 0x700], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1400aea39
mov dl, 1
mov rcx, rdi
call fcn.1400a9b10
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.1400a9b10
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x650]
lea rcx, [0x14012eca0]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400f72d4
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400f72d4
jmp 0x1400aea18
call fcn.1400ea154
int3
Function at 0x1400aea80
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400aebe4
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf6e], 0
mov rdi, rcx
je 0x1400aebcc
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400b1d40
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1400aeb41
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400aeb00
cmp byte [rax + rcx - 1], 0xa
jne 0x1400aeb28
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1400aeb3c
lea r8, [0x14012ecc0]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1400b1c20
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400aeb46
cmp qword [rdi + 0x700], 0
je 0x1400aeb8e
mov dl, 1
mov rcx, rdi
call fcn.1400a9b10
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.1400a9b10
jmp 0x1400aebc4
mov r9, qword [rdi + 0x650]
lea rcx, [0x14012eca0]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400f72d4
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400f72d4
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x860
pop rdi
ret

Function at 0x1400aea89
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400aebe4
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf6e], 0
mov rdi, rcx
je 0x1400aebcc
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400b1d40
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1400aeb41
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400aeb00
cmp byte [rax + rcx - 1], 0xa
jne 0x1400aeb28
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1400aeb3c
lea r8, [0x14012ecc0]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1400b1c20
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400aeb46
cmp qword [rdi + 0x700], 0
je 0x1400aeb8e
mov dl, 1
mov rcx, rdi
call fcn.1400a9b10
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.1400a9b10
jmp 0x1400aebc4
mov r9, qword [rdi + 0x650]
lea rcx, [0x14012eca0]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400f72d4
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400f72d4
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x860
pop rdi
ret
Function at 0x1400aec80
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 0x1400aecc2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x1400aee60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov r14, rcx
movsxd rcx, edx
mov r12, r9
mov rax, rcx
mov r15, r8
shl rax, 5
lea rbx, [r14 + 0x508]
mov rbp, qword [r14 + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [r14 + 0x6c0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400aef68
lea rax, [0x1400aed10]
cmp qword [r14 + rcx*8 + 0x4e8], rax
jne 0x1400aef68
cmp qword [rbx], 0
je 0x1400aeeea
test rdi, rdi
je 0x1400aef68
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.1400d1ec0
cmp eax, 0xffffffff
je 0x1400aef68
test al, 1
je 0x1400aef68
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400aef47
mov rax, qword [r14]
mov ecx, dword [rax + 0xb88]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1400aefa2
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400aef68
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x1400aefe4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1400aefb1
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1400aefe4
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x1400aefe7
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14009c840
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400ae900
mov rcx, qword [r14]
mov dword [rcx + 0x1248], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x1400af51d
call fcn.1400a7f60
test eax, eax
jne 0x1400af543
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x1400af516
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400af516
mov al, 1
add rsp, 0x28
ret
Function at 0x1400b14e0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14012f128]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400b150a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14012f148]
mov rcx, rbx
mov r14, rax
call fcn.1400ffef0
test rax, rax
je 0x1400b156d
mov rcx, rbx
test r14, r14
je 0x1400b1557
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400b15a5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b15a5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400b1668
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400b15d0
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400b165a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400b165a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400b1600
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400b1614
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400b1630
mov rcx, rdi
test r14, r14
je 0x1400b1651
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400b1657
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400f2fd4]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400b9f00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400b9f7a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400af3f0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400b9f9f
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400ae900
lea eax, [rbx + 0x1f]
jmp 0x1400ba018
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400aea80
mov edx, 1
mov byte [rdi + 0x682], 0
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.1400d9320
mov byte [rdi + 0x695], 1
cmp qword [rsi + 0x710], 0
je 0x1400ba016
mov dl, 1
mov rcx, rsi
call fcn.1400a9b10
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1400a9b10
test ebx, ebx
je 0x1400ba016
mov rcx, rdi
call fcn.1400ba540
mov eax, 0x2a
jmp 0x1400ba018
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400bb040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x9e8
cmp byte [rax + 0xf59], 0
jne 0x1400bb065
cmp dword [rax + 0x9e0], 0
je 0x1400bb091
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x1400bb091
lea rdx, str.MDTM__s
call fcn.1400daca0
test eax, eax
jne 0x1400bb09e
mov dword [rbx + 0xac0], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400bbec0
add rsp, 0x20
pop rbx
ret

Function at 0x1400bbec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf6c], 0
je 0x1400bbf18
cmp qword [rcx + 0xa90], 0
je 0x1400bbf18
cmp byte [r9 + 0xf5b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xab0]
cmp eax, edx
je 0x1400bbf18
mov rax, qword [r9 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf5b]
jmp fcn.1400ba770
jmp fcn.1400bbe60