joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e824
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.14000f140
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e8ae
cmp byte [rbp - 0x21], r15b
je 0x14001e8a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001e8e4
call fcn.140013718
test eax, eax
jne 0x14001e8d0
cmp byte [rbp - 0x21], r15b
je 0x14001e8c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001e8e4
cmp byte [rbp - 0x21], r15b
je 0x14001e8e1
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.14000f2c8
test eax, eax
jne 0x14001e984
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f140
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001e923
cmp byte [rbp - 0x21], r15b
je 0x14001e958
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001e958
call fcn.140013718
test eax, eax
jne 0x14001e944
cmp byte [rbp - 0x21], r15b
je 0x14001e93d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001e958
cmp byte [rbp - 0x21], r15b
je 0x14001e955
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.14000f2c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001e984
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001e987
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e995
mov rcx, rdi
call fcn.140012d3c
cmp byte [rbp + 0x3f], r15b
je 0x14001e9a4
mov rcx, qword [rbp + 0x27]
call fcn.140012d3c
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 0x1402197a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14021dd20
sub rsp, rax
mov rax, qword [0x140263718]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140219862
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14021980d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140219800
cmp rcx, 1
jb 0x1402198ba
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140219830
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14022d174
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402197f0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140219893
lea rcx, [rsp + 0x80]
call fcn.14022fe80
jmp 0x140219895
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14021dd80
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140221f08
int3
Function at 0x14021d810
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140263718]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14021d8b5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14021d86d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14021d860
cmp rcx, 1
jb 0x14021d8e6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14021d883
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14022d174
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14021d850
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14021dd80
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140221f08
int3
Function at 0x14021d9f0
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x140263718]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140273af8]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x14021da40
lea rcx, [0x14023e614]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140273af8], rax
test rax, rax
je 0x14021dc7a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x14021db76
test dl, dl
je 0x14021db12
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14021dabd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14021dab0
cmp rcx, 1
jb 0x14021dc80
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14021dae0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14022d174
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14021daa0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x14021db5d
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14021dc17
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14021dc17
test dl, dl
je 0x14021dbf2
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14021db9d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14021db90
cmp rcx, 1
jb 0x14021dc74
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14021dbc0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14022d174
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14021db80
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14021dc17
mov rcx, r14
call fcn.1400023a0
sub qword [r13], 1
jne 0x14021dc28
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x14021dc38
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14021dd80
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.140221f08
int3
call fcn.140221f08
int3
call fcn.140221f08
int3
Function at 0x14021e798
Capabilities:
Parse pe header

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

Function at 0x140223778
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1402235e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402235e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402235e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402235e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402235e3
cmp dword [rcx + 0x84], 0xe
jbe 0x1402235e3
cmp dword [rcx + 0xf8], 0
je 0x1402235e3
mov ecx, ebx
call fcn.140223694
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140223470
nop
cmp dword [rbp + 0x20], 0
je 0x140223631
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14022363c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140223574
Function at 0x140235000
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 0x140235087
mov rsi, rbx
cmp word [rax], bp
je 0x140235046
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140235030
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14023502c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14023066c
mov rdi, rax
test rax, rax
je 0x140235074
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14021eac0
mov rbp, rdi
xor ecx, ecx
call fcn.1402311b4
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 0x1402387a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402387b6
mov al, 1
jmp 0x140238816
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402387c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140238814
mov ecx, dword [rcx + 0x18]
nop
call fcn.140235348
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140238814
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140238814
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140238814
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140238816
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140004080
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov ecx, 0xbeef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000409a
test ebx, ebx
je 0x1400040aa
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x1400040e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400040f3
add rsp, 0x28
ret

Function at 0x140004360
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400ee010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140069680
lea rcx, [0x14013a591]
mov qword [rax], rcx
lea rcx, [0x140004100]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004450]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000440f
cmp dword [rsp + 0x38], 0
jne 0x1400043da
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400043fd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140069660
add rsp, 0x68
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140006950
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [0x1400dabd8]
mov ebx, 1
mov word [rsp + 0x40], ax
movzx eax, byte [0x1400dabda]
xor byte [rsp + 0x41], 0x37
xor al, 0x38
cmp byte [0x1400d5e57], 0
mov byte [rsp + 0x42], al
mov rax, qword [0x1400d5e50]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], 0x77
je 0x140006aec
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140006ab3
movdqa xmm2, xmmword [0x1400db880]
mov eax, Ordinal_33
movdqa xmm4, xmmword [0x1400db900]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400db890]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, ebx
movd xmm5, eax
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400db8c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400db8f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400db910]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x48], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400db8c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x4c]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400db8f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400db910]
pxor xmm2, xmm0
movd dword [rsp + 0x4c], xmm2
jmp 0x140006aec
lea r9, [rsp + 0x48]
nop dword [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 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, 0x36
xor byte [r9 - 1], al
cmp ecx, 8
jl 0x140006ac0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [0x14013a7c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov r9, qword [0x14013a7c0]
test r9, r9
je 0x140006b37
mov r8, rbx
lea rcx, [0x14013a6c0]
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [0x14013a7c0]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add rsp, 0x30
pop rbx
ret
Function at 0x140007d40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.1400bff70
sub rsp, rax
mov rax, qword [0x1400ee010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 0xa]
lea rdx, str.1234567890
lea rcx, [rsp + 0x30]
call fcn.1400073d0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rdi + 1]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140007dc1
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r14d, 4
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
nop dword [rax + rax]
mov eax, ebp
cmp ebp, 0x80000000
cmovae eax, ebp
lea rcx, [rsp + 0x50]
cmp eax, 0xffffffff
jne 0x140007e3e
call fcn.140035bc0
mov ecx, eax
jmp 0x140007e78
lea edi, [rax + 1]
call fcn.140035bc0
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140007e74
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140007e74
lea rcx, [rsp + 0x50]
call fcn.140035bc0
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140007e60
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140007eb9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140007eae
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140007ec1
mov rcx, rbx
call fcn.1400343d0
sub r14, 1
jne 0x140007e20
cmp r13, 0x10
jb 0x140007f05
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140007efd
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007efd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400696bc
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140069660
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140007f40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.1400bff70
sub rsp, rax
mov rax, qword [0x1400ee010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov edi, reloc.WS2_32.dll_ntohs
test edx, edx
cmovg edi, edx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0xa]
lea rdx, str.1234567890
lea rcx, [rsp + 0x30]
call fcn.1400073d0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rsi + 1]
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140007fd0
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
test edi, edi
jle 0x1400080d0
mov r14d, edi
nop
lea rcx, [rsp + 0x50]
cmp ebp, 0xffffffff
jne 0x140008043
call fcn.140035bc0
mov ecx, eax
jmp 0x14000807d
lea edi, [rbp + 1]
call fcn.140035bc0
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140008079
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140008079
lea rcx, [rsp + 0x50]
call fcn.140035bc0
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140008065
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400080be
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400080b3
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400080c6
mov rcx, rbx
call fcn.1400343d0
sub r14, 1
jne 0x140008030
cmp r13, 0x10
jb 0x14000810a
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140008102
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008102
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400696bc
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140069660
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140008140
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.1400bff70
sub rsp, rax
mov rax, qword [0x1400ee010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov edi, reloc.WS2_32.dll_ntohs
test edx, edx
cmovg edi, edx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x10]
lea rdx, str.ABCDEF1234567890
lea rcx, [rsp + 0x30]
call fcn.1400073d0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rsi + 1]
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1400081d0
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
test edi, edi
jle 0x1400082d0
mov r14d, edi
nop
lea rcx, [rsp + 0x50]
cmp ebp, 0xffffffff
jne 0x140008243
call fcn.140035bc0
mov ecx, eax
jmp 0x14000827d
lea edi, [rbp + 1]
call fcn.140035bc0
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140008279
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140008279
lea rcx, [rsp + 0x50]
call fcn.140035bc0
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140008265
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400082be
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400082b3
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400082c6
mov rcx, rbx
call fcn.1400343d0
sub r14, 1
jne 0x140008230
cmp r13, 0x10
jb 0x14000830a
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140008302
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008302
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400696bc
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140069660
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret