joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140371b34
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 0x140371b64
xor eax, eax
jmp 0x140371c27
mov rbp, rbx
cmp word [rax], si
je 0x140371b89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140371b70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140371b6c
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.14036e720
movsxd r14, eax
test eax, eax
jne 0x140371bc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140371b5d
mov rcx, r14
call fcn.140369558
mov rdi, rax
test rax, rax
jne 0x140371be0
xor ecx, ecx
call fcn.140367604
jmp 0x140371bbc
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.14036e720
test eax, eax
jne 0x140371c11
mov rcx, rdi
call fcn.140367604
jmp 0x140371c1b
xor ecx, ecx
call fcn.140367604
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 0x140371c44
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140371ccb
mov rsi, rbx
cmp word [rax], bp
je 0x140371c8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140371c74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140371c70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140369558
mov rdi, rax
test rax, rax
je 0x140371cb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140341d90
mov rbp, rdi
xor ecx, ecx
call fcn.140367604
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140374d3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140367200
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140374ddd
cmp ebx, dword [rsp + 0x30]
je 0x140374dd6
test esi, esi
je 0x140374dd6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140374db1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140374dbe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140374d9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140374dc2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140374ddf
mov eax, 1
jmp 0x140374ddf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140377f34
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14046bc18]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140377f7e
call fcn.14034e998
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14034e9b8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140347a84
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140340fa0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140377f89
lea eax, [rbx + 1]
jmp 0x140377f6b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140377f69
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140377f6b
Function at 0x140378094
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1403516ac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14037811e
cmp byte [rbp - 0x21], r15b
je 0x140378119
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140378154
call fcn.140368868
test eax, eax
jne 0x140378140
cmp byte [rbp - 0x21], r15b
je 0x140378138
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140378154
cmp byte [rbp - 0x21], r15b
je 0x140378151
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140351530
test eax, eax
jne 0x1403781f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403516ac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140378193
cmp byte [rbp - 0x21], r15b
je 0x1403781c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403781c8
call fcn.140368868
test eax, eax
jne 0x1403781b4
cmp byte [rbp - 0x21], r15b
je 0x1403781ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1403781c8
cmp byte [rbp - 0x21], r15b
je 0x1403781c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140351530
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403781f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403781f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140378205
mov rcx, rdi
call fcn.140367604
cmp byte [rbp + 0x3f], r15b
je 0x140378214
mov rcx, qword [rbp + 0x27]
call fcn.140367604
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004139
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fe0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004494
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000eb38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000eb34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045c9
inc ebx
add rax, 0x28
jmp 0x1400044ba
mov rcx, r12
call fcn.140004cc1
mov rbp, rax
test rax, rax
jne 0x140004501
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004430
movsxd rbx, ebx
mov rax, qword [0x14000eb38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000eb38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004563
mov rax, qword [0x14000eb38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004430
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000eb38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004430
inc dword [0x14000eb34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400049f0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000eba0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000eb80]
test rbx, rbx
je 0x140004a3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a36
test eax, eax
jne 0x140004a36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004bf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c13
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c13
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c14
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c4e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c45
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c50
inc r8d
add rax, 0x28
jmp 0x140004c2c
xor eax, eax
ret

Function at 0x140004cc1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000acb0]
mov r8, rcx
mov rcx, r9
call fcn.140004bf0
test eax, eax
je 0x140004ced
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c14
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140347714], 0
lea rdi, [0x140347710]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140003318
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140003270
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000334e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140003330
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000338f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003373
cmp byte [r8], r9b
jne 0x140003373
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003360
not eax
pop rdi
ret

Function at 0x140003570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140003589
mov qword [r8], 0
lea rdx, [0x14021d2d0]
call fcn.1400033a0
mov rbx, rax
test rax, rax
jne 0x1400035a8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call fcn.140166550
test eax, eax
jne 0x140003660
mov rcx, rbx
call fcn.140164550
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003660
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140166550
test eax, eax
jne 0x140003660
mov rax, qword [0x1403434c0]
mov rbp, rsi
test rax, rax
je 0x140003602
inc dword [rax + 0x3c8]
mov rcx, rbp
call fcn.1401858d0
mov rsi, rax
test rax, rax
je 0x140003660
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.14017c630
mov rcx, rbx
cmp rax, rbp
je 0x14000364e
call fcn.140165d40
mov rax, qword [0x1403434c0]
test rax, rax
je 0x140003644
dec dword [rax + 0x3c8]
mov rcx, rsi
call fcn.14017bc50
jmp 0x140003668
call fcn.140165d40
test rdi, rdi
je 0x14000365b
mov qword [rdi], rbp
mov rax, rsi
jmp 0x14000366a
mov rcx, rbx
call fcn.140165d40
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fc20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001fdd7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001fcb6
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001f5f0
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001ec00
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001fca7
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400147a0
mov dword [rbx + 0x80], 0
jmp 0x14001fdc3
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001da30
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e080
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ecx, word [rsp + 0x40]
mov word [rsp + 0x20], cx
movzx ecx, word [rsp + 0x50]
sub cx, word [rsp + 0x4c]
inc cx
mov word [rsp + 0x22], cx
mov rcx, rbx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
jne 0x14003e2bf
lea rdx, [rsp + 0x58]
call fcn.14003e310
mov r9, rax
cmp byte [rax + 0x2e], 0
je 0x14003e2d8
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14003e28b
movdqa xmm0, xmmword [str.8888888888888888]
mov eax, 1
movdqa xmm5, xmmword [0x140230000]
mov rdx, r9
movdqa xmm4, xmmword [0x1402300b0]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm7
movdqa xmm7, xmmword [0x140230020]
movd xmm6, eax
mov eax, Ordinal_33
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x90], xmm8
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1402300a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 8], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1402300a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
cmp ecx, 0x28
jl 0x14003e170
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
cmp ecx, 0x2f
jge 0x14003e2d8
movsxd r8, ecx
add r8, r9
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x38
xor byte [r8 - 1], al
cmp ecx, 0x2f
jge 0x14003e2d8
jmp 0x14003e291
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0xc0
pop rbx
ret
mov rdx, r9
lea rcx, [0x140341780]
call fcn.14005db00
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400577c0
mov rcx, rax
call fcn.140057be0
xor ecx, ecx
call fcn.1401872a0
int3
Function at 0x140044e90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13d0
call fcn.1401d8990
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov edi, edx
call fcn.14007e080
mov dword [rsp + 0x34], eax
mov r8d, 1
mov dword [rsp + 0x13b4], 0xffffffff
mov ebx, 0x270
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x34], eax
inc r8
cmp r8, rbx
jb 0x140044ee0
mov dword [rsp + 0x30], ebx
cmp edi, 5
jge 0x140044f66
xor r9d, r9d
lea rax, str.invalid_min_and_max_arguments_for_uniform_int
mov qword [rsp + 0x28], rax
lea rdx, [0x14022b650]
lea rax, [0x14022b1ec]
mov r8d, 0x765
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 2]
call fcn.140188250
cmp eax, 1
jne 0x140044f3d
int3
mov r9d, 0x765
mov qword [rsp + 0x20], 0
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.37.32822include_random
lea rdx, [0x14022b324]
lea rcx, str._invalid_min_and_max_arguments_for_uniform_int_
call fcn.140188b80
lea eax, [rdi - 5]
cmp eax, 0xffffffff
jne 0x140044ff3
lea r8, [rsp + 0x38]
nop word [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 rbx, 1
jne 0x140044f80
mov ebx, dword [rsp + 0x30]
mov ecx, dword [rsp + rbx*4 + 0x34]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov r8d, ecx
shr r8d, 0x12
xor r8d, ecx
jmp 0x14004503a
lea rcx, [rsp + 0x30]
lea ebx, [rax + 1]
call fcn.14006d440
mov r8d, eax
mov edi, ebx
imul r8, rdi
cmp r8d, ebx
jae 0x140045036
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp r8d, edx
jae 0x140045036
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14006d440
mov r8d, eax
imul r8, rdi
cmp r8d, ebx
jb 0x140045020
shr r8, 0x20
lea edx, [r8 - 0x7ffffffb]
mov r8d, 0x80000000
cmp edx, r8d
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r8]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400753c0
mov rbx, qword [rsp + 0x13e0]
add rsp, 0x13d0
pop rdi
ret