joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ebdc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009ebf2
mov al, 1
jmp 0x14009ec52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009ec03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009ec50
mov ecx, dword [rcx + 0x18]
nop
call fcn.140087bbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009ec50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009ec50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009ec50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009ec52
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a26a8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007f2d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a2732
cmp byte [rbp - 0x21], r15b
je 0x1400a272d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a2768
call fcn.1400945f4
test eax, eax
jne 0x1400a2754
cmp byte [rbp - 0x21], r15b
je 0x1400a274c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a2768
cmp byte [rbp - 0x21], r15b
je 0x1400a2765
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400848ec
test eax, eax
jne 0x1400a2808
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007f2d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a27a7
cmp byte [rbp - 0x21], r15b
je 0x1400a27dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a27dc
call fcn.1400945f4
test eax, eax
jne 0x1400a27c8
cmp byte [rbp - 0x21], r15b
je 0x1400a27c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a27dc
cmp byte [rbp - 0x21], r15b
je 0x1400a27d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400848ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a2808
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a280b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a2819
mov rcx, rdi
call fcn.1400473b0
cmp byte [rbp + 0x3f], r15b
je 0x1400a2828
mov rcx, qword [rbp + 0x27]
call fcn.1400473b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400a62a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400a62b3
cmp dword [0x140115bd0], ecx
jle 0x1400a62ba
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400a6300
test edi, edi
je 0x1400a62b3
cmp byte [rsi + rdi - 1], 0xa
je 0x1400a62b3
lea rcx, [0x1400ebb21]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400a6300
Function at 0x1400a6300
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400a634e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400a638c
cmp rdi, rsi
jae 0x1400a638c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400a6347
jmp 0x1400a6344
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140076580
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400c8400
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400c8471
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400c847b
mov dil, 1
test bl, bl
je 0x1400c845a
cmp byte [rsi + 8], 0
je 0x1400c8476
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140076580
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1400c842d
mov rcx, qword [rsi]
jmp 0x1400c844f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400c84a3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400c84a8
xor edi, edi
jmp 0x1400c845a
mov rcx, qword [rsi]
jmp 0x1400c8490
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400c84cf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400c845a
mov rcx, qword [rsi]
jmp 0x1400c84bf
Function at 0x1400c8830
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14011ce40], 0
je 0x1400c8876
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140076580
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14011ce18]
test rdi, rdi
je 0x1400c8917
test byte [0x140113098], 1
je 0x1400c8859
cmp byte [rdi + 0x17], 0
jns 0x1400c8898
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14011ce40], rax
inc rax
cmp rax, 1
ja 0x1400c8859
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400786c0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400c89dc
xor esi, esi
jmp 0x1400c8859
mov ecx, 0x18
call fcn.1400751a4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400786c0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400eb8f0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400b1600
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400c897d
and eax, 0x7f
mov rcx, rdi
jmp 0x1400c8984
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400c89bb
add rax, rax
test rax, rax
je 0x1400c89bb
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400c898c
cmp rdx, 0xfffffffffffffffe
je 0x1400c89bb
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.14004deb0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140027c40
mov qword [0x14011ce18], rdi
jmp 0x1400c8886
mov rdi, qword [0x14011ce18]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14008fc48
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140027b90
mov rcx, qword [0x14011ce18]
call fcn.1400c6080
cmp word [rax], 0x5c
je 0x1400c8a29
mov rcx, qword [0x14011ce18]
lea rdx, [0x1400edaba]
mov r8d, 1
call fcn.140027c40
mov rcx, qword [0x14011ce18]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140027c40
mov rcx, qword [0x14011ce18]
cmp byte [rcx + 0x17], 0
jns 0x1400c8a52
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14011ce40], rax
inc rax
cmp rax, 1
ja 0x1400c8859
mov qword [0x14011ce40], 0
jmp 0x1400c8910
Function at 0x2fc4c5ba0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c65a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c663a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c661e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6612
cmp qword [rbp - 0x10], 0
je 0x2fc4c6612
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c65d8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c663b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6740
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6768
mov eax, 0
jmp 0x2fc4c67b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6791
mov eax, 0
jmp 0x2fc4c67b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c67b1
mov eax, 0
jmp 0x2fc4c67b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c67bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c683a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6831
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6831
mov rax, qword [rbp - 8]
jmp 0x2fc4c684f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003600
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov edx, 9
mov rcx, qword [0x140020bf0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp byte [0x14001a727], 0
mov rax, qword [str.lqwta]
mov qword [rsp + 0x20], rax
je 0x14000379d
xor ecx, ecx
cmp dword [0x140020018], 2
jl 0x140003760
movdqa xmm2, xmmword [0x14001ab60]
mov eax, 4
movdqa xmm4, xmmword [0x14001ac00]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14001ab70]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x30], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14001ab80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x20]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14001abe0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x30]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14001ab80]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14001abe0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
jmp 0x14000379d
lea r8, [rsp + 0x20]
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x140003770
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x20]
call fcn.140008bf0
mov rcx, qword [0x140020bf0]
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [rbx + 0x18], 0x10
mov r8, qword [rbx + 0x10]
jb 0x1400037ce
mov rbx, qword [rbx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rbx
call fcn.14000cf80
lea rdx, [0x140008dc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015e90
add rsp, 0x40
pop rbx
ret
Function at 0x1400168c0
Capabilities:
Parse pe header

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

Function at 0x1406cc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406cc1df
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 0x1406cc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cc06f
add dl, dl
jne 0x1406cc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cc0f6
xor eax, eax
add dl, dl
jne 0x1406cc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cc1ad
add dl, dl
jne 0x1406cc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406cc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406cc07e
mov eax, 1
add dl, dl
jne 0x1406cc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cc0fb
sub eax, ebx
mov ebx, 1
jne 0x1406cc14c
mov ecx, 1
add dl, dl
jne 0x1406cc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406cc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cc15d
cmp eax, 0x7d00
jae 0x1406cc19b
cmp eax, 0x500
jb 0x1406cc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cc07e
cmp eax, 0x7f
ja 0x1406cc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406cc1d2
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 0x1406cc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400058a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov r14, qword [rdx]
add r9, r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.140005340
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x140058171]
mov ecx, 0x800
mov edx, 1
call fcn.140007810
test rax, rax
je 0x140005a71
mov rbx, rax
mov qword [rbp], rax
mov qword [rbp + 8], 0x800
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0x18]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x14000599a
mov r8d, dword [rbp + 0x1c]
cmp r13, r8
jae 0x140005960
mov rcx, rbp
mov rdx, qword [rbp - 0x30]
call fcn.14003c2c0
mov rbx, qword [rbp]
jmp 0x140005946
test eax, eax
jne 0x1400059bd
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov esi, dword [rbp + 0x18]
cmp esi, 0xb
jbe 0x140005a52
movabs rax, 0xde00000002
jmp 0x1400059c5
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x20], rax
mov byte [rbp - 8], 0xc
mov rdx, qword [rbp + 8]
mov sil, 0xc
test rdx, rdx
je 0x1400059e7
mov r8d, 1
mov rcx, rbx
call fcn.140007820
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x140005a01
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140007820
cmp sil, 0xc
jne 0x140005a1c
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140005a3b
lea rdx, [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call fcn.14000b0d0
cmp byte [rbp - 8], 0xc
je 0x140005a3b
lea rcx, [rbp - 0x20]
call fcn.140005760
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp - 8], sil
mov rdx, qword [rbp - 0x40]
test rdx, rdx
jne 0x1400059f0
jmp 0x140005a01
mov ecx, 1
mov edx, 0x800
call fcn.14003d170
ud2
Function at 0x14000b900
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x14000ba02
test cl, 3
je 0x14000b927
mov r8d, 0x400
jmp 0x14000ba02
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x14000b9fc
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x14000b91c
cmp r9d, 0x1000000
jbe 0x14000b956
mov r8d, 0x700
jmp 0x14000ba02
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x14000ba02
cmp dword [rcx + r9], 0x4550
jne 0x14000b9fc
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x14000b98a
cmp esi, 0x10b
jne 0x14000b9fc
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x14000ba02
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x14000b94b
movzx esi, si
cmp esi, 0x20b
jne 0x14000ba08
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x14000ba02
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x14000b94b
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x14000ba02
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x14000ba02
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x14000ba02
Function at 0x14000c180
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], rdx
mov r14, qword [rdx]
mov edi, 8
lea r15, [rbp - 4]
xor ebx, ebx
xor esi, esi
jmp 0x14000c1dd
mov r13, r12
mov qword [rbp - 0x18], r13
mov rbx, r13
mov esi, r12d
lea r8d, [rbx*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.psapi.dll_EnumProcessModulesEx
test eax, eax
je 0x14000c27c
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x14000c2d8
mov rsi, r12
sub rsi, rbx
jbe 0x14000c1d0
mov rax, qword [rbp - 0x20]
sub rax, rbx
mov r13, rbx
cmp rax, rsi
jae 0x14000c23a
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rsi
call fcn.14003c3d0
mov rdi, qword [rbp - 0x28]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x14000c26d
mov r8, rbx
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, rbx
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x14000c1d3
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rcx + 0x20], rax
mov qword [rcx], 0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000c2c3
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140007820
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp rbx, r14
jb 0x14000c3a8
cmp r12d, 8
jae 0x14000c2fa
mov eax, 8
xor ecx, ecx
jmp 0x14000c37f
mov r15, r14
shl r15, 4
movzx eax, byte [0x140058171]
mov edx, 8
mov rcx, r15
call fcn.140007810
test rax, rax
je 0x14000c3bc
cmp r14d, 1
jne 0x14000c32c
xor ecx, ecx
mov r10, qword [rbp - 0x30]
jmp 0x14000c365
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov r10, qword [rbp - 0x30]
nop dword [rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], r10
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], r10
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x14000c340
test r14b, 1
je 0x14000c37c
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], r10
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x14000c2b1
jmp 0x14000c2c3
lea r8, str.C:Users_a.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinproc_0.6.4_srcprocessmod.rs
mov rcx, r14
mov rdx, rbx
call fcn.14003d670
jmp 0x14000c3c9
mov ecx, 8
mov rdx, r15
call fcn.14003d170
ud2