joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033fb0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140034053
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14002e0d0
cmp eax, 4
jne 0x14003401f
cmp byte [0x1403315f4], bpl
jne 0x14003406b
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140034058
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140033fe0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140033fe0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x1403315f0], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1403315f0], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x140034027
Function at 0x140040d40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.140019770
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.14007bf9c]
mov rbx, rax
test rax, rax
je 0x140040ee6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140040dd0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140040e32
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140040df0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140040e73
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1402d5b20]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1402d5b21]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140040e40
mov rcx, qword [rsp + 0x70]
call fcn.140019770
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x140040ea2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.140034090]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140041970
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14002f29c
cdqe
add rsp, 0x28
ret
Function at 0x140044b10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140332d88]
mov rdi, qword [0x140332df0]
test rax, rax
jne 0x140044d67
movdqa xmm1, xmmword [0x1402b7510]
lea r9d, [rax + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm0
xor edx, edx
lea r8, [0x14032ee70]
movdqu xmmword [rsp + 0x58], xmm1
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x48], al
mov qword [rsp + 0x58], rax
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400ed440
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x140044b9e
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x140044b90
xor edx, edx
test r9, r9
je 0x140044c2f
cmp r9, 0x40
jb 0x140044c18
movdqa xmm2, xmmword [str.7777777777777777]
lea rax, [rbx + 0x20]
mov rcx, r9
and rcx, 0xffffffffffffffc0
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, rcx
jb 0x140044bc2
cmp rdx, r9
jae 0x140044c2f
mov rcx, r9
lea rax, [rbx + rdx]
sub rcx, rdx
xor byte [rax], 0x37
lea rax, [rax + 1]
sub rcx, 1
jne 0x140044c22
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140044c40
lea rax, [r9 - 8]
cmp r8, rax
jb 0x140044c57
lea r8, [r9 - 9]
lea rcx, [rsp + 0x48]
call fcn.140103aa0
test rbx, rbx
je 0x140044c9b
mov rdx, qword [rsp + 0x40]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140044c93
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d96
mov rcx, rbx
call fcn.140086a30
cmp qword [rsp + 0x60], 0x10
lea rbx, [rsp + 0x48]
cmovae rbx, qword [rsp + 0x48]
call fcn.1400ff030
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x60]
mov qword [0x140332d88], rax
test rax, rax
jne 0x140044d19
cmp rdx, 0x10
jb 0x140044d06
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044d01
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d96
call fcn.140086a30
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
cmp rdx, 0x10
jb 0x140044d54
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044d48
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d96
call fcn.140086a30
mov rax, qword [0x140332d88]
movdqa xmm0, xmmword [0x1402b7510]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov r9d, 0x20
mov dword [rsp + 0x20], 0
lea r8, str.ChainingModeCBC
mov rcx, rdi
lea rdx, str.ChainingMode
call rax
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
call fcn.140037b28
int3
Function at 0x14004b9f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.1400f7f60]
mov rdi, rax
test rax, rax
je 0x14004ba6d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14004ba98
cmp ebx, esi
je 0x14004ba98
cmp ebx, 0x8000
ja 0x14004ba98
cmp ebx, esi
jb 0x14004ba93
mov edx, ebx
mov rcx, rdi
call qword [fcn.1400f7f60]
mov rdi, rax
test rax, rax
jne 0x14004ba30
mov rcx, rbp
call qword [fcn.140034090]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14004ba78
mov rcx, rdi
jmp 0x14004ba70
Function at 0x140053e70
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1403316f0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140053ed4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400963b0
test al, al
je 0x140053ec8
mov dword [0x1403316f0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1403316f0], 1
jmp 0x140053ed9
cmp eax, 2
je 0x140053f2b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140053f0a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140053f2b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14003aa7e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14003aa61
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14003aa4c
Function at 0x140056e80
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14005701e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x140056ffe
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140056eee
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140056ee0
inc rbx
jmp 0x140056ef0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140056efd
lea ebp, [rax + 0xe]
jmp 0x140056f09
cmp eax, 0x17
jne 0x140056fa1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140056fa1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140056fa1
cmp rax, rbp
jb 0x140056fa1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.14007bf9c]
mov r14, rax
test rax, rax
je 0x140056fb0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.140290ef0
test rbx, rbx
je 0x140056f8e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.140290ef0
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x140056f9e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140056ed0
jmp 0x140056fb6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140056fd0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140056ff9
test rdi, rdi
je 0x140056ff5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.140034090]
mov rdi, rbx
test rbx, rbx
jne 0x140056fe0
xor edi, edi
jmp 0x14005700d
test rdi, rdi
jne 0x14005700d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x140057030
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1402c55b0]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], di
mov qword [rbp + 0xa8], rdi
mov dword [rbp + 0x98], edi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x70]
call fcn.140291590
mov dword [rbp + 0xa0], 0xfe
lea rdx, [rsp + 0x50]
lea ecx, [rdi + 0x13]
call fcn.1400a9720
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0x14]
call fcn.1400a9720
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057150
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x98]
xor r8d, r8d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057142
cmp dword [rbp + 0x98], 1
jne 0x140057142
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140057860
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005718e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057189
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400571f0
call fcn.140086a30
movdqa xmm0, xmmword [0x1402c55b0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400571df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400571da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400571ea
call fcn.140086a30
add rsp, 0x170
pop rdi
pop rbx
pop rbp
ret
call fcn.140037b28
nop
call fcn.140037b28
nop
int3
Function at 0x140064c50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14007bf9c]
mov rbx, rax
test rax, rax
jne 0x140064c95
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140064ce0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140064d42
mov rsi, r15
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 [rbx + 8]
call qword [rbp + 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 [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140064d00
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140064d83
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1402d5b20]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1402d5b21]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140064d50
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x14006df4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14006df7e
call fcn.14006a8a8
mov dword [rax], socket
call fcn.1400eabbc
jmp 0x14006e09d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006e09d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006e09d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14006dfad
lock or dword [rcx + 0x14], 0x10
jmp 0x14006e09d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006dfc1
call fcn.1400ab324
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140067ad4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002f29c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14006e08b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14006e056
mov rcx, rsi
call fcn.140067ad4
cmp eax, edi
je 0x14006e041
mov rcx, rsi
call fcn.140067ad4
cmp eax, 0xfffffffe
je 0x14006e041
mov rcx, rsi
call fcn.140067ad4
movsxd rbx, eax
lea r14, [0x1403307a0]
mov rcx, rsi
sar rbx, 6
call fcn.140067ad4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14006e048
lea rdx, [0x140308470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006e056
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14006e07a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14006e07a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14006e07a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14006e0a0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140075380
Capabilities:
Read file on windows

Disassembly:
jmp 0x1402ab138
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1402ab16e
call fcn.14006a8a8
mov dword [rax], socket
call fcn.1400eabbc
jmp 0x1402ab2be
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402ab2be
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402ab2be
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402ab19d
lock or dword [rcx + 0x14], 0x10
jmp 0x1402ab2be
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402ab1b1
call fcn.1400ab324
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1402ab1c1
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1402ab1c4
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140067ad4
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002f29c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1402ab2ac
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1402ab257
mov rcx, rbx
call fcn.140067ad4
cmp eax, 0xffffffff
je 0x1402ab242
mov rcx, rbx
call fcn.140067ad4
cmp eax, 0xfffffffe
je 0x1402ab242
mov rcx, rbx
call fcn.140067ad4
movsxd rdi, eax
lea rsi, [0x1403307a0]
mov rcx, rbx
sar rdi, 6
call fcn.140067ad4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1402ab249
lea rdx, [0x140308470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402ab257
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1402ab27b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1402ab27b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1402ab27b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1402ab299
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1402ab2a4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1402ab2c3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400754f4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14007556c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14007556c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14007556c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140075560
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14007557e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14007554e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14007556e
Function at 0x140076e30
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
cmp dword [0x140332e04], 0
jne 0x140076ee1
mov qword [rax - 8], rbx
xor ebx, ebx
mov qword [rax + 0x18], rbx
mov r9d, 0x220
mov dword [rax + 0x10], 0
mov dl, 2
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140076ed2
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140076ec4
cmp dword [rsp + 0x70], ebx
je 0x140076ec4
mov dword [0x140332e00], 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rbx, qword [rsp + 0x60]
mov dword [0x140332e04], 1
mov eax, dword [0x140332e00]
add rsp, 0x68
ret