joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1409e4550
Capabilities:
Terminate process

Disassembly:
push rbx
invalid
cld
pop r11
jmp 0x1409e455d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1409e456d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1409e4555
lea eax, [rcx + 1]
jmp 0x1409e457b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1409e458e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1409e4574
sub eax, 3
jb 0x1409e45ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1409e45fd
sar eax, 1
movsxd rbp, eax
jb 0x1409e45e4
jmp 0x1409e45bc
add ebx, ebx
jne 0x1409e45ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1409e45e4
inc ecx
add ebx, ebx
jne 0x1409e45ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1409e45e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1409e45dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1409e45cc
add ecx, 2
jmp 0x1409e45e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1409e4512
jmp 0x1409e455d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x9da000]
mov eax, dword [rdi]
or eax, eax
je 0x1409e465d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x9e4000]
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 0x1409e460d
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 0x1409e4657
mov qword [rbx], rax
add rbx, 8
jmp 0x1409e462d
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 0x1409e46a1
cmp al, 0xef
ja 0x1409e4689
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1409e4669
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1409e4678
mov eax, dword [rdi]
add rdi, 4
jmp 0x1409e4678
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 + 0x1af]
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
mov byte [fcn.1409e4720], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1409e4720
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1409e4710
sub rsp, 0xffffffffffffff80
jmp 0x140660378
Function at 0x1807ca058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807ca1df
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 0x1807ca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807ca06f
add dl, dl
jne 0x1807ca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807ca0f6
xor eax, eax
add dl, dl
jne 0x1807ca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807ca1ad
add dl, dl
jne 0x1807ca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807ca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807ca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807ca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807ca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1807ca07e
mov eax, 1
add dl, dl
jne 0x1807ca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807ca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807ca0fb
sub eax, ebx
mov ebx, 1
jne 0x1807ca14c
mov ecx, 1
add dl, dl
jne 0x1807ca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807ca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807ca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807ca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1807ca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807ca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807ca15d
cmp eax, 0x7d00
jae 0x1807ca19b
cmp eax, 0x500
jb 0x1807ca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807ca07e
cmp eax, 0x7f
ja 0x1807ca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807ca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807ca1d2
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 0x1807ca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140035480]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140035490]
mov dword [rax], 1
mov rax, qword [0x1400354a0]
mov dword [rax], 1
mov rax, qword [0x140035470]
mov dword [rax], 1
mov rax, qword [0x140035340]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140035460]
mov dword [0x14003800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140035420]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140035400]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400352f0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400018e0
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 0x140001950
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400380a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001b00
mov rax, qword [0x1400380a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000199c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001980
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001b5d
mov rax, qword [0x1400380a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400380a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b42
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a20
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ab0
add dword [0x1400380a4], 1
cmp ebx, 8
jae 0x140001a58
test bl, 4
jne 0x140001b10
test ebx, ebx
je 0x140001a49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001b30
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001a49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001a8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x1400380a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1400019a7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001a49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001a49
mov rax, qword [0x1400380a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002070
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140038100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400380e0]
test rbx, rbx
je 0x1400020c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400020bb
test r12, r12
je 0x1400020bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020a0
lea rcx, [0x140038100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002300
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002310
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 0x140002355
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 0x14000234c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002357
add rax, 0x28
cmp rax, r9
jne 0x140002338
xor eax, eax
ret

Function at 0x140002400
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140035340]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002479
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002479
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002476
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000246d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002479
add r8, 0x28
cmp r8, r9
jne 0x140002458
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140035340]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400025cf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400025cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400025cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025d8
add rax, 0x28
cmp rax, r9
jne 0x1400025b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400025f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140035340]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002668
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002668
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002668
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002668
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000265c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002670
add rdx, 0x28
cmp rdx, r10
jne 0x140002648
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002680
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000268e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002665
test r8d, r8d
jg 0x140002678
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140002670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140002717
xor edi, edi
test rsi, rsi
je 0x1400026c3
nop
mov eax, dword [rbx + 0x10]
cmp dword [rbx + 0x14], eax
je 0x1400026df
movsxd rdx, dword [rbx + 0x14]
mov rcx, qword [rbx + 8]
inc rdi
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp - 1], dl
inc dword [rbx + 0x14]
cmp rdi, rsi
jb 0x1400026a0
add qword [rbx + 0x18], rdi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x1400026c3
mov dword [rbx + 0x10], r11d
mov dword [rbx + 0x14], 0
jmp 0x1400026a8
mov dword [rcx + 0x10], 0
mov dword [rcx + 0x14], 0
call fcn.1400136e0
mov qword [rbx + 0x18], rax
jmp 0x140002697
Function at 0x140002b40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [rdx + 0x18]
mov rsi, rdx
mov rdi, rcx
cmp dword [rax], 1
jg 0x1400323e0
mov rax, qword [rsi]
xor r13d, r13d
mov qword [rsp + 0x70], rbp
mov qword [rsi + 8], r13
xor r12b, r12b
mov byte [rax], r13b
cmp dword [rdi + 0x10], r13d
je 0x140032404
mov rbx, r13
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x140002c3e
movsxd rdx, dword [rdi + 0x14]
mov rax, qword [rdi + 8]
inc rbx
movzx ecx, byte [rdx + rax]
lea eax, [rdx + 1]
mov byte [rsp + rbx + 0x5f], cl
mov dword [rdi + 0x14], eax
cmp rbx, 1
jb 0x140002b81
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x140002c6e
movzx ebp, byte [rsp + 0x60]
cmp bpl, 0xd
je 0x140002c08
cmp bpl, 0xa
je 0x140002c2b
mov rax, qword [rsi + 0x18]
mov r12b, 1
cmp dword [rax], 1
jg 0x140032427
mov rdx, qword [rsi + 8]
mov rcx, rsi
inc rdx
call fcn.140002ab0
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], bpl
inc qword [rsi + 8]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
jmp 0x140002b74
lea rdx, [rsp + 0x60]
mov r8d, 1
mov rcx, rdi
call fcn.140002670
test rax, rax
je 0x140002c2b
cmp byte [rsp + 0x60], 0xa
jne 0x14003246a
mov al, 1
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x68]
test r11d, r11d
je 0x140002bac
jmp 0x14003241a
test r12b, r12b
jne 0x140002c2b
xor al, al
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
dec dword [rax]
mov rcx, rdx
call fcn.1400118e0
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsi + reloc.WSOCK32.dll_recv], 0x10
call fcn.140016ed8
mov qword [rsi], rax
jmp 0x140002b5f
mov rcx, rdi
mov dword [rdi + 0x10], r13d
mov dword [rdi + 0x14], r13d
call fcn.1400509a0
nop
jmp 0x140002b7e
mov dword [rdi + 0x10], r11d
mov dword [rdi + 0x14], r13d
jmp 0x140002b8d
dec dword [rax]
mov rcx, rsi
call fcn.1400118e0
mov rdx, qword [rsi + 8]
mov rcx, rsi
add rdx, 2
call fcn.140051d80
mov rcx, rax
mov qword [rsi + 0x10], rax
call fcn.140016ed8
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
inc r8
mov rcx, rax
mov rbx, rax
call fcn.140016710
mov qword [rsi], rbx
jmp 0x140002be9
mov r8d, 1
or rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.140013630
nop
jmp 0x140002c2b
Function at 0x140014360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.140030cb0
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [0x140000000]
nop
movzx eax, byte [rdx + rcx + 0xb0310]
inc rdx
cmp rdx, 8
mov byte [rsp + rdx + 0x1f], al
movzx eax, byte [rdx + rcx + 0xb0097]
mov byte [rsp + rdx + 0x27], al
jl 0x140014380
lea rdx, [0x14009e830]
lea rcx, [rsp + 0x10058]
call fcn.140017e10
lea rdx, [rsp + 0x10058]
lea rcx, [rsp + 0x30]
mov r8d, 4
call fcn.140016710
xor edi, edi
nop
mov r9, qword [rbx]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8d, 0x10000
call fcn.140019a28
cmp eax, 0x18
jl 0x14001444c
lea r10d, [rax - 0x14]
xor ecx, ecx
mov r11, rax
test r10d, r10d
jle 0x140014426
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
movzx eax, byte [rdx + r8]
cmp byte [rsp + r8 + 0x20], al
je 0x14001443e
cmp r9d, 0x14
je 0x1400313d0
inc ecx
inc rdx
cmp ecx, r10d
jl 0x140014400
mov rcx, qword [rbx]
mov edx, 0xffffffec
lea edi, [rdi + r11 - 0x14]
lea r8d, [rdx + 0x15]
call fcn.140019e98
jmp 0x1400143d0
inc r8
inc r9d
cmp r8, 0x14
jl 0x140014406
jmp 0x140014412
mov eax, 3
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea edx, [rdi + rcx + 0x14]
mov rcx, qword [rbx]
xor r8d, r8d
call fcn.140019e98
mov r9, qword [rbx]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x10058]
call fcn.140019a28
lea rdx, [0x14009e820]
lea rcx, [rsp + 0x10058]
mov byte [rsp + 0x1005c], 0
call fcn.140019a60
neg eax
sbb eax, eax
and eax, 4
jmp 0x140014451

Function at 0x140014530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1d0
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x14009b6c0]
or edx, 0xffffffff
call fcn.140014470
lea rcx, [rsp + 0xc0]
mov rdx, rax
mov rbx, rax
call fcn.140017e10
mov rcx, rbx
call fcn.140016a60
lea rcx, [rsp + 0x30]
call fcn.140014620
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.1400146b0
xor ebp, ebp
mov dword [rdi + 0xc], ebp
mov rdx, rbp
mov ecx, ebp
movzx eax, byte [rsp + rdx + 0x30]
add rdx, 4
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2d]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2e]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2f]
add ecx, eax
cmp rdx, 0x10
jl 0x14001459d
mov dword [rdi + 0xc], ecx
lea rdx, [0x14009e810]
mov rcx, rsi
call fcn.1400195fc
mov qword [rdi], rax
test rax, rax
je 0x140033c60
mov rcx, rdi
call fcn.140014360
test eax, eax
je 0x140033c6a
mov rcx, qword [rdi]
mov ebx, eax
call fcn.140019694
mov eax, ebx
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x1400145fd
mov r9, qword [rdi]
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0xf]
call fcn.140019a28
lea rdx, [rsp + 0x20]
mov r9d, 0x7221ff20
mov r8d, reloc.WSOCK32.dll_recv
mov rcx, rdi
call fcn.140058f00
mov dword [rdi + 0xc], ebp
mov ecx, ebp
movzx eax, byte [rsp + rbp + 0x20]
inc rbp
imul ecx, eax
cmp rbp, 0x10
jl 0x140033c9e
mov dword [rdi + 0xc], ecx
mov rcx, qword [rdi]
call fcn.140019d7c
mov dword [rdi + 8], eax
xor eax, eax
jmp 0x1400145fd
Function at 0x140014620
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
add rcx, 0x44
lea r8d, [rdx + 8]
call fcn.140017520
mov dword [rbx + 0x34], 0x67452301
mov dword [rbx + 0x38], 0xefcdab89
mov dword [rbx + 0x3c], 0x98badcfe
mov dword [rbx + 0x40], 0x10325476
add rsp, 0x20
pop rbx
ret

Function at 0x1400157f0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov dword [rcx], 5
mov dword [rcx + 4], 5
mov byte [rcx + 8], 1
mov byte [rcx + 9], 0
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
mov byte [rcx + 0x19], 0
mov byte [rcx + 0x1a], 0
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x1c], 0
mov byte [rcx + 0x1d], 0
mov byte [rcx + 0x1e], 0
mov byte [rcx + 0x1f], 0
mov byte [rcx + 0x20], 0
mov byte [rcx + 0x21], 0
mov byte [rcx + 0x22], 0
mov byte [rcx + 0x23], 0
xor edx, edx
mov dword [rcx + 0xc], 4
mov rbx, rcx
lea ecx, [rdx + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x10]
mov byte [rbx + 0x35], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, RegisterTypeLib
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, RegisterTypeLib
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x11]
mov byte [rbx + 0x34], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x12]
mov byte [rbx + 0x30], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x140015de0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
lea eax, [r9 + r9]
mov rdi, r8
mov dword [rsp + 0x58], eax
xor eax, eax
mov r9d, 1
mov word [rbx], ax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015e4a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400172bc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017130

Function at 0x1400172c8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001f1bc
nop
cmp dword [0x1400b4530], 1
je 0x140017268
mov dword [0x1400b452c], 1
mov byte [0x1400b4528], r12b
test ebx, ebx
jne 0x140017254
mov rcx, qword [0x1400c9af0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140017241
mov rcx, qword [0x1400c9ae8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400171e0
call fcn.14001d560
cmp qword [rdi], rax
jne 0x1400171e0
jmp 0x1400171c6
cmp rdi, rsi
jb 0x140017241
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001d560
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400c9af0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400c9ae8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001721f
cmp r13, rax
je 0x14001723f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400171c6
lea rdx, [0x140098150]
lea rcx, [0x140098138]
call fcn.140017010
lea rdx, [0x140098160]
lea rcx, [0x140098158]
call fcn.140017010
nop
test r12d, r12d
je 0x140017277
mov ecx, 8
call fcn.14001f0bc
test r12d, r12d
jne 0x1400172a2
mov dword [0x1400b4530], 1
lea ecx, [r12 + 8]
call fcn.14001f0bc
mov ecx, r15d
call fcn.140016fa4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140017130