joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019010
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x140019050
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400190f0
jmp 0x1400190df
jae 0x1400191af
cmp r8, 0x201
jae 0x1400190f0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140019147
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14001911f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140032fd0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140019170
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001921b
mov r8d, r13d
cmp r12, r8
jne 0x1400190d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001924f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400190df
jmp 0x1400190f0
cmp r14, r8
jb 0x140019269
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14001bb20
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140019204
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400022e0
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400191ef
jmp 0x140019204
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140033cf0
jmp 0x14001927e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400340a0
ud2
Function at 0x140020b50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14017fc28]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140020b88
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140020be6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140020c13
test eax, eax
js 0x140020bf2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140020c09
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14001b850
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400175f0
mov ecx, 7
int 0x29
ud2

Function at 0x1400218c0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
invalid
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14018e181]
add eax, 0x16c89a
mov ecx, 0x10
mov edx, 8
call fcn.1400022d0
dec dword [rax - 0x7b]
ror byte [rdi], 0x84
lodsb al, byte [rsi]
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
add bh, al
and al, 0x20
add byte [rax], al
add dword [rax], eax
lea r8, case.0x14001c7d7.417
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
invalid
jne 0x14002199d
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
add byte [rax - 0x7b], cl
invalid
je 0x14002195a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140021974
mov r8, qword [rax + 0x10]
call fcn.1400022e0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x20]
loopne 0x14002196c
pop rax
or esi, edi
invalid
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
or edx, 2
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x18], edi
mov ecx, 8
mov edx, 0x10
call fcn.140033b20
add dword [rax], eax
ud2
Function at 0x14002e350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002e3da
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x14002e3d0
cmp r11, r10
ja 0x14002e456
cmp r10, rdx
ja 0x14002e468
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002e3d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002e3b0
jmp 0x14002e437
ja 0x14002e3da
mov r11, r10
cmp rax, r8
jne 0x14002e377
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002e43b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002e410
mov r8, r10
sub ecx, r9d
jns 0x14002e42e
jmp 0x14002e43d
cmp r10, rdx
je 0x14002e44a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002e43d
xor al, 1
cmp r8, rdx
jne 0x14002e3f0
jmp 0x14002e43d
xor eax, eax
jmp 0x14002e43d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140033bb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140034110
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400340a0
int3

Function at 0x14002fd78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002fdc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002fdc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002fdc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002fdc2
cmp dword [rcx + 0x84], 0xe
jbe 0x14002fdc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002fdc4
xor al, al
add rsp, 0x28
ret
Function at 0x446940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x446ac6
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x446a92
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x10], ecx
mov qword [rsp], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], 0
movzx ebx, byte [rsp + 0x70]
mov byte [rsp + 0x28], bl
call fcn.004461b0
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x58]
mov edx, dword [rcx + 0x1c]
mov dword [rsp + 0x10], edx
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], 0
movzx edx, byte [rsp + 0x70]
mov byte [rsp + 0x28], dl
call fcn.004461b0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x446a2d
lea rax, [0x008369b7]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
mov dword [rsp + 0x88], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
cmp eax, 0xffffffff
je 0x446a00
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rdx + 0x38]
mov rsi, qword [rdx + 0x30]
cmp rcx, rbx
jge 0x446a00
mov rbx, qword [rdx + 8]
mov rdx, qword [rdx]
jae 0x446abf
mov ecx, dword [rsi + rcx*4]
cmp rcx, rbx
jae 0x446abf
mov dword [rsp + 0x3c], eax
lea rax, [rdx + rcx]
mov qword [rsp], rax
call fcn.00444420
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x88], eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
lea rax, [0x008369b7]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
mov dword [rsp + 0x88], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.0042b1c0
ud2
call fcn.00454950
jmp fcn.00446940
Function at 0x446b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x446cb2
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x10], ecx
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rdx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.004461b0
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x446bd2
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.00446750
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x50], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x48], rdx
call fcn.0042d330
lea rax, [0x0083d06e]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.0042dcd0
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 8], rax
call fcn.0042dcd0
call fcn.0042d580
mov rax, qword [rsp + 0x50]
mov qword [rsp], rax
call fcn.0042db70
call fcn.0042d580
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.0042db70
call fcn.0042d580
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.0042db70
call fcn.0042d580
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.0042db00
call fcn.0042d5d0
call fcn.0042d3c0
mov eax, dword [rsp + 0x3c]
jmp 0x446bc1
call fcn.00454950
jmp fcn.00446b50

Function at 0x4474a0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x23c]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
lea rdx, [rcx + 0x130]
test byte [rdx], al
mov rdx, rax
mov qword [rcx + 0x130], rax
lea rax, [rdx + 0xd8]
test byte [rax], al
mov rax, qword [rdx + 0x30]
mov qword [rdx + 0xd8], rax
mov dword [rsp], 0
lea rax, fcn.00436cc0
mov qword [rsp + 8], rax
call fcn.0042b630
test eax, eax
jne 0x4475d2
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x18], rax
lea rcx, [rax + 0x2c8]
test byte [rcx], al
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x2c8], rdx
mov rdx, qword [rsp + 0x38]
mov qword [rax + 0x2d0], rdx
lea rdx, [rsp + 0x40]
mov qword [rax + 0x2d8], rdx
mov rdx, qword [0x00b76150]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call fcn.00403c70
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax + 0x2e0]
mov rdx, qword [rax + 0x2e8]
mov rax, qword [rax + 0x2f0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
nop
call fcn.0042bef0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
nop
call fcn.0042bef0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x44de70
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44df50
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x004542a0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00454800
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00454950
jmp fcn.0044de70
Function at 0x462bf0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x462cfa
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 8]
lea rbx, [rdx + 0x2e]
neg rbx
imul rbx, rbx, 0x1c
movabs rax, 0x5816058160581606
mov rsi, rdx
imul rbx
sar rbx, 0x3f
sar rdx, 5
sub rdx, rbx
lea rbx, [rdx + 0x15c]
sar rbx, 0x3f
shr rbx, 0x3d
lea rdx, [rbx + rdx + 0x15c]
sar rdx, 3
jmp 0x462c67
mov rdx, rax
cmp rdx, 0x57
jae 0x462cf3
lea rax, [rdx + rdx*2]
lea rbx, [0x00b48f40]
mov rdi, qword [rbx + rax*8 + 8]
lea r8, [rsi + rdi + 0x40]
cmp r8, 0xffffffffffffffc4
jge 0x462c92
lea rax, [rdx + 1]
jmp 0x462c64
cmp r8, 0xffffffffffffffe0
jle 0x462c9e
lea rax, [rdx - 1]
jmp 0x462c64
mov qword [rsp + 0x20], rdx
mov rdx, rax
shl rax, 3
mov rdx, qword [rbx + rdx*8]
movzx eax, byte [rbx + rax + 0x10]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdi
mov byte [rsp + 0x18], al
mov qword [rsp], rcx
call fcn.00462810
mov rax, qword [rsp + 0x20]
mov rcx, rax
shl rax, 3
add rax, 0xfffffffffffffea4
neg rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
call fcn.0042b1c0
ud2
call fcn.00454950
jmp fcn.00462bf0
Function at 0x536730
Capabilities:
Encrypt data using des

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x53686c
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
lea rbp, [rsp + 0x40]
xor eax, eax
jmp 0x53684c
mov rbx, qword [rsp + 0x28]
mov r8, rbx
shl rbx, 8
lea r9, [0x00b950c0]
add rbx, r9
mov dword [rbx + rdx*4], eax
lea rdx, [rdi + 1]
mov rax, r8
mov rcx, rsi
cmp rdx, 0x10
jge 0x536834
mov qword [rsp + 0x30], rdx
mov rbx, rax
shl rax, 6
shl rcx, 4
lea rdi, [0x00b3f120]
add rax, rdi
add rax, rcx
movzx eax, byte [rax + rdx]
lea rcx, [rbx - 7]
neg rcx
shl rcx, 2
shl rax, cl
cmp rcx, 0x40
sbb r8, r8
and rax, r8
mov qword [rsp], rax
lea rax, [0x00b38260]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x20
mov qword [rsp + 0x18], 0x20
call fcn.005366d0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rbx, rdx
and rdx, 2
shl rdx, 4
mov rsi, rbx
and rbx, 1
or rdx, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, rbx
shl rbx, 1
or edx, ebx
mov rbx, rax
shl rax, 1
shr rbx, 0x1f
or rax, rbx
movzx edx, dl
cmp rdx, 0x40
jb 0x53675f
jmp 0x536865
inc rcx
cmp rcx, 4
jge 0x536849
mov qword [rsp + 0x38], rcx
xor edx, edx
jmp 0x536782
inc rax
cmp rax, 8
jge 0x53685b
mov qword [rsp + 0x28], rax
xor ecx, ecx
jmp 0x536837
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
call fcn.0042b1c0
ud2
call fcn.00454950
jmp fcn.00536730
Function at 0x141540968
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141540972
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14154099b
pop rbp
sub rbp, 0x33
sub rbp, 0x1540968
sub rsp, 0x20
jmp 0x1415409ba
mov rax, 0x1540968
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff94fa7655
xor byte [rax], dl
inc rax
dec rcx
jne 0x1415409d9
jmp 0x1415409f0
sbb eax, 0xdcdebcdc
imul edx, dword [rbp + 0x55], 0x94d41d55
pop rbp
push rsp
push rbp
push rbp
sbb eax, 0x921dbc54
xchg ebp, eax
pop rsp
push rbp
push rbp
push rbp
sbb eax, 0x557d9792
push rbp
push rbp
sbb eax, 0x541db7a2
xchg esp, eax
invalid
Function at 0x18004a1d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1800af618]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18004a21f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18004a327
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.18004efa0
mov r9d, 0x30
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x18004a264
xor eax, eax
jmp 0x18004a327
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18004a296
xor eax, eax
jmp 0x18004a327
movzx eax, word [rsp + 0x40]
cmp eax, 0x5a4d
jne 0x18004a2ba
mov eax, dword [rsp + 0x7c]
cmp rax, qword [rsp + 0x98]
ja 0x18004a2ba
mov eax, dword [rsp + 0x7c]
cmp rax, 0x40
jae 0x18004a2c9
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18004a327
movsxd rax, dword [rsp + 0x7c]
mov rdx, qword [rsp + 0x30]
add rdx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18004a303
xor eax, eax
jmp 0x18004a327
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0x4550
je 0x18004a322
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18004a327
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18004d440
add rsp, 0xc8
ret
Function at 0x18004bc40
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov eax, dword [rsp + 0xc8]
or eax, 4
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0xf8], 0
jne 0x18004bc83
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0xf8]
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0xe8], 0
je 0x18004bd15
mov r8d, 0x18
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xe8]
call fcn.18004e8f0
cmp dword [rsp + 0x68], 0
jne 0x18004bd23
xor eax, eax
jmp 0x18004bdab
mov dword [rsp + 0x88], 0
cmp qword [rsp + 0xf0], 0
je 0x18004bd5e
mov ecx, dword [rsp + 0x88]
mov rax, qword [rsp + 0xf0]
mov qword [rsp + rcx*8 + 0x58], rax
mov eax, dword [rsp + 0x88]
add eax, 1
mov dword [rsp + 0x88], eax
mov r8d, dword [rsp + 0x88]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.180049fa0
test eax, eax
jne 0x18004bd8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18004bdab
mov eax, dword [rsp + 0xc8]
and eax, 4
test eax, eax
jne 0x18004bda6
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x98
ret
Function at 0x1800021a0
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov edi, r8d
mov r13, r9
xor edx, edx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
call qword [sym.imp.advapi32.dll_CredEnumerateW]
test eax, eax
je 0x180002289
mov r8d, dword [rsp + 0x44]
mov r11, qword [rsp + 0x48]
test r8d, r8d
je 0x180002280
mov r12, qword [sym.imp.kernel32.dll_lstrcmpW]
xor ebx, ebx
lea rbp, [0x1800070c0]
lea r15, str.no_support_for_type__lu_credentials_n
jmp 0x180002232
cmp word [rsi], 0
mov rax, qword [rdx + 0x48]
je 0x1800022ac
mov rdx, rax
mov rcx, rsi
call r12
test eax, eax
je 0x1800022a0
mov r8d, dword [rsp + 0x44]
mov r11, qword [rsp + 0x48]
add rbx, 1
cmp ebx, r8d
jae 0x180002280
lea r14, [rbx*8]
lea r9, [r11 + r14]
mov rdx, qword [r9]
mov eax, dword [rdx + 4]
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x180002200
test byte [rbp], 1
je 0x180002229
mov dword [rsp + 0x20], eax
lea r8, str.find_existing_credential
mov r9, r15
xor ecx, ecx
mov rdx, rbp
add rbx, 1
call sym.wine_dbg_log.constprop.0
mov r8d, dword [rsp + 0x44]
mov r11, qword [rsp + 0x48]
cmp ebx, r8d
jb 0x180002232
nop dword [rax]
mov rcx, r11
call qword [sym.imp.advapi32.dll_CredFree]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r11, qword [rsp + 0x48]
lea r9, [r11 + r14]
mov rdx, qword [r9]
mov rcx, qword [rdx + 0x48]
cmp word [rcx], 0
je 0x1800022f0
mov rax, rcx
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x1800022c0
sub rax, rcx
sar rax, 1
cmp eax, edi
jae 0x1800022e2
mov eax, dword [rdx + 0x20]
shr eax, 1
cmp eax, dword [rsp + 0xc0]
jb 0x1800022f4
mov r8d, dword [rsp + 0x44]
jmp 0x180002229
xor eax, eax
jmp 0x1800022d0
test byte [0x1800070c0], 8
jne 0x180002358
xor eax, eax
nop
movzx edx, word [rcx + rax]
mov word [rsi + rax], dx
add rax, 2
test dx, dx
jne 0x180002300
mov rax, qword [r9]
mov rcx, r13
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r9
mov rdx, qword [rax + 0x28]
mov r8d, dword [rax + 0x20]
call sym.memcpy
mov r9, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [r9]
mov eax, dword [rax + 0x20]
shr eax, 1
mov word [r13 + rax*2], dx
call qword [sym.imp.advapi32.dll_CredFree]
mov eax, 1
jmp 0x18000228b
call sym.wine_dbgstr_wn.constprop.0
lea r9, str.found_existing_credential_for__s_n
mov ecx, 3
lea r8, str.find_existing_credential
mov qword [rsp + 0x20], rax
lea rdx, [0x1800070c0]
call sym.wine_dbg_log.constprop.1
mov r11, qword [rsp + 0x48]
lea r9, [r11 + r14]
mov rax, qword [r9]
mov rcx, qword [rax + 0x48]
jmp 0x1800022fd