joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140001737
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140001758
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000175a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400017b3
test ecx, ecx
jle 0x14000178e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400017b3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400017b3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400017e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rdi, r8
mov r14, rdx
mov rbx, rcx
je 0x140001817
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov rbp, rdi
mov qword [rsp + 0x38], rsi
mov rdx, qword [rax]
test rdx, rdx
je 0x140001838
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000183a
xor ecx, ecx
movsxd rsi, ecx
test rdi, rdi
jle 0x1400018cb
test ecx, ecx
jle 0x140001872
cmp rdi, rsi
mov rcx, r14
cmovl rsi, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add r14, rsi
sub rdi, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x38]
movsxd rax, esi
add qword [rcx], rax
test rdi, rdi
jle 0x1400018cb
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400018cb
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400018b7
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 r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
mov rsi, qword [rsp + 0x38]
sub rbp, rdi
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001d6d
xor eax, eax
jmp 0x140001ec2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140001d98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140001d98
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140001ec2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001eb5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140001ddb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140001e06
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 0x140001eba
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
js 0x140001eb5
cmp eax, 1
jle 0x140001e75
cmp eax, 3
jne 0x140001eb5
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 0x140001eba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001ea3
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 0x140001eb5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140001eba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005d50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000212c
cmp byte [rcx + 0x71], 0
je 0x14000212c
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400020ed
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 0x1400020f1
sub eax, 1
je 0x1400020f5
sub eax, 2
je 0x14000212c
xor al, al
jmp 0x14000212e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002123
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 0x1400020ed
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000212e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005d50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400028f0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x4d0
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002afc
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002af3
mov qword [rsp + 0x4e0], rbx
mov qword [rsp + 0x4e8], rsi
mov qword [rsp + 0x4f0], rdi
mov qword [rsp + 0x4c8], r14
xor r14d, r14d
mov qword [rsp + 0x4c0], r15
lea r15, str.activeconsole
lea r8, [rsp + 0x8c]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rsi, rax
mov rbx, r14
movzx eax, word [rax]
test ax, ax
je 0x1400029cd
mov rdi, rsi
nop dword [rax]
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rdi], ax
lea rbx, [rbx + 1]
movzx eax, word [rsi + rbx*2]
lea rdi, [rsi + rbx*2]
test ax, ax
jne 0x1400029b0
mov ebx, r14d
mov rdi, r15
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400029fd
inc ebx
add rdi, 8
cmp ebx, 0x62
jb 0x1400029d3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002ab5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x50], eax
call fcn.140004730
mov edx, 0x10
lea ecx, [rdx - 0xf]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002aa1
mov rcx, qword [0x14013da58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov dword [rsp + 0x28], 0x10
mov edx, 0x81034000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [rsp + 0x40]
setne dil
test eax, eax
je 0x140002a85
mov r8d, eax
lea rcx, [rsp + 0x48]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
je 0x140002aa1
lea rcx, str.Killed_process:__s__n
cmp qword [rsp + 0x48], r14
jne 0x140002aa8
lea rcx, str.Failed_to_kill:__s_n
lea rdx, [rsp + 0x8c]
call fcn.140002890
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002973
mov r15, qword [rsp + 0x4c0]
mov r14, qword [rsp + 0x4c8]
mov rdi, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x4e8]
mov rbx, qword [rsp + 0x4e0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140005d50
add rsp, 0x4d0
pop rbp
ret
Function at 0x1400045a0
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x14013da58]
test rcx, rcx
je 0x1400045c7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14013da50]
test rbx, rbx
je 0x14000466b
xor edx, edx
mov qword [rsp + 0x60], rdi
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140004613
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [0x14013da50]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004666
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140004654
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140004654
mov rcx, rbx
jmp 0x140004660
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005d50
add rsp, 0x50
pop rbx
ret

Function at 0x140004730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
xor r10d, r10d
lea rbx, [0x14013da60]
mov r11, rcx
movabs rdi, 0x22aaaa8a20000
movabs rsi, 0x71d67fffeda60000
movabs rbp, 0x555555555
lea r9d, [r10 + 1]
nop dword [rax]
nop word [rax + rax]
lea eax, [r9 - 1]
mov rcx, qword [rbx + rax*8]
mov r8, rcx
mov rax, rcx
shl rax, 0x11
shr r8, 0xc
and r8, rdi
xor r8, rax
mov rax, rcx
shr rax, 0x1d
and r8, rsi
and rax, rbp
xor r8, rax
mov eax, r9d
xor r8, rcx
lea rdx, [r11 + rax*8]
mov rcx, r8
mov rax, r8
shr rax, 0x25
and ecx, 0x7ffbf40
xor rcx, rax
inc r9d
shr rcx, 6
mov rax, r8
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, qword [r11]
add rax, r10
add r10, 0x10
xor rcx, rax
xor rcx, qword [rdx]
xor rcx, r8
mov qword [rdx], rcx
cmp r9d, 2
jb 0x140004780
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x434810
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x43481d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x43482d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x434815
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x434845
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x434832
sub eax, 3
jb 0x43485f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x434896
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x434886
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x434884
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x434873
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.004347d2
jmp 0x43481d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x21000
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x4348e6
cmp rsi, rcx
jae 0x4348ee
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4348cd
cmp al, 0x8f
ja 0x4348cd
cmp byte [rsi - 2], 0xf
je 0x4348d3
sub al, 0xe8
cmp al, 1
ja 0x4348b7
cmp rsi, rcx
jae 0x4348ee
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4348bd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x4348ee
lodsb al, byte [rsi]
jmp 0x4348cd
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x31000]
mov eax, dword [rdi]
or eax, eax
je 0x43494b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x34000]
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 0x4348fb
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 0x434945
mov qword [rbx], rax
add rbx, 8
jmp 0x43491b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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.004349ce], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004349ce
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4349be
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x180687058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806871df
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 0x180687089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18068706f
add dl, dl
jne 0x180687096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806870f6
xor eax, eax
add dl, dl
jne 0x1806870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806871ad
add dl, dl
jne 0x1806870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18068707e
mov eax, 1
add dl, dl
jne 0x180687106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180687113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806870fb
sub eax, ebx
mov ebx, 1
jne 0x18068714c
mov ecx, 1
add dl, dl
jne 0x18068712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18068713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180687123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180687168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180687175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18068715d
cmp eax, 0x7d00
jae 0x18068719b
cmp eax, 0x500
jb 0x180687196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068707e
cmp eax, 0x7f
ja 0x18068719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806871d2
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 0x18068707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14006718c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1400671d4
lea edi, [rsi + 0xd]
jmp 0x14006728f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006728f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140067214
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x140067255
jbe 0x140067255
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140067238
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140043124
mov rdi, qword [rbp - 0x20]
jmp 0x140067255
sub rdx, rcx
je 0x140067251
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006728f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140004374
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.140020b54
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140067cf0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b4480], eax
call fcn.140068190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b4480], 0
jne case.default.0x140067d46
mov ecx, 1
call fcn.140068190
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
invalid
jns 0x14012209c
cmp rax, qword [r9]
rcl dword [rdi - 0x64], 0x6b
mov al, 0x41
wait
or al, 0x4f
mov ch, 0x3d
jmp 0x140122111
invalid
Function at 0x14013b6b1
Capabilities:
Encode data using xor

Disassembly:
push 0xfffffffff8357e06
not r10d
mov dword [rsi], r10d
jmp 0x140133abd
lea rsp, [rsp + 8]
jmp fcn.14016e8fc
add rsi, 0xc
xor r10d, r10d
test rdx, rdx
push 0x100cbc04
lea rsp, [rsp + 0x10]
je 0x14013b726
mov ebx, 0xb6982b33
push rbx
shr ebx, 0x55
lea rcx, [0x140131910]
lea rsp, [rsp + 8]
mov ebx, 0x1fb66e2b
movzx ebx, byte [rdi + rbx*2 - 0x3f6cdc56]
push 0xffffffffdc0d9392
sal word [rsp + 5], 0x21
xor ebx, r10d
and ebx, 0xff
mov ebx, dword [rcx + rbx*4]
shr r10d, 8
xor r10d, ebx
inc rdi
xor r10d, 0xfb3fa42d
dec rdx
lea rsp, [rsp + 8]
jne 0x14013b6e3
jmp 0x140131fa8

Function at 0x1401514f7
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
lea rsp, [rsp + 0x10]
jmp 0x140153f98
not edx
push 0x11af22af
jmp 0x140130f8f
test rax, rax
lea rsp, [rsp + 0x10]
je 0x1401306f8
push rbx
mov ebx, 0x1d96a69e
push r8
push rbx
lea rbx, [0x1401619c8]
lea rsp, [rsp + 8]
movzx r8d, byte [rsi]
push 0x72136a9e
xor r8d, edx
and r8d, 0xff
mov r8d, dword [rbx + r8*4]
add dword [rsp + 3], 0x162f2db8
shr edx, 8
xor edx, r8d
inc rsi
xor edx, 0xfba3d992
dec rax
mov word [rsp + 1], 0x7eab
lea rsp, [rsp + 8]
jne 0x14013c321
mov r8d, 0x4880138c
lea rbx, [r8 + r8*8 - 0x3c47b1e9]
pop r8
lea rbx, [rbx*8 + 0x3d82bd1e]
push rbx
jmp 0x1401306ee
jmp 0x14013c2fe
jmp 0x1401360d4

Function at 0x1401711fd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11d, dword [r8 + r11*4]
call fcn.14014ab3e
lea rsp, [rsp + 0x10]
jne 0x140171335
pop r11
pop r8
call fcn.140148720
mov eax, 0x1498e424
jmp 0x14015fc12
mov eax, dword [rbp + rax*2 - 0x2931c848]
add rbp, 4
jmp 0x14016965d
mov r9d, 0x22ad0aa8
movzx r9d, word [r11 + r9 - 0x22ad0aa8]
push 0xffffffff8e264922
sar word [rsp + 2], 0xa4
adc r11, 2
shl dword [rsp], 0xe3
call fcn.14015636d
dec rdx
jmp 0x140157aa4
movzx r11d, byte [r10]
xor r11d, esi
and r11d, 0xff
jmp 0x14013531f
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400c3dc0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400c3dd0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400c3dd0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400c3dd0]
mov dword [rax], 1
mov rax, qword [0x1400c3e30]
mov rdx, rax
mov rax, qword [0x1400c3e20]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x1400ef024], 1
mov rax, qword [0x1400c3dd0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400c3e10]
mov rdx, rax
mov rax, qword [0x1400c3e00]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400c3dd0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400c3dc0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [str.h_f_]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [str.h_f_]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400c3db0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x1400ef004]
lea rdx, [0x1400ef008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400c3d40]
mov rax, qword [rax]
mov rdx, qword [0x1400ef010]
mov qword [rax], rdx
mov rcx, qword [0x1400ef010]
mov rdx, qword [0x1400ef008]
mov eax, dword [0x1400ef004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x1400ef01c], eax
mov eax, dword [0x1400ef020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400ef01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x1400ef024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x1400ef01c]
add rsp, 0x70
pop rbp
ret