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

Disassembly:
jmp 0x140020f20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003d200]
call fcn.140011b31
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140020f77
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140021083
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14002101c
cmp qword [rbp + 0x28], 0
jle 0x14002101c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140020fbc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011a8c
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140021072
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140021072
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011622
Capabilities:
Terminate process

Disassembly:
jmp 0x140023cc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001179e
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400247f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140024810
xor al, al
jmp 0x140024891
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140024823
xor al, al
jmp 0x140024891
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002484d
xor al, al
jmp 0x140024891
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140024861
xor al, al
jmp 0x140024891
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140024873
xor al, al
jmp 0x140024891
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002488f
xor al, al
jmp 0x140024891
mov al, 1
add rsp, 0x38
ret
Function at 0x140011b0e
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b940
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140034040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003d200]
call fcn.140011b31
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001b9a6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001b9ad
mov al, 1
jmp 0x14001bafd
call fcn.1400112f8
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400112f8
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400118d9
movzx eax, al
test eax, eax
je 0x14001b9fe
xor al, al
jmp 0x14001bafd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001ba63
cmp dword [rbp + 0x154], 1
je 0x14001ba6e
cmp dword [rbp + 0x154], 3
je 0x14001baec
jmp 0x14001bafb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001babe
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001babe
xor al, al
jmp 0x14001bafd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001bad9
mov dword [rbp + 0x154], 1
jmp 0x14001bae3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001bafd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001bafd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002cbc0]
call fcn.140011960
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011537
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x180002d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
add eax, 0x165
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
sub eax, 0xa28
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0xd5c
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x392
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x343d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x19b1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x3877
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x297d
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x3628
cmp dword [rsp + 0x28], eax
je 0x180002e4f
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0x11fd
mov dword [rsp + 0x24], eax
jmp 0x180002eed
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e6a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002eed
mov eax, dword [rsp + 0x38]
sub eax, 0x15b2
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x1c5f
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e60
mov eax, dword [rsp + 0x2c]
add rsp, 0x68
ret
Function at 0x180004670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
sub eax, 0x21d2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
add eax, 0x7d3
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x5c4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x3428
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x30f2
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x21d2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x19b1
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x38fc
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0x26d3
cmp dword [rsp + 0x2c], eax
je 0x180004802
mov eax, dword [rsp + 0x24]
add eax, 0x1b16
cmp dword [rsp + 0x2c], eax
jge 0x180004750
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800b00e0]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
add eax, 0x192e
mov dword [rsp + 0x20], eax
jmp 0x180004802
mov eax, dword [rsp + 0x30]
or eax, 0x19b1
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x180004802
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004780
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x180004802
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x19b1
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x180004775
mov eax, dword [rsp + 0x3c]
sub eax, 0x119d
add rsp, 0x68
ret
Function at 0x180008230
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
add eax, 0x6ad
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x1e8
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x10b4
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
add eax, 0x13cb
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
add eax, 0x1761
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x4c3
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
add eax, 0x1320
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x3605
cmp dword [rsp + 0x20], eax
jg 0x1800082cd
mov eax, dword [rsp + 0x20]
xor eax, 0x3b68
mov dword [rsp + 0x20], eax
jmp 0x180008320
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x1800082e2
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x1b16
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008320
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1800082d7
mov eax, dword [rsp + 0x28]
add eax, 0xab
add rsp, 0x58
ret
Function at 0x180021590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
xor eax, 0x1b76
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x1b76
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x1b16
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x5b0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
add eax, 0x27d
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x334d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
add eax, 0xdbc
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0x900
cmp dword [rsp + 0x2c], eax
jg 0x1800217dd
mov eax, dword [rsp + 0x20]
xor eax, 0xbc0
cmp dword [rsp + 0x34], eax
jg 0x1800216ac
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
sub eax, 0xd2e
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x1800217dd
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x1800217dd
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x1800216e6
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x34bb
cmp dword [rsp + 0x24], eax
jae 0x1800217dd
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x180021729
mov eax, dword [rsp + 0x28]
add eax, 3
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x229b
cmp dword [rsp + 0x28], eax
jae 0x1800217d8
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x192e
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x18002171e
jmp 0x1800216db
mov eax, dword [rsp + 0x30]
sub eax, 0x5c4
add rsp, 0x68
ret
Function at 0x140006a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006aa0
cmp r11, r10
ja 0x140006b16
cmp r10, rdx
ja 0x140006b2a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140006aa2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006a80
jmp 0x140006b04
ja 0x140006aaa
mov r11, r10
cmp rax, r8
jne 0x140006a44
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006ae0
mov rdi, r8
sub ecx, edx
jns 0x140006afb
jmp 0x140006b06
cmp r8, rsi
je 0x140006b3b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006b06
xor al, 1
cmp rdi, rsi
jne 0x140006ac0
jmp 0x140006b06
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140019390
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140019120
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400191a0
ud2

Function at 0x14000b2f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140004040
cmp rax, rcx
je 0x14000b315
cmp rdx, 4
jae 0x14000b318
xor eax, eax
xor r8d, r8d
jmp 0x14000b3b0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001b4c0]
movdqa xmm3, xmmword [0x14001b4d0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000b340
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000b3c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000b3b0
ret
Function at 0x140014e40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
add byte [rax - 0x77], cl
xlatb
mov rsi, rcx
movups xmm0, xmmword [0x1400223c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
and al, 0x30
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor eax, eax
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140014eac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140014ebb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
invalid
jmp 0x140014ef3
cmp eax, 0x103
je 0x140014efd
test eax, eax
js 0x140014ed8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140014ef3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000f2e0
mov rcx, rax
call fcn.14000eb90
mov ecx, 7
int 0x29
ud2

Function at 0x140018b00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140018b4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018b4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018b4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018b4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140018b4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018b4c
xor al, al
add rsp, 0x28
ret
Function at 0x14000d0e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, edx
xor eax, eax
xor r8d, r8d
xor edx, edx
mov rbx, rcx
mov word [rsp + 0x20], ax
call fcn.14001ce94
mov rcx, rbx
call fcn.14001c980
test eax, eax
jne 0x14000d1da
nop
mov edx, 1
lea rcx, [rsp + 0x28]
mov r9, rbx
lea r8d, [rdx + 1]
call fcn.14001cd20
cmp rax, 2
jne 0x14000d1da
cmp byte [rsp + 0x28], 0xff
jne 0x14000d14e
cmp byte [rsp + 0x29], 0xd8
je 0x14000d1b8
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r8d, [rdx + 1]
call fcn.14001cd20
cmp rax, 2
jne 0x14000d1da
movzx ecx, word [rsp + 0x20]
rol cx, 8
cmp byte [rsp + 0x28], 0xff
mov word [rsp + 0x20], cx
jne 0x14000d188
movzx eax, byte [rsp + 0x29]
cmp eax, edi
je 0x14000d1ca
movzx edx, cx
mov r8d, 1
mov rcx, rbx
sub edx, 2
call fcn.14001ce94
test eax, eax
jne 0x14000d1da
mov rcx, rbx
call fcn.14001c980
test eax, eax
jne 0x14000d1da
mov rcx, rbx
call fcn.14001c9a8
test eax, eax
jne 0x14000d1da
mov rcx, rbx
call fcn.14001c980
test eax, eax
je 0x14000d120
jmp 0x14000d1da
mov rcx, rbx
call fcn.14001d21c
sub eax, 2
cmp eax, 2
ja 0x14000d1dc
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001bb50
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000f390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push r15
sub rsp, 0x50
mov r15, rcx
test rcx, rcx
jne 0x14000f3ac
xor eax, eax
add rsp, 0x50
pop r15
ret
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp word [rax + 0xe], 4
mov rbx, rax
je 0x14000f3d8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rbx, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x50
pop r15
ret
mov qword [rsp + 0x40], rsi
movsxd rsi, dword [rax + 4]
mov eax, dword [rax + 8]
cdq
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x28], r13
xor eax, edx
mov qword [rsp + 0x20], r14
sub eax, edx
movsxd r14, eax
lea eax, [rsi*4 + 0x1f]
shr eax, 5
shl eax, 2
mov qword [rsp + 0x68], rax
lea eax, [rsi + rsi*2]
lea eax, [rax*8 + 0x1f]
shr eax, 5
shl eax, 2
mov edi, eax
mov r13d, eax
imul rdi, r14
test rdi, rdi
je 0x14000f5b4
cmp rsi, 0xf3e58
ja 0x14000f5b4
cmp r14, 0xf3e58
ja 0x14000f5b4
xor edx, edx
mov rax, rdi
div r14
cmp rax, r13
jb 0x14000f5b4
movabs rax, 0x7ffffffffffffbd7
cmp rdi, rax
ja 0x14000f5b4
lea rdx, [rdi + 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14000f5b4
mov rcx, rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r12, [rdi - 1]
mov dword [rax], 0x28
mov dword [rax + 4], esi
mov dword [rax + 8], r14d
mov qword [rax + 0xc], 0x180001
mov dword [rax + 0x14], 0
mov ecx, dword [rbx + 0x18]
mov dword [rax + 0x18], ecx
mov ecx, dword [rbx + 0x1c]
mov qword [rax + 0x20], 0
mov dword [rax + 0x1c], ecx
mov ebp, dword [rbx + 0x20]
mov rdx, rax
add rbp, 0xa
lea r8, [rax + 0x28]
lea rbp, [rbx + rbp*4]
test r14, r14
je 0x14000f58f
mov r15, qword [rsp + 0x68]
lea rdi, [rsi + 1]
shr rdi, 1
xor esi, esi
nop word [rax + rax]
xor r10d, r10d
mov r11, rbp
mov rax, rsi
test rdi, rdi
je 0x14000f57b
nop
movzx r9d, byte [r11]
add rax, 3
lea r11, [r11 + 1]
movzx ecx, r9b
and r9b, 0xf
shr cl, 4
movzx edx, cl
movzx ecx, byte [rbx + rdx*4 + 0x28]
mov byte [rax + r8 - 3], cl
movzx ecx, byte [rbx + rdx*4 + 0x29]
mov byte [rax + r8 - 2], cl
movzx ecx, byte [rbx + rdx*4 + 0x2a]
mov byte [rax + r8 - 1], cl
cmp rax, r12
jae 0x14000f57b
movzx edx, r9b
inc r10
add rax, 3
movzx ecx, byte [rbx + rdx*4 + 0x28]
mov byte [rax + r8 - 3], cl
movzx ecx, byte [rbx + rdx*4 + 0x29]
mov byte [rax + r8 - 2], cl
movzx ecx, byte [rbx + rdx*4 + 0x2a]
mov byte [rax + r8 - 1], cl
cmp r10, rdi
jb 0x14000f510
add rbp, r15
add rsi, r13
dec r14
jne 0x14000f500
mov r15, qword [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
jmp 0x14000f5bf
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret