joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096120
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x50
mov rbp, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x140096152
xor eax, eax
mov dword [rcx], 1
mov dword [rcx + 0x10], eax
mov qword [rcx + 8], rax
mov rax, rcx
add rsp, 0x50
pop r15
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x70], rsi
mov rcx, rbp
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test rsi, rsi
jns 0x1400961a5
mov rsi, qword [rsp + 0x70]
xor eax, eax
mov dword [rbx + 0x10], eax
mov qword [rbx + 8], rax
mov rax, rbx
mov dword [rbx], 2
add rsp, 0x50
pop r15
pop rbp
pop rbx
ret
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r14
lea r14, [rsi + 1]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400961d6
mov dword [rbx + 0x10], eax
mov dword [rbx], 3
mov qword [rbx + 8], rax
jmp 0x140096248
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x140096209
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov dword [rbx], 2
mov dword [rbx + 0x10], eax
mov qword [rbx + 8], rax
jmp 0x140096248
mov rdx, rsi
call fcn.140093390
mov ecx, eax
cmp eax, 1
jne 0x14009621e
mov byte [rsi + rdi], 0
jmp 0x140096221
mov r14, rsi
mov rax, qword [rsp + 0x98]
mov r9, rdi
mov qword [rsp + 0x48], rax
mov r8, r15
mov dword [rsp + 0x30], ecx
mov rdx, r15
mov rcx, rbx
mov qword [rsp + 0x20], r14
call fcn.140095ea0
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r15
pop rbp
pop rbx
ret
Function at 0x1400980c0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400e5028]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140001750
cmp byte [0x1400e6402], 0
je 0x1400981c2
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.categories.txt
lea rcx, [rsp + 0x30]
call fcn.14000bf50
nop
cmp qword [rsp + 0xc0], 0
je 0x140098163
lea rcx, [rsp + 0x30]
call fcn.140002770
lea rcx, [rsp + 0x40]
call fcn.14000e010
test rax, rax
jne 0x140098163
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call fcn.14000cc10
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
cmp qword [0x1400e64e0], 0
jne 0x1400981c2
call fcn.140003240
call fcn.140002550
cmp byte [0x1400e6401], 0
jne 0x1400981d4
cmp byte [0x1400e6400], 0
je 0x1400981ed
call fcn.140006b90
cmp qword [0x1400e64a0], 0
jne 0x1400981ed
call fcn.140007470
call fcn.140007160
call fcn.14009a960
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14009e240
add rsp, 0x158
ret
Function at 0x14009d950
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14009d9d4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400a59e0]
cmp byte [rcx + rax], 0
je 0x14009d9d4
dec r8
sub rdx, 1
jne 0x14009d9ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14009ef30
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x00d62733], 0
jne 0x4237e5
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub rdx, qword [rbx + 0x18]
nop
test rdx, rdx
jne 0x42378e
xor eax, eax
nop
nop
nop
mov rcx, rax
shr rax, 3
and rcx, 7
mov edx, 1
shl edx, cl
nop
add rax, qword [rbx + 0x50]
lock or byte [rax], dl
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x4237da
lea rbx, [0x00d445b8]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and rdx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and rcx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and rax, 7
mov rcx, rax
mov esi, 1
shl esi, cl
test sil, bl
jne 0x42374f
lock or byte [rdx], sil
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
mov rcx, qword [rsp + 0x30]
add qword [rax + 0x16a8], rcx
mov rcx, qword [rsp + 0x38]
add qword [rax + 0x16b0], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
cmp word [rbx + 0x5e], 0
je 0x4237aa
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
shr rdx, cl
and rax, rdx
jmp 0x4236b5
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
movzx esi, byte [rbx + 0x66]
cmp sil, 0x40
sbb rdi, rdi
shr rdx, cl
and rax, rdx
movzx edx, word [rbx + 0x5c]
imul rax, rdx
mov ecx, esi
shr rax, cl
and rax, rdi
jmp 0x4236b5
mov ecx, 0x40
nop
call fcn.0046e320
lea rax, [0x009b47eb]
mov qword [rsp], rax
mov qword [rsp + 8], 0x2c
call fcn.00439b20
nop
int3
Function at 0x4565e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jbe 0x456799
mov rdx, qword [rsp + 0x20]
movzx ebx, byte [rdx]
test ebx, ebx
jne 0x456616
movzx esi, byte [rsp + 0x48]
test sil, sil
je 0x456747
bt ebx, 7
nop word [rax + rax]
jae 0x456739
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp 0x456640
lea esi, [rcx + 7]
mov rcx, rax
mov eax, r8d
nop word [rax + rax]
cmp rcx, rax
jbe 0x456794
movzx edi, byte [rax + rdx]
lea r8d, [rax + 1]
mov r9d, edi
and edi, 0x7f
mov rax, rcx
mov ecx, esi
shl edi, cl
or ebx, edi
test r9b, 0x80
jne 0x45662e
mov esi, ebx
and ebx, 1
neg ebx
shr esi, 1
xor ebx, esi
mov rsi, qword [rsp + 0x40]
add dword [rsi], ebx
nop dword [rax + rax]
cmp rax, r8
jb 0x456789
sub rax, r8
mov rbx, qword [rsp + 0x30]
sub rbx, r8
mov rsi, rbx
neg rbx
sar rbx, 0x3f
and r8, rbx
lea rbx, [rdx + r8]
test rax, rax
jbe 0x45677f
movzx edx, byte [rdx + r8]
bt edx, 7
jae 0x456731
xor ecx, ecx
xor edx, edx
xor edi, edi
nop
jmp 0x4566c8
lea edi, [rcx + 7]
mov ecx, r9d
cmp rax, rcx
jbe 0x456772
movzx r8d, byte [rcx + rbx]
lea r9d, [rcx + 1]
mov r10d, r8d
and r8d, 0x7f
mov ecx, edi
shl r8d, cl
or edx, r8d
test r10b, 0x80
jne 0x4566c2
cmp rax, r9
jb 0x456767
mov rcx, qword [rsp + 0x38]
add qword [rcx], rdx
sub rsi, r9
mov rcx, rsi
neg rsi
sar rsi, 0x3f
and rsi, r9
lea rdx, [rbx + rsi]
mov qword [rsp + 0x50], rdx
sub rax, r9
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov r9d, 1
jmp 0x4566ef
mov rax, rcx
mov r8d, 1
jmp 0x456666
mov qword [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x68], 0
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rax
mov eax, r9d
call fcn.0046e3c0
mov rdx, rax
mov eax, ecx
mov rcx, rdx
call fcn.0046e300
mov rcx, rax
xor eax, eax
call fcn.0046e300
mov rcx, rax
mov eax, r8d
call fcn.0046e3c0
call fcn.0046e300
xor eax, eax
nop dword [rax + rax]
call fcn.0046e300
nop
int3

Function at 0x45de80
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45df61
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00465fc0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046bfc0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.0046c120
jmp fcn.0045de80
Function at 0x46dda0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x00d62c20]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x00d62732], 0
je 0x46dddd
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00d62ee0]
aesenc xmm0, xmmword [0x00d62ef0]
aesenc xmm0, xmmword [0x00d62f00]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x40aa20
Function at 0x180003bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x180003bcd
mov rax, rdx
ret
Function at 0x18000ec70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000ec97
and qword [r8], 0
call fcn.18000ed7c
mov rbx, rax
test rax, rax
je 0x18000ed5f
mov rcx, rax
call fcn.18000ebf8
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ed56
mov rax, qword [0x18029bbb8]
test rax, rax
je 0x18000eccf
inc dword [rax + 0xf4]
mov rdx, qword [0x18029bbc8]
lea rcx, [rdi + rbp]
call qword [0x18015a1f0]
mov rsi, rax
test rax, rax
je 0x18000ed56
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18000ed2e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18029bbb8]
test rax, rax
je 0x18000ed1c
dec dword [rax + 0xf4]
mov rdx, qword [0x18029bbc8]
mov rcx, rsi
call qword [0x18015a1f8]
jmp 0x18000ed5f
test ebp, ebp
jle 0x18000ed40
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000ed51
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000ed61
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18000f108
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000f136
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800b9130]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000f113
not r8d
mov eax, r8d
ret

Function at 0x18000f140
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000f19a
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1800b9130]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000f184
cmp rdx, 2
jb 0x18000f184
cmp byte [r10], r11b
jne 0x18000f184
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000f162
jmp 0x18000f1db
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000f1db
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1800b9130]
cmp dl, r11b
jne 0x18000f1bf
cmp byte [r10], r11b
jne 0x18000f1bf
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18000f1ad
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18001129c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5d00], 0
lea rbx, [rcx + 0x5d08]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180011335
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x1800112ed
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001d184
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18001c910
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5d00]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x18029bbc0]
movsxd r8, eax
mov rax, qword [rdi + 0x5d10]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18001133d
mov rcx, rbx
call fcn.18001c910
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180018420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x18029bbb8]
mov rbx, rcx
and dword [rax + 0x5c64], 0
test rcx, rcx
je 0x180018489
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180018494
lea rdx, [0x1800ba8cc]
mov rcx, rbx
mov rdi, rax
call fcn.18000ed7c
mov rbx, rax
test rax, rax
je 0x180018489
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180046b78
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x18029aa40]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18029eb30]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180046bbd
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180046bf3
mov eax, 0xa
jmp 0x180046c82
test esi, esi
je 0x180046c15
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180046c36
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180046c36
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180046c30
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180046c36
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800b3aa0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180046ce4
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18029aa40]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180046e80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180046e22
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x180046dde
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180046dde
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180046dde
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180046da0
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18029cf00]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180046e06
jmp 0x180046dd1
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x180046dd1
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x18029cf00]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180046e06
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180046d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180046e22
mov esi, ebx
cmp qword [rdi], rbx
je 0x180046e22
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18029cf00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180046e80
cmp qword [rdi], rbx
je 0x180046e85
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x180046e85
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180046e77
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.1800470c4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x180046e3b
jmp 0x180046e85
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b3aa0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180047254
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800472b8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800472a6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004729f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180047273
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18029cf00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004762c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180047643
cmp r8b, 0x90
je 0x180047643
cmp r8b, 0xcc
jne 0x180047665
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180047661
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180047665
add edx, r10d
cmp edx, r9d
jb 0x180047651
mov eax, r10d
ret
xor eax, eax
ret

Function at 0x180047b30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 8
jb 0x180047b3d
mov rax, rdx
ret
Function at 0x180059140
Capabilities:
Get disk information
Get hostname
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x18029aa40]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x11], rcx
and dword [rbp - 0x39], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov edi, 1
mov dword [rbp - 0x39], edi
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
lea rcx, [0x18013e234]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov r15d, 0x1000
test eax, eax
je 0x180059234
mov edx, dword [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.18004f7c4
mov edi, 3
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x21]
mov rcx, rbx
call fcn.180001cf0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x180059234
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, r15
jb 0x18005922f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800592f9
call fcn.1800b3a88
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rbp + 0x23]
lea rcx, [rbp - 0x31]
call fcn.18004f7c4
or edi, 4
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x21]
mov rcx, rbx
call fcn.180001cf0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x18005929e
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, r15
jb 0x180059299
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800592f9
call fcn.1800b3a88
mov edx, dword [rbp + 0x1f]
lea rcx, [rbp - 0x31]
call fcn.18004f7c4
or edi, 8
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x21]
mov rcx, rbx
call fcn.180001cf0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x180059305
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, r15
jb 0x180059300
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180059300
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b3a88
mov dword [rbp + 0x2f], reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800b3aa0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret