joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b140
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140186488]
test rdi, rdi
jne 0x14003b1f3
mov ecx, 0x50
call fcn.140083794
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140083794
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14003b215
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140186488], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003b215
mov rcx, rax
call fcn.1400a0488
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14003b220
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14003b220
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.1400363e0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14003b3a8
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14003b3db
lea rdx, [0x1401508fe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b3ca
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401689f8]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x14003b342
test r12d, r12d
js 0x14003b3d1
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140083794
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x14003b3c8
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140027230
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14003b31b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14003af10
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14003b369
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14003b3a8
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14003b3a0
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x14003b3c8
cmp byte [rdi + 0x17], 0
jns 0x14003b394
mov rcx, qword [rdi]
call fcn.1400837d0
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x14003b381
mov rcx, rsi
call fcn.1400837d0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140084ac0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14003b2cf
lea rcx, [rsp + 0x20]
call fcn.1400b83c0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14003b2cc
Function at 0x14003e5e0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b71c0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003e66b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14003e7d0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003e658
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ba24
test eax, eax
je 0x14003e765
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003e6c2
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14003e7de
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003e6af
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ba24
test eax, eax
je 0x14003e797
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003e715
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14003e7ec
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003e706
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ba24
test eax, eax
je 0x14003e736
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14003e747
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14003e717
jb 0x14003e7fa
test al, al
jns 0x14003e75b
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x14003e715
jmp 0x14003e717
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14003e776
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14003e717
jb 0x14003e7fa
mov rcx, rsi
test al, al
jns 0x14003e789
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14003e66b
jmp 0x14003e717
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14003e7a8
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14003e717
jb 0x14003e7fa
mov rcx, rsi
test al, al
jns 0x14003e7bf
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14003e6c2
jmp 0x14003e717
dec r14
jne 0x14003e63f
jmp 0x14003e66b
dec r14
jne 0x14003e696
jmp 0x14003e6c2
dec r14
jne 0x14003e6ed
jmp 0x14003e715
ud2
Function at 0x1400409c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140186560]
mov ecx, dword [0x140183698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140040a20
lea rsi, [0x140186558]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140084ac0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140186560]
call fcn.14008381c
cmp dword [0x140186560], 0xffffffff
jne 0x1400409fc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400b71c0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140083794
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401865a8]
mov ecx, dword [0x140183698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140040af7
lea rcx, [0x1401865a8]
call fcn.14008381c
cmp dword [0x1401865a8], 0xffffffff
jne 0x140040af7
xorps xmm0, xmm0
movups xmmword [0x140186598], xmm0
movups xmmword [0x140186588], xmm0
movups xmmword [0x140186578], xmm0
lea rcx, [0x140186578]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401865a8]
call fcn.1400838d0
lea r8, [0x140186578]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140040be0
mov qword [0x140186558], rsi
lea rcx, [0x140186560]
call fcn.1400838d0
jmp 0x1400409fc

Function at 0x140040b30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401865a8]
mov ecx, dword [0x140183698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140040b9b
lea rcx, [0x1401865a8]
call fcn.14008381c
cmp dword [0x1401865a8], 0xffffffff
jne 0x140040b9b
xorps xmm0, xmm0
movups xmmword [0x140186598], xmm0
movups xmmword [0x140186588], xmm0
movups xmmword [0x140186578], xmm0
lea rcx, [0x140186578]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401865a8]
call fcn.1400838d0
movzx eax, word [0x140186578]
cmp eax, 9
jne 0x140040bb1
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x140040bac
cmp eax, 6
jne 0x140040bc1
mov eax, 2
jmp 0x140040bac
cmp eax, 0xc
jne 0x140040bcd
mov eax, 3
jmp 0x140040bac
mov eax, 4
jmp 0x140040bac
Function at 0x1400450b0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14014c6c0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14004522c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140186c10]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400a08dc
mov rcx, rbx
call fcn.1400a0488
sub r14, rax
lea rdx, [0x14014e1ee]
mov rcx, rbx
mov r8, r14
call fcn.1400a08dc
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400b71c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14004518c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a0924
test eax, eax
je 0x140045250
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400451c7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a0924
test eax, eax
je 0x140045250
xor eax, eax
mov byte [0x140186801], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14015b1b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045257
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1401689f8]
test eax, eax
je 0x140045257
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140186e10], al
mov byte [0x140186800], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400451c9
xor eax, eax
jmp 0x14004521f
Function at 0x140045440
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140045474
mov rax, qword [rsi + 8]
test rax, rax
je 0x14004556b
bt ebx, 8
jae 0x140045490
mov eax, ebx
and eax, 0x200
jne 0x14004556b
cmp edi, 2
lea rax, [0x140186810]
lea rcx, [0x140186a10]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14004556b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14004556b
bt ebx, 8
jb 0x14004556b
shr ebx, 9
and ebx, 1
or bl, byte [0x140186e10]
je 0x14004556b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14004558a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140045554
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14009ba24
test eax, eax
je 0x14004558f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140045534
cmp dword [rsp + 0x2c], 0
jne 0x14004560a
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140084ac0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140045517
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14004559d
test ecx, ecx
jne 0x140045554
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400455c9
cmp dword [rsp + 0x2c], 2
jne 0x1400455da
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x1400455da
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x1400455f3
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400455e0
jmp 0x1400455f6
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14004555b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140045616
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x14004564c
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400a0488
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400359e0
jmp 0x14004556b
ud2
Function at 0x1400484e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140048629
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14014c6c0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401689f8]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401689f8]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401689f8]
test r14, r14
je 0x1400485c3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400485b3
mov ecx, 1
call fcn.140078890
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x14004862d
call fcn.140002fe0
lea rax, [0x140001d60]
lea rcx, [fcn.140001000]
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084ac0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14004860c
bt eax, 9
jae 0x140048648
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
jmp 0x1400485f3
call fcn.1400eb7d0
lea rax, [0x1400ebfd0]
lea rcx, [0x1400eb6b0]
jmp 0x1400485f3

Function at 0x140048670
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.140078890
mov ebp, eax
bt eax, 0x1d
jb 0x1400486b3
not ebp
test ebp, 0x128
jne 0x1400486d9
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140010eb0
mov ecx, 1
call fcn.140078890
bt eax, 9
jae 0x140048693
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000ef40
mov ecx, 1
call fcn.140078890
mov ebp, eax
bt eax, 0x1c
jae 0x1400486f8
xor ecx, ecx
call fcn.140078890
bt eax, 0x1e
jb 0x140048722
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x140048714
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000df00
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000f210
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400100b0
Function at 0x140049010
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140049098
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140049082
cmp dword [rsp + 0x38], 4
jne 0x140049082
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140049082

Function at 0x1400490a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140084a60
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400b71c0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140049153
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140049157
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140035bd0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140049134
mov edi, 0x3f4
cmp eax, 2
jne 0x140049134
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b71c0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140049134
lea rdx, [rsp + 0x40]
jmp 0x14004912a
Function at 0x14004ba00
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140084a60
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14014c6c0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1400391a0
test rsi, rsi
jne 0x14004baab
cmp byte [rsp + 0x47], 0
js 0x14004ba68
lea rcx, [rsp + 0x30]
jmp 0x14004ba6d
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [rsp + 0x47], 0
jns 0x14004ba8e
mov rcx, qword [rsp + 0x30]
call fcn.1400837d0
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b71c0
cmp byte [rsp + 0x47], 0
jns 0x14004bacc
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14004ba7d
cmp eax, 0x7fff
jae 0x14004bafd
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400d7b20
jmp 0x14004ba7d
int3

Function at 0x14004c020
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14004c097
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401775a0], rax
jne 0x14004c09a
mov rsi, rcx
call fcn.140052140
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14004c0a0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140078e70
mov ecx, dword [0x140189a60]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140183698]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14004e030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14004e000]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14018a850]
lea rdx, [0x14004de50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14004e128
cmp dword [0x14018a858], 0
jne 0x14004e135
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14018a85c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14004e0dc
mov ecx, 1
mov edx, 0x28
call fcn.14006f5d0
test rax, rax
je 0x14004e135
mov r14, rax
mov ecx, dword [0x14018a85c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14004e12d
lea r15, [0x14018a860]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14018a870]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084ac0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140098410
mov rcx, r14
call fcn.14006f530
mov rcx, rsi
mov rax, rdi
call qword [0x1401689f8]
xor esi, esi
jmp 0x14004e10c

Function at 0x140052040
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14018a8e8], 0
jne 0x14005207d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140052070
mov dword [rdi], eax
mov dword [0x14018a8f0], eax
mov qword [0x14018a8e8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3