joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014200
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x14001431b
lea rax, [rsp + 0x82f]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140014291
nop dword [rax]
cmp r12, rdi
jae 0x140014291
cmp byte [r12], 0xa
jne 0x14001427c
add qword [rsp + 0x838], 1
mov byte [rdx], 0xd
add rdx, 1
add rdx, 1
add r12, 1
mov cl, byte [r12 - 1]
mov byte [rdx - 1], cl
cmp rdx, rax
jb 0x140014260
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014e30
test eax, eax
je 0x1400142c2
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov r9d, r14d
mov edx, dword [0x140027a40]
lea r8, [rsp + 0x30]
call fcn.140014ff0
mov ecx, esi
call fcn.140014dd0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001430e
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x14001431b
add r12, 1
cmp r12, rdi
jb 0x140014246
jmp 0x14001431b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014350
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x14001449f
lea rax, [rsp + 0x82e]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x1400143e6
nop dword [rax]
cmp r12, rdi
jae 0x1400143e6
cmp word [r12], 0xa
jne 0x1400143cf
add qword [rsp + 0x838], 2
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x1400143b0
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014e30
test eax, eax
je 0x140014459
mov ecx, esi
call fcn.140014dd0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov eax, r14d
shr rax, 1
mov r8d, eax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x140014492
mov eax, dword [rsp + 0x2c]
add rax, rax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x14001449f
add r12, 2
cmp r12, rdi
jb 0x140014396
jmp 0x14001449f
mov ecx, esi
call fcn.140014dd0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014437
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
jmp 0x14001449f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400144d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xc50
mov qword [rsp + 0xc90], rcx
mov ebx, edx
mov rsi, r8
lea rdi, [rsi + r9]
mov r12, rsi
xor r14, r14
cmp r12, rdi
jae 0x1400145b9
lea rax, [rsp + 0xc46]
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x848]
cmp rax, rcx
jbe 0x14001454d
nop
cmp r12, rdi
jae 0x14001454d
cmp word [r12], 0xa
jne 0x140014536
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140014520
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x848]
sub rdx, rax
sar rdx, 1
mov eax, edx
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x848]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400145c3
mov eax, eax
lea r15, [rsp + rax + 0x48]
lea rax, [rsp + 0x48]
cmp r15, rax
jbe 0x14001463e
lea r13, [rsp + 0x48]
jmp 0x140014604
mov dword [rsp + 0x40], 0
jmp 0x1400145cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc90]
mov qword [rax], r14
mov rax, qword [rsp + 0xc90]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xc90]
mov edx, dword [rsp + 0x40]
mov dword [rax + 0x10], edx
mov rax, qword [rsp + 0xc90]
jmp 0x14001468a
mov ecx, ebx
call fcn.140014dd0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rax, r15
sub rax, r13
mov r8d, eax
mov rdx, r13
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014656
mov eax, dword [rsp + 0x44]
add r13, rax
cmp r13, r15
jb 0x140014604
mov r14, r12
sub r14, rsi
add r12, 2
cmp r12, rdi
jb 0x140014502
jmp 0x1400145b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc90]
mov qword [rdx], r14
mov rdx, qword [rsp + 0xc90]
mov qword [rdx + 8], 0
mov rdx, qword [rsp + 0xc90]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0xc90]
add rsp, 0xc50
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400146a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, edx
mov rsi, r8
mov rdi, r9
call fcn.140014dd0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400146e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
jmp 0x1400146e8
mov edx, dword [rsp + 0x2c]
xor eax, eax
mov qword [rbx], rdx
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014bb0
Capabilities:
Delete file

Disassembly:
jmp 0x1400152b0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400152d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400151b0
or eax, 0xffffffff
jmp 0x1400152d2
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015290
Capabilities:
Terminate process

Disassembly:
cmp dword [0x140023880], 0
jne 0x1400140bf
mov dword [0x140023880], 1
lea rcx, [0x140014060]
jmp 0x140014aa0
ret
mov rax, qword [0x140027a20]
cmp qword [0x14001e060], rax
ja 0x140014ab5
jmp 0x140015290
lea rdx, [rax + 1]
mov qword [0x140027a20], rdx
lea rdx, [0x1400277a0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.1400152e0
mov ecx, 1
jmp 0x14000fde0

Function at 0x1400152b0
Capabilities:
Delete file

Disassembly:
jmp 0x1400152b0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400152d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400151b0
or eax, 0xffffffff
jmp 0x1400152d2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400152e0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x38
mov ebx, ecx
mov edx, 1
call fcn.140010c30
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x14001531a
cmp rsi, 1
je 0x140015313
test rsi, rsi
je 0x140015322
mov ecx, ebx
xor edx, edx
call fcn.140010c30
mov ecx, ebx
call rsi
xor eax, eax
jmp 0x14001541b
or eax, 0xffffffff
jmp 0x14001541b
mov eax, ebx
lea edx, [eax - 2]
cmp edx, 0xd
ja 0x14001537d
lea rdx, [0x14001d9c0]
movsxd rax, eax
jmp qword [rdx + rax*8 - 0x10]
lea rcx, [rsp + 0x37]
mov byte [rcx], 0
nop
nop word [rax + rax]
sub rcx, 1
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
neg edx
add edx, ebx
add edx, 0x30
mov byte [rcx], dl
mov ebx, eax
test eax, eax
jne 0x140015390
sub rcx, 1
mov byte [rcx], 0x23
sub rcx, 1
mov byte [rcx], 0x20
sub rcx, 1
mov byte [rcx], 0x6c
sub rcx, 1
mov byte [rcx], 0x61
sub rcx, 1
mov byte [rcx], 0x6e
sub rcx, 1
mov byte [rcx], 0x67
sub rcx, 1
mov byte [rcx], 0x69
sub rcx, 1
mov byte [rcx], 0x73
lea rdx, [0x14001e190]
call fcn.140010ba0
lea rcx, str.____terminating_n
lea rdx, [0x14001e190]
call fcn.140010ba0
mov ecx, 1
jmp 0x14000fde0
add rsp, 0x38
pop rsi
pop rbx
ret

Function at 0x1400157c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x30], 0
xor edx, edx
cmp eax, 0xffffffff
cmove eax, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov edx, esi
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400158c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x14001ffe0]
lea rdx, [0x14001ba3c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rsi, rsi
je 0x14001592d
mov rcx, rsi
xor edx, edx
mov r8d, 1
call fcn.1400157c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
lea rdx, [0x14001ffe0]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x140015af5
cmp esi, 0x400
jg 0x140015af5
mov rcx, rbx
lea rdx, [0x1400207e0]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x140015af5
cmp esi, 0x400
jg 0x140015af5
lea rcx, [0x140020fe0]
lea rdx, str._s_s_r_n
lea r8, [0x14001ffe0]
lea r9, [0x1400207e0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
lea rcx, str._WIN_
lea rdx, [0x1400207e0]
mov r8d, 0x800
call qword [sym.imp.pbcore64.dll_EvalVarBuf]
lea rcx, [0x1400207e0]
mov edx, 0xc0000000
mov r8d, 4
call fcn.1400157c0
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140015af5
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test r12, r12
je 0x140015ad2
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r12
mov r8d, edi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015ad2
cmp edi, dword [rsp + 0x2c]
jne 0x140015ad2
mov rcx, r12
lea rdx, str._Rename__r_n
call fcn.140015810
test rax, rax
je 0x140015add
lea rcx, [rax + 0xa]
lea rdx, [0x14001ba24]
call fcn.140015810
test rax, rax
je 0x140015a80
mov edx, edi
lea rcx, [r12 + rdx]
add rdx, r12
movsxd r8, ebx
add rdx, r8
cmp rcx, rax
jbe 0x140015a75
nop
nop word [rax + rax]
sub rdx, 1
sub rcx, 1
mov r8b, byte [rcx + 1]
mov byte [rdx + 1], r8b
cmp rcx, rax
ja 0x140015a60
sub rax, r12
add rax, 1
mov edx, eax
jmp 0x140015a82
mov edx, edi
mov eax, edx
mov eax, eax
lea rcx, [r12 + rax]
lea rdx, [0x140020fe0]
mov r8d, ebx
call fcn.140015890
mov rcx, rsi
xor edx, edx
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r8d, [edi + ebx]
mov rcx, rsi
mov rdx, r12
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015af5
mov eax, edi
lea rcx, [r12 + rax]
lea rdx, str._Rename__r_n
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x140015a80
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015e50
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x2000
call fcn.14000e000
mov rdi, rax
test rdi, rdi
je 0x140015ed4
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r12d, eax
test r12d, r12d
je 0x140015ed8
cmp r12d, 0x1000
ja 0x140015ef1
mov r14d, 1
jmp 0x140015ea1
xor r14d, r14d
test r14d, r14d
je 0x140015eb4
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.pbcore64.dll_SetVar]
jmp 0x140015ec4
mov rcx, rsi
lea rdx, [0x14001ba04]
call qword [sym.imp.pbcore64.dll_SetVar]
mov rcx, rdi
call fcn.14000e400
test r14d, r14d
setne al
jmp 0x140015f29
xor al, al
jmp 0x140015f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140015e9e
mov rcx, rdi
call fcn.14000e400
xor al, al
jmp 0x140015f29
mov eax, r12d
lea rdx, [rax + rax]
mov rcx, rdi
call fcn.14000e860
mov rdi, rax
test rdi, rdi
je 0x140015ed4
mov rcx, rbx
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140015e96
mov rcx, rdi
call fcn.14000e400
xor al, al
add rsp, 0x20
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400171d0
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x430
mov r8, rcx
lea rdi, [rsp + 0x228]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000d1f0
lea rcx, [rsp + 0x20]
call fcn.140017030
lea rax, [rsp + 0x20]
mov rbx, rax
nop dword [rax]
cmp word [rbx], 0x5c
je 0x140017232
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140017220
xor ebx, ebx
xor esi, esi
jmp 0x1400172c2
lea rax, [rsp + 0x20]
neg rax
add rax, rbx
sar rax, 1
lea r9, [rax + 1]
lea rcx, [rsp + 0x228]
mov edx, 0x104
lea r8, [rsp + 0x20]
call fcn.14000eb90
lea rcx, [rsp + 0x228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400172a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add rbx, 2
mov rax, rbx
nop
nop word [rax + rax]
cmp word [rbx], 0x5c
je 0x1400172a2
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140017290
xor ebx, ebx
jmp 0x1400172c2
cmp byte [0x140023ba0], 0
je 0x14001727e
mov ecx, 1
lea rdx, [rsp + 0x228]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
jmp 0x14001727e
test rbx, rbx
jne 0x140017239
mov eax, esi
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400172e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400172fd
test eax, 0x10
je 0x1400172fd
mov eax, 1
jmp 0x1400172ff
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400defff
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140104bb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140332110]
call fcn.1400e3ef1
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x140104bee
mov rcx, qword [rbp + 0x100]
call fcn.1400df30b
nop
jmp 0x140104c0a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140104c0a
mov rcx, qword [rbp + 0x100]
call fcn.1400e0e59
nop
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400df07c
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140107b70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140332038]
call fcn.1400e3ef1
nop
mov qword [rbp + 8], 0
jmp 0x140107baf
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x140107c05
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140107ba4
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400e0a85
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140226030
mov rax, rcx
neg rcx
test rax, 7
je 0x14022604d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402260a8
test al, 7
jne 0x140226040
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140226061
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402260d2
test dh, dh
je 0x1402260cc
shr rdx, 0x10
test dl, dl
je 0x1402260c6
test dh, dh
je 0x1402260c0
shr rdx, 0x10
test dl, dl
je 0x1402260ba
test dh, dh
je 0x1402260b4
shr edx, 0x10
test dl, dl
je 0x1402260ae
test dh, dh
jne 0x140226061
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400e0ad0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14027ad30
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14027a8b0
lea rcx, [rsp + 0x20]
call fcn.14027a900
movzx eax, al
test eax, eax
jne 0x14027ad75
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14027a8e0
mov rax, qword [rsp + 0x40]
jmp 0x14027ae6f
lea rcx, [rsp + 0x20]
call fcn.14027aa00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14027a9a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400e0ed1
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400e033c
lea rcx, [rsp + 0x28]
call fcn.1400e1449
movzx eax, al
test eax, eax
jne 0x14027ae0f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400e2beb
lea rcx, [rsp + 0x20]
call fcn.14027a8e0
mov rax, qword [rsp + 0x50]
jmp 0x14027ae6f
lea rcx, [rsp + 0x20]
call fcn.14027aa00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400e3dd9
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400e0dff
lea rcx, [rsp + 0x28]
call fcn.1400e48b0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400e2beb
lea rcx, [rsp + 0x20]
call fcn.14027a8e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400e0e59
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14010c0e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x140332110]
call fcn.1400e3ef1
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14010c125
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14010c1b6
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14010c17b
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010c185
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14010c11a
mov qword [rbp + 0x88], 0xe3
jmp 0x14010c1d4
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14010c27d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14010c239
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010c243
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14010c1c3
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14010c2dd
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010c2e7
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret