joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140141fb0
Capabilities:
Suspend thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbx, qword [rcx]
mov r15, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, qword [rcx + 8]
je 0x1401420d2
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rdi
xor ebp, ebp
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x4c8
mov qword [rsp + 0x20], rbp
call fcn.1402bfa30
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1401420b9
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rbp
sub rdx, rax
sar rdx, 3
test rdx, rdx
je 0x140142092
mov r8, qword [rsp + 0x118]
nop dword [rax]
cmp r8, qword [rax]
je 0x140142083
inc rcx
add rax, 8
cmp rcx, rdx
jb 0x140142070
jmp 0x140142092
mov rax, qword [r15]
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x118], rcx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
cmp rbx, qword [r14 + 8]
jne 0x140142000
jmp 0x1401420c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x520]
mov rdi, qword [rsp + 0x528]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x530]
add rsp, 0x500
pop r15
pop r14
pop rsi
ret
Function at 0x140142d10
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x5a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov rsi, rcx
xor ebx, ebx
movsd xmm0, qword [0x140345f80]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [0x140345f88]
mov dword [rsp + 0x60], eax
movzx eax, word [0x140345f8c]
mov word [rsp + 0x64], ax
mov edx, 0x104
lea rcx, [r11 - 0x438]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [rsp + 0x170]
mov word [rsp + 0x60], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100081
lea r8d, [rbx + 3]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140142e4c
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140142e43
cmp dword [rsp + 0x40], 0x20
jb 0x140142e43
mov r9d, dword [rsp + 0x78]
lea r8, str.DosDevicesPhysicalDrive_d
mov edx, 0x104
lea rcx, [rsp + 0x380]
call fcn.1402ba928
mov ecx, 0x2a8
call fcn.1402b6dbc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140142e43
mov r8, rsi
lea rdx, [rsp + 0x380]
mov rcx, rax
call fcn.140142a20
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140143c00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rdi, rdx
xor dl, dl
or rbx, 0xffffffffffffffff
mov r9, r8
mov dword [rsp + 0x20], esi
mov rax, rbx
inc rax
cmp word [r8 + rax*2], si
jne 0x140143c32
mov r8, rsi
movsxd r10, eax
test eax, eax
jle 0x140143d15
lea rax, [rsp + 0x30]
mov r11, r9
mov qword [rsp + 0x270], rbp
sub r11, rax
mov ebp, 1
nop dword [rax]
nop word [rax + rax]
lea rax, [r11 + r8*2]
movzx edx, dl
movzx ecx, word [rsp + rax + 0x30]
movzx eax, cx
xor ax, 0x33
cmp cx, 0x40
cmove edx, ebp
mov word [rsp + r8*2 + 0x30], ax
inc r8
cmp r8, r10
jl 0x140143c70
mov rbp, qword [rsp + 0x270]
test dl, dl
je 0x140143d15
add r10, r10
cmp r10, 0x208
jae 0x140143d3e
mov word [rsp + r10 + 0x30], si
lea rax, [rsp + 0x30]
nop
inc rbx
cmp word [rax + rbx*2], si
jne 0x140143cc0
mov qword [rdi + 8], rsi
test ebx, ebx
jne 0x140143ce7
lea rax, [0x140346ce0]
mov edx, ebx
mov rcx, rdi
mov qword [rdi], rax
call fcn.1401fde50
jmp 0x140143d20
mov edx, ebx
mov rcx, rdi
call fcn.1401fcb40
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
inc ecx
movsxd r9, ebx
movsxd rdx, ecx
mov rcx, qword [rdi]
call fcn.1402ba94c
mov edx, ebx
mov rcx, rdi
call fcn.1401fde50
jmp 0x140143d20
mov rdx, r9
mov rcx, rdi
call fcn.1401faae0
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
call fcn.1402b8d20
int3

Function at 0x140143d50
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r14d, r14d
mov qword [r11 + 8], rbp
mov rsi, rdx
mov ebx, r14d
mov rbp, r8
mov dword [rsp + 0x20], r14d
cmp dword [r8 + 0xc], ebx
jle 0x140143db9
mov qword [r11 + 0x20], rdi
lea rdi, [rsp + 0x30]
mov edx, ebx
mov rcx, rbp
call fcn.1401fb010
inc ebx
lea rdi, [rdi + 2]
xor ax, 0x33
mov word [rdi - 2], ax
cmp ebx, dword [rbp + 0xc]
jl 0x140143d94
mov rdi, qword [rsp + 0x288]
movsxd rax, dword [rbp + 0xc]
mov rbp, qword [rsp + 0x270]
add rax, rax
cmp rax, 0x208
jae 0x140143e49
mov word [rsp + rax + 0x30], r14w
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
nop
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140143de0
mov qword [rsi + 8], r14
test ebx, ebx
jne 0x140143dfe
lea rax, [0x140346ce0]
mov qword [rsi], rax
jmp 0x140143e20
mov edx, ebx
mov rcx, rsi
call fcn.1401fcb40
mov ecx, dword [rsi + 8]
lea r8, [rsp + 0x30]
inc ecx
movsxd r9, ebx
movsxd rdx, ecx
mov rcx, qword [rsi]
call fcn.1402ba94c
mov edx, ebx
mov rcx, rsi
call fcn.1401fde50
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x250
pop r14
pop rsi
pop rbx
ret
call fcn.1402b8d20
int3
Function at 0x140146cb0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rsi, edx
mov r10d, r8d
mov r11d, r8d
mov eax, esi
mov rdi, rcx
movabs rbp, 0x87c37b91114253d5
cdq
movabs r14, 0x4cf5ad432745937f
and edx, 0xf
add eax, edx
sar eax, 4
movsxd rbx, eax
mov r8, rbx
test eax, eax
jle 0x140146d55
lea rdx, [rcx + 8]
nop
mov rax, qword [rcx]
lea rcx, [rcx + 0x10]
lea rdx, [rdx + 0x10]
imul rax, rbp
rol rax, 0x1f
imul rax, r14
xor rax, r10
rol rax, 0x1b
add rax, r11
lea r10, [rax*4 + 0x52dce729]
add r10, rax
mov rax, qword [rdx - 0x10]
imul rax, r14
rol rax, 0x21
imul rax, rbp
xor rax, r11
rol rax, 0x1f
add rax, 0xb41def1
add rax, r10
lea r11, [rax + rax*4]
dec r8
jne 0x140146d00
shl ebx, 4
xor eax, eax
mov ecx, esi
and ecx, 0xf
movsxd r8, ebx
add r8, rdi
dec ecx
cmp ecx, 0xe
ja case.default.0x140146d84
lea rbx, [0x140000000]
movsxd rcx, ecx
mov edx, dword [rbx + rcx*4 + 0x146ee0]
add rdx, rbx
jmp rdx
movzx eax, byte [r8 + 0xe]
shl rax, 0x30
movzx ecx, byte [r8 + 0xd]
shl rcx, 0x28
xor rax, rcx
movzx ecx, byte [r8 + 0xc]
shl rcx, 0x20
xor rax, rcx
movzx ecx, byte [r8 + 0xb]
shl rcx, 0x18
xor rax, rcx
movzx ecx, byte [r8 + 0xa]
shl rcx, 0x10
xor rax, rcx
movzx ecx, byte [r8 + 9]
shl rcx, 8
xor rax, rcx
movzx ecx, byte [r8 + 8]
xor rcx, rax
imul rcx, r14
rol rcx, 0x21
imul rcx, rbp
xor r11, rcx
movzx eax, byte [r8 + 7]
shl rax, 0x38
movzx ecx, byte [r8 + 6]
shl rcx, 0x30
xor rax, rcx
movzx ecx, byte [r8 + 5]
shl rcx, 0x28
xor rax, rcx
movzx ecx, byte [r8 + 4]
shl rcx, 0x20
xor rax, rcx
movzx ecx, byte [r8 + 3]
shl rcx, 0x18
xor rax, rcx
movzx ecx, byte [r8 + 2]
shl rcx, 0x10
xor rax, rcx
movzx ecx, byte [r8 + 1]
shl rcx, 8
xor rax, rcx
movzx ecx, byte [r8]
xor rcx, rax
imul rcx, rbp
rol rcx, 0x1f
imul rcx, r14
xor r10, rcx
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
xor r11, rsi
mov rcx, rsi
mov rsi, qword [rsp + 0x20]
xor rcx, r10
movabs r10, 0xff51afd7ed558ccd
movabs r8, 0xc4ceb9fe1a85ec53
add rcx, r11
mov rax, rcx
shr rax, 0x21
xor rax, rcx
imul rax, r10
mov rdx, rax
shr rdx, 0x21
xor rdx, rax
lea rax, [r11 + rcx]
mov rcx, rax
shr rcx, 0x21
xor rcx, rax
imul rdx, r8
imul rcx, r10
mov rax, rcx
shr rax, 0x21
xor rax, rcx
imul rax, r8
mov rcx, rax
shr rcx, 0x21
xor rcx, rax
mov rax, rdx
shr rax, 0x21
xor rax, rdx
add rax, rcx
mov qword [r9], rax
add rax, rcx
mov qword [r9 + 8], rax
pop r14
ret
Function at 0x140146f20
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov r8d, edx
mov r9, rcx
xor r8d, 0x3b2e0fe0
cmp edx, 4
jl 0x140146f68
mov r10d, edx
shr r10, 2
mov eax, r10d
neg eax
lea edx, [rdx + rax*4]
imul eax, dword [r9], 0x5bd1e995
imul r8d, r8d, 0x5bd1e995
add r9, 4
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r8d, ecx
dec r10
jne 0x140146f41
dec edx
je 0x140146f8a
dec edx
je 0x140146f7f
dec edx
jne 0x140146f98
movzx eax, byte [r9 + 2]
shl eax, 0x10
xor r8d, eax
movzx eax, byte [r9 + 1]
shl eax, 8
xor r8d, eax
movzx eax, byte [r9]
xor eax, r8d
imul r8d, eax, 0x5bd1e995
mov eax, r8d
shr eax, 0xd
xor eax, r8d
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x140146fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov r12d, edx
mov rdi, rcx
movzx r8d, word [rax + rcx + 6]
test r8d, r8d
jle 0x140147080
mov r15d, dword [rax + rcx + 0x88]
lea r14, [rcx + 0x114]
xor ebp, ebp
add r14, rax
mov eax, r8d
mov qword [rsp + 0x60], r8
nop dword [rax]
mov ecx, dword [r14]
cmp r15d, ecx
jb 0x140147074
add ecx, dword [r14 - 4]
cmp r15d, ecx
jae 0x14014706f
mov ecx, dword [rdi + r15 + 0x24]
mov r13d, dword [rdi + r15 + 0x1c]
mov ebx, dword [rdi + r15 + 0x20]
mov esi, dword [rdi + r15 + 0x18]
lea rax, [rdi + r15]
add rcx, rdi
add r13, rdi
add rbx, rdi
xor r11d, r11d
mov qword [rsp + 0x70], rcx
test esi, esi
je 0x14014706f
nop
mov ecx, dword [rbx]
add rcx, rdi
or rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140147050
call fcn.140146f20
cmp eax, r12d
je 0x140147097
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x140147040
mov rax, qword [rsp + 0x60]
inc rbp
add r14, 0x28
cmp rbp, rax
jl 0x140147000
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x70]
movzx ecx, word [rcx + r11*2]
mov eax, dword [r13 + rcx*4]
add rax, rdi
jmp 0x140147082
Function at 0x1401470b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
movsxd rcx, dword [rcx + 0x3c]
add rcx, rsi
mov qword [rsp + 0x20], rcx
movzx eax, word [rcx + 6]
test eax, eax
jle 0x140147196
mov r13d, dword [rcx + 0x88]
xor ebp, ebp
mov qword [rsp + 0x70], rax
lea rbx, [rcx + 0x114]
mov edx, dword [rbx]
cmp r13d, edx
jb 0x140147186
mov ecx, dword [rbx - 4]
add ecx, edx
cmp r13d, ecx
jae 0x140147181
mov r15d, dword [rbx + 8]
mov r12d, edx
xor r11d, r11d
mov eax, r15d
sub rax, rdx
lea rcx, [rax + r13]
add rcx, rsi
mov edx, dword [rcx + 0x1c]
mov r14d, dword [rcx + 0x20]
mov edi, dword [rcx + 0x18]
add rdx, rax
add r14, rax
add rdx, rsi
add r14, rsi
mov qword [rsp + 0x88], rdx
mov edx, dword [rcx + 0x24]
add rdx, rax
add rdx, rsi
mov qword [rsp + 0x80], rdx
test edi, edi
je 0x140147181
mov ecx, dword [r14 + r11*4]
sub rcx, r12
add rcx, r15
add rcx, rsi
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140147164
call fcn.140146f20
cmp eax, 0xcce2dcad
je 0x1401471ad
inc r11d
cmp r11d, edi
jb 0x140147153
mov rax, qword [rsp + 0x70]
inc rbp
add rbx, 0x28
cmp rbp, rax
jl 0x1401470f4
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + r11*2]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 0x11c]
sub eax, dword [rcx + 0x114]
add rax, rsi
jmp 0x140147198

Function at 0x1401471e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14014730d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x290], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140147309
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x288], rbp
mov qword [rsp + 0x298], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebp, eax
call fcn.1402b7390
mov rdi, rax
test rax, rax
je 0x1401472cd
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401472c5
mov rcx, rdi
call fcn.1401470b0
test rax, rax
je 0x1401472c5
movsd xmm0, qword [rax]
mov ebx, 0xa
movsd qword [0x140428ba0], xmm0
movzx eax, word [rax + 8]
mov word [0x140428ba8], ax
mov rcx, rdi
call fcn.1402b7350
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x298]
mov rbp, qword [rsp + 0x288]
mov eax, ebx
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x270
pop rbx
ret
mov eax, ebx
jmp 0x1401472e8
mov eax, ebx
jmp 0x1401472f0
Function at 0x1401473a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edx, dx
mov r8d, 0xa
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14014740f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14014740f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rax
call fcn.1401474e0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140147420
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401474c7
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebp, eax
call fcn.1402b7390
mov rdi, rax
test rax, rax
je 0x1401474b4
lea r9, [rsp + 0x58]
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401474ac
cmp dword [rsp + 0x58], ebp
jb 0x1401474ac
mov rcx, rdi
call fcn.1401474e0
mov rbx, rax
mov rcx, rdi
call fcn.1402b7350
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140147cd0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, str.comctl32
mov r8d, 8
mov rbx, rcx
call fcn.1402bc584
test eax, eax
jne 0x140147d0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140147d58
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1403543dc]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1402b9720
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x104
call fcn.1402b9720
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x140
pop rbx
ret
Function at 0x140147d80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, word [rdx + 0x14]
movzx ebx, word [rdx + 6]
xor r10d, r10d
lea r9, [rdx + 0x18]
mov edi, ecx
mov r11d, r10d
add r9, rax
mov rax, r9
test ebx, ebx
je 0x140147dcb
mov ecx, dword [rax + 8]
test ecx, ecx
jne 0x140147db2
mov ecx, dword [rax + 0x10]
mov edx, dword [rax + 0xc]
cmp edi, edx
jb 0x140147dbf
add ecx, edx
cmp edi, ecx
jb 0x140147dd8
inc r11d
add rax, 0x28
cmp r11d, ebx
jb 0x140147da8
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov edx, r9d
sub edx, r8d
test ebx, ebx
je 0x140147e14
cmp r9, rax
je 0x140147e0c
inc r10d
add r9, 0x28
cmp r10d, ebx
jb 0x140147de2
mov ecx, dword [rax + 0x14]
sub ecx, dword [rax + 0xc]
lea eax, [rdx + rcx]
add eax, edi
add rax, r8
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov edx, dword [r9 + 0xc]
sub edx, dword [r9 + 0x14]
mov ecx, dword [rax + 0x14]
mov rbx, qword [rsp + 8]
sub ecx, dword [rax + 0xc]
lea eax, [rdx + rcx]
add eax, edi
mov rdi, qword [rsp + 0x10]
add rax, r8
ret
Function at 0x140147e30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x48
mov eax, 0x5a4d
mov r8, rcx
cmp word [rcx], ax
je 0x140147e48
xor al, al
add rsp, 0x48
ret
mov qword [rsp + 0x38], rsi
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
je 0x140147e68
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x48
ret
movzx eax, word [rsi + 0x18]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x30], rdi
mov ecx, 0x10b
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp ax, cx
jne 0x140147e98
lea rax, [rsi + 0x80]
jmp 0x140147ead
mov ecx, 0x20b
cmp ax, cx
jne 0x140147f91
lea rax, [rsi + 0x90]
test rax, rax
je 0x140147f91
mov ecx, dword [rax]
mov rdx, rsi
call fcn.140147d80
mov r15, rax
test rax, rax
je 0x140147f91
cmp dword [rax], 0
je 0x140147f91
xor r14d, r14d
movabs rbp, 0x8000000000000000
mov ecx, dword [rax + 0x10]
test ecx, ecx
je 0x140147f7b
mov ebx, dword [rax]
test ebx, ebx
je 0x140147f7b
mov rdx, rsi
call fcn.140147d80
mov rdx, rsi
mov ecx, ebx
mov rdi, rax
call fcn.140147d80
mov rbx, rax
test rdi, rdi
je 0x140147f7b
test rax, rax
je 0x140147f7b
mov rcx, qword [rax]
test rcx, rcx
je 0x140147f7b
test rbp, rcx
jne 0x140147f6a
mov ecx, dword [rbx]
mov rdx, rsi
call fcn.140147d80
test rax, rax
je 0x140147f6a
movzx ecx, byte [rax + 2]
lea rdx, [rax + 2]
xor eax, eax
test cl, cl
je 0x140147f6a
nop dword [rax]
nop word [rax + rax]
ror eax, 0xd
movsx ecx, cl
lea rdx, [rdx + 1]
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140147f50
cmp eax, 0x753a512
je 0x140147fb6
mov rcx, qword [rbx + 8]
add rbx, 8
add rdi, 8
test rcx, rcx
jne 0x140147f21
inc r14
lea rax, [r14 + r14*4]
cmp dword [r15 + rax*4], 0
lea rax, [r15 + rax*4]
jne 0x140147ee2
xor al, al
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
add rsp, 0x48
ret
mov edx, 8
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140147ff3
mov r8d, dword [rsp + 0x50]
lea rax, [0x140148000]
lea r9, [rsp + 0x58]
mov edx, 8
mov rcx, rdi
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
jmp 0x140147f93
Function at 0x14014a8f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x140429a18]
mov ebx, edx
test al, 1
jne 0x14014a934
or eax, 1
lea rcx, [0x1402fedc0]
mov qword [0x1404299f8], 0xffffffff80000002
mov dword [0x140429a18], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1404299f0], rax
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rdi, rax
test rax, rax
je 0x14014a9e0
dec ebx
je 0x14014a999
dec ebx
je 0x14014a990
dec ebx
je 0x14014a987
dec ebx
je 0x14014a97e
mov rcx, qword [rax + 8]
lea rdx, str.ProxyMode
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014a9d3
lea rcx, str.Manual
jmp 0x14014a9a0
lea rcx, [0x14034cc48]
jmp 0x14014a9a0
lea rcx, str.WPAD
jmp 0x14014a9a0
lea rcx, str.None
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14014a9a4
add eax, eax
lea rdx, str.ProxyMode
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 8]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14014b660
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rbx, rcx
lea rax, [rcx + 0x18]
mov qword [r11 + 0x10], rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14014b890
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1401ff680
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14014b6d3
test al, 0x10
je 0x14014b6d3
cmp dword [rsp + 0x30], 0
jle 0x14014b6f4
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
jmp 0x14014b6f4
cmp dword [rsp + 0x30], 0
jle 0x14014b6e4
mov rcx, qword [rsp + 0x28]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400d10e0
nop
mov rbp, qword [rbx + 0xb0]
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, 0x40000000
lea rcx, [rsp + 0x48]
call fcn.140206060
mov rdi, rax
test rax, rax
je 0x14014b776
mov word [rsp + 0x80], 0xfeff
mov r9, qword [rax]
mov r8d, 2
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [r9 + 0x48]
mov rdx, rdi
mov rcx, rbp
call fcn.140204cd0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x20]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov byte [rbx + 0xb8], 0
mov bl, 1
jmp 0x14014b778
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x14014b78a
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
nop
cmp dword [rsp + 0x40], 0
jle 0x14014b79c
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret