joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bd54
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400cd110], 0
lea rbx, [0x1400cd120]
mov r14, rdx
mov r15, rcx
jne 0x14002bda1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400cd114], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400cd110], 1
mov ecx, dword [0x1400cd114]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14002be76
mov rcx, qword [0x1400cc470]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14002bea1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400cd118]
test rax, rax
je 0x14002bdf1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400cd118], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14002bf70]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400cd114]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400cc470]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14002bea1
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14002bf90
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400ccef8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400ccef8]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], 0x10
mov rdx, rbx
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov ecx, dword [0x1400cb960]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1400324b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400cd5a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003250b
cmp word [rdx], r13w
jne 0x14003250b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140032510
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140032635
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140032656
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140032549
mov rdx, r9
mov word [rbx], cx
jmp 0x140032570
cmp r9, r8
jae 0x140032580
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003252a
jmp 0x140032635
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003262a
cmp dword [rsp + 0x80], esi
je 0x14003262a
lea r8, [0x1400cd5a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140032602
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400325d2
mov word [rbx], r13w
jmp 0x140032632
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400325df
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140032632
cmp word [rsp + 0x70], r13w
jne 0x14003260f
cmp rbx, r14
je 0x1400325cc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003f91c
cmp word [rsp + 0x70], r13w
je 0x140032635
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400cd5a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003262f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140032635
Function at 0x14003ff90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400400d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140040147
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040147
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040147
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040147
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040147
cmp dword [rcx + 0x84], 0xe
jbe 0x140040147
cmp dword [rcx + 0xf8], 0
je 0x140040147
mov ecx, ebx
call fcn.140040010
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004026c
nop
cmp dword [rbp + 0x20], 0
je 0x140040195
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400400a4
int3

Function at 0x14004bd80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x270]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + 0x10]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x14004bf01
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14004be1d
mov rax, qword [rbx + 0x30]
add qword [rax + r14], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x14004be77
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x14004be60
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x14004be42
cmp r13d, 1
jne 0x14004bed3
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x14004beb0
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x14004be00
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x14004ef50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x14004ef86
mov r8d, ebx
call fcn.140026700
mov dword [rsp + 0x70], eax
jmp 0x14004efa0
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x14004f068
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x14004efc6
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x14004efe2
mov ebp, 2
mov edi, ebp
jmp 0x14004f009
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14004eff5
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x14004f006
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14004f05e
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x14004f023
lea r8, [rdi - 1]
mov rcx, r14
call fcn.140026700
jmp 0x14004f040
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x14004f049
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x1400558a4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x140055963
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x140055949
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x14005592c
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x1400558f8
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x140056604
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x1400566c4
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x1400566a9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x14005668c
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x140056657
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x14005e658
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002ce18
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14005e6f9
cmp ebx, dword [rsp + 0x30]
je 0x14005e6f2
test esi, esi
je 0x14005e6f2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005e6cd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005e6da
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005e6b7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005e6de
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005e6fb
mov eax, 1
jmp 0x14005e6fb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400605c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400605d6
mov al, 1
jmp 0x140060636
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400605e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140060634
mov ecx, dword [rcx + 0x18]
nop
call fcn.140060794
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140060634
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140060634
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060634
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140060636
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007cb20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007cb50
xor eax, eax
jmp 0x14007cc13
mov rbp, rbx
cmp word [rax], si
je 0x14007cb75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007cb5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007cb58
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14005a23c
movsxd r14, eax
test eax, eax
jne 0x14007cbb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007cb49
mov rcx, r14
call fcn.14002c488
mov rdi, rax
test rax, rax
jne 0x14007cbcc
xor ecx, ecx
call fcn.14002c44c
jmp 0x14007cba8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14005a23c
test eax, eax
jne 0x14007cbfd
mov rcx, rdi
call fcn.14002c44c
jmp 0x14007cc07
xor ecx, ecx
call fcn.14002c44c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14007d114
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010f10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007d19e
cmp byte [rbp - 0x21], r15b
je 0x14007d199
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007d1d4
call fcn.14002d5b0
test eax, eax
jne 0x14007d1c0
cmp byte [rbp - 0x21], r15b
je 0x14007d1b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007d1d4
cmp byte [rbp - 0x21], r15b
je 0x14007d1d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14007b31c
test eax, eax
jne 0x14007d274
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010f10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007d213
cmp byte [rbp - 0x21], r15b
je 0x14007d248
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007d248
call fcn.14002d5b0
test eax, eax
jne 0x14007d234
cmp byte [rbp - 0x21], r15b
je 0x14007d22d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007d248
cmp byte [rbp - 0x21], r15b
je 0x14007d245
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14007b31c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007d274
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007d277
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007d285
mov rcx, rdi
call fcn.14002c44c
cmp byte [rbp + 0x3f], r15b
je 0x14007d294
mov rcx, qword [rbp + 0x27]
call fcn.14002c44c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400e1cd4
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1400cb960]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x1402f6090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140579040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], SafeArrayDestroy
mov byte [rsp + 0x21], 0x65
mov byte [rsp + 0x22], 0x7f
mov byte [rsp + 0x23], 0x4d
mov byte [rsp + 0x24], 0x5e
mov byte [rsp + 0x25], 0x59
mov byte [rsp + 0x26], 0x7d
mov byte [rsp + 0x27], 0x6d
mov byte [rsp + 0x28], 0x5d
mov byte [rsp + 0x29], 0x44
mov byte [rsp + 0x2a], 0x4f
mov byte [rsp + 0x2b], 0
lea rcx, [rsp + 0x20]
call fcn.140508b50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14050c380
add rsp, 0x48
ret
Function at 0x140507930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140579040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0x2d
mov byte [rsp + 0x21], 0x7e
mov byte [rsp + 0x22], 0x54
mov byte [rsp + 0x23], 0x5e
mov byte [rsp + 0x24], 0x59
mov byte [rsp + 0x25], 0x48
mov byte [rsp + 0x26], 0x40
mov byte [rsp + 0x27], 0x69
mov byte [rsp + 0x28], 0x5f
mov byte [rsp + 0x29], 0x44
mov byte [rsp + 0x2a], 0x5b
mov byte [rsp + 0x2b], 0x48
mov byte [rsp + 0x2c], 0
lea rcx, [rsp + 0x20]
call fcn.140508ab0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14050c380
add rsp, 0x48
ret

Function at 0x14050d23c
Capabilities:
Parse pe header

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

Function at 0x140512fd0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14051303f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14051303f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14051303f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14051303f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14051303f
cmp dword [rcx + 0x84], 0xe
jbe 0x14051303f
cmp dword [rcx + 0xf8], 0
je 0x14051303f
mov ecx, ebx
call fcn.1405130f0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140512ecc
nop
cmp dword [rbp + 0x20], 0
je 0x14051308d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140513098
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140512fd0

Function at 0x1405131d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140512fd0
Function at 0x140516288
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1405162b8
xor eax, eax
jmp 0x14051637b
mov rbp, rbx
cmp word [rax], si
je 0x1405162dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1405162c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1405162c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1405161a8
movsxd r14, eax
test eax, eax
jne 0x14051631b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1405162b1
mov rcx, r14
call fcn.1405147cc
mov rdi, rax
test rax, rax
jne 0x140516334
xor ecx, ecx
call fcn.1405148a4
jmp 0x140516310
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1405161a8
test eax, eax
jne 0x140516365
mov rcx, rdi
call fcn.1405148a4
jmp 0x14051636f
xor ecx, ecx
call fcn.1405148a4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret