joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028620
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400286b0
mov rdx, qword [0x140051250]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14002869e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14002869e
cmp word [rax + 0x18], 0x20b
jne 0x14002869e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400286b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140028689
add rbx, 0x28
cmp rbx, rdi
je 0x1400286b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140028680
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov r8, qword [0x140051250]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400286e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400286e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400286e0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140028735
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14002872c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400286e0
add rax, 0x28
cmp rax, r9
jne 0x140028718
xor eax, eax
ret

Function at 0x140028740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140051250]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14002875f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140028768
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14002875f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140028780
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140051250]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400287a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400287a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400287a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400287f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400287e7
test rcx, rcx
je 0x1400287a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400287d8
xor eax, eax
ret

Function at 0x140028800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140051250]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002881f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140028828
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140028840
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140051250]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140028860
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140028868
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140028860
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140028860
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400288b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400288c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400288a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140051250]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400288f4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140028900
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400288f4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400288f4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400288f4
lea ecx, [r10 - 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 0x14002894c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140028960
add rdx, 0x28
cmp rdx, r10
jne 0x140028938
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140028970
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14002897e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140028955
test r8d, r8d
jg 0x140028968
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140028aa0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140028ad0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp sym.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
add byte [rdx], cl
xor eax, 0x1bd0b
mov ebp, 0x38000001
add byte gs:[rdx], cl
cmp ecx, dword [rdx]
cmp dword [rcx], eax
add byte [rax], al
add byte [rbx + 0x15], dl
outsb dx, byte [rsi]
pop rdi
invalid
jae 0x1400b4d5f
jo 0x1400b4d74
invalid
pop rdi
imul esp, dword [rdi + 0x6e], 0x736f705f
outsb dx, byte [rsi]
add al, byte [rax]
add byte [rdi], bl
jne 0x1400b4dd8
insb byte [rdi], dx
xor al, 1
add byte [rax], al
invalid
invalid
pop rdi

Function at 0x140028b10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140028b40
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140028b58
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14002fd50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x14002fd98
mov rcx, rbx
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140059b80], rax
lea rax, [sym.mingw_rand_s]
jmp 0x14002fd7e

Function at 0x140031fe0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14004c260], 0
jne 0x1400320e6
mov byte [global_terminating], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x1400320bc
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400320ad
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14004d121]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400320a8
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140032077
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14003217b
call dbg.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
jmp 0x1400320e1
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x1400320e1
Function at 0x140041bb0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140041be0
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140041c28
cdqe
add rsi, rax
sub rbx, rax
jne 0x140041bf8
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xffffffff
jne 0x140041c48
call rbp
mov r12, rbp
cmp dword [rax], 4
je 0x140041bf8
call r12
lea rdx, str.random_device_could_not_be_read
mov ecx, dword [rax]
call dbg.__throw_syserr
mov r12, qword [sym.imp.msvcrt.dll__errno]
jmp 0x140041c37

Function at 0x14004b890
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x140050fd0]
mov r8d, dword [rax]
test r8d, r8d
jne 0x14004ba3b
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14004c1b8], 0
movabs rsi, 0x2e78786362696c67
movups xmmword [0x14004c1a8], xmm0
movabs rdi, 0x6c6f6f705f68652e
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x14004b945
jmp 0x14004ba05
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14004b9b8
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x14004b930
cmp qword [rbx + 7], rdi
jne 0x14004b930
cmp byte [rbx + 0xf], 0x2e
jne 0x14004b930
movabs rax, 0x657a69735f6a626f
lea rbp, [rbx + 0x10]
cmp qword [rbx + 0x10], rax
jne 0x14004b97f
cmp byte [rbx + 0x18], 0x3d
je 0x14004ba4c
mov r8d, 9
mov rdx, rbp
lea rcx, str.obj_count
call sym.memcmp
test eax, eax
jne 0x14004b9ac
cmp byte [rbx + 0x19], 0x3d
mov eax, 9
lea r12, [rsp + 0x48]
je 0x14004ba56
mov rbx, rbp
jmp 0x14004b930
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x14004c1b8], rbx
jne 0x14004ba15
lea rcx, [sym.__tcf_0]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.atexit
mov qword [0x14004c1b8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14004c1b0], rax
test rax, rax
je 0x14004ba8f
xor edx, edx
mov qword [0x14004c1a8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14004b9ef
lea rcx, [0x14004c180]
call dbg.__gthr_win32_mutex_init_function
jmp 0x14004b8ad
mov eax, 8
lea r12, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [rbp + rax + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x14004ba7d
test dl, dl
jne 0x14004b930
test eax, eax
js 0x14004b930
mov dword [r12 + 0x10], eax
jmp 0x14004b930
xor ecx, ecx
mov qword [0x14004c1b8], rcx
jmp 0x14004b9ef
Function at 0x140002600
Capabilities:
Parse pe header

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

Function at 0x1400079d4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007a43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007a43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007a43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a43
cmp dword [rcx + 0x84], 0xe
jbe 0x140007a43
cmp dword [rcx + 0xf8], 0
je 0x140007a43
mov ecx, ebx
call fcn.140007af4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400078d0
nop
cmp dword [rbp + 0x20], 0
je 0x140007a91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007a9c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400079d4

Function at 0x140007bd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400079d4
Function at 0x14000a9b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000aa3b
mov rsi, rbx
cmp word [rax], bp
je 0x14000a9fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000a9e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000a9e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000942c
mov rdi, rax
test rax, rax
je 0x14000aa28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400101a0
mov rbp, rdi
xor ecx, ecx
call fcn.140009614
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fb00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000fb28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000fb28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1405f6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405f61df
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 0x1405f6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f606f
add dl, dl
jne 0x1405f6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f60f6
xor eax, eax
add dl, dl
jne 0x1405f60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f61ad
add dl, dl
jne 0x1405f60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f607e
mov eax, 1
add dl, dl
jne 0x1405f6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f60fb
sub eax, ebx
mov ebx, 1
jne 0x1405f614c
mov ecx, 1
add dl, dl
jne 0x1405f612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f615d
cmp eax, 0x7d00
jae 0x1405f619b
cmp eax, 0x500
jb 0x1405f6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
cmp eax, 0x7f
ja 0x1405f619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f61d2
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 0x1405f607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003a40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x130
cmp rdi, 0xffffffffffffffff
je 0x140003b06
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140003b06
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140003afd
cmp qword [rbx + 0x18], 0xf
mov r8, rbx
jbe 0x140003ac3
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140003ae3
inc rax
test ecx, ecx
jne 0x140003ad0
mov rcx, rdi
test edx, edx
je 0x140003b76
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140003ab6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003b40
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003b3b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003bbd
mov rcx, r8
call fcn.14000cbd4
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000c860
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x28], 0
je 0x140003b06
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003bb9
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003bb4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003bbd
mov rcx, r8
call fcn.14000cbd4
mov al, 1
jmp 0x140003b42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004fe0
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 0x140005008
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 0x14000502e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005030
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005089
test ecx, ecx
jle 0x140005069
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 0x140005089
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005089
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

Function at 0x1400050b0
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 0x1400050d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400050e8
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 0x140005104
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005106
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005142
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 0x1400051de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000517d
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 0x1400051be
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 0x1400051de
cmp rbx, rax
ja 0x140005190
test rbx, rbx
je 0x1400051de
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