joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1413c8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1413c81df
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 0x1413c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413c806f
add dl, dl
jne 0x1413c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413c80f6
xor eax, eax
add dl, dl
jne 0x1413c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413c81ad
add dl, dl
jne 0x1413c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413c807e
mov eax, 1
add dl, dl
jne 0x1413c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413c80fb
sub eax, ebx
mov ebx, 1
jne 0x1413c814c
mov ecx, 1
add dl, dl
jne 0x1413c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413c815d
cmp eax, 0x7d00
jae 0x1413c819b
cmp eax, 0x500
jb 0x1413c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413c807e
cmp eax, 0x7f
ja 0x1413c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413c81d2
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 0x1413c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x419630
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x41963d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x41964d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x419635
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x419665
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x419652
sub eax, 3
jb 0x41967f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x4196b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x4196a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4196a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x419693
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.004195f2
jmp 0x41963d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7600
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x419702
cmp rsi, rcx
jae 0x41970a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4196e9
cmp al, 0x8f
ja 0x4196e9
cmp byte [rsi - 2], 0xf
je 0x4196ef
sub al, 0xe8
cmp al, 1
ja 0x4196d3
cmp rsi, rcx
jae 0x41970a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4196d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x41970a
lodsb al, byte [rsi]
jmp 0x4196e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17000]
mov eax, dword [rdi]
or eax, eax
je 0x419767
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x19000]
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 0x419717
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 0x419761
mov qword [rbx], rax
add rbx, 8
jmp 0x419737
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
mov byte [fcn.004197ea], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004197ea
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4197da
sub rsp, 0xffffffffffffff80
jmp 0x4014a0
Function at 0x140001ba4
Capabilities:
Resolve function by parsing pe exports

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, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x140001bfd
test byte [rcx + 0x1c], 4
je 0x140001bfd
cmp byte [rcx + 0x19], 4
jb 0x140001bfd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e0]
mov edx, 0xa
call fcn.14000c328
mov rax, qword [rsp + 0x70]
mov ecx, 0x10000
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x78]
movdqu xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rax]
mov rax, rdi
cqo
idiv rcx
xor eax, eax
mov dword [rbx + 0x30], edx
mov r8, rdx
movdqu xmmword [rbx + 0x20], xmm1
test edx, edx
jne 0x140001c3d
mov dword [rbx + 0x30], ecx
mov r8d, ecx
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
mov qword [rbx + 0x34], rax
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x58], eax
mov al, byte [rsp + 0x90]
mov byte [rbx + 0x5c], al
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x68], rax
mov al, byte [rsp + 0xa8]
mov byte [rbx + 0x70], al
mov dword [rbx + 0x3c], r9d
mov dword [rbx + 0x40], r10d
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140001d71
test byte [rcx + 0x1c], 4
je 0x140001cde
cmp byte [rcx + 0x19], 4
jb 0x140001cde
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x14015a2e0]
call fcn.1400d1538
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140001d71
test byte [rcx + 0x1c], 4
je 0x140001d19
cmp byte [rcx + 0x19], 4
jb 0x140001d19
mov rax, qword [rbx]
movzx r9d, byte [rbx + 0x5c]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.1400dea88
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140001d71
test byte [rcx + 0x1c], 4
je 0x140001d4b
cmp byte [rcx + 0x19], 4
jb 0x140001d4b
movzx r9d, byte [rbx + 0x70]
lea r8, [0x14015a2e0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.1400155dc
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140001d71
test byte [rcx + 0x1c], 4
je 0x140001d71
cmp byte [rcx + 0x19], 4
jb 0x140001d71
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e0]
mov edx, 0xe
call fcn.14000c328
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140005130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x140173048]
lea rbp, [0x140173048]
cmp rcx, rbp
jne 0x1400051f6
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140005270
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140005239
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x1400051bd
test byte [rcx + 0x1c], 4
jne 0x1400051d9
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
cmp byte [rcx + 0x19], 5
jb 0x1400051bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1fe
call fcn.14000c328
jmp 0x1400051bd
test byte [rcx + 0x1c], 4
je 0x14000516d
cmp byte [rcx + 0x19], 5
jb 0x14000516d
mov eax, dword [r9 + 0x14]
mov edx, 0x1fd
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.1400d1cb8
jmp 0x14000516d
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x140005269
test byte [rcx + 0x1c], 4
je 0x140005269
cmp byte [rcx + 0x19], 2
jb 0x140005269
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1ff
mov r9d, ebx
call fcn.14000c354
mov qword [r14], rbx
xor eax, eax
jmp 0x1400052a0
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x14000529d
test byte [rcx + 0x1c], 4
je 0x14000529d
cmp byte [rcx + 0x19], 5
jb 0x14000529d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x200
call fcn.14000c328
mov rax, rbx
mov qword [r14 + 8], rax
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x1400051bd
Function at 0x1400052c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x140173048]
lea rbp, [0x140173048]
cmp rcx, rbp
je 0x140005303
test byte [rcx + 0x1c], 4
jne 0x14000538c
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400053fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x1400053c5
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x140005353
test byte [rcx + 0x1c], 4
jne 0x14000536f
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
cmp byte [rcx + 0x19], 5
jb 0x140005353
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1f8
call fcn.14000c328
jmp 0x140005353
cmp byte [rcx + 0x19], 5
jb 0x140005303
mov eax, dword [r9 + 0x14]
mov edx, 0x1f7
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.1400d1cb8
jmp 0x140005303
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x1400053f5
test byte [rcx + 0x1c], 4
je 0x1400053f5
cmp byte [rcx + 0x19], 2
jb 0x1400053f5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1f9
mov r9d, ebx
call fcn.14000c354
mov qword [r14], rbx
xor eax, eax
jmp 0x14000542c
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x140005429
test byte [rcx + 0x1c], 4
je 0x140005429
cmp byte [rcx + 0x19], 5
jb 0x140005429
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x1fa
call fcn.14000c328
mov rax, rbx
mov qword [r14 + 8], rax
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x140005353
Function at 0x1400055dc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov edi, 0x208
and qword [rdx], rbx
mov ecx, edi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
mov rsi, rax
lea r12, [0x140173048]
test rax, rax
jne 0x140005636
mov rcx, qword [0x140173048]
mov ebx, 0x8007000e
jmp 0x140005792
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rsi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14000574a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov edi, eax
call fcn.140134c60
test eax, eax
jns 0x1400056ee
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400056d5
test byte [rcx + 0x1c], 1
je 0x1400056d5
cmp byte [rcx + 0x19], 3
jb 0x1400056d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401626e8]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.1400151b8
mov rcx, qword [0x140173048]
test edi, edi
jg 0x1400056e0
mov ebx, edi
jmp 0x140005773
movzx ebx, di
or ebx, 0x80070000
jmp 0x140005773
test dword [rsp + 0x78], 0x800
je 0x1400057d3
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x14000572c
test byte [rcx + 0x1c], 1
je 0x14000572c
cmp byte [rcx + 0x19], 4
jb 0x14000572c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401626e8]
mov edx, 0x41
mov r9, rbp
call fcn.140015150
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140134f80
mov rsi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x14000576c
test rsi, rsi
jne 0x140005767
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.1400906e0
mov qword [r14], rsi
xor esi, esi
mov rcx, qword [0x140173048]
test rsi, rsi
je 0x14000578e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x1400057bf
cmp rcx, r12
je 0x1400057bf
test byte [rcx + 0x1c], 1
je 0x1400057bf
cmp byte [rcx + 0x19], 3
jb 0x1400057bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401626e8]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400151b8
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, 0x3ed
je 0x1400057e9
cmp edi, 1
je 0x1400057e9
cmp edi, 0x57
jne 0x1400056ce
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140005773
test byte [rcx + 0x1c], 1
je 0x140005773
cmp byte [rcx + 0x19], 5
jb 0x140005773
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401626e8]
mov edx, 0x43
mov r9, rbp
call fcn.140015150
jmp 0x14000576c
Function at 0x140007140
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140175988], rbx
je 0x1400071a7
cmp rax, rbx
jne 0x14000719a
mov edi, 1
mov esi, edi
jmp 0x1400071ac
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000717f
mov edi, 1
mov eax, dword [0x140175990]
cmp eax, edi
jne 0x1400071c4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000723a
mov eax, dword [0x140175990]
test eax, eax
jne 0x14000722f
mov dword [0x140175990], edi
lea r15, [0x14014ed90]
lea rbx, [0x14014ed78]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140007221
test eax, eax
jne 0x140007225
cmp qword [rbx], r14
je 0x140007216
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400071ee
test eax, eax
je 0x140007235
mov eax, 0xff
jmp 0x14000739b
mov dword [0x140173ea4], edi
mov ebx, 0x1f
mov eax, dword [0x140175990]
cmp eax, edi
jne 0x140007261
lea rdx, [0x14014ed70]
lea rcx, [0x14014eca0]
call sub.msvcrt.dll__initterm
mov dword [0x140175990], 2
test esi, esi
jne 0x14000726f
mov rax, r14
xchg qword [0x140175988], rax
cmp qword [0x1401759a8], r14
je 0x1400072ac
lea rcx, [0x1401759a8]
call fcn.140007bb0
test eax, eax
je 0x1400072ac
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1401759a8]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400072c5
mov eax, 0xff
jmp 0x14000739b
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000734c
test ax, ax
je 0x1400072e0
test edx, edx
jne 0x14000734c
sub ax, di
cmp ax, bx
ja 0x1400072f6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400072e0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14006fcb0
mov dword [0x140173ea0], eax
cmp dword [0x140173ec0], r14d
jne 0x140007335
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140173ea4], r14d
jne 0x14000734a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140173ea0]
jmp 0x14000739b
cmp ax, 0x22
jne 0x140007360
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400072ce
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14020f000
add rsp, 0x28
jmp 0x140007140
Function at 0x140007a9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007ae8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007ae0
cmp dword [rcx + 0x3c], edx
jl 0x140007ae0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007ae0
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 0x140007ae8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140007c10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007c38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140007c38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140007d44
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007d50
push rbx
sub rsp, 0x540
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007dcd
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007ded
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140007410
add rsp, 0x540
pop rbx
ret

Function at 0x140007d50
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007d50
push rbx
sub rsp, 0x540
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007dcd
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007ded
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140007410
add rsp, 0x540
pop rbx
ret
Function at 0x140009830
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14000985e
lea r8, str.m_hKey___0
mov edx, 0x1544
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov rcx, qword [rbx]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]

Function at 0x14000a128
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.140009dac
mov ebx, eax
test eax, eax
jne 0x14000a1ec
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
jne 0x14000a1da
lea rdx, [rsp + 0x70]
call fcn.14000a128
jmp 0x14000a17e
call fcn.140009138
mov rdx, rsi
mov rcx, rdi
call fcn.140009720
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140009138
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
lea r15d, [rbx + 2]
mov r8d, r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000a421
call fcn.140008c98
mov ebx, eax
jmp 0x14000a564
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000a44b
call fcn.140008c98
jmp 0x14000a552
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000a441
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14000a492
mov ebx, 0x8007000e
jmp 0x14000a564
mov ecx, eax
mov rdx, r15
call fcn.140007fe4
mov r15, rax
cmp qword [rsp + 0x60], rbx
je 0x14000a4be
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.1400906e0
cmp r15, 0x400
jbe 0x14000a4db
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140008afc
mov rax, qword [rsp + 0x60]
jmp 0x14000a4e5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000a4fc
test rax, rax
jne 0x14000a508
mov ebx, 0x8007000e
jmp 0x14000a554
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14000a441
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000a224
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x60]
call fcn.140008120
nop
lea rcx, [rsp + 0x48]
call fcn.140008050
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140007410
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret