joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dec0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009c080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rdi, [0x1400a1750]
mov qword [rbp - 1], rdi
mov rcx, rdi
call fcn.14002b0c0
test eax, eax
je 0x14000df13
mov ecx, eax
call fcn.14002ace0
nop
mov dword [rbp - 0x39], 1
xor esi, esi
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x31]
lea r8d, [rsi + 4]
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbx + 0x398]
lea rcx, [rbp + 7]
call fcn.14000efd0
mov rdx, rax
mov rcx, rbx
call fcn.140009d80
lea rdx, [rbx + 0x3b8]
lea rcx, [rbp + 7]
call fcn.14000efd0
mov rdx, rax
mov rcx, rbx
call fcn.140009d80
lea rdx, [rbx + 0x3d8]
lea rcx, [rbp + 7]
call fcn.14000efd0
mov rdx, rax
mov rcx, rbx
call fcn.140009d80
lea rdx, [rbx + 0x3f8]
lea rcx, [rbp + 7]
call fcn.14000efd0
mov rdx, rax
mov rcx, rbx
call fcn.140009d80
lea rdx, [rbx + 0x300]
lea rcx, [rbp + 7]
call fcn.14000efd0
mov rdx, rax
mov rcx, rbx
call fcn.140009d80
movdqa xmm0, xmmword [0x140089b90]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], sil
lea r8d, [rsi + 0xb]
lea rdx, str.Nov_13_2020
lea rcx, [rbp + 0x27]
call fcn.140002250
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140011a00
nop
lea r9d, [rsi + 6]
lea r8, str.Build.
mov rcx, rax
call fcn.140006080
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140009d80
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14000e07b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e076
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e12b
call fcn.14002c374
movdqa xmm0, xmmword [0x140089b80]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x14000e0c3
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e0be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e125
call fcn.14002c374
lea rdx, [rbp + 7]
call fcn.14000e420
mov rdx, rax
mov rcx, rbx
call fcn.140009cc0
lea rdx, [rbp + 7]
call fcn.14000e6c0
mov rdx, rax
mov rcx, rbx
call fcn.140009cc0
nop
mov rcx, rdi
call fcn.14002b0e4
test eax, eax
je 0x14000e100
mov ecx, eax
call fcn.14002ace0
nop
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002c350
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140050bc0
nop
call fcn.140050bc0
int3
Function at 0x14000e140
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rcx
lea rcx, [0x1400a1750]
call fcn.14002b0c0
test eax, eax
je 0x14000e16e
mov ecx, eax
call fcn.14002ace0
mov dword [rsp + 0x58], 2
xor edi, edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xe0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a1750]
call fcn.14002b0e4
test eax, eax
je 0x14000e1dd
mov ecx, eax
call fcn.14002ace0
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000e800
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
movzx edi, dl
mov rbx, rcx
lea rcx, [0x1400a1750]
call fcn.14002b0c0
test eax, eax
je 0x14000e836
mov ecx, eax
call fcn.14002ace0
mov dword [rsp + 0x50], 7
xor esi, esi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, dil
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a1750]
call fcn.14002b0e4
test eax, eax
je 0x14000e8a3
mov ecx, eax
call fcn.14002ace0
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e8c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rsi, r8
mov rbx, rdx
mov qword [rax - 0x50], rdx
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rdi, qword [0x1400a1208]
lea r14, [0x1400a1750]
mov qword [rax - 0x48], r14
mov rcx, r14
call fcn.14002b0c0
test eax, eax
je 0x14000e913
mov ecx, eax
call fcn.14002ace0
nop
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140001fc0
mov rdx, rax
mov rcx, rdi
call fcn.140009cc0
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov dword [rsp + 0x40], 2
mov rdx, rsi
mov rcx, rbx
call fcn.140004cb0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000e9b6
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.14002b0e4
test eax, eax
je 0x14000e9e2
mov ecx, eax
call fcn.14002ace0
nop
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f710
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000f8a0
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
xor esi, esi
mov qword [rcx + 0x20], rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002b0c0
nop
test eax, eax
je 0x14000f8db
mov ecx, eax
call fcn.14002ace0
nop
mov byte [rdi + 0x18], 1
mov rcx, qword [rdi + 8]
call fcn.14002abdc
nop
test eax, eax
je 0x14000f8f5
mov ecx, eax
call fcn.14002ace0
nop
mov rcx, qword [rdi + 0x10]
call fcn.14002b0e4
nop
test eax, eax
je 0x14000f90b
mov ecx, eax
call fcn.14002ace0
nop
lea rcx, [0x1400a1750]
call fcn.14002b0c0
nop
test eax, eax
je 0x14000f924
mov ecx, eax
call fcn.14002ace0
nop
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x78], 6
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140001fc0
nop
mov rdx, rax
mov rcx, qword [rbx + 0x28]
call fcn.140009cc0
nop
mov eax, esi
cmp byte [rbx + 0x20], al
setne al
mov dword [rsp + 0x78], eax
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a1750]
call fcn.14002b0e4
nop
test eax, eax
je 0x14000f9bc
mov ecx, eax
call fcn.14002ace0
nop
call fcn.14002b10c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000f9f9
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000f9f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000fa26
mov rcx, r8
call fcn.14002c374
nop
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov edx, 0x30
mov rcx, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
jmp fcn.14002c374
call fcn.140050bc0
nop
int3
Function at 0x14000f8a0
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000f8a0
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
xor esi, esi
mov qword [rcx + 0x20], rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002b0c0
nop
test eax, eax
je 0x14000f8db
mov ecx, eax
call fcn.14002ace0
nop
mov byte [rdi + 0x18], 1
mov rcx, qword [rdi + 8]
call fcn.14002abdc
nop
test eax, eax
je 0x14000f8f5
mov ecx, eax
call fcn.14002ace0
nop
mov rcx, qword [rdi + 0x10]
call fcn.14002b0e4
nop
test eax, eax
je 0x14000f90b
mov ecx, eax
call fcn.14002ace0
nop
lea rcx, [0x1400a1750]
call fcn.14002b0c0
nop
test eax, eax
je 0x14000f924
mov ecx, eax
call fcn.14002ace0
nop
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x78], 6
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140001fc0
nop
mov rdx, rax
mov rcx, qword [rbx + 0x28]
call fcn.140009cc0
nop
mov eax, esi
cmp byte [rbx + 0x20], al
setne al
mov dword [rsp + 0x78], eax
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a1750]
call fcn.14002b0e4
nop
test eax, eax
je 0x14000f9bc
mov ecx, eax
call fcn.14002ace0
nop
call fcn.14002b10c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000f9f9
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000f9f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000fa26
mov rcx, r8
call fcn.14002c374
nop
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov edx, 0x30
mov rcx, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
jmp fcn.14002c374
call fcn.140050bc0
nop
int3
Function at 0x14000fa40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14009c080]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, ecx
mov rbx, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, di
mov r8, rsi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000fb6c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rdi, rdi
je 0x14000fb6c
test eax, eax
je 0x14000fb6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000fb6c
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
mov dword [rbp - 0x28], 0x699acc9b
mov dword [rbp - 0x24], 0x1427aa33
mov dword [rbp - 0x20], 0x11d57b7d
mov dword [rbp - 0x1c], 0x7725ed7f
mov dword [rbp - 0x18], 0x480f5f30
mov dword [rbp - 0x14], 0x850d2bf9
mov dword [rbp - 0x10], 0x82353ab7
mov dword [rbp - 0xc], 0x22ea7338
cmp rsi, rax
jbe 0x14000fb22
mov edx, esi
mov rcx, rbx
call fcn.14000fbb0
xor edi, edi
test rsi, rsi
je 0x14000fb68
nop dword [rax]
mov rdx, qword [rbx + 8]
mov rax, rdi
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rdi + r14]
mov byte [rbp - 0x30], cl
cmp qword [rbx + 0x10], rdx
je 0x14000fb54
mov byte [rdx], cl
inc qword [rbx + 8]
jmp 0x14000fb60
lea r8, [rbp - 0x30]
mov rcx, rbx
call fcn.14000fcf0
inc rdi
cmp rdi, rsi
jb 0x14000fb30
mov al, 1
jmp 0x14000fb6e
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002c350
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140010e60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x14009c080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140010ed0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400020a0
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140088330]
mov rcx, rbx
call fcn.140002c50
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002c350
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140012cd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140012d14
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140012d00
ret
Function at 0x1400289c0
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14009c080]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [r11 - 0x68], rdi
mov dword [rsp + 0x28], 4
mov qword [r11 - 0x78], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x1400a1128]
mov rbx, rax
test rax, rax
jne 0x140028b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140020fe0
nop
lea r8, [0x1400a1540]
cmp qword [0x1400a1558], 8
cmovae r8, qword [0x1400a1540]
mov r9, qword [0x1400a1550]
mov rcx, rax
call fcn.140006080
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400a1320]
cmp qword [0x1400a1338], 8
cmovae r8, qword [0x1400a1320]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140028af4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028aef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028b95
call fcn.14002c374
movdqa xmm0, xmmword [0x140089b80]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140028b48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028b43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028b8f
call fcn.14002c374
xor al, al
jmp 0x140028b6e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002c350
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140050bc0
nop
call fcn.140050bc0
nop
int3
Function at 0x14002fc5c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14002fc6f
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.140039b60
lea rdx, [0x140099920]
lea rcx, [rsp + 0x20]
call fcn.14004a69c
int3

Function at 0x14003a4f8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400a0040]
xor edx, edx
jmp fcn.14002fc5c

Function at 0x14003ae90
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400a0040]
jmp fcn.14002fc5c

Function at 0x140046ae0
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, [0x140046b9c]
mov r9, qword [r9 + 8]
jmp fcn.140037cbc

Function at 0x140046b74
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, [0x140046bac]
mov r9, qword [r9 + 8]
jmp fcn.140037cbc

Function at 0x1400511ec
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14005107f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005107f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005107f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005107f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005107f
cmp dword [rcx + 0x84], 0xe
jbe 0x14005107f
cmp dword [rcx + 0xf8], 0
je 0x14005107f
mov ecx, ebx
call fcn.140051120
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140050f10
cmp dword [rbp + 0x20], 0
je 0x1400510cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400510d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140051018
Function at 0x180002530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x180043f04], 0
lea rdi, [0x180043f00]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x180002608
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x180002560
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x18000263e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x180002620
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x18000267f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180002663
cmp byte [r8], r9b
jne 0x180002663
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x180002650
not eax
pop rdi
ret
Function at 0x180002860
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x180002879
mov qword [r8], 0
lea rdx, [0x180037900]
call fcn.180002690
mov rbx, rax
test rax, rax
jne 0x180002898
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002958
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180002958
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002958
mov rax, qword [0x180043ba0]
mov rbp, rsi
test rax, rax
je 0x1800028f5
inc dword [rax + 0x3e0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180002958
mov r9, rbx
mov r8, rbp
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, rbp
je 0x180002945
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180043ba0]
test rax, rax
je 0x18000293a
dec dword [rax + 0x3e0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180002961
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x180002953
mov qword [rdi], rbp
mov rax, rsi
jmp 0x180002963
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180011e40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x180043ba0]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2db4], esi
test rcx, rcx
je 0x180011f5a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2db8]
mov dword [rdi + 0x2db4], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x180011e9a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.180012d30
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x180011eae
mov edx, 8
mov rcx, rbx
call fcn.180012d30
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2dc8], esi
jle 0x180011efa
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2dd0]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2dc8]
jl 0x180011ed0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x180011f09
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2dc0]
lea rdx, [0x180037904]
test rax, rax
movsxd rsi, esi
lea rdi, [0x180043b98]
mov rcx, r15
cmovne rdi, rax
call fcn.180002690
mov rbx, rax
test rax, rax
je 0x180011f55
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret