joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086bd0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140086c05
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400864b0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140086d44
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140086cbd
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140086d33
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140086cfa
mov r10, qword [rdx]
cmp r10, rax
je 0x140086cf4
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140086d33
cmp r9, rdx
je 0x140086d0f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140086d55
cmp r9, rdx
jne 0x140086d00
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140086c70
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140086d33
Function at 0x14008adb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
cmp byte [rdx + 0xe], 0
mov r10, r8
mov rbx, rdx
mov r11, rcx
je 0x14008af04
xor r9d, r9d
cmp dword [0x1400bd090], 2
jl 0x14008aebe
movdqa xmm2, xmmword [0x1400ac1e0]
mov r9d, 8
movdqa xmm3, xmmword [0x1400ac200]
movdqa xmm1, xmm2
movdqa xmm5, xmmword [0x1400ac7a0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1400ac210]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
andps xmm2, xmmword [0x1400ac280]
movd xmm0, dword [rdx]
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ac2d0]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rdx], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ac210]
psubd xmm3, xmm0
movd xmm0, dword [rdx + 4]
andps xmm3, xmmword [0x1400ac280]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1400ac2d0]
xorps xmm3, xmm0
movd dword [rdx + 4], xmm3
movsxd r8, r9d
add r8, rbx
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul r9d
add edx, r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r9b
inc r9d
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp r9d, 0xf
jl 0x14008aed0
mov qword [r11], rbx
movzx eax, byte [r10 + 6]
test al, al
je 0x14008af33
xor byte [r10], 0x30
xor byte [r10 + 1], 0x31
xor byte [r10 + 2], 0x32
xor byte [r10 + 3], 0x33
xor byte [r10 + 4], 0x34
xor byte [r10 + 5], 0x35
xor al, 0x36
mov byte [r10 + 6], al
mov rbx, qword [rsp + 8]
mov rax, r11
mov qword [r11 + 8], r10
ret
Function at 0x14008b230
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
cmp byte [rdx + 0xe], 0
mov rbx, rdx
mov r11, rcx
je 0x14008b375
xor r9d, r9d
cmp dword [0x1400bd090], 2
jl 0x14008b33b
movdqa xmm2, xmmword [0x1400ac1e0]
mov r9d, 8
movdqa xmm3, xmmword [0x1400ac200]
movdqa xmm1, xmm2
movdqa xmm5, xmmword [0x1400ac7a0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1400ac210]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
andps xmm2, xmmword [0x1400ac280]
movd xmm0, dword [rdx]
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ac2d0]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rdx], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ac210]
psubd xmm3, xmm0
movd xmm0, dword [rdx + 4]
andps xmm3, xmmword [0x1400ac280]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1400ac2d0]
xorps xmm3, xmm0
movd dword [rdx + 4], xmm3
movsxd r10, r9d
add r10, rbx
mov eax, 0x92492493
lea r10, [r10 + 1]
imul r9d
add edx, r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r9b
inc r9d
sub al, cl
add al, 0x30
xor byte [r10 - 1], al
cmp r9d, 0xf
jl 0x14008b341
mov qword [r11], rbx
movzx eax, byte [r8 + 9]
test al, al
je 0x14008b3b3
xor byte [r8], 0x30
xor byte [r8 + 1], 0x31
xor byte [r8 + 2], 0x32
xor byte [r8 + 3], 0x33
xor byte [r8 + 4], 0x34
xor byte [r8 + 5], 0x35
xor byte [r8 + 6], 0x36
xor byte [r8 + 7], 0x37
xor byte [r8 + 8], 0x38
xor al, 0x39
mov byte [r8 + 9], al
mov rbx, qword [rsp + 8]
mov rax, r11
mov qword [r11 + 8], r8
ret
Function at 0x14008b3c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movdqa xmm5, xmmword [0x1400ac280]
xor r9d, r9d
mov rbx, r8
movdqa xmm2, xmmword [0x1400ac200]
mov rdi, rdx
movdqa xmm3, xmmword [0x1400ac1e0]
mov r11, rcx
movdqa xmm4, xmmword [0x1400ac7a0]
mov esi, dword [0x1400bd090]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x1400ac210]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x1400ac2d0]
cmp byte [rdx + 7], r9b
je 0x14008b524
cmp esi, 2
jl 0x14008b4e7
movdqa xmm1, xmm3
movdqa xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, dword [rdx]
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
xorps xmm1, xmm0
movdqa xmm0, xmm2
movd dword [rdx], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, dword [rdx + 4]
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
xorps xmm1, xmm0
movd dword [rdx + 4], xmm1
jmp 0x14008b524
mov r10, rdi
mov r8d, r9d
nop dword [rax]
mov eax, 0x92492493
lea r10, [r10 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r10 - 1], al
cmp r8d, 8
jl 0x14008b4f0
mov qword [r11], rdi
cmp byte [rbx + 7], r9b
je 0x14008b634
cmp esi, 2
jl 0x14008b5f8
movdqa xmm1, xmm3
movd eax, xmm7
punpckldq xmm1, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm5
pmuldq xmm1, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [rbx]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rbx], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rbx + 4]
xorps xmm2, xmm0
movd dword [rbx + 4], xmm2
jmp 0x14008b634
mov r8, rbx
nop dword [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul r9d
add edx, r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r9b
inc r9d
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp r9d, 8
jl 0x14008b600
mov rsi, qword [rsp + 0x38]
mov rax, r11
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp]
mov qword [r11 + 8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008c448
Capabilities:
Parse pe header

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

Function at 0x14008c7dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14008c816
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14008c81b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14008c864
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140091d30]
cmp byte [rcx + rax], 0
je 0x14008c864
dec r8
sub rdx, 1
jne 0x14008c84a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14008d028
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14008c8f4
mov ebx, eax
test eax, eax
jne 0x14008d058
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14008d0bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d0b2
test al, 0x10
je 0x14008d0b2
bt eax, 0xa
jae 0x14008d0ab
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14008d0cc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14008d0a7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14008d0a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14008d0b2
and dword [rsp + 0x3c], 0
jmp 0x14008d0b7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800010d0
Capabilities:
Load windows common language runtime

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180005040]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x28]
mov rbx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [0x180003938]
mov qword [rsp + 0x20], rax
lea rdx, [0x180003948]
mov qword [rsp + 0x28], rax
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
test eax, eax
jns 0x180001137
lea rcx, str.____CLRCreateInstance_...__failed_n
call fcn.180001070
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b40
add rsp, 0x40
pop rbx
ret
lea rcx, str.___CLRCreateInstance_...__succeeded_n
call fcn.180001070
mov rcx, qword [rsp + 0x28]
lea r9, [rsp + 0x30]
lea r8, [0x180003928]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x180001182
lea rcx, str.____pMetaHost__GetRuntime_...__failed_n
call fcn.180001070
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b40
add rsp, 0x40
pop rbx
ret
lea rcx, str.___pMetaHost__GetRuntime_...__succeeded_n
call fcn.180001070
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
lea r8, [0x180003958]
lea rdx, [0x180003968]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x1800011d1
lea rcx, str.____pRuntimeInfo__GetInterface_...__failed_n
call fcn.180001070
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b40
add rsp, 0x40
pop rbx
ret
lea rcx, str.___pRuntimeInfo__GetInterface_...__succeeded_n
call fcn.180001070
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x18000120d
lea rcx, str.____pRuntimeHost__Start___failed_n
call fcn.180001070
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b40
add rsp, 0x40
pop rbx
ret
lea rcx, str.___pRuntimeHost__Start___succeeded_n
call fcn.180001070
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b40
add rsp, 0x40
pop rbx
ret
Function at 0x180001940
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001971
xor eax, eax
lea r8, [0x180001920]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180862058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808621df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180862089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18086206f
add dl, dl
jne 0x180862096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808620f6
xor eax, eax
add dl, dl
jne 0x1808620a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808621ad
add dl, dl
jne 0x1808620b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808620c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808620d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808620dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808620ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18086207e
mov eax, 1
add dl, dl
jne 0x180862106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180862113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808620fb
sub eax, ebx
mov ebx, 1
jne 0x18086214c
mov ecx, 1
add dl, dl
jne 0x18086212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18086213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180862123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180862168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180862175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18086215d
cmp eax, 0x7d00
jae 0x18086219b
cmp eax, 0x500
jb 0x180862196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086207e
cmp eax, 0x7f
ja 0x18086219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808621d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18086207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007ca0
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 [0x1400420c0]
test rcx, rcx
je 0x140007cdb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d00
mov rcx, qword [0x1400420c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x140007d18
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 [0x1400420c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cce
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e392]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043100]
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 0x140007de4
test al, 0x10
je 0x140007ce4
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 0x140007ce4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007d90
jmp 0x140007ce4

Function at 0x14000e450
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015a50
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000e4f0
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000e48c
jmp 0x14000e4a0
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000e4a0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e480
jmp 0x14000e4d7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e4b5
cmp word [rsi + 2], 0x3a
je 0x14000e4d7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e540
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jle 0x14000e558
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.140007540
test al, al
je 0x14000e57a
movsxd rbx, dword [0x140047100]
mov rcx, rdi
lea rdi, [0x140045100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047100]
add eax, 1
mov dword [0x140047100], eax
jmp 0x14000e471
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e4c4
xor eax, eax
jmp 0x14000e4dc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047100], 1
mov rdx, rax
lea rax, [0x140045100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e4d7
mov rcx, rbx
call fcn.140007be0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014730
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.14001b690
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.14001b690
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 0x140015402
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140047228]
test eax, eax
je 0x14001549a
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140047230]
mov qword [rbp - 8], rax
jmp 0x14001547e
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 0x140015472
cmp qword [rbp - 0x10], 0
je 0x140015472
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 0x140015438
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001549b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400155a0
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 0x1400155c8
mov eax, 0
jmp 0x140015616
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 0x1400155f1
mov eax, 0
jmp 0x140015616
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 0x140015611
mov eax, 0
jmp 0x140015616
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x7ff2ada791c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x140
mov rax, qword [0x7ff2adb3100]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 5
mov rbx, rcx
mov byte [r11 - 0x20], 0xa2
mov byte [r11 - 0x1f], 0x17
mov byte [r11 - 0x1e], 0x9c
mov byte [r11 - 0x1d], 0x98
mov rcx, rdx
mov byte [r11 - 0x1c], 0xca
lea rax, [r11 - 0x20]
xor byte [rax], r8b
inc rax
sub rcx, 1
jne 0x7ff2ada7961
lea r8, [rsp + 0x128]
lea rcx, [rsp + 0x20]
call fcn.7ff2adab880
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x9c
call fcn.7ff2adab690
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff2adaaa90
add rsp, 0x140
pop rbx
ret
Function at 0x7ff2ada7fb4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x180
mov rax, qword [0x7ff2adb3100]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ebp, edx
mov r12, rcx
mov rsi, r8
mov ebx, 0x9c
lea rcx, [rsp + 0x30]
lea rdx, [0x7ff2adb3260]
mov r8, rbx
mov edi, r9d
call sub.ntdll.dll_memcpy
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov edx, ebx
call fcn.7ff2ada791c
lea rcx, [rsp + 0xd0]
lea rdx, [0x7ff2adb3300]
mov r8, rbx
call sub.ntdll.dll_memcpy
lea rcx, [rsp + 0xd0]
mov r8b, 2
mov edx, ebx
call fcn.7ff2ada791c
lea edx, [rbx - 0x1c]
lea rcx, [rsp + 0x30]
mov r9d, ebp
mov r8, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call fcn.7ff2ada7a34
mov ebx, 1
cmp eax, ebx
je 0x7ff2ada8097
lea edx, [rbx + 0x7f]
lea rcx, [rsp + 0xd0]
mov r9d, ebp
mov r8, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call fcn.7ff2ada7a34
cmp eax, ebx
cmove eax, ebx
mov ebx, eax
test eax, eax
jne 0x7ff2ada8097
lea rcx, [0x7ff2ada1a60]
mov edx, 0x13b3
call sub.ntdll.dll_DbgPrint
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.7ff2adaaa90
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret