joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d7b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 0x40], 0x26f
mov qword [rsp + 0x38], 0xe3
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0xe3
jae 0x14000d863
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rax + rcx*4 + 0x9c4]
and ecx, 0x80000000
mov rdx, qword [rsp + 0x30]
mov edx, dword [rax + rdx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [rsp + 0x2c], ecx
mov edx, dword [rsp + 0x2c]
shr edx, 1
mov r9d, dword [rsp + 0x2c]
and r9d, 1
xor ecx, ecx
mov r8d, 0x9908b0df
cmp r9d, 0
cmovne ecx, r8d
xor edx, ecx
mov rcx, qword [rsp + 0x30]
xor edx, dword [rax + rcx*4 + 0xff8]
mov rcx, qword [rsp + 0x30]
mov dword [rax + rcx*4 + 4], edx
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14000d7dd
mov qword [rsp + 0x20], 0xe3
cmp qword [rsp + 0x20], 0x26f
jae 0x14000d8f9
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rax + rcx*4 + 0x9c4]
and ecx, 0x80000000
mov rdx, qword [rsp + 0x20]
mov edx, dword [rax + rdx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [rsp + 0x1c], ecx
mov edx, dword [rsp + 0x1c]
shr edx, 1
mov r9d, dword [rsp + 0x1c]
and r9d, 1
xor ecx, ecx
mov r8d, 0x9908b0df
cmp r9d, 0
cmovne ecx, r8d
xor edx, ecx
mov rcx, qword [rsp + 0x20]
sub rcx, 0x270
xor edx, dword [rax + rcx*4 + 0x638]
mov rcx, qword [rsp + 0x20]
mov dword [rax + rcx*4 + 4], edx
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x14000d86c
mov rax, qword [rsp]
mov qword [rsp + 0x10], 0x26f
mov ecx, dword [rax + 0x1380]
and ecx, 0x80000000
mov edx, dword [rax + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [rsp + 0xc], ecx
mov ecx, dword [rsp + 0xc]
shr ecx, 1
mov r9d, dword [rsp + 0xc]
and r9d, 1
xor edx, edx
mov r8d, 0x9908b0df
cmp r9d, 0
cmovne edx, r8d
xor ecx, edx
xor ecx, dword [rax + 0x634]
mov dword [rax + 0x9c0], ecx
mov dword [rax], 0
add rsp, 0x50
ret
Function at 0x140019670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140019695
xor eax, eax
jmp 0x140019856
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1400196bd
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14000bf90
jmp 0x140019856
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000cef0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14001975a
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140001ab0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000cde0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140001820
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.14000ce20
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140019846
mov rcx, qword [rsp + 0x70]
call fcn.14001a020
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400197fa
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400dc030
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400197f8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140019856
jmp 0x140019780
cmp qword [rsp + 0x20], 0
jbe 0x140019846
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400dc030
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x14007a410
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x30
call fcn.1400890a0
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14007a43c
mov eax, 2
jmp 0x14007a4a9
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x14007a492
cmp dword [rsp + 0x20], 0x31
je 0x14007a499
cmp dword [rsp + 0x20], 0x32
je 0x14007a4a0
jmp 0x14007a4a7
mov eax, 2
jmp 0x14007a4a9
mov eax, 1
jmp 0x14007a4a9
mov eax, 3
jmp 0x14007a4a9
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14007bba0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140016070
movzx eax, al
test eax, eax
jne 0x14007bbc0
mov ecx, 7
call fcn.14001c8a0
nop
mov byte [rsp + 0x20], 0
call fcn.140015fd0
mov byte [rsp + 0x21], al
cmp dword [0x140199438], 1
jne 0x14007bbe4
mov ecx, 7
call fcn.14001c8a0
nop
jmp 0x14007bc3c
cmp dword [0x140199438], 0
jne 0x14007bc37
mov dword [0x140199438], 1
lea rdx, [0x1401816d8]
lea rcx, [0x140181698]
call fcn.1400d8670
test eax, eax
je 0x14007bc18
mov eax, 0xff
jmp 0x14007bd41
lea rdx, [0x140181690]
lea rcx, [0x140181418]
call fcn.1400d8600
mov dword [0x140199438], 2
jmp 0x14007bc3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140016040
call fcn.14007c040
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14007bc99
mov rcx, qword [rsp + 0x30]
call fcn.140015f40
movzx eax, al
test eax, eax
je 0x14007bc99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1401ae008]
nop
call fcn.14007c050
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14007bccd
mov rcx, qword [rsp + 0x38]
call fcn.140015f40
movzx eax, al
test eax, eax
je 0x14007bccd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400ca3c0
nop
call fcn.14007bb60
mov dword [rsp + 0x28], eax
call fcn.14001c7b0
movzx eax, al
test eax, eax
jne 0x14007bcec
mov ecx, dword [rsp + 0x28]
call fcn.1400ca300
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14007bcfb
call fcn.1400ca380
nop
xor edx, edx
mov cl, 1
call fcn.1400160c0
mov eax, dword [rsp + 0x28]
jmp 0x14007bd41
add rsp, 0x68
ret
Function at 0x1401026d0
Capabilities:
Print debug messages

Disassembly:
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 0x1401054c0
Capabilities:
Get geographical location

Disassembly:
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.1401067d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140105527
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 [0x1401ae018]
jmp 0x140105549
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401059e0
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 0x14011bb40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14011bf40
lea rcx, [rsp + 0x40]
call fcn.14011bfd0
movzx eax, al
test eax, eax
jne 0x14011bb88
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14011bf60
mov rax, qword [rsp + 0x70]
jmp 0x14011bd59
lea rcx, [rsp + 0x40]
call fcn.14011bf80
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14011bef0
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.14011bf80
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.1401036f0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14011bc2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14011bf60
mov rax, qword [rsp + 0x80]
jmp 0x14011bd59
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400ccc40
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14007ec00
lea rcx, [rsp + 0x48]
call fcn.14007eca0
movzx eax, al
test eax, eax
jne 0x14011bc95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14007ec20
lea rcx, [rsp + 0x40]
call fcn.14011bf60
mov rax, qword [rsp + 0x88]
jmp 0x14011bd59
lea rcx, [rsp + 0x48]
call fcn.14007ecc0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14011bf80
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.1401036f0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14011bd2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14007ec20
lea rcx, [rsp + 0x40]
call fcn.14011bf60
mov rax, qword [rsp + 0xa0]
jmp 0x14011bd59
lea rcx, [rsp + 0x48]
call fcn.140081990
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14007ec20
lea rcx, [rsp + 0x40]
call fcn.14011bf60
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14011bd70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14011bf40
lea rcx, [rsp + 0x20]
call fcn.14011c010
movzx eax, al
test eax, eax
jne 0x14011bdb5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14011bf60
mov rax, qword [rsp + 0x40]
jmp 0x14011beaf
lea rcx, [rsp + 0x20]
call fcn.14011bf80
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14011bef0
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.1400ccc40
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400824f0
lea rcx, [rsp + 0x28]
call fcn.1400d7e50
movzx eax, al
test eax, eax
jne 0x14011be4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140082510
lea rcx, [rsp + 0x20]
call fcn.14011bf60
mov rax, qword [rsp + 0x50]
jmp 0x14011beaf
lea rcx, [rsp + 0x20]
call fcn.14011bf80
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140082560
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.140148ef0
lea rcx, [rsp + 0x28]
call fcn.140084be0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140082510
lea rcx, [rsp + 0x20]
call fcn.14011bf60
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x14011d670
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1401215b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140015dd0
sub rsp, rax
mov rax, qword [0x140195740]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14019b140]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401217a2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401216f6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401216f6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401216db
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140121678
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140121762
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401217c1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14012179d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401217c1
jmp 0x14012164e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140022530
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401217e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140015dd0
sub rsp, rax
mov rax, qword [0x140195740]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14019b140]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401219ed
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140121939
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140121939
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140121919
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401218a8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401219ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140121a0c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1401219e8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140121a0c
jmp 0x14012187e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140022530
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140130fa0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140131520
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140130fdf
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 [0x1401ae008]
jmp 0x140130fe9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x14013dbc0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400822a0
lea rcx, [rsp + 0x48]
call fcn.1400822a0
call fcn.140102290
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400824a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14013dc2f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140082300
lea rcx, [rsp + 0x78]
call fcn.140082300
mov eax, dword [rsp + 0x24]
jmp 0x14013dcc0
call fcn.140102290
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400824a0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14013dc76
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140082300
lea rcx, [rsp + 0x78]
call fcn.140082300
mov eax, dword [rsp + 0x2c]
jmp 0x14013dcc0
lea rcx, [rsp + 0x48]
call fcn.140082330
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140082330
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140082300
lea rcx, [rsp + 0x78]
call fcn.140082300
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140144a90
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400822a0
lea rcx, [rsp + 0xb8]
call fcn.1400822a0
lea rcx, [rsp + 0x88]
call fcn.1400822a0
call fcn.140102290
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400824a0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140144b32
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.140082300
lea rcx, [rsp + 0xb8]
call fcn.140082300
lea rcx, [rsp + 0xe8]
call fcn.140082300
mov eax, dword [rsp + 0x54]
jmp 0x140144cd8
call fcn.140102290
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400824a0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140144b92
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.140082300
lea rcx, [rsp + 0xb8]
call fcn.140082300
lea rcx, [rsp + 0xe8]
call fcn.140082300
mov eax, dword [rsp + 0x5c]
jmp 0x140144cd8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140144c18
call fcn.140102290
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400824a0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140144c06
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.140082300
lea rcx, [rsp + 0xb8]
call fcn.140082300
lea rcx, [rsp + 0xe8]
call fcn.140082300
mov eax, dword [rsp + 0x64]
jmp 0x140144cd8
lea rcx, [rsp + 0x88]
call fcn.140082330
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.140082330
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.140082330
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.140082300
lea rcx, [rsp + 0xb8]
call fcn.140082300
lea rcx, [rsp + 0xe8]
call fcn.140082300
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret