joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088e62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400befc8]
test eax, eax
je 0x140088efa
lea rax, [0x1400befa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400befd0]
mov qword [rbp - 8], rax
jmp 0x140088ede
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140088ed2
cmp qword [rbp - 0x10], 0
je 0x140088ed2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140088e98
lea rax, [0x1400befa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140088efb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140089000
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140089028
mov eax, 0
jmp 0x140089076
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140089051
mov eax, 0
jmp 0x140089076
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140089071
mov eax, 0
jmp 0x140089076
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008907c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400890fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400890f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400890f1
mov rax, qword [rbp - 8]
jmp 0x14008910f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400890c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1407ba160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407ba2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407ba191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407ba177
add dl, dl
jne 0x1407ba19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407ba1fe
xor eax, eax
add dl, dl
jne 0x1407ba1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407ba2b5
add dl, dl
jne 0x1407ba1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407ba1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407ba1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407ba1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407ba1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407ba186
mov eax, 1
add dl, dl
jne 0x1407ba20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407ba21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407ba203
sub eax, ebx
mov ebx, 1
jne 0x1407ba254
mov ecx, 1
add dl, dl
jne 0x1407ba236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407ba243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407ba22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407ba186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407ba270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407ba27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407ba265
cmp eax, 0x7d00
jae 0x1407ba2a3
cmp eax, 0x500
jb 0x1407ba29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407ba186
cmp eax, 0x7f
ja 0x1407ba2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407ba186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407ba2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407ba186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003e10
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140519680]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
xor edi, edi
call fcn.140399b30
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140017c4e
mov qword [rbx], rdi
lea rax, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], dil
jne 0x140017c20
mov qword [rbx + 8], rcx
inc rcx
call fcn.140367c30
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.140399490
jmp 0x140017c5b
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140367840
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x14001dc50
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001dd1c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001dd1c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001dd35
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001dd0c
cmp byte [rax], 0x5c
jne 0x14001dd06
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001dd06
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001dcf2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001dd03
test r8b, 0x10
jne 0x14001dd06
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001dd06
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001ac40
test edi, edi
jne 0x14001dc70
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001ac30
int3
Function at 0x140022b30
Capabilities:
Encrypt data using rc4 prga

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
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
mov rax, qword [0x140519680]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0x10]
movaps xmm10, xmm2
mov rdi, rdx
mov rsi, rcx
cmp rbx, qword [rcx + 8]
je 0x140022d2d
movsd xmm7, qword [0x1404dd288]
mov rcx, rbx
movsd xmm6, qword [0x1404dd280]
movabs rbp, 0x8000000000000000
movsd xmm9, qword [0x1404dd2a0]
mov r14d, 0x405
movabs r15, 0xffff000000000000
movabs r12, 0xffffffffffff
xorps xmm8, xmm8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], r14w
mov rax, qword [rsp + 0x30]
and rax, r15
or rax, rdi
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140022bf7
add rcx, 0xffffffffffffffa0
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.140020e60
mov edx, dword [rbx - 0x60]
lea rax, [rbx - 0x60]
mov rcx, qword [rsp + 0x20]
mov rbx, rax
mov rax, qword [rax + 8]
and rax, r12
shl rdx, 5
add rdx, rax
cmp rcx, rdx
je 0x140022d20
movzx eax, word [rcx + 0x1e]
shr ax, 9
test al, 1
jne 0x140022d7e
movzx edx, word [rcx + 0x1e]
movzx eax, dl
shr al, 4
test al, 1
je 0x140022d20
movzx eax, dx
shr ax, 8
test al, 1
je 0x140022cd9
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
test rdx, rdx
js 0x140022c7d
cvtsi2sd xmm0, rdx
jmp 0x140022c95
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmm8
jb 0x140022d20
movsd xmm0, qword [rsp + 0x28]
comisd xmm7, xmm0
jbe 0x140022d20
movsd xmm0, qword [rsp + 0x28]
xor ecx, ecx
comisd xmm0, xmm6
jb 0x140022ccf
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140022ccf
mov rcx, rbp
cvttsd2si rax, xmm0
add rax, rcx
jmp 0x140022d1b
shr dl, 7
test dl, 1
je 0x140022d7e
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
movsd qword [rsp + 0x28], xmm0
movsd xmm1, qword [rsp + 0x28]
comisd xmm1, xmm9
jb 0x140022d20
movsd xmm0, qword [rsp + 0x28]
comisd xmm6, xmm0
jbe 0x140022d20
movsd xmm0, qword [rsp + 0x28]
cvttsd2si rax, xmm0
cmp rdx, rax
je 0x140022d79
mov rcx, rbx
cmp rbx, qword [rsi + 8]
jne 0x140022bd2
movaps xmm0, xmm10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140367840
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rcx, qword [rsp + 0x20]
add rcx, 0x10
call fcn.140020b50
jmp 0x140022d31
Function at 0x140025d60
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rcx], rax
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
lea ecx, [rbp + 1]
call fcn.14032d2f0
cmp eax, 0xe
je 0x140025da0
cmp eax, 7
jne 0x140025dcc
mov ecx, 0x158
call fcn.140367860
mov rbx, rax
mov qword [rsi + 8], rax
call fcn.14032d9d0
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1403314e0
test eax, eax
jns 0x140025dd8
mov byte [0x14051a3d8], bpl
jmp 0x140025f13
xor edx, edx
mov rcx, qword [rsi + 8]
call fcn.1403319f0
mov rax, qword [rsi + 8]
mov qword [rsi + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025e2d
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleMode]
test eax, eax
je 0x140025e2d
mov edx, dword [rsp + 0x50]
and edx, 0xffffffbf
mov dword [rsp + 0x50], edx
bts edx, 7
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetConsoleMode]
cmp byte [rdi], bpl
je 0x140025f13
cmp qword [rdi + 8], rbp
jne 0x140025e56
mov ecx, 4
call fcn.140367c30
mov rbx, rax
mov eax, dword [0x1404d011c]
mov dword [rbx], eax
jmp 0x140025f02
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rbp
mov ecx, 0x40
call fcn.140367860
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140016c90
nop
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x19], 0
jne 0x140025ef3
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140019b50
mov rbx, rdi
mov rdi, qword [rdi]
mov rcx, qword [rbx + 0x30]
call fcn.14036789c
mov rcx, qword [rbx + 0x20]
call fcn.14036789c
mov edx, 0x40
mov rcx, rbx
call fcn.14036789c
cmp byte [rdi + 0x19], 0
je 0x140025eb0
mov rcx, qword [rsp + 0x20]
mov edx, 0x40
call fcn.14036789c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov rcx, rbx
call fcn.14036789c
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14004c080
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movzx eax, byte [rcx + 6]
mov rdx, rcx
movzx r8d, byte [rcx + 7]
movzx esi, byte [rcx + 0xb]
movzx ebp, byte [rcx + 0xf]
movzx r11d, byte [rcx + 0x13]
movzx ebx, byte [rcx + 0x17]
movzx edi, byte [rcx + 0x1b]
movzx r14d, byte [rcx + 0x1f]
shl r8, 8
or r8, rax
shl rsi, 8
movzx eax, byte [rcx + 5]
shl rbp, 8
shl r11, 8
shl rbx, 8
shl rdi, 8
shl r14, 8
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 4]
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 0xa]
or rsi, rax
movzx eax, byte [rcx + 9]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 8]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 0xe]
or rbp, rax
movzx eax, byte [rcx + 0xd]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0xc]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0x12]
or r11, rax
movzx eax, byte [rcx + 0x11]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x10]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x16]
or rbx, rax
movzx eax, byte [rcx + 0x15]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x14]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x1a]
or rdi, rax
movzx eax, byte [rcx + 0x19]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x18]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x1e]
or r14, rax
movzx eax, byte [rcx + 0x1d]
shl r14, 8
or r14, rax
movzx eax, byte [rcx + 0x1c]
movzx ecx, byte [rcx + 3]
shl rcx, 8
shl r14, 8
or r14, rax
movzx eax, byte [rdx + 2]
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
mov edx, 0x5cf5d3ec
mov eax, 1
sub rdx, rcx
test rdx, rdx
jle 0x14004c1da
mov r10d, eax
jmp 0x14004c1e7
xor r10d, r10d
test rdx, rdx
setns r10b
dec r10d
mov ecx, 0x5812631a
sub rcx, r8
test rcx, rcx
jle 0x14004c1f9
mov r9d, eax
jmp 0x14004c206
xor r9d, r9d
test rcx, rcx
setns r9b
dec r9d
mov ecx, 0xa2f79cd6
sub rcx, rsi
test rcx, rcx
jle 0x14004c218
mov r8d, eax
jmp 0x14004c225
xor r8d, r8d
test rcx, rcx
setns r8b
dec r8d
mov ecx, 0x14def9de
sub rcx, rbp
test rcx, rcx
jle 0x14004c236
mov edx, eax
jmp 0x14004c240
xor edx, edx
test rcx, rcx
setns dl
dec edx
mov ecx, 0x10000000
neg r11
sub rcx, r14
neg rbx
neg rdi
test rcx, rcx
jg 0x14004c260
xor eax, eax
test rcx, rcx
setns al
dec eax
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
cdqe
sar rdi, 0x3f
sar rbx, 0x3f
sar r11, 0x3f
lea rcx, [rdi + rax*2]
mov rdi, qword [rsp + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [rsp + 0x10]
lea rcx, [r11 + rax*2]
movsxd rax, edx
lea rdx, [rax + rcx*2]
movsxd rax, r8d
lea rcx, [rax + rdx*2]
movsxd rax, r9d
lea rdx, [rax + rcx*2]
movsxd rax, r10d
lea rax, [rax + rdx*2]
sar rax, 8
pop r14
ret
Function at 0x14004d910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x14004d971
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14004d930
mov ecx, dword [r9]
jmp 0x14004da5b
cmp ecx, 0x4e0
jb 0x14004da5b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14004d990
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14004d9e0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140070a00
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rcx
xor r12d, r12d
mov rdi, qword [rdx]
mov rbp, qword [rdx + 8]
cmp rdi, rbp
je 0x140070a9c
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140367860
mov r15, rax
mov qword [rsp + 0x98], rax
mov rdx, qword [r14 + 8]
sub rdx, qword [r14]
sar rdx, 3
mov rcx, qword [r14 + 0x18]
mov rbx, qword [rcx]
mov qword [rax], rdx
lea rcx, [rax + 8]
mov rdx, rdi
call fcn.140071cc0
mov qword [r15 + 0x50], rbx
mov qword [r15 + 0x58], r12
xorps xmm0, xmm0
movups xmmword [r15 + 0x60], xmm0
mov qword [rsp + 0x90], r15
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x140070a83
mov qword [rdx], r15
add qword [r14 + 8], 8
jmp 0x140070a93
lea r8, [rsp + 0x90]
mov rcx, r14
call fcn.140026c10
add rdi, 0x48
cmp rdi, rbp
jne 0x140070a21
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sar rax, 3
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140071d70
mov rcx, qword [r14 + 0x18]
add rcx, 0x18
mov rdx, rax
call fcn.140038330
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140070b07
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140070b07
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140070b07
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lock inc qword [0x14051a3f0]
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x140070b8b
lea rbp, [0x140070dc0]
mov rdi, qword [rbx]
mov ecx, reloc.WS2_32.dll_recv
call fcn.140367860
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140071f70]
xor edx, edx
xor ecx, ecx
call fcn.140378508
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140070ba0
cmp dword [rdi + 0x68], 0
jne 0x140070b9a
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0x60], xmm1
add rbx, 8
cmp rbx, rsi
jne 0x140070b22
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14037511c
nop
mov dword [rsp + 0x38], r12d
mov ecx, 6
call fcn.14036699c
int3
Function at 0x14008b0f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14008b121
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14008b19b
mov rdi, r14
mov rcx, rbx
call fcn.1400214f0
test rax, rax
jle 0x14008b173
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140399490
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14008b18b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14008b193
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14008b135
sub r14, rdi
jmp 0x14008b27f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14008b1b2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14008b1b4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14008b1e6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140399490
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14008b27c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14008b221
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14008b25d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140379020
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14008b27c
cmp rbp, rax
ja 0x14008b230
test rbp, rbp
je 0x14008b27c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140379020
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14009e520
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140519680]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
lea r8d, [rdi + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test eax, eax
je 0x14009e598
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0x30]
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x14009e580
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140007880
jmp 0x14009e5ad
mov qword [rbx + 0x10], 1
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov word [rbx], 0x2e
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140367840
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret