joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026560
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.140014824
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400265ea
cmp byte [rbp - 0x21], r15b
je 0x1400265e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026620
call fcn.14001e4d8
test eax, eax
jne 0x14002660c
cmp byte [rbp - 0x21], r15b
je 0x140026604
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026620
cmp byte [rbp - 0x21], r15b
je 0x14002661d
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.14001430c
test eax, eax
jne 0x1400266c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014824
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002665f
cmp byte [rbp - 0x21], r15b
je 0x140026694
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026694
call fcn.14001e4d8
test eax, eax
jne 0x140026680
cmp byte [rbp - 0x21], r15b
je 0x140026679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026694
cmp byte [rbp - 0x21], r15b
je 0x140026691
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.14001430c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400266c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400266c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400266d1
mov rcx, rdi
call fcn.14001a2b8
cmp byte [rbp + 0x3f], r15b
je 0x1400266e0
mov rcx, qword [rbp + 0x27]
call fcn.14001a2b8
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 0x140027d34
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bc0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bc0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e84
cmp rax, 0xffffffffffffffff
je 0x140027e84
xor edi, edi
test rbp, rbp
jle 0x140027e2f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e248
mov rbx, rax
test rax, rax
jne 0x140027dbc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027e25
mov edx, 0x8000
mov ecx, r14d
call fcn.1400156f0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c90c
cmp eax, 0xffffffff
je 0x140027e05
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027dcc
mov edx, r15d
mov ecx, r14d
call fcn.1400156f0
jmp 0x140027e25
cmp byte [rsi + 0x38], dil
je 0x140027e1c
cmp dword [rsi + 0x34], 5
jne 0x140027e1c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027e25
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a2b8
jmp 0x140027e98
jns 0x140027e98
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bc0c
cmp rax, 0xffffffffffffffff
jne 0x140027e50
cmp byte [rsi + 0x30], dil
je 0x140027e98
mov edi, dword [rsi + 0x2c]
jmp 0x140027e98
mov ecx, r14d
call fcn.140016ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e98
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e91
mov eax, dword [rsi + 0x2c]
jmp 0x140027e96
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bc0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0xb3e608
Capabilities:
Encode data using xor

Disassembly:
jmp 0xb3e612
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0xb3e63b
pop rbp
sub rbp, 0x33
sub rbp, 0x73e608
sub rsp, 0x20
jmp 0xb3e65a
mov rax, 0x73e608
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffd11aed24
xor byte [rax], dl
inc rax
dec rcx
jne 0xb3e679
jmp 0xb3e690
add byte [rax], al
mul dword [rcx - 0x52930b91]
insb byte [rdi], dx
lodsd eax, dword [rsi]
int 0xaf
lodsd eax, dword [rsi]
sbb byte [rsp], ah
and al, 0x6c
movsd dword [rdi], dword [rsi]
in eax, 0x2c
and eax, 0x256c2424
int 0x6c
jrcxz 0xb3e68a
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001eaa0]
mov dword [rax], 1
mov rax, qword [0x14001eab0]
mov dword [rax], 1
mov rax, qword [0x14001eac0]
mov dword [rax], 1
mov rax, qword [0x14001ea30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007fb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007feb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008010
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e0c0], 0
jne 0x140008028
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007fde
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d392]
mov qword [rsp + 0x20], 0
lea rdi, [0x14002e0e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080f4
test al, 0x10
je 0x140007ff4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007ff4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x1400080a0
jmp 0x140007ff4

Function at 0x14000eef0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400153f0
sub rsp, rax
mov eax, dword [0x1400320e0]
mov rsi, rcx
test eax, eax
je 0x14000ef90
xor ebx, ebx
lea rdi, [0x1400300e0]
test eax, eax
jg 0x14000ef2c
jmp 0x14000ef40
add rbx, 1
cmp dword [0x1400320e0], ebx
jle 0x14000ef40
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000ef20
jmp 0x14000ef77
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000ef55
cmp word [rsi + 2], 0x3a
je 0x14000ef77
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000efe0
movsxd rbx, dword [0x1400320e0]
cmp ebx, 0x3ff
jle 0x14000eff8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007870
test al, al
je 0x14000f01a
movsxd rbx, dword [0x1400320e0]
mov rcx, rdi
lea rdi, [0x1400300e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400320e0]
add eax, 1
mov dword [0x1400320e0], eax
jmp 0x14000ef11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000ef64
xor eax, eax
jmp 0x14000ef7c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400320e0], 1
mov rdx, rax
lea rax, [0x1400300e0]
mov qword [rax + rbx*8], rdx
jmp 0x14000ef77
mov rcx, rbx
call fcn.140007ef0
nop
nop word cs:[rax + rax]
nop
Function at 0x1400140d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b030
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b030
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014da2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140032208]
test eax, eax
je 0x140014e3a
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140032210]
mov qword [rbp - 8], rax
jmp 0x140014e1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140014e12
cmp qword [rbp - 0x10], 0
je 0x140014e12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014dd8
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014e3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140014f40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140014f68
mov eax, 0
jmp 0x140014fb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014f91
mov eax, 0
jmp 0x140014fb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014fb1
mov eax, 0
jmp 0x140014fb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140014fbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001503a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015031
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015031
mov rax, qword [rbp - 8]
jmp 0x14001504f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015004
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002f20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x1401887b0]
mov ecx, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400030d1
mov ecx, dword [0x1401814d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140003054
movsxd rcx, dword [0x1401887a8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401887ac]
jne 0x140003054
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140003054
movabs r12, 0x6000000000000000
movabs r15, 0xffffffffffffff
mov rax, qword [rdi]
mov rbx, rax
and rbx, r15
and rax, r12
movabs rcx, 0x4000000000000000
cmp rax, rcx
jne 0x14000301a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140003007
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov byte [r13 + 0x10], 1
movabs rsi, 0x8000000000000001
mov qword [r13 + 8], rbx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.1400562f0]
mov rax, qword [rbx]
lea rcx, [r14 + rsi]
cmp rcx, 2
jae 0x14000305b
add rsi, rax
cmp rsi, 1
ja 0x14000307d
cmp rax, r14
je 0x14000307d
int3
mov byte [r13], 0
jmp 0x1400030b1
xor ecx, ecx
mov rdx, rax
add rdx, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rax, r14
cmovo rax, rdx
mov r14, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000309f
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
mov rax, qword [rdi]
and rax, r12
and r14, r15
or r14, rax
mov qword [rdi], r14
inc dword [rdi + 0x14]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008fec0
mov rax, r13
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401887b0]
call fcn.14008d354
cmp dword [0x1401887b0], 0xffffffff
jne 0x140002f78
mov qword [0x1401887a8], 0
lea rcx, [0x1401887a8]
xor edx, edx
call fcn.1400421b0
lea rcx, [0x1401887b0]
call fcn.14008d2f4
jmp 0x140002f78
Function at 0x1400054d0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x140188314]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x1400055b5
cmp rbx, 1
je 0x140005513
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x14000551a
xor eax, eax
jmp 0x1400055aa
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x140005601
mov rcx, rsi
call fcn.140034430
mov rdi, rax
lock dec dword [rsi + 0x1518]
inc qword [rax + 0x5a0]
cmp bp, 0x29
jae 0x1400055c2
movzx edx, bp
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
je 0x1400055d5
inc qword [rdi + 0x5a8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000558d
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x1400055fc
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14000558f
xor ecx, ecx
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140005503
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
jmp 0x140005513
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.1400457d0
mov rax, qword [rbx]
test rax, rax
jne 0x140005571
jmp 0x140005513
call fcn.1400bccf0
int3

Function at 0x140005b20
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140005bdc
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005ba9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005b84
mov qword [rsi], rdi
call fcn.140041560
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140005be0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140005bce
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005b72
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x140005bbd
mov byte [rsi + 8], 1
int3
Function at 0x140005e10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140005e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005e77
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005e51
mov qword [rsi], rdi
call fcn.140041560
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov word [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140005eaa
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140005e9c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005e3f
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x140005e8b
int3
Function at 0x1400074b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.14008fe50
sub rsp, rax
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401814d8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14000754f
lea rcx, [rsp + 0x2c]
call fcn.1400bae30
test al, al
je 0x1400075cc
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140007530
lea rcx, [rsp + 0x2c]
call fcn.1400bae30
test al, al
je 0x1400075cf
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400075cf
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1401814d8], ecx
je 0x14000754f
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1401814d8]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400075c9
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400924f0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rbx, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rbx
mov ecx, 0x1000
call fcn.14008d7b8
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140091e40
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call rbx
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.14008fec0
mov rax, rdi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x140007d30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140188278]
cmp rsi, 1
jbe 0x140007d75
mov ecx, dword [0x1401814d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140007dc7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140007dc7
mov rax, qword [rax + rcx]
test rax, rax
je 0x140007dc7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140188278]
call fcn.140055e00
test al, al
je 0x140007dbb
mov qword [0x140188280], 0
lea rdi, [0x140188278]
lea rsi, [0x140188280]
mov rcx, rsi
xor edx, edx
call fcn.1400421b0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140055de0
jmp 0x140007d43
mov rsi, qword [0x140188278]
jmp 0x140007d43
int3
Function at 0x14000a100
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
test rdx, rdx
je 0x14000a260
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm6
test byte [0x14018a257], 0x40
je 0x14000a348
mov eax, 0x40000000
and eax, dword [0x14018a250]
je 0x14000a348
lea rcx, [rsp + 0x190]
mov edx, 0x20
call fcn.14002ce90
test eax, eax
je 0x14000a348
lea rbp, [rsp + 0x18c]
xor eax, eax
movups xmm0, xmmword [rbx + rax]
xorps xmm0, xmmword [rsp + rax + 0x190]
movaps xmmword [rsp + rax + 0x190], xmm0
add rax, 0x10
cmp rax, 0x20
jne 0x14000a198
lea r14, [rsp + 0x60]
mov r8d, 0x130
mov rcx, r14
mov dl, 0xaa
call fcn.1400924f0
mov ecx, 1
call fcn.1400704d0
test rax, rax
je 0x14000a28c
mov r12, rax
mov r13, rax
add r13, 0x128
cmp dword [rax + 0x128], 0xfff
ja 0x14000a36e
cmp qword [r12 + 0x120], 0
jne 0x14000a36e
mov eax, 0x20
mov ebp, 0x10000
lea r15, [rsp + 0x190]
cmp rsi, rbp
mov ebx, 0x10000
cmovb rbx, rsi
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, rdi
mov r8, rbx
mov r9, r15
call fcn.1400d9040
test eax, eax
je 0x14000a369
inc dword [r13]
add rdi, rbx
mov eax, 0
sub rsi, rbx
jne 0x14000a21c
cmp r12, r14
je 0x14000a3d8
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14008fec0
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [0x140181548]
mov edx, 0x138
mov rcx, rbx
xor r8d, r8d
call qword [rbx]
mov r15, rax
test rax, rax
jne 0x14000a2b5
cmp byte [0x140184548], 0
jne 0x14000a3ef
test r15, r15
je 0x14000a401
mov qword [r15], 0x130
mov r12, r15
add r12, 8
je 0x14000a401
lea r8, [0x14014b260]
mov ecx, 1
mov rdx, r12
call fcn.1400c3ab0
test eax, eax
je 0x14000a401
add r15, 0x134
mov rbp, r15
lea r13, [r12 + 0x128]
xor r15d, r15d
mov dword [rbp], r15d
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov edx, 0x30
mov rcx, rbx
call fcn.1400d9280
mov rcx, r12
mov rdx, rbx
call fcn.1400d92d0
mov dword [r12 + 0x128], r15d
mov qword [r12 + 0x120], 0
jmp 0x14000a1fb
call fcn.14012d240
test eax, eax
je 0x14000a3c1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1a0], xmm0
movaps xmmword [rsp + 0x190], xmm0
jmp 0x14000a18e
call fcn.14008d5e0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov edx, 0x30
mov rcx, rbx
call fcn.1400d9280
mov r8d, 0x30
mov rcx, r12
mov rdx, rbx
call fcn.14000a410
mov qword [r12 + 0x118], 1
mov dword [r13], 0
mov qword [r12 + 0x120], 0
jmp 0x14000a20a
lea rcx, [rsp + 0x190]
mov edx, 0x20
call fcn.1400d9280
jmp 0x14000a18e
lea rcx, [rsp + 0x60]
mov r8d, 0x120
xor edx, edx
call fcn.1400924f0
jmp 0x14000a260
mov ecx, 0x138
call fcn.1400bf770
test al, al
jne 0x14000a293
mov r12, r14
jmp 0x14000a2f8