joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lodsd eax, dword [rsi]
popfq
int 0x12
cmp dword [rbx + 0x389262ab], ecx
mov ch, 0x74
in al, dx
shl dword [rdi + 0x2f], 0xa
lodsd eax, dword [rsi]
or dword [rax + 3], esi
sub byte [rdx], dl
loope 0x14003f651
or al, 0xee
out dx, al
push rdi
mov dh, 0x42
adc eax, 0x95f14d2
pop rdi
or dword [rdx], esi
invalid
pushfq
popfq
jno 0x14003f651
rol dword [rax - 0x37], 0xd0
invalid
mov cl, 0x65
mov bh, 0x1f
adc bh, byte [rcx]
or byte [rsi - 0x5a2938c], ch
invalid
push rbx
mov ah, 0xdc
cmp esi, edx
sbb byte [rsi + 0x24], bl
sbb byte [rsi + 0x24], bl
xchg ebp, eax
xchg esi, eax
xchg bh, ch
pop rbp
jmp 0xe1705680
sbb dword [0x15c3a021c], edx
fcmovnbe st(0), st(1)
xchg ebp, eax
jl 0x14003f67f
rcl dword [rbp - 0x60c03384]
in al, 0xc8
or eax, 0xf6fc8119
invalid
cld
div byte [rdi + 0x27]
invalid
cmp esp, 0x802777f6
or ebx, dword [rbx - 0x55]
or byte [rbx], 0x5b
stosd dword [rdi], eax
mov bh, 0x2a
jge 0x14003f6e3
sub bh, byte [rbp + 0x1c]
or byte [rdi + 0xbf87e38], dh
lodsb al, byte [rsi]
xchg edi, eax
jb 0x14003f66b
cmp byte [rsi - 8], bh
or ebp, dword [rdi + rdx*4 + 0x16059972]
add eax, 0x64dac216
add eax, 0x64dac216
movsb byte [rdi], byte [rsi]
sbb bh, byte [rbx]
invalid
jl 0x14003f74b
cmp al, 0x7c
enter 0x239a, 0x64
jb 0x14003f759
jne 0x14003f68d
test al, 0x2a
sub dh, byte [rdi + riz*2 - 0x4a]
fsub st(3), st(0)
fsubr dword [rax - 0x55]
sbb eax, 0x9949c267
cdq
je 0x14003f74f
mov dh, 0xdc
jmp 0x14003f6c4
cqo
invalid
stc
out 0x2e, al
adc eax, 0x364b1e63
rcl dword [0x16b784e0b], 0x35
or byte [rdi + 0x74], dl
invalid
invalid
jle 0x14003f76c
in al, dx
lodsb al, byte [rsi]
sbb edi, ebx
pop rax
cdq
stc
in al, dx
std
jle 0x14003f6f1
loop 0x14003f6af
retf 0x29a3
invalid
add al, 0x4d
xlatb
add al, 0xe7
invalid
cwde
adc ebp, esp
std
invalid
cld
mov edx, 0xea6378b0
test eax, 0x8c1003cb
invalid
Function at 0x1400154d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140020690], rbx
je 0x14001551c
cmp rax, rbx
jne 0x14001550f
mov ebx, 1
mov esi, ebx
jmp 0x140015521
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400154f4
mov ebx, 1
mov eax, dword [0x140020698]
cmp eax, ebx
jne 0x140015537
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001559c
mov eax, dword [0x140020698]
test eax, eax
jne 0x140015596
mov dword [0x140020698], ebx
lea r15, [0x140017850]
lea rdi, [0x140017838]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140015588
test eax, eax
jne 0x14001558c
cmp qword [rdi], 0
je 0x14001557d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001555e
test eax, eax
je 0x14001559c
mov eax, 0xff
jmp 0x140015678
mov dword [0x1400200a4], ebx
mov eax, dword [0x140020698]
cmp eax, ebx
jne 0x1400155c3
lea rdx, [0x140017830]
lea rcx, [0x140017820]
call sub.msvcrt.dll__initterm
mov dword [0x140020698], 2
test esi, esi
jne 0x1400155d0
xor eax, eax
xchg qword [0x140020690], rax
cmp qword [0x1400206a0], 0
je 0x140015604
lea rcx, [0x1400206a0]
call fcn.140015d50
test eax, eax
je 0x140015604
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400206a0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x1400200b8]
mov rdx, qword [0x1400200b0]
mov ecx, dword [0x1400200a8]
call fcn.140001724
mov dword [0x1400200a0], eax
cmp dword [0x1400200c0], 0
jne 0x140015634
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400200a4], 0
jne 0x140015649
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400200a0]
jmp 0x140015678
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14018f000
add rsp, 0x28
jmp 0x1400154d0

Function at 0x140015c3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015c88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015c80
cmp dword [rcx + 0x3c], edx
jl 0x140015c80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140015c80
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140015c88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x18054f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18054f1df
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 0x18054f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18054f06f
add dl, dl
jne 0x18054f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18054f0f6
xor eax, eax
add dl, dl
jne 0x18054f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18054f1ad
add dl, dl
jne 0x18054f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18054f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18054f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18054f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18054f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18054f07e
mov eax, 1
add dl, dl
jne 0x18054f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18054f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18054f0fb
sub eax, ebx
mov ebx, 1
jne 0x18054f14c
mov ecx, 1
add dl, dl
jne 0x18054f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18054f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18054f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18054f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18054f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18054f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18054f15d
cmp eax, 0x7d00
jae 0x18054f19b
cmp eax, 0x500
jb 0x18054f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18054f07e
cmp eax, 0x7f
ja 0x18054f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18054f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18054f1d2
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 0x18054f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016200
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.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14015db60], rbx
je 0x140016267
cmp rax, rbx
jne 0x14001625a
mov ebx, 1
mov esi, ebx
jmp 0x14001626c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001623f
mov ebx, 1
mov eax, dword [0x14015db68]
cmp eax, ebx
jne 0x140016284
mov edi, 0x1f
mov ecx, edi
call fcn.1401fa000
jmp 0x1400162f0
mov eax, dword [0x14015db68]
test eax, eax
jne 0x1400162e5
mov dword [0x14015db68], ebx
lea r15, [0x1400f7f50]
lea rdi, [0x1400f7f38]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400162d7
test eax, eax
jne 0x1400162db
cmp qword [rdi], r14
je 0x1400162cc
mov rax, qword [rdi]
mov rcx, qword [0x1400f7e80]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400162ae
test eax, eax
je 0x1400162eb
mov eax, 0xff
jmp 0x140016446
mov dword [0x14015d554], ebx
mov edi, 0x1f
mov eax, dword [0x14015db68]
cmp eax, ebx
jne 0x140016317
lea rdx, [0x1400f7f30]
lea rcx, [0x1400f7e88]
call sub.msvcrt.dll__initterm
mov dword [0x14015db68], 2
test esi, esi
jne 0x140016325
mov rax, r14
xchg qword [0x14015db60], rax
cmp qword [0x14015db80], r14
je 0x140016358
lea rcx, [0x14015db80]
call fcn.140016d20
test eax, eax
je 0x140016358
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14015db80]
mov r9, qword [0x1400f7e80]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140016371
mov eax, 0xff
jmp 0x140016446
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400163f7
test ax, ax
je 0x14001638c
test edx, edx
jne 0x1400163f7
sub ax, bx
cmp ax, di
ja 0x1400163a2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001638c
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.140014600
mov dword [0x14015d550], eax
cmp dword [0x14015d570], r14d
jne 0x1400163e0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14015d554], r14d
jne 0x1400163f5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14015d550]
jmp 0x140016446
cmp ax, 0x22
jne 0x14001640b
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 0x14001637a
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.140016db4
add rsp, 0x28
jmp 0x140016200
Function at 0x140055130
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005513d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005514d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140055135
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140055165
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140055152
sub eax, 3
jb 0x14005517f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400551b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400551a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400551a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140055193
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400550f2
jmp 0x14005513d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140055202
cmp rsi, rcx
jae 0x14005520a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400551e9
cmp al, 0x8f
ja 0x1400551e9
cmp byte [rsi - 2], 0xf
je 0x1400551ef
sub al, 0xe8
cmp al, 1
ja 0x1400551d3
cmp rsi, rcx
jae 0x14005520a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400551d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005520a
lodsb al, byte [rsi]
jmp 0x1400551e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x53000]
mov eax, dword [rdi]
or eax, eax
je 0x140055273
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x555e8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140055217
jns 0x14005524c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140055256
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005526d
mov qword [rbx], rax
add rbx, 8
jmp 0x140055237
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400552ad
cmp al, 0xef
ja 0x14005529f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005527f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005528e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140055301
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x180001930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180001951
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000197e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180001980
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800019d9
test ecx, ecx
jle 0x1800019b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800019d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800019d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x180001a00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180001a22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180001a31
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180001a54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180001a56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180001a92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180001b2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180001acd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180001b0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180001b2e
cmp rbx, rax
ja 0x180001ae0
test rbx, rbx
je 0x180001b2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x180001f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180001fbd
xor eax, eax
jmp 0x180002129
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180001ff7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180001ff7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180002129
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000211c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000203a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180002065
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002121
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800020d4
sub eax, 1
je 0x1800020d4
cmp eax, 2
jne 0x18000211c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002121
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180002102
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000211c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180002121
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002c50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180002530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180002603
cmp byte [rcx + 0x71], 0
je 0x180002603
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800025ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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 0x1800025c4
sub eax, 1
je 0x1800025c8
cmp eax, 2
jne 0x1800025ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002c50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800025f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800025ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800025ac
xor al, al
jmp 0x1800025ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002c50
add rsp, 0x60
pop rbx
ret
Function at 0x1400072b0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using speck
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
movaps xmmword [rsp + 0x2d0], xmm6
movabs r12, 0xcbf29ce484222325
movabs r14, 0x1d12a89b9e723ff5
lea rcx, [0x1400ce915]
jmp 0x1403ac261

Function at 0x140008210
Capabilities:
Access peb ldr_data
Encrypt data using speck
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movabs r14, 0xcbf29ce484222325
lea rcx, [0x1400ce987]
jmp 0x1403adddf

Function at 0x140132b42
Capabilities:
Access peb ldr_data

Disassembly:
je 0x1401d59bc
mov word [rcx], ax
movzx eax, bx
add rcx, 2
movzx eax, word [r9 + rdx*2 + 2]
jmp 0x1401605f8
je 0x14027894b
xor eax, eax
test bl, r12b
nop word [rax + rax]
cmp r8, rax
jmp 0x140165cc9
mov rax, qword gs:[0x30]
sar r9b, cl
mov rax, qword [rax + 0x60]
xor r11, 0x65252a5c
neg r9b
sar r8w, 0x34
mov rax, qword [rax + 0x18]
stc
sar r11, cl
mov rax, qword [rax + 0x10]
mov r10b, 0x1a
movzx r8d, word [rax + 0x58]
cmp r8, rdx
jmp 0x14021a158
movzx eax, word [0x1400b8f10]
cmp r15w, 0x43ef
test ax, ax
jmp 0x1401a9cd7
je 0x14013f102
mov word [r10], 0
movzx eax, word [0x1400b8f10]
cmp rdx, 0x104
mov r8d, 0x104
jmp 0x1402358af
inc rdx
jmp 0x1401c0e82
je 0x14013f0fc
mov word [r10], r11w
add r11d, r10d
sar r11b, cl
cmp r10w, bp
add r10, 2
movzx r11d, word [r9 + rax*2 + 2]
jmp 0x1401fb413
je 0x1401d59b3
xor edx, edx
xor r9b, bl
lea r9, [0x1400b8f10]
cmp r8, rdx
jmp 0x1400fa6ff
je 0x14012c4c3
cmp rdx, 0x104
cmovg r8d, edx
movsx r8d, r9w
mov r8d, 0x104
cmovb r8, rdx
jmp 0x1401e3f54
test ax, ax
jmp 0x1401d59aa
jne 0x140184cd1
sub r8, rdx
test r8, r8
je 0x1402386e4
mov word [rcx], 0
jmp 0x1402386e4
jmp 0x140184cc5
inc rax
test r11w, r11w
jmp 0x140278940
cmovae r8, rdx
cmp ecx, 0x67814b74
mov r9, qword [rax + 0x60]
adc r10, rcx
inc r10
or r10b, r15b
movzx r11d, word [r9]
rcl r10d, cl
or r10b, 0xdf
add r10, rbx
lea r10, [0x1400b8f10]
clc
test r11w, r11w
jmp 0x140100ccd
cmovb r8, rdx
test ax, ax
jmp 0x140184cbf
ret
jne 0x140100cde
sub r8, rax
stc
cmc
test r8, r8
jmp 0x14013f0f6