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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800018ad
test r9, r9
je 0x1800018ad
movsxd r8, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div r8
test rdx, rdx
jne 0x1800018ad
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
cmp ecx, 1
jne 0x1800017da
mov r15d, ebp
test rax, rax
je 0x18000189e
lea r14, [rbx + 0x3f8]
mov rax, r14
cmp byte [rbx + 8], bpl
je 0x180001795
mov edx, ebp
test r8d, r8d
jle 0x180001795
mov r8, rsi
sub r8, r14
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001780
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1800018c0
movsxd r8, dword [rbx + 0x3d0]
mov rdx, rdi
mov rcx, r14
call fcn.18003c420
movsxd r8, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div r8
add rsi, r8
mov ecx, r15d
add rdi, r8
cmp rcx, rax
jb 0x180001765
jmp 0x18000189e
cmp ecx, 2
jne 0x18000186d
mov r14d, ebp
test rax, rax
je 0x18000189e
nop
mov r8, rdi
lea rdx, [rbx + 0x3f8]
mov rcx, rbx
call fcn.1800018c0
mov rcx, rdi
cmp byte [rbx + 8], bpl
je 0x180001835
mov edx, ebp
cmp dword [rbx + 0x3d0], edx
jle 0x180001835
mov r8, rsi
sub r8, rdi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001820
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.18003c420
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r14d
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, r14d
cmp rcx, rax
jb 0x1800017f0
jmp 0x18000189e
test rax, rax
je 0x18000189e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1800018c0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc ebp
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, ebp
cmp rcx, rax
jb 0x180001872
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1800029c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
mov rsi, r9
mov r14, r8
mov ebx, edx
mov r10, rcx
test edx, edx
je 0x180002b55
lea ecx, [rdx*8]
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [rbx*8]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 2
je 0x180002a0d
cmp ecx, 4
jne 0x180002a10
add edx, 2
jmp 0x180002a10
add edx, 3
inc edx
cmp dword [r9], edx
jge 0x180002a28
mov dword [r9], edx
mov eax, 0xfffffff0
mov rbx, qword [rsp + 0x30]
pop r14
pop rsi
ret
xor r11d, r11d
mov qword [rsp + 0x18], rbp
mov eax, 0x55555556
mov qword [rsp + 0x28], r15
imul ebx
mov ebp, r11d
lea r15, [0x180064a70]
mov eax, edx
mov rcx, r14
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
test edx, edx
jle 0x180002ae6
dec edx
mov qword [rsp + 0x20], rdi
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov edi, edx
lea ebp, [rdx + rdx*2]
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r10]
movzx r9d, byte [r10 + 2]
mov eax, edx
movzx r8d, byte [r10 + 1]
and edx, 3
shr rax, 2
add r10, 3
shl edx, 4
movzx eax, byte [rax + r15]
mov byte [rcx], al
mov eax, r8d
shr eax, 4
and r8d, 0xf
add edx, eax
movzx eax, byte [rdx + r15]
mov byte [rcx + 1], al
mov eax, r9d
shr eax, 6
and r9d, 0x3f
lea eax, [rax + r8*4]
movzx eax, byte [rax + r15]
mov byte [rcx + 2], al
movzx eax, byte [r9 + r15]
mov byte [rcx + 3], al
add rcx, 4
sub rdi, 1
jne 0x180002a80
mov rdi, qword [rsp + 0x20]
cmp ebp, ebx
jge 0x180002b41
movzx edx, byte [r10]
inc ebp
cmp ebp, ebx
jge 0x180002af9
movzx r11d, byte [r10 + 1]
mov rax, rdx
and edx, 3
shr rax, 2
shl edx, 4
movzx eax, byte [rax + r15]
mov byte [rcx], al
mov eax, r11d
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r15]
mov byte [rcx + 1], al
cmp ebp, ebx
jge 0x180002b33
and r11d, 0xf
shl r11d, 2
movzx eax, byte [r11 + r15]
mov byte [rcx + 2], al
jmp 0x180002b37
mov byte [rcx + 2], 0x3d
add rcx, 3
mov byte [rcx], 0x3d
inc rcx
mov r15, qword [rsp + 0x28]
mov eax, ecx
mov rbp, qword [rsp + 0x18]
sub eax, r14d
mov dword [rsi], eax
mov byte [rcx], 0
mov rbx, qword [rsp + 0x30]
xor eax, eax
pop r14
pop rsi
ret
Function at 0x1800066d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, r8
mov qword [rsp + 0x38], rcx
mov rsi, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbp, r9
call fcn.18003c880
xor r12d, r12d
mov edi, 0x20019
nop
lea rax, [rsp + 0x38]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1800067a8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rbp
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18000679d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 2
jne 0x1800067c8
cmp rsi, 0xffffffff80000002
jne 0x1800067c8
cmp edi, 0x20019
jne 0x1800067c8
mov edi, 0x20219
jmp 0x180006720
mov qword [r14 + 0x10], r12
lea rax, [rsp + 0x40]
mov qword [r14 + 0x18], 7
mov r8, 0xffffffffffffffff
mov word [r14], r12w
inc r8
cmp word [rax + r8*2], r12w
jne 0x1800067e4
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.180004000
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001e6b0
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180007b40
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, 0xffffffffffffffff
mov rdi, rcx
nop dword [rax]
inc rdi
cmp word [rbp + rdi*2], 0
jne 0x180007b60
lea eax, [rdi + 1]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.18001e614
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.18003c880
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.180040318
movsxd rdi, edi
mov bpl, 1
test rdi, rdi
js 0x180007c09
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov qword [rsp + 0x48], r15
mov ebx, r14d
mov r15d, 0x5c
cmp word [rsi + rbx*2], r15w
jne 0x180007bf2
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180007bed
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180007bfc
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x180007bc5
jmp 0x180007bff
xor bpl, bpl
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rcx, rsi
call fcn.18001e5a4
mov rbx, qword [rsp + 0x50]
movzx eax, bpl
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007ed0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx ebx, r8b
mov qword [rsp + 0x30], rcx
mov edi, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18003c880
mov edx, edi
lea rax, [rsp + 0x40]
bts edx, 0xf
mov qword [rsp + 0x20], rax
test bl, bl
cmove edx, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsi + 0x18], 7
mov r8, 0xffffffffffffffff
test eax, eax
je 0x180007f61
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
inc r8
cmp word [rax + r8*2], ax
jne 0x180007f53
xor edx, edx
jmp 0x180007f80
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
lea rax, [rsp + 0x40]
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180007f70
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180004000
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001e6b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180008690
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push rbx
push r14
mov eax, 0x1258
call fcn.18001f100
sub rsp, rax
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
call fcn.18003c880
xor eax, eax
lea r8, [rsp + 0x20]
xor ebx, ebx
mov word [rsp + 0x1238], ax
mov edx, 0x1000
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x30]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1800087f5
mov qword [rsp + 0x1280], rsi
mov esi, dword [rsp + 0x20]
shr esi, 2
test esi, esi
je 0x1800087f1
mov qword [rsp + 0x1278], rbp
mov qword [rsp + 0x1288], rdi
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x1250], r15
mov r15d, ebx
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x1030]
mov r8d, 0x208
call fcn.18003c880
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x1030]
mov rcx, rax
mov rbp, rax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test rbp, rbp
je 0x18000877c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x104
lea rcx, [rsp + 0x1030]
call fcn.180045fc0
mov rdx, r14
lea rcx, [rsp + 0x1030]
call fcn.18003d570
test rax, rax
jne 0x1800087eb
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x180008730
mov eax, r15d
mov rdi, qword [rsp + 0x1288]
mov rbp, qword [rsp + 0x1278]
mov r15, qword [rsp + 0x1250]
mov rsi, qword [rsp + 0x1280]
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.18001e6b0
add rsp, 0x1258
pop r14
pop rbx
ret
mov eax, dword [rsp + rbx*4 + 0x30]
jmp 0x1800087b0
mov eax, ebx
jmp 0x1800087c8
mov eax, ebx
jmp 0x1800087d0
Function at 0x1800093f0
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov r15, rcx
test rdx, rdx
jne 0x18000942d
xor al, al
jmp 0x180009643
cmp qword [rcx + 0x18], 0
ja 0x1800094b3
lea rcx, [rsp + 0x48]
call fcn.180008470
mov rbx, rax
lea rdi, [r15 + 8]
cmp rdi, rax
je 0x180009471
mov rcx, rdi
call fcn.180003d10
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1800094b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800094ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009663
call fcn.18001e5a4
lea rdi, [r15 + 8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1800094ce
mov rdi, qword [rdi]
cmp r15, 8
jae 0x1800094e7
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], 7
jmp 0x18000952a
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.180003d80
mov qword [rsp + 0x28], rax
lea r8, [r15*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.18003c420
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov r8d, 0xa
lea rdx, str.Software_
lea rcx, [rsp + 0x28]
call fcn.180003e80
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rbp + r8*2], 0
jne 0x180009550
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.180003e80
test r14, r14
je 0x1800095a8
mov r8d, 1
lea rdx, [0x1800653b8]
lea rcx, [rsp + 0x28]
call fcn.180003e80
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x180009590
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.180003e80
test rsi, rsi
je 0x1800095de
mov r8d, 1
lea rdx, [0x1800653b8]
lea rcx, [rsp + 0x28]
call fcn.180003e80
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1800095c4
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.180003e80
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180009641
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000963c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000965d
call fcn.18001e5a4
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18001e6b0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800400b4
int3
call fcn.1800400b4
int3
Function at 0x180019410
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r14d, dword [rsp + 0x110]
mov rbp, rcx
mov rcx, rdx
mov edi, r9d
mov ebx, r8d
mov rsi, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18001945b
mov eax, 2
jmp 0x180019546
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.180019120
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.18003c880
test r14d, r14d
mov dword [rsp + 0x20], 0x70
lea rcx, str.runas
mov qword [rsp + 0x38], rsi
lea rax, str.open
mov dword [rsp + 0x24], 0x40
cmovne rax, rcx
cmp qword [rsp + 0xa8], 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
cmovae rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov esi, eax
test rcx, rcx
je 0x180019500
test ebx, ebx
je 0x180019500
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x180019544
mov rcx, qword [rsp + 0x90]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001953f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180019564
call fcn.18001e5a4
mov eax, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18001e6b0
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800400b4
int3

Function at 0x1800197b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18001a950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2058
call fcn.18001f100
sub rsp, rax
mov rax, qword [0x18008b218]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rcx
lea rdi, [rsp + 0x2078]
call fcn.180004130
mov r9d, 0x1000
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov r8d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.180042a68
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.18001e6b0
add rsp, 0x2058
pop rdi
pop rbx
ret
Function at 0x180020d70
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180020d83
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180021390
lea rdx, [0x180089248]
lea rcx, [rsp + 0x20]
call fcn.18003d1cc
int3

Function at 0x18002caf0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18008ee70]
xor edx, edx
jmp fcn.180020d70

Function at 0x18002d488
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18008ee70]
jmp fcn.180020d70

Function at 0x1800390d8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180039194]
mov r9, qword [r9 + 8]
jmp fcn.180028fc4

Function at 0x18003916c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800391a4]
mov r9, qword [r9 + 8]
jmp fcn.180028fc4
Function at 0x18005146c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18005130c
call fcn.1800434e4
mov dword [rax], 0x16
call fcn.180040094
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800512f4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800512f4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18005133e
lock or dword [rax + 0x14], 0x10
jmp 0x1800512f4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18005135b
mov rcx, qword [rbp + 0x10]
call fcn.180053a14
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18004ff60
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180050d44
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800513b2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800512f4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18005141e
mov rcx, qword [rbp + 0x10]
call fcn.18004ff60
cmp eax, 0xffffffff
je 0x180051405
mov rcx, qword [rbp + 0x10]
call fcn.18004ff60
cmp eax, 0xfffffffe
je 0x180051405
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18004ff60
movsxd rdi, eax
lea rsi, [0x18008f4f0]
mov rcx, rbx
sar rdi, 6
call fcn.18004ff60
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18005140c
lea rax, [0x18008b6e0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18005141e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180051454
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180051450
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180051450
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800512f7
jmp 0x1800512c4
Function at 0x140002b80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002bdd
lea rbx, [0x1400444d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002bc4
cmp r10, 2
jb 0x140002bc4
cmp byte [r9], r8b
jne 0x140002bc4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002ba0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002c1f
lea rbx, [0x1400444d0]
cmp r8b, 0x23
jne 0x140002c03
cmp byte [r9], r8b
jne 0x140002c03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002bf0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002d60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002d7a
mov qword [r8], 0
lea rdx, [0x1400440d4]
call fcn.140002c30
mov rbx, rax
test rax, rax
jne 0x140002d9a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002e71
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e71
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002e71
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e71
cmp rdi, 0xffffffffffffffff
je 0x140002e71
mov rax, qword [0x1400f6d78]
test rax, rax
je 0x140002e0e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002e71
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140002e5e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400f6d78]
test rax, rax
je 0x140002e53
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e7a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002e6c
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002e7c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400055f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400444d0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400f6d78]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ed4], ebx
jne 0x140005686
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140018be0
mov eax, ebx
add rsp, 0x20
pop rbx
ret