joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025f590
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rax, qword [0x1404acf38]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, dword [rcx + 0x10]
mov esi, dword [rcx + 0x14]
mov r11d, dword [rcx + 0x18]
mov r10d, dword [rcx + 0x1c]
mov r13d, dword [rcx + 0x20]
mov r14d, dword [rcx + 0x24]
mov ebp, dword [rcx + 0x28]
mov ebx, dword [rcx + 0x2c]
movups xmm0, xmmword [rcx + 0x30]
movups xmm1, xmmword [rcx + 0x40]
movups xmm2, xmmword [rcx + 0x50]
mov qword [rsp + 0x48], rcx
movups xmm3, xmmword [rcx + 0x60]
movaps xmmword [rsp + 0x80], xmm3
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov eax, 0x10
nop word cs:[rax + rax]
mov ecx, dword [rsp + rax*4 + 0x48]
mov edx, ecx
rol edx, 0xf
mov r8d, ecx
rol r8d, 0xd
xor r8d, edx
shr ecx, 0xa
xor ecx, r8d
add ecx, dword [rsp + rax*4 + 0x34]
mov edx, dword [rsp + rax*4 + 0x14]
mov r8d, edx
rol r8d, 0x19
mov r9d, edx
rol r9d, 0xe
xor r9d, r8d
shr edx, 3
xor edx, r9d
add ecx, dword [rsp + rax*4 + 0x10]
add ecx, edx
mov dword [rsp + rax*4 + 0x50], ecx
inc rax
cmp rax, 0x40
jne 0x14025f610
xor r15d, r15d
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x3c], r14d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x34], r10d
mov r9d, r10d
mov dword [rsp + 0x30], r11d
mov r8d, r11d
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x28], edi
nop dword [rax + rax]
mov ecx, r13d
mov r12d, r14d
mov eax, ebp
mov edx, r13d
rol edx, 0x1a
mov r10d, r13d
rol r10d, 0x15
xor r10d, edx
mov edx, r13d
rol edx, 7
xor edx, r10d
mov r10d, r14d
and r10d, r13d
add r10d, ebx
mov ebx, r13d
not ebx
and ebx, ebp
add ebx, r10d
add ebx, edx
lea rdx, [0x1403a3440]
add ebx, dword [r15 + rdx]
add ebx, dword [rsp + r15 + 0x50]
mov r10d, edi
rol edi, 0x1e
mov edx, esi
mov esi, r10d
rol esi, 0x13
mov r11d, r8d
mov r8d, r10d
rol r8d, 0xa
xor esi, edi
xor r8d, esi
mov esi, r11d
or esi, edx
and esi, r10d
mov edi, r11d
and edi, edx
or edi, esi
add edi, r8d
mov r13d, r9d
add r13d, ebx
add edi, ebx
add r15, 4
mov ebx, ebp
mov ebp, r14d
mov r14d, ecx
mov r9d, r11d
mov r8d, edx
mov esi, r10d
cmp r15, 0x100
jne 0x14025f690
add edi, dword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov dword [r8 + 0x10], edi
add r10d, dword [rsp + 0x2c]
mov dword [r8 + 0x14], r10d
add edx, dword [rsp + 0x30]
mov dword [r8 + 0x18], edx
add r11d, dword [rsp + 0x34]
mov dword [r8 + 0x1c], r11d
add r13d, dword [rsp + 0x38]
mov dword [r8 + 0x20], r13d
add ecx, dword [rsp + 0x3c]
mov dword [r8 + 0x24], ecx
add r12d, dword [rsp + 0x40]
mov dword [r8 + 0x28], r12d
add eax, dword [rsp + 0x44]
mov dword [r8 + 0x2c], eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140347200
nop
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140311b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ecx, edx
mov rax, qword [0x1404acf38]
xor rax, rsp
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [0x1403bd800]
movaps xmmword [rsp + 0x20], xmm0
movabs rax, 0x1716151413121110
mov qword [rsp + 0x30], rax
mov word [rsp + 0x38], 0x1918
mov byte [rsp + 0x3a], 0x1a
mov r8d, 0x1b
nop word cs:[rax + rax]
mov eax, ecx
xor edx, edx
div r8d
movzx eax, byte [rsp + r8 + 0x1f]
movzx r9d, byte [rsp + rdx + 0x20]
mov byte [rsp + r8 + 0x1f], r9b
mov byte [rsp + rdx + 0x20], al
imul eax, ecx, 0x6255
add eax, 0x3619
movzx ecx, ax
dec r8
cmp r8, 1
ja 0x140311bb0
xor eax, eax
lea rdx, [0x1404c2850]
xor r8d, r8d
jmp 0x140311c48
mov r10d, r8d
and r10b, 7
mov ecx, r8d
and ecx, 7
mov r11d, 0xffffffff
shl r11d, cl
lea edi, [r9 + r8]
add ecx, r9d
mov ebx, 0xffffffff
shl ebx, cl
xor ebx, r11d
shr r8d, 3
mov byte [rdx + rsi*4], r8b
mov byte [rdx + rsi*4 + 3], r10b
mov byte [rdx + rsi*4 + 1], bl
mov byte [rdx + rsi*4 + 2], bh
inc rax
mov r8d, edi
cmp rax, 0x1b
je 0x140311c90
movzx esi, byte [rsp + rax + 0x20]
mov r9d, 6
cmp rsi, 0xf
ja 0x140311c00
mov r9d, 5
cmp sil, 7
ja 0x140311c00
mov r9d, 4
cmp sil, 3
ja 0x140311c00
mov r9d, 3
cmp sil, 1
ja 0x140311c00
cmp rsi, 1
mov r9d, 2
sbb r9d, 0
jmp 0x140311c00
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140347200
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400b9e6a
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14010a3b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14010a3d8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14010a422
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 0x14010a3cd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400bb4cc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401ba150
mov rax, rcx
neg rcx
test rax, 7
je 0x1401ba16d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401ba1c8
test al, 7
jne 0x1401ba160
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 0x1401ba181
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401ba1f2
test dh, dh
je 0x1401ba1ec
shr rdx, 0x10
test dl, dl
je 0x1401ba1e6
test dh, dh
je 0x1401ba1e0
shr rdx, 0x10
test dl, dl
je 0x1401ba1da
test dh, dh
je 0x1401ba1d4
shr edx, 0x10
test dl, dl
je 0x1401ba1ce
test dh, dh
jne 0x1401ba181
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 0x1400bb503
Capabilities:
Query environment variable

Disassembly:
jmp 0x140210220
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14020fda0
lea rcx, [rsp + 0x20]
call fcn.14020fdf0
movzx eax, al
test eax, eax
jne 0x140210265
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14020fdd0
mov rax, qword [rsp + 0x40]
jmp 0x14021035f
lea rcx, [rsp + 0x20]
call fcn.14020fef0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14020fe90
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.1400bb887
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bae82
lea rcx, [rsp + 0x28]
call fcn.1400bbd50
movzx eax, al
test eax, eax
jne 0x1402102ff
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400bd1dc
lea rcx, [rsp + 0x20]
call fcn.14020fdd0
mov rax, qword [rsp + 0x50]
jmp 0x14021035f
lea rcx, [rsp + 0x20]
call fcn.14020fef0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400be186
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.1400bb7ce
lea rcx, [rsp + 0x28]
call fcn.1400beae1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400bd1dc
lea rcx, [rsp + 0x20]
call fcn.14020fdd0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bba26
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401602c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015fc40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401602ff
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 [0x1402a8020]
jmp 0x140160309
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bbc7e
Capabilities:
Query environment variable

Disassembly:
jmp 0x14020ff70
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14020fda0
lea rcx, [rsp + 0x40]
call fcn.14020ff20
movzx eax, al
test eax, eax
jne 0x14020ffb8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14020fdd0
mov rax, qword [rsp + 0x70]
jmp 0x140210189
lea rcx, [rsp + 0x40]
call fcn.14020fef0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14020fe90
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.14020fef0
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.1400bce08
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14021005e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14020fdd0
mov rax, qword [rsp + 0x80]
jmp 0x140210189
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bb887
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bb66b
lea rcx, [rsp + 0x48]
call fcn.1400bb09e
movzx eax, al
test eax, eax
jne 0x1402100c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9ce4
lea rcx, [rsp + 0x40]
call fcn.14020fdd0
mov rax, qword [rsp + 0x88]
jmp 0x140210189
lea rcx, [rsp + 0x48]
call fcn.1400bc156
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14020fef0
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.1400bce08
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14021015b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9ce4
lea rcx, [rsp + 0x40]
call fcn.14020fdd0
mov rax, qword [rsp + 0xa0]
jmp 0x140210189
lea rcx, [rsp + 0x48]
call fcn.1400bb625
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b9ce4
lea rcx, [rsp + 0x40]
call fcn.14020fdd0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bbc97
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401601f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14015fbc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140160231
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 [0x1402a8020]
jmp 0x140160237
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bbd5a
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401f2c70
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.1401f1ba0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401f2cd7
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 [0x1402a8030]
jmp 0x1401f2cf9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bb017
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 0x1400bbd6e
Capabilities:
Terminate process

Disassembly:
jmp 0x14013d070
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
Function at 0x1400bc0f2
Capabilities:
Print debug messages

Disassembly:
jmp 0x14021d8d0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14028b058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14021d8f6
jmp 0x14021d973
mov rcx, qword [rbp + 0x30]
call fcn.1400bb4cc
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14021d90f
jmp 0x14021d973
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14021d92c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b9f0a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ba504
test eax, eax
jne 0x14021d973
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bb7ab
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bc525
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402120d0
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 0x1400bc863
Capabilities:
Parse pe header

Disassembly:
jmp 0x14013ea90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14013eab0
xor al, al
jmp 0x14013eb31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14013eac3
xor al, al
jmp 0x14013eb31
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 0x14013eaed
xor al, al
jmp 0x14013eb31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14013eb01
xor al, al
jmp 0x14013eb31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14013eb13
xor al, al
jmp 0x14013eb31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14013eb2f
xor al, al
jmp 0x14013eb31
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bd0c9
Capabilities:
Terminate process

Disassembly:
jmp 0x140161290
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 0x1401612be
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400bdc86
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 0x1400bdd03
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401ee7b0
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 0x1400bde66
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140160330
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015fc80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140160379
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402a8020]
jmp 0x140160388
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400bdf65
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022a1c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bae32
lea rcx, [rsp + 0x48]
call fcn.1400bae32
call fcn.1400bbc01
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bab1c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14022a22f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400bb378
lea rcx, [rsp + 0x78]
call fcn.1400bb378
mov eax, dword [rsp + 0x24]
jmp 0x14022a2c0
call fcn.1400bbc01
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bab1c
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14022a276
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400bb378
lea rcx, [rsp + 0x78]
call fcn.1400bb378
mov eax, dword [rsp + 0x2c]
jmp 0x14022a2c0
lea rcx, [rsp + 0x48]
call fcn.1400bad56
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bad56
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.1400bb378
lea rcx, [rsp + 0x78]
call fcn.1400bb378
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1401fe900
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.1400b9f0a
sub rsp, rax
mov rax, qword [0x14028b058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028fd50]
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 0x1401feaf2
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 0x1401fea46
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401fea46
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 0x1401fea2b
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 0x1401fe9c8
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 0x1401feab2
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 0x1401feb11
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 0x1401feaed
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 0x1401feb11
jmp 0x1401fe99e
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.1400bb7ab
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401febc0
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.1400b9f0a
sub rsp, rax
mov rax, qword [0x14028b058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028fd50]
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 0x1401fedcd
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 0x1401fed19
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401fed19
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 0x1401fecf9
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 0x1401fec88
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 0x1401fed8d
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 0x1401fedec
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 0x1401fedc8
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 0x1401fedec
jmp 0x1401fec5e
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.1400bb7ab
add rsp, 0x1498
pop rdi
pop rsi
ret