joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021100
Capabilities:
Allocate thread local storage

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

Function at 0x140021970
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rcx, [rsp + 0x28]
mov qword [rcx], rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400219ea
lea rcx, [rsp + 0x28]
mov rax, qword [rcx]
mov qword [rsi], rax
mov qword [rcx], rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400219ed
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
int3
int3
Function at 0x140021c50
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1401f3790]
mov qword [rcx], rax
lea rax, [rcx + 0x70]
xorps xmm6, xmm6
movups xmmword [rcx + 0x50], xmm6
xor ebx, ebx
mov qword [rcx + 0x60], rbx
movups xmmword [rcx + 0x70], xmm6
movups xmmword [rcx + 8], xmm6
mov byte [rcx + 0x18], bl
movups xmmword [rcx + 0x1c], xmm6
movups xmmword [rcx + 0x2c], xmm6
movups xmmword [rcx + 0x39], xmm6
mov qword [rcx + 0x68], rax
movups xmmword [rcx + 0x80], xmm6
movups xmmword [rcx + 0x90], xmm6
movups xmmword [rcx + 0xa0], xmm6
movups xmmword [rcx + 0xb0], xmm6
movups xmmword [rcx + 0xc0], xmm6
movups xmmword [rcx + 0xd0], xmm6
mov qword [rcx + 0xe0], rbx
mov ebp, 0x3f800000
mov dword [rcx + 0xe8], ebp
mov dword [rcx + 0xf0], ebx
movups xmmword [rcx + 0x108], xmm6
movups xmmword [rcx + 0xf8], xmm6
mov dword [rcx + 0x118], ebp
movups xmmword [rcx + 0x120], xmm6
movups xmmword [rcx + 0x130], xmm6
mov dword [rcx + 0x140], ebp
movups xmmword [rcx + 0x148], xmm6
movups xmmword [rcx + 0x158], xmm6
mov dword [rcx + 0x168], ebp
movups xmmword [rcx + 0x170], xmm6
movups xmmword [rcx + 0x180], xmm6
mov dword [rcx + 0x190], ebp
mov qword [rcx + 0x1b0], rbx
movups xmmword [rcx + 0x198], xmm6
mov dword [rcx + 0x1a8], ebx
mov dword [rcx + 0x1b8], 1
add rcx, 0x1c0
call fcn.140021f50
lea rcx, [rsi + 0x308]
movups xmmword [rsi + 0x2f0], xmm6
mov qword [rsi + 0x300], rbx
xor edx, edx
call fcn.140012fc0
lea rcx, [rsi + 0x310]
xor edx, edx
call fcn.140012fc0
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.140012fc0
movups xmmword [rsi + 0x320], xmm6
movups xmmword [rsi + 0x330], xmm6
mov dword [rsi + 0x340], ebp
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x368], xmm6
mov byte [rsi + 0x378], bl
mov dword [rsi + 0x37c], edi
mov byte [rsi + 0x380], bl
movups xmmword [rsi + 0x388], xmm6
movups xmmword [rsi + 0x398], xmm6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov edx, dword [rsi + 0x1b8]
mov rax, qword [rsi + 0x1c8]
mov rcx, rax
shr rcx, 6
test dl, 2
je 0x140021e6f
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.14010db60
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140021e8d
call fcn.140021ec0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140021ff0
mov qword [0x140227558], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dl, 8
jne 0x140021ea0
test dl, 0x10
jne 0x140021eae
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.1400222a0
jmp 0x140021e30
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14023a010]
jmp 0x140021e3d
cmp rax, 0x40
mov eax, 0x100
jmp 0x140021e27
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140021e82
Function at 0x140023130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14002318a
mov dl, byte [rbp + 0x60]
movzx ebx, bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x14023a010]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x140224980]
call fcn.14010e3f0
mov r14, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400231cf
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14023a010]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x20]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [r15], xmm0
mov rax, qword [r14]
xor bl, 1
movzx ecx, bl
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, r15
call qword [0x14023a010]
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
mov rcx, qword [r15]
mov r8, qword [r15 + 8]
mov rax, r9
cmovs rax, r8
test rax, rax
je 0x140023296
test r9b, r9b
mov rbx, r15
cmovs rbx, rcx
test rdi, rdi
je 0x14002327b
mov al, byte [rbx]
movzx eax, al
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14002327f
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
cmp eax, 0xffffffff
jne 0x140023250
xor edi, edi
mov r9b, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
inc rbx
test r9b, r9b
mov rax, r15
cmovs rax, rcx
movzx edx, r9b
cmovs rdx, r8
add rdx, rax
cmp rbx, rdx
jne 0x14002322b
jmp 0x140023296
xor edi, edi
jmp 0x14002325c
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x14023a010]
jmp 0x140023249
shr r9b, 7
mov qword [rsi], rdi
test r9b, r9b
je 0x14002317a
call fcn.14011d780
jmp 0x14002317a

Function at 0x140023bf0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140122050
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140023c93
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14011dc44
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14010a450
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140023cc0
mov rcx, r14
mov rdx, rsi
call fcn.14010de20
mov rcx, rsi
call fcn.14010a440
mov rcx, rbx
call fcn.14010a440
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011fe20
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140025d70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140025de5
movabs rax, 0x1fffffffffffff
and rax, qword [rsp + 0x20]
cvtsi2sd xmm0, rax
mov edx, 0xffffffcb
call fcn.14011dff0
movapd xmm6, xmm0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011fe20
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
int3

Function at 0x140025e70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [0x14023a010]
mov byte [rsi + 0x431], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x14023a010]
test rax, rax
je 0x140025f1e
mov eax, dword [0x14022b0e0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140025ee2
lea rcx, [0x14022b0d8]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400ea070
lea rcx, [0x14022b0e0]
call fcn.14011d638
cmp dword [0x14022b0e0], 0xffffffff
jne 0x140025ece
mov qword [0x14022b0d8], 0
lea rcx, [0x14022b0d8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b0e0]
call fcn.14011d5d8
jmp 0x140025ece
add rsp, 0x20
pop rsi
ret

Function at 0x140026100
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400261c9
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r12d, eax
mov r14, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400261c9
test r12d, r12d
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400261ab
Function at 0x1400285e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14022b9f8]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028661
lea rcx, [0x14022b9f0]
call fcn.14010e580
test rax, rax
jne 0x14002864e
mov ecx, 4
call fcn.14011d790
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14022b9f0]
mov rcx, rbx
call fcn.14010e580
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400ea070
test rsi, rsi
jne 0x1400286a5
lea rcx, [0x14022b9f0]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14010e580
lea rcx, [0x14022b9f8]
call fcn.14011d638
cmp dword [0x14022b9f8], 0xffffffff
jne 0x140028608
mov qword [0x14022b9f0], 0
lea rcx, [0x14022b9f0]
lea rdx, [0x140061870]
call fcn.140012fc0
lea rcx, [0x14022b9f8]
call fcn.14011d5d8
jmp 0x140028608
mov rcx, rsi
call fcn.14011d780
jmp 0x14002864e
Function at 0x14002a060
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x6c], 0
jne 0x14002a196
mov rdi, rdx
mov rsi, rcx
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
test rdi, rdi
jne 0x14002a19d
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002a1ce
mov rdi, qword [rsp + 0x38]
cmp qword [rsi + 0x48], rdi
je 0x14002a107
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x48]
inc rax
cmp rax, 2
jae 0x14002a17b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002a0fb
mov qword [rsi + 0x48], rdi
call fcn.1400d3890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x48]
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14002a210
cmp byte [rbx], 0
je 0x14002a1d8
lea rcx, [rsi + 0x58]
cmp byte [rsi + 0x50], 0
lea rbx, [rsp + 0x48]
mov rdx, rbx
jne 0x14002a1df
call fcn.14002a310
mov byte [rsi + 0x50], 1
cmp byte [rsp + 0x40], 0
je 0x14002a15c
mov rcx, rbx
call fcn.140029ce0
mov byte [rsi + 0x6c], 1
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d3890
mov rcx, qword [rsi + 0x48]
call fcn.140101910
mov qword [rsi + 0x48], 0
jmp 0x14002a0e8
mov edi, 0x4df
jmp 0x14002a162
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x14002a0bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14002a162
mov edi, 0x3f0
jmp 0x14002a162
call fcn.1400b5360
xor edi, edi
cmp byte [rsp + 0x40], 0
mov byte [rsi + 0x6c], 1
je 0x14002a162
mov rcx, rbx
call fcn.140029ce0
jmp 0x14002a162

Function at 0x14002a310
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x14002a335
call fcn.1400d3890
cmp qword [rsi], rbx
je 0x14002a364
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002a370
cmp rdi, 2
jb 0x14002a35c
mov qword [rsi], rbx
call fcn.1400d3890
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1400d3890
mov rcx, qword [rsi]
call fcn.140101910
mov qword [rsi], 0
jmp 0x14002a34e
Function at 0x14002a390
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [rcx + 0x6c], 0
je 0x14002a495
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], 0
call fcn.14002aa50
test eax, eax
jne 0x14002a49c
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
xor esi, esi
mov rcx, rdi
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14002a4a5
mov rbp, qword [rsp + 0x38]
cmp qword [rbx], rbp
je 0x14002a44e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14002a47f
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14002a445
mov qword [rbx], rbp
call fcn.1400d3890
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002a465
call fcn.1400d3890
mov rcx, rdi
call fcn.140101910
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400d3890
mov rcx, qword [rbx]
call fcn.140101910
mov qword [rbx], 0
jmp 0x14002a433
mov esi, 0x3f0
jmp 0x14002a465
mov esi, eax
mov rdi, qword [rsp + 0x40]
jmp 0x14002a44e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14002a44e

Function at 0x14002a600
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400322f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x1401f7c26]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x17c
call fcn.1400ddbb0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400f4d70
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140122050
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14003239f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.14010f900
mov rcx, rbp
call fcn.1400d3880
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140122050
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400323d6
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.14010f900
mov rcx, rbp
call fcn.1400d3880
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400323f8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140032404
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14003246e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c440
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140032437
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140032440
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test r14, r14
je 0x140032471
test eax, eax
jne 0x140032471
cmp ebp, 0xfffffffc
jne 0x140032467
call fcn.140171fd0
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x140032471
mov dil, 1
lea rcx, [rsp + 0x450]
call fcn.1400f5540
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140032670
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14022a118]
cmp rdi, 1
jbe 0x140032699
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400ea070
lea rcx, [0x14022a118]
call fcn.1400f5aa0
test al, al
je 0x1400326df
mov qword [0x14022a120], 0
lea rbx, [0x14022a118]
lea rdi, [0x14022a120]
mov rcx, rdi
xor edx, edx
call fcn.140012fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140014c00
jmp 0x140032687
mov rdi, qword [0x14022a118]
jmp 0x140032687
Function at 0x140032850
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402276f0]
cmp rdi, 1
jbe 0x14003289a
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400328e0
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402276f0]
call fcn.1400f5aa0
test al, al
je 0x1400328ec
mov qword [0x1402276f8], 0
lea rbx, [0x1402276f0]
lea rdi, [0x1402276f8]
mov rcx, rdi
xor edx, edx
call fcn.140012fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140014c00
jmp 0x140032867
test rsi, rsi
je 0x140032892
call fcn.140013120
jmp 0x140032879
mov rdi, qword [0x1402276f0]
jmp 0x140032867

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14011fdb0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140122050
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], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033741
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140033745
lea rsi, [rsp + 0x840]
mov rcx, rsi
call fcn.14011dc44
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.14001a710
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140033722
cmp eax, 2
jne 0x140033790
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140122050
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140033797
lea rsi, [rsp + 0x40]
jmp 0x14003370a
mov edi, 0x3f4
jmp 0x140033722
mov edi, 0xea
jmp 0x140033722

Function at 0x1400337a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140033813
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140033813
cmp dword [rsp + 0x38], 4
jne 0x140033813
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400395a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022b800]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400395d5
lea rcx, [0x14022b7f8]
add rsp, 0x28
jmp fcn.14010e580
lea rcx, [0x14022b800]
call fcn.14011d638
cmp dword [0x14022b800], 0xffffffff
jne 0x1400395c5
mov qword [0x14022b7f8], 0
lea rcx, [0x14022b7f8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b800]
call fcn.14011d5d8
jmp 0x1400395c5

Function at 0x140039700
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x1401f41a0]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140039770
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14003977b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140039768
mov qword [rsi + 0x18], rdi
call fcn.1400d3890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d3890
mov rcx, qword [rsi + 0x18]
call fcn.140101910
mov qword [rsi + 0x18], 0
jmp 0x140039755

Function at 0x14003a7f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003a8dc
cmp qword [rsi], 0
jne 0x14003a8dc
cmp dword [rsi + 0x14], 0
jne 0x14003a8dc
cmp qword [rsi + 8], 0
jne 0x14003a8dc
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x14003a85f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003a8ae
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003a857
mov qword [rsi], rbx
call fcn.1400d3890
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x14003a899
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003a8c4
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14003a891
mov qword [rsi + 8], rbp
call fcn.1400d3890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1400d3890
mov rcx, qword [rsi]
call fcn.140101910
mov qword [rsi], 0
jmp 0x14003a845
call fcn.1400d3890
mov rcx, qword [rsi + 8]
call fcn.140101910
mov qword [rsi + 8], 0
jmp 0x14003a87e
mov rcx, rsi
call fcn.14019ed50
mov rax, qword [rsi]
jmp 0x14003a829