joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005871
Capabilities:
Create thread

Disassembly:
jmp 0x1401abf60
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1401abf8c
mov dword [rsp + 0x30], 1
jmp 0x1401abf94
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1401abfdd
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14026a3c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xd4
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.140003f6c
cmp eax, 1
jne 0x1401abfdd
int3
cmp dword [rsp + 0x34], 0
jne 0x1401ac01f
call fcn.140003300
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0xd4
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.140001555
xor eax, eax
jmp 0x1401ac11f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1401ab9d0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401ab7d0
lea rcx, [rsp + 0x40]
call fcn.1401ab840
movzx eax, al
test eax, eax
jne 0x1401ac06f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1401ab820
mov rax, qword [rsp + 0x50]
jmp 0x1401ac11f
lea rcx, [rsp + 0x40]
call fcn.1401abb80
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1401ab5e0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401ac0e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000223e
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1401ab820
mov rax, qword [rsp + 0x58]
jmp 0x1401ac11f
cmp qword [rsp + 0xa8], 0
je 0x1401ac0fc
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1401abb40
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1401ab820
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret

Function at 0x140005aa1
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14013be60
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.14013b7d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013be97
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1402f0010]
jmp 0x14013be9d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x140005c54
Capabilities:
Self delete using alternate data streams

Disassembly:
jmp 0x140053080
push rbp
push rdi
sub rsp, 0x4b8
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x12e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402c80b8]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x1402ef0b0]
call fcn.14000236f
mov edx, 0x20a
lea rcx, [rbp + 0x10]
call fcn.140009a02
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x238], rax
lea rax, str.:myname
mov qword [rbp + 0x278], rax
mov rcx, qword [rbp + 0x278]
call fcn.140007f86
shl rax, 1
mov dword [rbp + 0x294], eax
mov eax, dword [rbp + 0x294]
add rax, 0x18
mov dword [rbp + 0x2b4], eax
mov eax, dword [rbp + 0x2b4]
mov ecx, eax
call fcn.14000703b
mov qword [rbp + 0x258], rax
mov eax, dword [rbp + 0x2b4]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x258]
call fcn.140005a97
mov rax, qword [rbp + 0x258]
mov ecx, dword [rbp + 0x294]
mov dword [rax + 0x10], ecx
mov eax, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x258]
add rcx, 0x14
mov r8d, eax
mov rdx, qword [rbp + 0x278]
call fcn.1400081fc
mov rax, qword [rbp + 0x258]
add rax, 0x14
mov r9, rax
mov rax, qword [rbp + 0x258]
mov r8d, dword [rax + 0x10]
mov edx, dword [rbp + 0x2b4]
lea rcx, str.bsfRename:__d__FileNameLength:__d__FileName:__ls_n
call fcn.140005051
mov r9d, dword [rbp + 0x2b4]
mov r8, qword [rbp + 0x258]
mov edx, 3
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x238], rax
mov edx, 1
lea rcx, [rbp + 0x2d4]
call fcn.140009a02
mov byte [rbp + 0x2d4], 1
mov r9d, 1
lea r8, [rbp + 0x2d4]
mov edx, 4
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x14023d5f0]
call fcn.1400092b9
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.140002fd1
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret

Function at 0x140005eb1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400bcc20
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret
Function at 0x140006d6b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400784d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1400784f8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140078542
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1400784ed
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x140006d70
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401d0a90
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400073c4
Capabilities:
Set environment variable

Disassembly:
jmp 0x140211e50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.140009de5
lea rcx, [rsp + 0x40]
call fcn.140009de5
call fcn.1400092be
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140001e01
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140211ebf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.140009764
lea rcx, [rsp + 0x70]
call fcn.140009764
mov eax, dword [rsp + 0x24]
jmp 0x140211f4c
call fcn.1400092be
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140001e01
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140211f06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.140009764
lea rcx, [rsp + 0x70]
call fcn.140009764
mov eax, dword [rsp + 0x2c]
jmp 0x140211f4c
lea rcx, [rsp + 0x40]
call fcn.14000a015
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.14000a015
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140009764
lea rcx, [rsp + 0x70]
call fcn.140009764
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x1400075fe
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14013bf80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14013b890
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013bfbf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1402f0010]
jmp 0x14013bfce
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400076fd
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400dc9b0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x48], rax
movabs rax, 0x100000001b3
mov qword [rsp + 0x50], rax
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
jmp 0x1400dca02
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 4
jae 0x1400dca4a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x30]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x30]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1400dc9f5
cmp dword [rsp + 0x78], 0
jg 0x1400dca8b
lea rax, str.the_size___0
mov qword [rsp + 0x28], rax
lea rax, [0x1402441f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3d2
lea rdx, [0x140252bb0]
mov ecx, 2
call fcn.140003f6c
cmp eax, 1
jne 0x1400dca8b
int3
xor eax, eax
test eax, eax
jne 0x1400dca4a
xor eax, eax
test eax, eax
jne 0x1400dca4a
movsxd rax, dword [rsp + 0x78]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
div rcx
mov rax, rdx
add rsp, 0x68
ret
Function at 0x14000813e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1401d5978
jmp fcn.140003a8a
Function at 0x140008215
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400b27a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400b27c0
xor al, al
jmp 0x1400b2841
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400b27d3
xor al, al
jmp 0x1400b2841
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400b27fd
xor al, al
jmp 0x1400b2841
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400b2811
xor al, al
jmp 0x1400b2841
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400b2823
xor al, al
jmp 0x1400b2841
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400b283f
xor al, al
jmp 0x1400b2841
mov al, 1
add rsp, 0x38
ret

Function at 0x14000827e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140124de0
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rcx, [rsp + 0x40]
call fcn.14000781a
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x78]
test eax, eax
jne 0x140124e49
mov rax, qword [rsp + 0x60]
or rax, 2
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x28], rcx
mov rcx, rdx
mov rax, qword [rsp + 0x28]
call qword [0x1402f0010]
mov rcx, qword [rsp + 0x30]
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x78]
test eax, eax
jne 0x140124ede
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x58], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x100]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x48]
call qword [0x1402f0010]
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x58]
test eax, eax
je 0x140124ec5
mov rcx, qword [rsp + 0x60]
call fcn.140004c55
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x58], 0
jmp 0x140124e49
mov rcx, qword [rsp + 0x60]
call fcn.140002801
mov rcx, qword [rsp + 0x60]
call fcn.140004c55
jmp 0x140124e49
add rsp, 0x58
ret
Function at 0x14000891d
Capabilities:
Check os version

Disassembly:
jmp 0x1400d1330
sub rsp, 0x198
mov rax, qword [0x1402c80b8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x60], 0x114
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400d137b
lea rcx, [rsp + 0x30]
call fcn.1400094cb
lea rdx, [0x1402c7110]
lea rcx, [rsp + 0x30]
call fcn.14000625d
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 5
je 0x1400d1396
cmp dword [rsp + 0x24], 6
je 0x1400d13f4
jmp 0x1400d1430
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400d13cd
cmp dword [rsp + 0x20], 1
je 0x1400d13c1
cmp dword [rsp + 0x20], 2
je 0x1400d13b5
jmp 0x1400d13f2
mov dword [0x1402ce538], 2
jmp 0x1400d13f2
mov dword [0x1402ce538], 1
jmp 0x1400d13f2
mov dword [0x1402ce538], 0
lea rcx, [rsp + 0x48]
call fcn.1400094cb
lea rdx, [0x1402c7110]
lea rcx, [rsp + 0x48]
call fcn.14000625d
jmp 0x1400d143a
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400d140c
cmp dword [rsp + 0x28], 1
je 0x1400d1418
jmp 0x1400d1424
mov dword [0x1402ce538], 3
jmp 0x1400d142e
mov dword [0x1402ce538], 4
jmp 0x1400d142e
mov dword [0x1402ce538], 6
jmp 0x1400d143a
mov dword [0x1402ce538], 6
cmp dword [0x1402ce538], 4
jl 0x1400d145b
call fcn.14000741e
call fcn.140003d00
cmp dword [0x1402ce538], 6
jl 0x1400d145b
call fcn.140009976
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140002fd1
add rsp, 0x198
ret

Function at 0x1400089b3
Capabilities:
Terminate process

Disassembly:
jmp 0x14014da90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14014dabe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140008da5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140008c7e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140044df0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x1402ef0a0]
call fcn.14000236f
mov dword [rbp + 4], 0
jmp 0x140044e37
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xe3
jge 0x140044ed4
mov eax, dword [rbp + 4]
add eax, 0x270
cdqe
mov rcx, qword [rbp + 0x160]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rbp + 4]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rbp + 0x160]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
and eax, 1
test eax, eax
je 0x140044e94
mov dword [rbp + 0x134], 0x9908b0df
jmp 0x140044e9e
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x24]
shr eax, 1
xor eax, dword [rbp + 0x134]
mov ecx, dword [rbp + 4]
add ecx, 0x3fd
movsxd rcx, ecx
mov rdx, qword [rbp + 0x160]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x140044e2f
jmp 0x140044ede
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x26f
jge 0x140044f7b
mov eax, dword [rbp + 4]
add eax, 0x270
cdqe
mov rcx, qword [rbp + 0x160]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rbp + 4]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rbp + 0x160]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
and eax, 1
test eax, eax
je 0x140044f3b
mov dword [rbp + 0x134], 0x9908b0df
jmp 0x140044f45
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x44]
shr eax, 1
xor eax, dword [rbp + 0x134]
mov ecx, dword [rbp + 4]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rbp + 0x160]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x140044ed6
mov eax, dword [rbp + 4]
add eax, 0x270
cdqe
mov rcx, qword [rbp + 0x160]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x160]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x140044fc8
mov dword [rbp + 0x134], 0x9908b0df
jmp 0x140044fd2
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x134]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x160]
xor eax, dword [rdx + rcx + 4]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x160]
mov dword [rdx + rcx*4 + 4], eax
mov rax, qword [rbp + 0x160]
mov dword [rax], 0
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140008e36
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400e6280
sub rsp, 0x28
mov ecx, dword [0x1402ce6c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret
Function at 0x140008e81
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14013bf20
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14013b850
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013bf55
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1402f0010]
jmp 0x14013bf5f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x140009075
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401d9050
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1401d80a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401d9087
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1402f0010]
jmp 0x1401d908d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x1400092a5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400ae6f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, 8
imul rax, rax, 0x26
lea rcx, [0x1402cd7e0]
mov rdx, qword [0x1402c80b8]
mov rax, qword [rcx + rax]
xor rax, rdx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ae75c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x1402f0010]
jmp 0x1400ae77c
mov rcx, qword [rsp + 0x50]
call fcn.140005952
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x140009363
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140037d80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x1402ef0a0]
call fcn.14000236f
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x140037dd3
mov rcx, qword [rbp + 0x100]
call fcn.140002a36
jmp 0x140037dee
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140037dee
mov rcx, qword [rbp + 0x100]
call fcn.140008c7e
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 0x1400093c7
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400bcba0
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400bcbdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000a312
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140001898
lea rdx, [0x1402c70b0]
lea rcx, [rsp + 0x28]
call fcn.14000625d
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x14000944e
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401d9320
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401d82a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401d9373
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x1402f0010]
jmp 0x1401d9395
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140004fd4
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x1400095f2
Capabilities:
Execute command

Disassembly:
jmp 0x140158480
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1402c80b8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov dword [rsp + 0x28], WSAStartup
mov rdi, rcx
mov qword [rbp - 0x30], rbx
lea rax, str.minkernelcrtsucrtinccorecrt_internal_traits.h
xor edx, edx
lea r8, [0x14026c708]
mov qword [r11 - 0x48], rax
lea esi, [rbx + 2]
mov r9d, esi
lea rcx, [rbp - 0x30]
call fcn.140008869
cmp eax, 0x16
je 0x1401585fd
test rdi, rdi
jne 0x140158505
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1401585d2
xor edx, edx
call fcn.140001e2e
test eax, eax
sete bl
jmp 0x1401585ce
cmp byte [rdi], bl
jne 0x14015853c
xor r9d, r9d
lea rax, str.command_0____0
mov qword [rsp + 0x28], rax
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtexec_system.cpp
lea rax, [0x14026a3c8]
mov ecx, esi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x2b]
call fcn.140003f6c
cmp eax, 1
jne 0x14015853c
int3
mov rax, qword [rbp - 0x30]
lea rcx, [0x14026c724]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rbx
test rax, rax
je 0x1401585b2
call fcn.140003300
mov edi, dword [rax]
call fcn.140003300
xor r9d, r9d
lea r8, [rbp - 0x28]
xor ecx, ecx
mov dword [rax], ebx
mov rdx, qword [rbp - 0x28]
call fcn.140007630
mov rbx, rax
call fcn.140003300
cmp ebx, 0xffffffff
je 0x14015858d
mov dword [rax], edi
jmp 0x1401585ce
cmp dword [rax], esi
je 0x1401585ab
call fcn.140003300
cmp dword [rax], 0xd
je 0x1401585ab
mov rcx, qword [rbp - 0x30]
mov edx, esi
call fcn.140008a35
or ebx, 0xffffffff
jmp 0x1401585d9
call fcn.140003300
mov dword [rax], edi
lea rdx, [0x14026c718]
xor r9d, r9d
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rdx
xor ecx, ecx
call fcn.140005fdd
mov rbx, rax
mov rcx, qword [rbp - 0x30]
mov edx, esi
call fcn.140008a35
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002fd1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r9d, 0x1f
mov qword [rsp + 0x20], rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtexec_system.cpp
lea rdx, str.common_system
lea rcx, str.traits::tdupenv_s_crt_comspec_value.get_address_of____nullptr__comspec_name_
call fcn.1400089b3
int3