joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1408
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a1438
xor eax, eax
jmp 0x1400a14fb
mov rbp, rbx
cmp word [rax], si
je 0x1400a145d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a1444
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a1440
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a1b48
movsxd r14, eax
test eax, eax
jne 0x1400a149b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a1431
mov rcx, r14
call fcn.14003f6d4
mov rdi, rax
test rax, rax
jne 0x1400a14b4
xor ecx, ecx
call fcn.14005a36c
jmp 0x1400a1490
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a1b48
test eax, eax
jne 0x1400a14e5
mov rcx, rdi
call fcn.14005a36c
jmp 0x1400a14ef
xor ecx, ecx
call fcn.14005a36c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a4550
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
cmp dword [0x14099bb74], 0
jne 0x1400a460f
mov qword [rax + 0x20], rbx
xor ebx, ebx
mov qword [rax + 0x18], rbx
mov r9d, 0x220
mov qword [rax - 8], rdi
mov dl, 2
mov dword [rax + 0x10], 0
lea rcx, [rsp + 0x78]
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
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]
lea edi, [rbx + 1]
test eax, eax
je 0x1400a45fc
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 0x1400a45ee
mov eax, dword [0x14099bb70]
cmp dword [rsp + 0x70], ebx
cmovne eax, edi
mov dword [0x14099bb70], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rbx, qword [rsp + 0x88]
mov dword [0x14099bb74], edi
mov rdi, qword [rsp + 0x60]
mov eax, dword [0x14099bb70]
add rsp, 0x68
ret
Function at 0x1400bcaf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.140179e50
test eax, eax
jne 0x1400bcc8d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [0x1406633c4], bpl
mov qword [rsp + 0x38], rsi
jne 0x1400bcb25
mov esi, ebp
jmp 0x1400bcb41
mov ecx, 5
call qword [0x140663430]
mov rsi, rax
test rax, rax
je 0x1400bcb41
mov rcx, rax
call qword [0x140663440]
test ebx, ebx
jle 0x1400bcc6f
test rdi, rdi
je 0x1400bcc6f
cmp dword [0x14099b9a0], ebp
jne 0x1400bcbf8
xor ecx, ecx
call fcn.1400b7fa0
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14099b9a0], xmm0
test rax, rax
jne 0x1400bcb98
xorps xmm0, xmm0
mov qword [0x14099b9d0], rax
movups xmmword [0x14099b9b0], xmm0
mov dword [0x14099b9d8], eax
movups xmmword [0x14099b9c0], xmm0
jmp 0x1400bcbdc
mov ecx, dword [0x140663570]
test ecx, ecx
je 0x1400bcbca
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14099b9b0], xmm0
mov dword [0x14099b9b0], ecx
movups xmmword [0x14099b9c0], xmm0
mov qword [0x14099b9d0], rax
mov dword [0x14099b9d8], eax
jmp 0x1400bcbdc
lea r8, [0x14099b9b0]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x14099b9d0]
xor cl, cl
mov byte [0x14099ba20], cl
mov dword [0x14099b9dc], eax
mov dword [0x14099b9d0], ebp
jmp 0x1400bcbff
movzx ecx, byte [0x14099ba20]
movzx eax, cl
lea rbp, [0x14099b9e0]
cmp ebx, eax
jle 0x1400bcc51
nop dword [rax]
test cl, cl
je 0x1400bcc2f
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.1405e55e0
movzx ecx, byte [0x14099ba20]
sub ebx, ecx
add rdi, rcx
inc dword [0x14099b9d0]
lea rdx, [0x14099b9a0]
mov rcx, rbp
call fcn.1400bc810
mov cl, 0x40
mov byte [0x14099ba20], cl
cmp ebx, 0x40
jg 0x1400bcc10
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.1405e55e0
sub byte [0x14099ba20], bl
jmp 0x1400bcc75
mov dword [0x14099b9a0], ebp
test rsi, rsi
je 0x1400bcc83
mov rcx, rsi
call qword [0x140663450]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401093c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r15
sub rsp, 0x68
mov r15, rdx
mov rdi, rcx
movzx edx, byte [rdx]
movzx eax, dl
cmp dl, 0xb0
jne 0x1401093de
movzx eax, byte [r15 + 2]
cmp al, 0xb1
jne 0x1401093e8
mov rax, qword [r15 + 0x20]
jmp 0x1401093f8
cmp al, 0x8a
jne 0x140109577
mov rax, qword [r15 + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x140109577
mov dword [r8], 0
cmp dl, 0x8a
jne 0x140109422
mov rdx, r15
mov rcx, rdi
add rsp, 0x68
pop r15
pop rdi
jmp fcn.1401072b0
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x140109562
mov qword [rsp + 0x80], rbx
lea rcx, [0x140105240]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r14
lea r13, [fcn.140105420]
xor r14d, r14d
mov qword [rsp + 0x98], rsi
lea edx, [r14 + 2]
cmp byte [rdi + 0x23], 0
mov rax, qword [r15 + 0x20]
mov rbx, qword [r14 + rax + 8]
je 0x1401094d0
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x1401094c0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400fd450
cmp word [rsp + 0x44], 0
je 0x1401094d0
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14010b340
jmp 0x140109510
mov rsi, qword [rdi]
test rbx, rbx
je 0x1401094ec
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140103c20
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x140109500
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14010b640
test rbx, rbx
je 0x140109510
mov rdx, rbx
mov rcx, rsi
call fcn.1401038c0
inc ebp
lea rcx, [0x140105240]
add r14, 0x20
mov edx, 2
sub r12, 1
jne 0x140109480
mov eax, dword [rsp + 0x88]
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop rdi
ret
mov rdx, r15
mov rcx, rdi
add rsp, 0x68
pop r15
pop rdi
jmp fcn.14010b510
Function at 0x14010de20
Capabilities:
Reference sql statements

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 r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1401170f0
test ebx, ebx
jne 0x14010de89
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1401170f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140117c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x140117d29
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x140632c90]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140117ca1
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x140117cdc
test ecx, ecx
jne 0x140117cea
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.1400bf910
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x140117cc0
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x140117c60
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x140117cef
inc r8
jmp 0x140117c90
test r10d, r10d
jne 0x140117cb9
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x140117d15
test edx, edx
je 0x140117ca1
inc rax
jmp 0x140117d00
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x140117cb9
inc rax
jmp 0x140117d00
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140187bf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14099baf8]
mov rdi, qword [0x14099bb60]
test rax, rax
jne 0x140187e57
movdqa xmm1, xmmword [0x14063ea30]
lea r9d, [rax + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm0
xor edx, edx
lea r8, [0x140997e70]
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.140037c30
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x140187c7e
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x140187c70
xor edx, edx
test r9, r9
je 0x140187d1d
cmp r9, 0x40
jb 0x140187cfc
movdqa xmm2, xmmword [0x14063eaa0]
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
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, rcx
jb 0x140187ca2
cmp rdx, r9
jae 0x140187d1d
mov rcx, r9
lea rax, [rbx + rdx]
sub rcx, rdx
nop word [rax + rax]
xor byte [rax], 0xe2
lea rax, [rax + 1]
sub rcx, 1
jne 0x140187d10
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140187d30
lea rax, [r9 - 8]
cmp r8, rax
jb 0x140187d47
lea r8, [r9 - 9]
lea rcx, [rsp + 0x48]
call fcn.140034fd0
test rbx, rbx
je 0x140187d8b
mov rdx, qword [rsp + 0x40]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140187d83
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140187e86
mov rcx, rbx
call fcn.14005fc98
cmp qword [rsp + 0x60], 0x10
lea rbx, [rsp + 0x48]
cmovae rbx, qword [rsp + 0x48]
call fcn.1400996d0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x60]
mov qword [0x14099baf8], rax
test rax, rax
jne 0x140187e09
cmp rdx, 0x10
jb 0x140187df6
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140187df1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140187e86
call fcn.14005fc98
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
cmp rdx, 0x10
jb 0x140187e44
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140187e38
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140187e86
call fcn.14005fc98
mov rax, qword [0x14099baf8]
movdqa xmm0, xmmword [0x14063ea30]
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.140070b74
int3
Function at 0x1405752d0
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 0x140575348
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140575348
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 0x140575348
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14057533c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14057535a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14057532a
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 0x14057534a
Function at 0x140582500
Capabilities:
Read file on windows

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

Function at 0x1405827c0
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, 0x30
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1405828db
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x60]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14058ff70
cmp eax, 4
jne 0x140582884
cmp byte [0x14099a014], r14b
jne 0x140582890
lea r9d, [rax - 3]
mov dword [rsp + 0x60], r14d
xor r8d, r8d
mov qword [rsp + 0x68], r14
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14058284e
mov eax, 2
jmp 0x140582884
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x68]
xor edx, edx
test eax, eax
jne 0x14058287b
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x140582884
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, r14d
mov edx, eax
test eax, eax
jne 0x1405828dd
mov eax, dword [rsp + 0x60]
jmp 0x1405828af
imul eax, dword [0x14099a010], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x14099a010], eax
rol eax, 0x10
mov dword [rsp + 0x60], eax
test rdi, rdi
je 0x1405828d2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1405828c0
mov dword [rsp + 0x60], eax
test rsi, rsi
jne 0x1405827f0
mov eax, edx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1405828f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xe8
mov rax, qword [0x140662038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, r8
lea r15, [rsp + 0x40]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x140582adc
test r14b, 1
je 0x140582adc
mov qword [r11 + 0x18], rbx
dec r14
mov qword [r11 - 0x28], rbp
mov ecx, 0x2b
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x40]
mov qword [r11 - 0x38], r13
je 0x140582a5b
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x30]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.14058ff70
cmp eax, 4
jne 0x140582a04
cmp byte [0x14099a014], r13b
jne 0x140582a14
lea r9d, [rax - 3]
mov dword [rsp + 0x30], r13d
xor r8d, r8d
mov qword [rsp + 0x38], r13
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1405829ce
mov eax, 2
jmp 0x140582a04
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
xor edx, edx
test eax, eax
jne 0x1405829fb
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x140582a04
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, r13d
mov ecx, eax
test eax, eax
jne 0x140582a9d
mov eax, dword [rsp + 0x30]
jmp 0x140582a33
imul eax, dword [0x14099a010], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x14099a010], eax
rol eax, 0x10
mov dword [rsp + 0x30], eax
test rbx, rbx
je 0x140582a52
sub rbp, rbx
nop dword [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140582a40
mov dword [rsp + 0x30], eax
test rbp, rbp
jne 0x140582970
mov eax, ecx
test ecx, ecx
jne 0x140582a9d
test r14, r14
je 0x140582a98
lea rdx, str.0123456789abcdef
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x140582a70
mov byte [rsi], 0
xor eax, eax
mov rdi, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x120]
mov r13, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140579eb0
add rsp, 0xe8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x140582abd
Function at 0x14059afd0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140614fd0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14059affa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140614fe0]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140614ff0]
mov rcx, rbx
mov r14, rax
call fcn.1405f99c0
test rax, rax
je 0x14059b05d
mov rcx, rbx
test r14, r14
je 0x14059b047
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 0x14059b095
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14059b095
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 0x14059b158
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14059b0c0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1405eac00]
mov rdi, rax
test rax, rax
je 0x14059b14a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14059b14a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14059b0f0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14059b104
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 0x14059b120
mov rcx, rdi
test r14, r14
je 0x14059b141
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14059b147
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1405ea4b4]
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 0x14059b1c0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140662038]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14059b226
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14059b209
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14059b203
shr ax, 8
cmp al, 2
je 0x14059b226
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140579eb0
add rsp, 0x1e8
ret
call fcn.1405d3d80
test eax, eax
jne 0x14059b430
mov qword [rsp + 0x200], rsi
lea rcx, [0x140614fd0]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14059b266
mov qword [0x14099a108], rsi
jmp 0x14059b3ed
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x140614fe0]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x140614ff0]
call fcn.1405f99c0
test rax, rax
je 0x14059b2ca
mov rcx, rbx
test rbp, rbp
je 0x14059b2bc
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14059b3ac
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14059b3ac
test rbp, rbp
je 0x14059b2f9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14059b2f9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14059b3ac
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14059b3a4
lea ecx, [rax + 1]
add rcx, 0xc
call qword [fcn.1405eac00]
mov rdi, rax
test rax, rax
je 0x14059b39b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14059b39b
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x14059b345
mov edx, 0x5c
mov word [rax + rdi], dx
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14059b360
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14059b372
mov rcx, rdi
test rbp, rbp
je 0x14059b392
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14059b398
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1405ea4b4]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14099a108], rsi
test rsi, rsi
je 0x14059b3ed
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14099a100]
test rax, rax
cmovne rcx, rax
mov qword [0x14099a100], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1405d3930
test al, al
lea rcx, [0x14099c100]
setne byte [0x14099c0fc]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140579eb0
add rsp, 0x1e8
ret