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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x40
mov qword [0x180047700], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.180019df0
mov r8d, ebx
mov edx, esi
mov rcx, rax
mov qword [0x180047708], rax
call fcn.18001a0a0
xor r15d, r15d
lea rbp, str._:_:_9_3_9_:_9:
mov eax, r15d
xor byte [rax + rbp], 0x3b
inc rax
cmp rax, 0x1000
jl 0x1800187b9
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180013f08
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013fb4
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180013fb4
mov rcx, qword [0x180047708]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180018870
dec edx
je 0x180018859
dec edx
jne 0x180018886
movsx rbx, ax
mov rcx, rbx
call fcn.180019df0
mov rdx, qword [0x180047708]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.180013f50
mov rcx, qword [0x180047708]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001a490
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013f18
mov rcx, qword [0x180047708]
mov dword [rdi + rcx + 8], eax
jmp 0x180018886
lea rcx, [rsp + 0x20]
call fcn.180013fb4
mov rdx, qword [0x180047708]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180013fb4
movzx edi, ax
test ax, ax
jg 0x1800187e0
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.18001a0a0

Function at 0x1800190e4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.18001925c
mov r8, qword [0x180043438]
test r8, r8
je 0x180019159
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x180019174
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x180043430], esi
lea ecx, [rsi + 0x26]
call fcn.18001873c
cmp ax, si
jne 0x1800191ae
mov rdx, rbx
mov rcx, rdi
call fcn.1800190e4
jmp 0x1800191c9
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
shr byte [rsp + rsi*2 + 0x60], 1
clc
std
mov edi, 0x3cccbdfb
xchg byte [rcx], dl
mov cl, 0xcc
mov ch, 0x73
jge 0x140020a38
xor byte [rsp + rdx*8 + 0x73], bh
invalid
sub esp, dword [rcx + rdx - 0x68]
mov dl, 0x97
mov al, byte [rbx - 0x7f]
pop rbx
invalid
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140028b90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140028b9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140028bad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140028b95
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140028bc5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140028bb2
sub eax, 3
jb 0x140028bdf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140028c16
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140028c06
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140028c04
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140028bf3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140028b52
jmp 0x140028b9d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf400
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140028c66
cmp rsi, rcx
jae 0x140028c6e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140028c4d
cmp al, 0x8f
ja 0x140028c4d
cmp byte [rsi - 2], 0xf
je 0x140028c53
sub al, 0xe8
cmp al, 1
ja 0x140028c37
cmp rsi, rcx
jae 0x140028c6e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140028c3d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140028c6e
lodsb al, byte [rsi]
jmp 0x140028c4d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25000]
mov eax, dword [rdi]
or eax, eax
je 0x140028ccb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x281e4]
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 0x140028c7b
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 0x140028cc5
mov qword [rbx], rax
add rbx, 8
jmp 0x140028c9b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140028d05
cmp al, 0xef
ja 0x140028cf7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140028cd7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140028ce6
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 + 0x22f]
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 0x140028d59
sub rsp, 0xffffffffffffff80
jmp 0x14000f0bc
Function at 0x14000fe20
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 0x14000feb0
cmp r11, r10
ja 0x14000ff26
cmp r10, rdx
ja 0x14000ff3a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000feb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000fe90
jmp 0x14000ff14
ja 0x14000feba
mov r11, r10
cmp rax, r8
jne 0x14000fe54
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 0x14000fef0
mov rdi, r8
sub ecx, edx
jns 0x14000ff0b
jmp 0x14000ff16
cmp r8, rsi
je 0x14000ff4b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000ff16
xor al, 1
cmp rdi, rsi
jne 0x14000fed0
jmp 0x14000ff16
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.140024190
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140023f60
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140023fd0
ud2

Function at 0x14001134e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14001143d
cmp eax, 0x1edab0ed
jne 0x140011376
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14001140e
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x140011410
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x1400113db
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.14001143d
cmp eax, esi
jne 0x1400113c9
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x14001142c
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x140011410
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usersmeow.cargogitcheckouts_rust_syscalls_37fffce23c87cda7162451a_src_syscall_resolve.rsH
mov rdx, rdi
call fcn.140023ef0
ud2
Function at 0x14001143d
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x140011479
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x140011458
inc r8
jmp 0x140011445
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140011453
ret

Function at 0x140014c30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000d190
cmp rax, rcx
je 0x140014c55
cmp rdx, 4
jae 0x140014c58
xor eax, eax
xor r8d, r8d
jmp 0x140014cf0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140026490]
movdqa xmm3, xmmword [0x1400264a0]
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 0x140014c80
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140014d07
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140014cf0
ret
Function at 0x140015c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140015cab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140015cab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140015cc6
cmp eax, 0x42
jne 0x140015cab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140015d76
cmp byte [r9 + r11], 0x5f
jne 0x140015d76
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140015dde
mov rcx, rsi
xor edx, edx
call fcn.140011690
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140011690
test al, al
jne 0x140015e71
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140015d02
lea rdx, [0x14002e05b]
mov r8d, 1
call fcn.14000d720
test al, al
jne 0x140015e71
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140015cba
xor r14d, r14d
lea rbx, [0x14002e410]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140015d34
cmp byte [rax + rcx], 0x45
je 0x140015e93
sub r14, 1
jb 0x140015d59
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140015d59
mov r8d, 2
mov rdx, rbx
call fcn.14000d720
test al, al
jne 0x140015e71
mov rcx, rsi
call fcn.140012ed0
test al, al
jne 0x140015e71
mov rax, qword [rsi]
test rax, rax
jne 0x140015d20
jmp 0x140015cba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140015e38
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140015dd2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140015dbc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140015dab
add dl, 0xa9
jmp 0x140015dba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140015e38
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140015e38
movzx edx, bl
add rax, rdx
jae 0x140015d80
jmp 0x140015e38
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140015e38
cmp rax, rcx
jae 0x140015e35
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140015e8b
cmp qword [rsi + 0x20], 0
je 0x140015e84
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140015c50
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140015cbc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140015e79
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14002e3d0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14000d720
test al, al
je 0x140015e79
mov dil, 2
jmp 0x140015cba
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140015cba
mov dil, 1
xor r8d, r8d
jmp 0x140015e3a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140015cba
Function at 0x140019680
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
invalid
invalid
invalid
mov rsi, rcx
test r9, r9
je 0x1400196d3
mov r14, r9
mov rdi, r8
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
xchg ebx, eax
retf 0
test rax, rax
je case.0x14001e74b.555
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140019700
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
enter 0xffffffffffffeb02, 0x12
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
invalid
jmp 0x1400196f0
movabs rax, 0x600000002
mov dword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
je 0x140019780
mov rbx, qword [rbp + 0x90]
movzx eax, byte [rbx + 4]
test rax, rax
je 0x1400197f4
cmp al, 3
ja 0x140019954
movzx ecx, byte [rdi]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
or byte [rdi], 0x85
or al, 1
add byte [rax], al
movups xmm0, xmmword [0x1400302e8]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
invalid
invalid
invalid
dec dword [rcx + 0x39]
invalid
cmovb rax, r14
invalid
invalid
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x11
adc dword [rsp + 0x38], eax
cmp r14, 0x1000
mov r8d, 0x1000
cmovb r8, r14
lea rcx, [rbp + 0x10]
mov rdx, rdi
call fcn.14000dfd0
cmp qword [rbp + 0x10], 0
je 0x1400198b1
mov r8, qword [rbp + 0x18]
test r8, r8
je 0x1400198c9
cmp r8, r14
ja 0x1400199eb
lea rbx, [rbp - 0x20]
mov rcx, rbx
mov rdx, rdi
call fcn.14000dfd0
mov rcx, rbx
call fcn.140019e70
mov r8, rax
mov r9, rdx
jmp 0x1400198b9
mov byte [rbx + 4], 0
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
jmp 0x1400196e5
mov r8, qword [rbp + 0x18]
mov r9, qword [rbp + 0x20]
mov rcx, rsi
mov rdx, r15
call fcn.140019c30
jmp 0x1400196f0
movzx eax, byte [rdi]
lea rcx, [0x140030534]
movzx ecx, byte [rax + rcx]
cmp rcx, 2
jb 0x14001993c
cmp rcx, r14
jbe 0x14001993c
mov byte [rbx], al
mov byte [rbx + 4], 1
jmp 0x14001992a
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, str.invalid_args
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rdx, str.library_std_src_syswindows_stdio.rs
lea rcx, [rbp - 0x20]
call fcn.140023e40
ud2
lea rax, str.library_std_src_syswindows_stdio.rs
mov rcx, r8
mov rdx, r14

Function at 0x140023964
Capabilities:
Parse pe header

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

Disassembly:
setle r8b
mov r8, qword [rsp + 0x40]
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x48]
call fcn.1411259eb
invalid
Function at 0x140015f84
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x5a0
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140015fd2
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x98
lea rbx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x5a8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x40000015
mov dword [rsp + 0x34], 1
jmp 0x140015fd6
or dword [rcx + 4], 1
test rdi, rdi
jne 0x14001600c
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x4d0
lea rdi, [rsp + 0xd0]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov edx, dword [rbx]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x5c0]
add rsp, 0x5a0
pop rdi
ret
Function at 0x140016f28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401652a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
xor eax, eax
mov rbx, rcx
mov esi, edi
mov r10d, edi
or rbp, 0xffffffffffffffff
lea r14d, [rdi + 1]
mov r11d, r14d
lock cmpxchg qword [rcx + 0xfbc0], r14
jmp 0x140016f88
cmp rcx, rbp
lea rax, [rcx + 1]
cmove rax, r11
cmove rcx, r10
mov r11, rax
mov r10, rcx
mov rax, rcx
lock cmpxchg qword [rbx + 0xfbc0], r11
cmp rax, rcx
mov rcx, rax
jne 0x140016f64
inc r8
jmp 0x140016f9f
cmp byte [rbx + rdx + 0xfc00], dil
je 0x140016fa7
add rdx, r14
cmp rdx, r8
jb 0x140016f92
mov rdx, rbp
cmp rdx, rbp
je 0x140016fd9
lea rax, [rdx + 1]
lea rcx, [r9 - 1]
add rcx, rax
jmp 0x140016fc6
cmp byte [rbx + rax + 0xfc00], dil
jne 0x140016fce
add rax, r14
cmp rax, rcx
jb 0x140016fb9
mov rax, rbp
cmp rax, rbp
je 0x140016fd9
lea rdx, [rax + 1]
jmp 0x140016f9f
lock add qword [rbx + 0xfbc0], rbp
cmp rdx, rbp
je 0x1400170d2
xor eax, eax
lock cmpxchg qword [rbx + 0xfbc0], rbp
jne 0x140016fea
lea rcx, [r9 + rdx]
mov rax, rdx
cmp rdx, rcx
jae 0x140017015
cmp byte [rbx + rax + 0xfc00], dil
jne 0x140017018
add rax, r14
cmp rax, rcx
jb 0x140017003
mov rax, rbp
cmp rax, rbp
jne 0x1400170cb
mov rsi, rdx
shl rsi, 6
add rsi, rbx
test r9, r9
je 0x14001704e
lea rcx, [rbx + 0xfc00]
add rcx, rdx
lea rax, [r9 - 1]
test rax, rax
je 0x14001704e
mov byte [rcx], 2
add rcx, r14
sub rax, r14
jne 0x140017043
lea rax, [r9 + rbx]
mov byte [rax + rdx + 0xfbff], r14b
cmp dword [rbx + 0xfbc8], edi
jne 0x1400170cb
mov dl, r14b
lea rcx, [rsp + 0x40]
call fcn.1400160a4
lea r9, [rsp + 0x34]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
mov dword [rbx + 0xfbc8], r14d
cmp byte [rsp + 0x50], dil
je 0x1400170cb
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov r9d, 4
lea r8, [rsp + 0x30]
mov rcx, rax
mov rax, qword [0x140165a58]
lea edx, [r9 - 2]
call qword [0x14008a7b8]
xchg qword [rbx + 0xfbc0], rdi
mov rax, rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003b560
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003b98c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003b9d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003b9d0
cmp dword [rcx + 0x3c], edx
jl 0x14003b9d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003b9d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003b9d8
mov rax, rdx
add rsp, 0x18
ret