joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e3a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40924f
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
call fcn.004092e0
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x00518ee0]
movabs rdx, 0xa0761d6478bd642f
xor rbx, rdx
mov rax, rcx
call fcn.00409280
mov rbx, rax
movabs rax, 0x1d8e4e27c47d1247
nop dword [rax]
call fcn.00409280
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c2c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4091e0
cmp byte [0x00518c8d], 0
je 0x45e3d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00519220]
aesenc xmm0, xmmword [0x00519230]
aesenc xmm0, xmmword [0x00519240]
movq rax, xmm0
ret
jmp 0x4091e0

Function at 0x45fd80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005191a0]
mov qword [rsp + 8], rdx
lea r8d, [0x00518ca4]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045e2a0
add rsp, 0x30
ret

Function at 0x4602c0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4602f0
mov rcx, 0x28
jmp 0x4602fb
shl rcx, 3
add rcx, 0x1480
mov qword [0x00518e60], rcx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x140008020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001990
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400083e4]
mov r12, rcx
test ebx, ebx
jle 0x140001b30
mov rax, qword [0x1400083e8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001ad5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001a30
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b52
mov rax, qword [0x1400083e8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400083e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001ace
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ae0
add dword [0x1400083e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400083e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001a58
mov rax, qword [0x1400083e8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140008440]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008420]
test rbx, rbx
je 0x14000212c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002123
test r12, r12
je 0x140002123
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002108
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002378
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002380
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002390
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400023d5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400023cc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400023d7
add rax, 0x28
cmp rax, r9
jne 0x1400023b8
xor eax, eax
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002470
mov rdx, qword [0x1400043f0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000245e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000245e
cmp word [rax + 0x18], 0x20b
jne 0x14000245e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002470
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002449
add r12, 0x28
cmp r12, rsi
je 0x140002470
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002440
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400024f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024a0
add rax, 0x28
cmp rax, r9
jne 0x1400024d8
xor eax, eax
ret

Function at 0x140002500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002520
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002528
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002520
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002560
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002568
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002560
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400025a8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000259f
test rcx, rcx
je 0x140002560
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002590
xor eax, eax
ret
Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400025d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400025f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002610
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002610
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000265c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002670
add rdx, 0x28
cmp rdx, r9
jne 0x140002648
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400026a2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002710
add rdx, 0x28
cmp r10, rdx
jne 0x1400026e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000271f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000272f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002706
test ecx, ecx
jg 0x140002718
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x18001b288
Capabilities:
Encode data using xor

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 r14
sub rsp, 0x40
lea rsi, [0x180047840]
mov ebp, 0x800
lea r8, str.._._._..._._.__
mov rcx, rsi
mov r9d, 0x1800
mov edx, ebp
call fcn.18001b3b8
xor r14d, r14d
mov eax, r14d
xor byte [rax + rsi], 0x8a
inc rax
cmp rax, rbp
jl 0x18001b2ca
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov rdx, rsi
call fcn.180016104
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.18001624c
mov rcx, qword [0x180051d08]
movsx rdi, di
mov edx, ebx
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x18001b364
dec edx
je 0x18001b34d
dec edx
jne 0x18001b37a
lea rcx, [rsp + 0x20]
movsx edx, ax
movsx rbx, ax
call fcn.1800161e8
mov rcx, qword [0x180051d08]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001f920
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.180016114
mov rcx, qword [0x180051d08]
mov dword [rdi + rcx + 8], eax
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
mov rdx, qword [0x180051d08]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.18001624c
movzx edi, ax
test ax, ax
jg 0x18001b2eb
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp fcn.18001f530

Function at 0x18001b3b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18001b3fe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov ebx, edx
mov r11, rcx
xor r10d, r10d
movsxd rdi, r9d
mov eax, r10d
mov rcx, rdi
inc r10d
cdq
idiv r9d
movsxd rax, edx
sub rcx, rax
mov al, byte [rcx + r8 - 1]
xor byte [r11], al
inc r11
cmp r10d, ebx
jl 0x18001b3d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18001b400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
jle 0x18001b42d
mov eax, r10d
inc r10d
cdq
idiv r9d
movsxd rax, edx
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
cmp r10d, ebx
jl 0x18001b411
mov rbx, qword [rsp + 8]
ret
Function at 0x14007844c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009a780], rbx
je 0x1400784b3
cmp rax, rbx
jne 0x1400784a6
mov ebx, 1
mov esi, ebx
jmp 0x1400784b8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007848b
mov ebx, 1
mov eax, dword [0x14009a788]
cmp eax, ebx
jne 0x1400784d0
mov edi, 0x1f
mov ecx, edi
call fcn.1401bb000
jmp 0x14007853c
mov eax, dword [0x14009a788]
test eax, eax
jne 0x140078531
mov dword [0x14009a788], ebx
lea r15, [0x1400818a8]
lea rdi, [0x140081890]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140078523
test eax, eax
jne 0x140078527
cmp qword [rdi], r14
je 0x140078518
mov rax, qword [rdi]
mov rcx, qword [0x140081868]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400784fa
test eax, eax
je 0x140078537
mov eax, 0xff
jmp 0x140078692
mov dword [0x140099a14], ebx
mov edi, 0x1f
mov eax, dword [0x14009a788]
cmp eax, ebx
jne 0x140078563
lea rdx, [0x140081888]
lea rcx, [0x140081870]
call sub.msvcrt.dll__initterm
mov dword [0x14009a788], 2
test esi, esi
jne 0x140078571
mov rax, r14
xchg qword [0x14009a780], rax
cmp qword [0x14009a790], r14
je 0x1400785a4
lea rcx, [0x14009a790]
call fcn.140078eb0
test eax, eax
je 0x1400785a4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009a790]
mov r9, qword [0x140081868]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400785bd
mov eax, 0xff
jmp 0x140078692
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140078643
test ax, ax
je 0x1400785d8
test edx, edx
jne 0x140078643
sub ax, bx
cmp ax, di
ja 0x1400785ee
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400785d8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140021714
mov dword [0x140099a10], eax
cmp dword [0x140099a30], r14d
jne 0x14007862c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140099a14], r14d
jne 0x140078641
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140099a10]
jmp 0x140078692
cmp ax, 0x22
jne 0x140078657
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400785c6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140078f30
add rsp, 0x28
jmp 0x14007844c
Function at 0x14000a7a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400e71d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000a92a
cmp byte [rcx + 0x71], 0
je 0x14000a92a
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000a7f4
xor al, al
jmp 0x14000a92c
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.140005a90
nop
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rsp + 0x40]
cmovae r8, rcx
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a855
sub eax, 1
jne 0x14000a8d2
jmp 0x14000a859
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
cmovae rax, rcx
mov rdi, qword [rsp + 0x30]
sub rdi, rax
je 0x14000a8ae
lea rax, [rsp + 0x40]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp rdi, rax
jne 0x14000a8e1
cmp byte [rbx + 0x71], 0
je 0x14000a8e5
test rdi, rdi
jne 0x14000a810
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.14000c450
jmp 0x14000a806
sub eax, 2
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
je 0x14000a8e5
xor bl, bl
jmp 0x14000a8e7
mov bl, 1
cmp r9, 0x10
jb 0x14000a925
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14000a920
test cl, 0x1f
jne 0x14000a919
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000a919
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x14000a919
mov rcx, rax
jmp 0x14000a920
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc0e4
movzx eax, bl
jmp 0x14000a92c
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bc560
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000d230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000d264
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000d250
ret
Function at 0x140012740
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
xor r8d, r8d
lea r9, str.XMRSTAK_NOWAIT
xor edx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv_s]
cmp qword [rsp + 0x38], 0
jne 0x140012789
call fcn.14000e5b0
mov rcx, rax
lea rdx, str.Press_any_key_to_exit.
call fcn.1400126a0
call fcn.140012490
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400199a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
mov rdi, rdx
mov r8, rcx
sub rdi, rcx
sar rdi, 3
mov r11, rdi
sar r11, 1
test r11, r11
jle 0x140019b3b
movsd xmm1, qword [0x1400cf098]
mov qword [rsp + 0x18], rbx
lea rbx, [rdi - 1]
sar rbx, 1
mov qword [rsp + 0x20], rsi
nop word [rax + rax]
mov rdx, qword [r8 + r11*8 - 8]
dec r11
mov qword [rsp + 0x10], rdx
mov r10, r11
mov rcx, r11
cmp r11, rbx
jge 0x140019a83
nop dword [rax]
lea r9, [rcx + rcx]
mov rdx, qword [r8 + r9*8 + 8]
mov rcx, qword [r8 + r9*8 + 0x10]
movsd xmm2, qword [rdx + 0xa8]
movzx eax, byte [rdx + 0x140]
test al, al
je 0x140019a25
addsd xmm2, xmm1
movzx eax, byte [rdx + 0x141]
test al, al
je 0x140019a34
addsd xmm2, xmm1
movsd xmm0, qword [rcx + 0xa8]
movzx eax, byte [rcx + 0x140]
test al, al
je 0x140019a4b
addsd xmm0, xmm1
movzx eax, byte [rcx + 0x141]
test al, al
je 0x140019a5a
addsd xmm0, xmm1
xor eax, eax
comisd xmm0, xmm2
seta al
xor rax, 1
lea rcx, [rax + 1]
add rcx, r9
mov rax, qword [r8 + rcx*8]
mov qword [r8 + r10*8], rax
mov r10, rcx
cmp rcx, rbx
jl 0x140019a00
mov rdx, qword [rsp + 0x10]
cmp rcx, rbx
jne 0x140019a9b
test dil, 1
jne 0x140019a9b
mov rax, qword [r8 + rdi*8 - 8]
mov qword [r8 + r10*8], rax
lea r10, [rdi - 1]
lea rcx, [r10 - 1]
sar rcx, 1
cmp r11, r10
jge 0x140019b24
nop word [rax + rax]
mov r9, qword [r8 + rcx*8]
movsd xmm2, qword [rdx + 0xa8]
movzx eax, byte [rdx + 0x140]
test al, al
je 0x140019acb
addsd xmm2, xmm1
movzx eax, byte [rdx + 0x141]
test al, al
je 0x140019ada
addsd xmm2, xmm1
movsd xmm0, qword [r9 + 0xa8]
movzx eax, byte [r9 + 0x140]
test al, al
je 0x140019af3
addsd xmm0, xmm1
movzx eax, byte [r9 + 0x141]
test al, al
je 0x140019b03
addsd xmm0, xmm1
comisd xmm0, xmm2
jbe 0x140019b1f
mov rax, qword [r8 + rcx*8]
mov qword [r8 + r10*8], rax
mov r10, rcx
dec rcx
sar rcx, 1
cmp r11, r10
jl 0x140019ab0
mov rdx, qword [rsp + 0x10]
mov qword [r8 + r10*8], rdx
test r11, r11
jg 0x1400199e0
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x14001a280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rdi, [r8 - 1]
mov r11, rcx
sar rdi, 1
mov r10, rdx
mov rbx, rdx
mov rcx, rdx
cmp rdx, rdi
jge 0x14001a2ed
nop word [rax + rax]
lea rdx, [rcx + rcx]
mov rcx, qword [r11 + rdx*8 + 0x10]
mov rax, qword [r11 + rdx*8 + 8]
movsd xmm0, qword [rcx + 0xa8]
xor ecx, ecx
comisd xmm0, xmmword [rax + 0xa8]
seta cl
xor rcx, 1
inc rcx
add rcx, rdx
mov rax, qword [r11 + rcx*8]
mov qword [r11 + r10*8], rax
mov r10, rcx
cmp rcx, rdi
jl 0x14001a2b0
cmp rcx, rdi
jne 0x14001a305
test r8b, 1
jne 0x14001a305
mov rax, qword [r11 + r8*8 - 8]
mov qword [r11 + r10*8], rax
lea r10, [r8 - 1]
cmp rbx, r10
jge 0x14001a353
nop word [rax + rax]
mov rax, qword [r9]
lea rcx, [r10 - 1]
sar rcx, 1
mov rdx, qword [r11 + rcx*8]
movsd xmm0, qword [rdx + 0xa8]
comisd xmm0, xmmword [rax + 0xa8]
jbe 0x14001a356
mov qword [r11 + r10*8], rdx
mov r10, rcx
cmp rbx, rcx
jl 0x14001a310
mov rax, qword [r9]
mov qword [r11 + rcx*8], rax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rax, qword [r9]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov qword [r11 + r10*8], rax
ret