joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab90
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xff90]
mov eax, 0x10090
call fcn.1400b61d0
sub rsp, rax
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rbp + 0xff80], rax
mov rsi, rcx
mov dword [rsp + 0x58], 0x7fff
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14000ac58
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000e280
nop
lea rcx, [rsp + 0x20]
call fcn.140002020
mov rdi, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000dfe0
mov rbx, qword [rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000e060
mov r9, rdi
mov r8, rbx
mov rdx, qword [rax]
lea rcx, [rsp + 0x28]
call fcn.140016410
mov rdx, rax
lea rcx, [0x1401f4e40]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
nop
lea rcx, [rsp + 0x60]
call fcn.14000e230
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000acdf
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000e280
nop
lea rcx, [rsp + 0x20]
call fcn.140002020
mov rdi, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000dfe0
mov rbx, qword [rax]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000e060
mov r9, rdi
mov r8, rbx
mov rdx, qword [rax]
lea rcx, [rsp + 0x28]
call fcn.140016410
mov rdx, rax
lea rcx, [0x1401f4e20]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
nop
lea rcx, [rsp + 0x60]
call fcn.14000e230
lea rdx, str.appdata
lea rcx, [rsp + 0x28]
call fcn.140007c00
mov rdx, rax
lea rcx, [0x1401f4e80]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
lea rdx, str.localappdata
lea rcx, [rsp + 0x28]
call fcn.140007c00
mov rdx, rax
lea rcx, [0x1401f4dc0]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
lea r8, str.MicrosoftWindowsStart_MenuProgramsStartup_
lea rdx, [0x1401f4e80]
lea rcx, [rsp + 0x28]
call fcn.140014cb0
mov rdx, rax
lea rcx, [0x1401f4eb0]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
lea rcx, [rsp + 0x28]
call fcn.140007c30
mov rdx, rax
lea rcx, [0x1401f4e60]
call fcn.14000e980
lea rcx, [rsp + 0x28]
call fcn.14000e910
mov rax, rsi
mov rcx, qword [rbp + 0xff80]
xor rcx, rsp
call fcn.1400b5540
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000ccd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000cd05
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_72
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
call fcn.140010e00
mov rbp, rax
test rbx, rbx
jle 0x14000cd75
test rax, rax
jle 0x14000cd56
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call fcn.140010f40
mov rcx, rax
mov r8, rbp
mov rdx, r14
call fcn.140005ac0
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call fcn.140010e60
add r14, rbp
test rbx, rbx
jle 0x14000cd75
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000cd75
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400cc550
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov r14, rcx
mov rbp, r8
test r8, r8
jle 0x14000d5e9
mov qword [rsp + 0x40], rdi
mov rcx, r14
call fcn.140010e00
test rax, rax
jle 0x14000d593
cmp rbx, rax
mov rdi, rbx
mov rcx, r14
cmovge rdi, rax
call fcn.140010f40
mov rcx, rax
mov r8, rdi
mov rdx, rsi
call fcn.140005ac0
mov edx, edi
mov rcx, r14
sub rbx, rdi
call fcn.140010e60
jmp 0x14000d5d8
mov rax, qword [r14]
mov rcx, rsi
mov rdi, qword [rax + 0x18]
call fcn.14000d470
mov edx, eax
mov rcx, r14
mov rax, rdi
call qword [case.0x140002a96.0]
mov dword [rsp + 0x50], eax
call fcn.140007810
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x58]
call fcn.140012360
test al, al
jne 0x14000d5e4
dec rbx
mov edi, 1
add rsi, rdi
test rbx, rbx
jg 0x14000d557
mov rdi, qword [rsp + 0x40]
sub rbp, rbx
mov rbx, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x14000cda0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x14000cdcc
xor eax, eax
jmp 0x14000cec6
cmp qword [rcx + 0x68], 0
je 0x14000cddd
call fcn.14000d600
jmp 0x14000cec6
mov qword [rsp + 0x78], rbx
mov rbx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140010e80
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000ce38
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140005a00
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140010f50
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.140005ac0
sub qword [rsp + 0x20], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.140010f10
mov rbx, qword [rsp + 0x20]
cmp qword [rsi + 0x80], 0
je 0x14000cebb
mov rcx, rsi
call fcn.140010a20
mov rbx, qword [rsp + 0x20]
cmp rbx, 0xfff
jbe 0x14000ce97
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call fcn.1400ccdf0
mov rbx, qword [rsp + 0x20]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x20], rbx
cmp rax, 0xfff
jne 0x14000cebb
cmp rbx, rax
ja 0x14000ce60
test rbx, rbx
je 0x14000cebb
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1400ccdf0
mov rbx, qword [rsp + 0x20]
sub rbx, rax
sub rdi, rbx
mov rbx, qword [rsp + 0x78]
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d2c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ebp, edx
mov dword [rsp + 0x58], edx
mov rdi, rcx
call fcn.140007810
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x40]
mov esi, eax
call fcn.140012360
test al, al
je 0x14000d313
lea rcx, [rsp + 0x58]
call fcn.140012330
jmp 0x14000d454
mov rcx, rdi
mov qword [rsp + 0xc0], rbx
call fcn.140010f40
test rax, rax
je 0x14000d35e
mov rcx, rdi
call fcn.140010ee0
mov rcx, rdi
mov rbx, rax
call fcn.140010f40
cmp rax, rbx
jae 0x14000d35e
mov rcx, rdi
call fcn.140010e20
lea rcx, [rsp + 0x58]
mov rbx, rax
call fcn.14000d470
mov byte [rbx], al
mov eax, ebp
jmp 0x14000d44c
cmp qword [rdi + 0x80], 0
je 0x14000d44a
mov rcx, rdi
call fcn.140010a20
mov rbx, qword [rdi + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14000d470
test rbx, rbx
jne 0x14000d3a0
mov rdx, qword [rdi + 0x80]
movzx ecx, al
call fcn.1400050b0
test al, al
cmovne esi, ebp
jmp 0x14000d44a
mov byte [rsp + 0x50], al
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.14000f740
test eax, eax
je 0x14000d40b
sub eax, 1
je 0x14000d40b
cmp eax, 2
jne 0x14000d44a
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x50]
call fcn.1400050b0
test al, al
cmovne esi, ebp
jmp 0x14000d44a
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
sub rbx, rax
je 0x14000d438
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov r8, rbx
mov edx, 1
call fcn.1400cc550
cmp rbx, rax
jne 0x14000d44a
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, ebp
jne 0x14000d44c
mov eax, esi
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010ab0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x70
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x68], 0
mov rsi, rcx
je 0x140010bb8
cmp byte [rcx + 0x71], 0
je 0x140010bb8
mov rax, qword [rcx]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov rbx, qword [rax + 0x18]
call fcn.140007810
mov edi, eax
mov edx, eax
mov rax, rbx
mov rcx, rsi
call qword [case.0x140002a96.0]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], edi
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], eax
call fcn.140012360
mov rdi, qword [rsp + 0x90]
test al, al
jne 0x140010bb4
mov rcx, qword [rsi + 0x68]
lea rax, [rsp + 0x38]
lea rdx, [rsi + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
call fcn.1400127d0
test eax, eax
je 0x140010b7a
sub eax, 1
je 0x140010b7e
cmp eax, 2
jne 0x140010bb4
mov byte [rsi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x70
pop rsi
ret
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
sub rbx, rax
je 0x140010bab
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 1
call fcn.1400cc550
cmp rbx, rax
jne 0x140010bb4
cmp byte [rsi + 0x71], 0
sete al
jmp 0x140010b5f
xor al, al
jmp 0x140010b5f
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x70
pop rsi
ret

Function at 0x1400132f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x140013300
mov dword [rcx], 0x270
ret

Function at 0x140024940
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x140024959
call fcn.140024d80
jmp 0x140024965
cmp eax, 0x4e0
jb 0x140024965
call fcn.140024dd0
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

Function at 0x140024d80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140024d90
ret
Function at 0x140024dd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r11, rcx
mov eax, dword [r10]
mov ebx, 0xe3
nop word [rax + rax]
mov edx, dword [r10 + 4]
lea r8, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rbx, 1
jne 0x140024df0
lea r10, [r11 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r10]
nop dword [rax + rax]
mov edx, dword [r10 + 4]
lea r8, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rbx, 1
jne 0x140024e40
mov edx, dword [r11 + 0x1380]
xor edx, dword [r11 + 4]
mov rbx, qword [rsp + 8]
btr edx, 0x1f
xor edx, dword [r11 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 + 0x9c0], ecx
mov dword [r11], 0
ret

Function at 0x1400254c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000ab80
mov rcx, r8
call fcn.140002020
mov r8, rax
mov rcx, rdx
call fcn.140002020
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140029350
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140003820
mov r9, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x1400293c0]
xor edx, edx
xor ecx, ecx
call fcn.1400c84b0
mov qword [rbx], rax
test rax, rax
je 0x14002556a
lea rcx, [rsp + 0x30]
call fcn.1400192e0
nop
lea rcx, [rsp + 0x30]
call fcn.140028840
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b5540
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call fcn.1400b387c
int3
Function at 0x14002f3e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1401f1710]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14002f428
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14002f41c
mov rax, qword [rax + 0x10]
jmp 0x14002f422
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14002f410
cmp byte [rcx + 0x19], 0
jne 0x14002f504
cmp dword [rcx + 0x20], 4
jg 0x14002f504
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14002f451
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x14002f483
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x14002f470
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002ee40
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14002f4be
cmp rcx, qword [rbx + 8]
je 0x14002f4be
cmp qword [rbx + 0x10], 1
jne 0x14002f4c2
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x14002f4a8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002f530
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1400152a0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14002f380
lea rdx, [0x1401e67f8]
lea rcx, [rsp + 0x20]
call fcn.1400b7ae0
nop
lea rcx, str.invalid_map_K__T__key
call fcn.1400b3ac0
int3
Function at 0x140033af0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r9d
mov rbx, r8
mov dword [rdx + 8], 0x34567890
mov r10, rcx
movzx eax, byte [rcx]
test al, al
je 0x140033b83
mov r8d, 0x12345678
mov r11d, 0x34567890
nop word [rax + rax]
mov rcx, r8
lea r10, [r10 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
xor ecx, dword [rbx + rax*4]
movzx eax, cl
mov r8d, ecx
add eax, r9d
mov dword [rdx], ecx
imul r9d, eax, 0x8088405
mov ecx, r11d
shr ecx, 8
inc r9d
mov dword [rdx + 4], r9d
mov eax, r9d
shr rax, 0x18
xor rax, r11
movzx eax, al
xor ecx, dword [rbx + rax*4]
mov dword [rdx + 8], ecx
mov r11d, ecx
movzx eax, byte [r10]
test al, al
jne 0x140033b30
mov rbx, qword [rsp + 8]
ret

Function at 0x140033b90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x140033c56
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x140033c56
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
mov ecx, edx
mov r8, qword [rbx + 0x10138]
xor rcx, rax
mov r10d, dword [rbx + 0x10130]
movzx eax, cl
and r10d, 0xfffd
mov ecx, dword [rbx + 0x10130]
or r10d, 2
shr edx, 8
xor edx, dword [r8 + rax*4]
mov dword [rbx + 0x10128], edx
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], ecx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x140033bc0
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
mov edi, dword [rbx + 0xd4]
call qword [rbx + reloc.WS2_32.dll_recv]
xor edx, edx
mov dword [rbx + 0xd4], 0
cmp eax, edi
mov ecx, 0xffffffff
cmovne edx, ecx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10118], rdi
mov eax, edx
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400402f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x140040332
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
sub r8d, ecx
add rcx, qword [rbx + 0x48]
call fcn.1400b83c0
mov rdx, qword [rbx + 0x48]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov dword [rbx + 0x1c], 0
add rsp, 0x20
pop rbx
jmp fcn.14003f670
add rsp, 0x20
pop rbx
ret
Function at 0x1400554c0
Capabilities:
Read file on windows

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

Function at 0x1400557a0
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 rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14005586b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1400592d0
cmp eax, 4
jne 0x14005581c
cmp byte [0x1401f2ee4], r14b
jne 0x140055828
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14005586d
mov eax, dword [rsp + 0x50]
jmp 0x140055847
imul eax, dword [0x1401f2ee0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1401f2ee0], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140055862
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140055850
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1400557d0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140055880
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 0x140055950
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400592d0
cmp eax, 4
je 0x1400558d2
test eax, eax
jne 0x140055955
jmp 0x14005591c
cmp byte [0x1401f2ee4], bpl
jne 0x140055900
mov r9d, 2
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x14005591c
mov eax, 2
jmp 0x140055955
imul eax, dword [0x1401f2ee0], 0x41c64e6d
add eax, 0x3039
mov dword [0x1401f2ee0], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x1400558b0
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 0x1400558b0
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
Function at 0x14005b880
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005b962
call fcn.140071e50
test al, al
jne 0x14005b962
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14005b8b2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140073190
test rax, rax
je 0x14005b8f7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140073190
mov rsi, rax
test rax, rax
je 0x14005b8f7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14005b92b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400552a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14005b910
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006a710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14006a7d9
cmp qword [rcx + 0x268], 0
je 0x14006a78e
mov qword [rsp + 0x40], rbx
call fcn.1400639f0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140063d50
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140063d50
mov rbx, qword [rsp + 0x40]
jmp 0x14006a7d9
mov ecx, esi
test edx, edx
je 0x14006a79e
sub ecx, 1
je 0x14006a79e
cmp ecx, 1
jne 0x14006a7d9
mov r9, qword [rdi + 0x1d8]
lea rax, [0x140192d40]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400cc550
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400cc550
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret