joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001350
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp byte [0x1400155eb], 0
xorps xmm0, xmm0
mov eax, dword [0x1400155e8]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [0x1400155d8]
movups xmmword [rsp + 0x30], xmm0
je 0x14000154f
xor ecx, ecx
cmp dword [0x140022018], 2
jl 0x140001513
movdqa xmm0, xmmword [str.3333333333333333]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14001f820]
mov eax, 5
movdqa xmm4, xmmword [0x14001f8c0]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x14001f840]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14001f870]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14001f870]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400013f0
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x14
jge 0x14000154f
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x140001520
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400049b0
add rsp, 0xb8
ret
Function at 0x1400067f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14005d738]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x1400068c7
mov rax, qword [rdi]
test rax, rax
je 0x140006885
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140006885
test rsi, rsi
je 0x140006885
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140006885
cmp dword [rsp + 0x30], ebx
je 0x1400068c7
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1400068a4
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x1400068a4
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x1400068c9
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013bd0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.140013bf0
lea rcx, [0x14000bee0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140013b90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400136dd
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013bd0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14001461c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014666
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014666
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014666
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014666
cmp dword [rcx + 0x84], 0xe
jbe 0x140014666
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014668
xor al, al
add rsp, 0x28
ret
Function at 0x140002090
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
invalid
invalid
invalid
Function at 0x180290c9e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
bts r10, r9
mov qword [rsp + 0x10], rdi
movzx r9, cx
sub edi, edi
movzx ebx, r8b
xchg r10b, r8b
movzx r8d, r14w
movsx r8d, r8w
mov r11, rcx
movsxd r9, r12d
movzx r10, r8w
movzx r10w, r15b
mov r8, rdi
not r9w
nop
setb r10b
not r9
movsx r9w, r15b
movzx r9d, byte [r11]
movzx r10d, bp
movzx r10d, byte [rdx]
jmp 0x180290cf5
inc r11
inc rdx
test bl, bl
jmp 0x180290d02
je 0x180290d3b
mov ecx, r8d
rol eax, 0x87
bts ax, r13w
jmp 0x180290d18
mov eax, 0x5cef5d23
cmc
rol eax, cl
cmc
add al, r8b
cmp r10d, 0x70391aa4
cmc
cmp r8d, ebp
xor r9b, al
inc r8
jmp 0x180290d3b
test r9b, r9b
je 0x180290d52
cmp r9b, r10b
jmp 0x180290d4c
je 0x180290ce4
cmp r9b, r10b
jmp 0x180290d5a
jae 0x180290d7c
or eax, 0xffffffff
movzx rbx, r14w
mov rbx, qword [rsp + 8]
mov edi, 0x365514c8
mov rdi, qword [rsp + 0x10]
jmp 0x180290d7b
ret
mov rbx, qword [rsp + 8]
seta dil
movzx ax, dh
movsx rax, r8w
mov eax, edi
mov rdi, qword [rsp + 0x10]
jmp 0x180290d99
ret
Function at 0x140532880
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14053288d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14053289d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140532885
lea eax, [rcx + 1]
jmp 0x1405328ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1405328be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1405328a4
sub eax, 3
jb 0x1405328de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14053292d
sar eax, 1
movsxd rbp, eax
jb 0x140532914
jmp 0x1405328ec
add ebx, ebx
jne 0x1405328ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140532914
inc ecx
add ebx, ebx
jne 0x1405328fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140532914
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14053290d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1405328fc
add ecx, 2
jmp 0x140532919
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140532842
jmp 0x14053288d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8d800
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140532979
cmp rsi, rcx
jae 0x140532981
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140532960
cmp al, 0x8f
ja 0x140532960
cmp byte [rsi - 2], 0xf
je 0x140532966
sub al, 0xe8
cmp al, 1
ja 0x14053294a
cmp rsi, rcx
jae 0x140532981
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140532950
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140532981
lodsb al, byte [rsi]
jmp 0x140532960
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x52e000]
mov eax, dword [rdi]
or eax, eax
je 0x1405329ea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x543138]
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 0x14053298e
jns 0x1405329c3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1405329cd
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 0x1405329e4
mov qword [rbx], rax
add rbx, 8
jmp 0x1405329ae
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140532a42
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x140002c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004680
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004680
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e00
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002da5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d00
mov rcx, rbx
call fcn.140003720
mov rdi, rax
test rax, rax
je 0x140002e22
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003860
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002db0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c60
nop dword [rax]
xor esi, esi
jmp 0x140002d28
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400033ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033e3
test rsi, rsi
je 0x1400033e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003720
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003740
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000379d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003740
add rax, 0x28
cmp rax, r9
jne 0x140003780
xor eax, eax
ret

Function at 0x1400037a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400037bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400037c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400037bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000387f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003888
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003e90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x140003f30
jmp 0x140003f1f
jae 0x140003fee
cmp r8, 0x201
jae 0x140003f30
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x140003f87
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x140003f5f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.14001c3b0
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x140003faf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004056
mov r8d, r15d
cmp rsi, r8
jne 0x140003f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004079
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x140003f1f
jmp 0x140003f30
cmp r14, r8
jb 0x140004093
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.1400067b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x14000403f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.1400010e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x140004027
jmp 0x14000403f
lea rcx, [0x14001e773]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001cfd0
jmp 0x1400040a8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001d3c0
ud2
Function at 0x1400070a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400070d3
test ecx, ecx
jne 0x140007122
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400070e0
test ecx, ecx
jne 0x140007122
mov rcx, rdi
call fcn.140006f80
movzx r10d, al
test bl, bl
jne 0x140007129
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140007116.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14000729c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140007116.2
xor r10d, r10d
test bl, bl
je 0x1400070f0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000727e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14000715b
xor edi, edi
jmp 0x1400071d8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400071a0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1400071bb
inc rsi
dec rax
cmp rsi, 1
jne 0x140007180
jmp 0x1400071d8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1400071bb
cmp ebx, 0x5c
je 0x1400071bb
inc rsi
dec rax
cmp rsi, 1
jne 0x1400071a0
jmp 0x1400071d8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14000728c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140007202
mov al, 9
cmp rdx, 2
je 0x140007206
cmp rdx, 1
jne 0x140007216
cmp byte [r9], 0x2e
jne 0x140007216
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140007216
mov al, 0xa
jmp 0x140007216
cmp byte [r9], 0x2e
jne 0x140007216
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140007116.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140007116.2
mov esi, 2
jmp case.0x140007116.2
lea r8, str.library_std_srcpath.rs
call fcn.14001d3b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001d3b0
ud2
Function at 0x14001a230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a2aa
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14001a2a0
cmp r10, rax
jb 0x14001a33d
cmp r10, rdx
ja 0x14001a351
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001a2a2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14001a280
jmp 0x14001a312
ja 0x14001a2aa
mov rax, r10
cmp r11, r8
jne 0x14001a250
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a316
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x14001a2f0
mov rsi, rbx
sub ecx, edi
jns 0x14001a309
jmp 0x14001a318
cmp rbx, rdx
je 0x14001a323
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x14001a318
xor al, 1
cmp rsi, rdx
jne 0x14001a2d0
jmp 0x14001a318
xor eax, eax
jmp 0x14001a318
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001cfd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.14001d3d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d3c0
ud2

Function at 0x14001be04
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012cd0
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 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014020
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014040
xor al, al
jmp 0x1400140c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014053
xor al, al
jmp 0x1400140c1
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 0x14001407d
xor al, al
jmp 0x1400140c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014091
xor al, al
jmp 0x1400140c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140a3
xor al, al
jmp 0x1400140c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140bf
xor al, al
jmp 0x1400140c1
mov al, 1
add rsp, 0x38
ret