joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008b40
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x71], rdx
xor eax, eax
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x6a09e667
mov dword [rbp - 0x15], 0xbb67ae85
mov dword [rbp - 0x11], 0x3c6ef372
mov dword [rbp - 0xd], 0xa54ff53a
mov dword [rbp - 9], 0x510e527f
mov dword [rbp - 5], 0x9b05688c
mov dword [rbp - 1], 0x1f83d9ab
mov dword [rbp + 3], 0x5be0cd19
mov rsi, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140008bc6
mov r14, qword [rdx]
xor ebx, ebx
test rsi, rsi
je 0x140008c06
nop dword [rax]
mov ecx, eax
movzx eax, byte [r14 + rbx]
mov byte [rbp + rcx - 0x69], al
mov eax, dword [rbp - 0x29]
inc eax
mov dword [rbp - 0x29], eax
cmp eax, 0x40
jne 0x140008bfe
lea rcx, [rbp - 0x69]
call fcn.140001260
add qword [rbp - 0x21], 0x200
xor eax, eax
mov dword [rbp - 0x29], eax
inc rbx
cmp rbx, rsi
jb 0x140008bd0
mov byte [rbp + rax - 0x69], 0x80
lea rcx, [rax + 1]
mov edx, 0x38
mov r8d, 0x40
cmp eax, edx
cmovb r8d, edx
cmp rcx, r8
jae 0x140008c36
sub r8, rcx
lea rax, [rbp - 0x69]
add rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rbp - 0x29]
cmp eax, 0x38
jb 0x140008c5f
lea rcx, [rbp - 0x69]
call fcn.140001260
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x69], xmm2
movups xmmword [rbp - 0x59], xmm2
movups xmmword [rbp - 0x49], xmm2
mov qword [rbp - 0x39], rax
mov eax, dword [rbp - 0x29]
lea edx, [rax*8]
add rdx, qword [rbp - 0x21]
mov qword [rbp - 0x21], rdx
mov byte [rbp - 0x2a], dl
mov rax, rdx
shr rax, 8
mov byte [rbp - 0x2b], al
mov rax, rdx
shr rax, 0x10
mov byte [rbp - 0x2c], al
mov rax, rdx
shr rax, 0x18
mov byte [rbp - 0x2d], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp - 0x2e], al
mov rax, rdx
shr rax, 0x28
mov byte [rbp - 0x2f], al
mov rax, rdx
shr rax, 0x30
mov byte [rbp - 0x30], al
shr rdx, 0x38
mov byte [rbp - 0x31], dl
lea rcx, [rbp - 0x69]
call fcn.140001260
xor bl, bl
nop
xor al, al
movzx r11d, bl
mov r10d, 3
sub r10d, r11d
shl r10d, 3
lea r9, [rbp - 0x19]
nop word [rax + rax]
mov r8d, dword [r9]
mov ecx, r10d
shr r8d, cl
movzx ecx, al
lea edx, [r11 + rcx*4]
mov byte [rbp + rdx + 7], r8b
inc al
lea r9, [r9 + 4]
cmp al, 8
jb 0x140008ce0
inc bl
cmp bl, 4
jb 0x140008cc0
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140001490
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140008d49
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140008d44
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008d82
mov rcx, r8
call fcn.14001039c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140010340
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000a780
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000a7a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000a7ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a7d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a829
test ecx, ecx
jle 0x14000a809
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000a829
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a829
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
xor bh, byte [rax]
xor eax, 0x46303137
xor sil, byte [rcx + r14]
xor eax, 0x35343431
xor byte [rdi], dh
xor eax, 0x45454237
xor bh, byte [rcx]
cmp byte [rsi], dh
cmp dword [r10 + 0x44], r8d
cmp byte [rcx + 0x37], r8b
cmp byte [rcx + 0x42], al
xor eax, 0x45324132
xor byte [rax], dh
xor byte [rdi], dh
xor eax, 0x33384434
cmp byte [rcx + 0x32], r8b
xor dword [rdi], r14d
cmp byte ss:[0x17544e1fa], dh
xor al, 0x39
xor dword [rdx + 0x31], eax
invalid
Function at 0x14000a850
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a872
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000a881
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a8a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a8a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a8e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a97e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a91d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a95e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a97e
cmp rbx, rax
ja 0x14000a930
test rbx, rbx
je 0x14000a97e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor edi, dword [rax]
xor byte [rax], bh
xor esi, dword ss:[rsi]
xor al, 0x35
xor al, 0x44
xor eax, 0x42343445
xor dword [r8], esi
xor eax, 0x42344430
xor esi, dword [rdi]
xor byte [rdx + 0x31], al
xor eax, 0x38333038
xor eax, 0x42313130
xor dword [rcx], edi
cmp byte [rsi + rsi], dh
xor eax, 0x45394346
invalid
Function at 0x14000ade0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000ae0d
xor eax, eax
jmp 0x14000af79
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ae47
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ae47
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000af79
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000af6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ae8a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000aeb5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000af71
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000af24
sub eax, 1
je 0x14000af24
cmp eax, 2
jne 0x14000af6c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000af71
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000af52
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000af6c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000af71
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010340
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000b3c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000b493
cmp byte [rcx + 0x71], 0
je 0x14000b493
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000b48f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000b454
sub eax, 1
je 0x14000b458
cmp eax, 2
jne 0x14000b48f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010340
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000b486
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000b48f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000b43c
xor al, al
jmp 0x14000b43c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010340
add rsp, 0x60
pop rbx
ret
Function at 0x14000faa0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000fada
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000fadf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000fb28
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012660]
cmp byte [rcx + rax], 0
je 0x14000fb28
dec r8
sub rdx, 1
jne 0x14000fb0e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000fb40
mov ebx, eax
test eax, eax
jne 0x140010148
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400101ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400101a2
test al, 0x10
je 0x1400101a2
bt eax, 0xa
jae 0x14001019b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400101bc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140010197
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140010197
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400101a2
and dword [rsp + 0x3c], 0
jmp 0x1400101a7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140010eb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010efe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010efe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010efe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010efe
cmp dword [rcx + 0x84], 0xe
jbe 0x140010efe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010f00
xor al, al
add rsp, 0x28
ret
Function at 0x1401364eb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14015b590
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405542e9]
call fcn.14013ce09
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x14015b5cc
mov rcx, qword [rbp + 0x100]
call fcn.1401368c9
jmp 0x14015b5e7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x14015b5e7
mov rcx, qword [rbp + 0x100]
call fcn.140138d81
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0xd4], 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 + 0xd4]
mov dword [rbp + 4], 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 0x14013655e
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14015c960
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, [0x140554216]
call fcn.14013ce09
mov qword [rbp + 8], 0
jmp 0x14015c99e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x14015c9f4
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 0x14015c993
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140136e41
Capabilities:
Get common file path

Disassembly:
jmp 0x140360550
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add rsp, 0x28
ret
Function at 0x140138890
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402b7cf0
mov rax, rcx
neg rcx
test rax, 7
je 0x1402b7d0d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402b7d68
test al, 7
jne 0x1402b7d00
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 0x1402b7d21
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402b7d92
test dh, dh
je 0x1402b7d8c
shr rdx, 0x10
test dl, dl
je 0x1402b7d86
test dh, dh
je 0x1402b7d80
shr rdx, 0x10
test dl, dl
je 0x1402b7d7a
test dh, dh
je 0x1402b7d74
shr edx, 0x10
test dl, dl
je 0x1402b7d6e
test dh, dh
jne 0x1402b7d21
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 0x1401388cc
Capabilities:
Query environment variable

Disassembly:
jmp 0x14038e560
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14038e0e0
lea rcx, [rsp + 0x20]
call fcn.14038e130
movzx eax, al
test eax, eax
jne 0x14038e5a5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14038e110
mov rax, qword [rsp + 0x40]
jmp 0x14038e69f
lea rcx, [rsp + 0x20]
call fcn.14038e230
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14038e1d0
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.140138e30
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140137e8b
lea rcx, [rsp + 0x28]
call fcn.14013957e
movzx eax, al
test eax, eax
jne 0x14038e63f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14013b487
lea rcx, [rsp + 0x20]
call fcn.14038e110
mov rax, qword [rsp + 0x50]
jmp 0x14038e69f
lea rcx, [rsp + 0x20]
call fcn.14038e230
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14013cc6f
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.140138ceb
lea rcx, [rsp + 0x28]
call fcn.14013db15
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14013b487
lea rcx, [rsp + 0x20]
call fcn.14038e110
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140138d81
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14015e3e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1405542e9]
call fcn.14013ce09
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14015e424
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14015e4b5
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 0x14015e47a
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14015e484
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 0x14015e419
mov qword [rbp + 0x88], 0xe3
jmp 0x14015e4d3
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14015e57c
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 0x14015e538
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14015e542
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 0x14015e4c2
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 0x14015e5dc
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14015e5e6
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
Function at 0x140139060
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402aff20
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402af8a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402aff5f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140556020]
jmp 0x1402aff69
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret