joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067900
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rsi, rcx
mov rcx, qword [0x140119630]
mov rbp, r8
mov rdi, rdx
call fcn.14001c090
test rdi, rdi
je 0x140067aa1
cmp word [rdi], 0
je 0x140067aa1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, pe_nt_image_headers64
lea r8d, [r9 + 7]
mov rcx, rdi
mov qword [rsp + 0x2b0], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x2c0], r12
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14006799a
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140067a04
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400679e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401144a8]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rsi
call fcn.14003f1a0
mov rbx, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11d, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl r11, 0x20
or r11, rax
mov qword [rsp + 0x2b8], r11
movzx ebx, word [rbp]
test ebx, 0xffffff80
jne 0x140067a23
mov edx, 2
mov ecx, ebx
call fcn.1400cbb48
test eax, eax
je 0x140067a23
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4b
je 0x140067a49
cmp eax, 0x4d
jne 0x140067a68
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x140067a60
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x1401144a8]
xor edx, edx
mov rcx, rsi
mov dword [rax + 0x40], 0
call fcn.14003f1a0
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [0x140119630]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
mov eax, 1
jmp 0x1400679c8
mov rax, qword [0x1401144a8]
mov dl, 1
mov rcx, rsi
mov dword [rax + 0x40], 0x57
call fcn.14003f1a0
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400791d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x1400791e5
xor al, al
add rsp, 0x20
pop rbx
ret
dec edx
je 0x140079210
dec edx
movzx ecx, bl
je 0x1400791f8
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x140079236
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
and r11d, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14007921c
cmp bl, 3
jne 0x140079223
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x14007924c
cmp qword [0x1401198f0], 0
jne 0x14007926e
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r11d, ax
shr r11d, 0xf
and r11b, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
cmp qword [0x1401198e8], 0
je 0x14007922d
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.14001a220
test al, al
je 0x14007926e
mov cl, 1
call fcn.140019fc0
lea rcx, [0x1401197e0]
movzx eax, bl
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret
Function at 0x1400b12c0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14011be28]
mov rbx, rdx
call fcn.1400065e0
test eax, eax
jne 0x1400b12fd
lea r8, [0x1400e346c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x14011b1d0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140040740
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rsi + rbx]
lea rbx, [rsi + 4]
xor r14d, r14d
cmp rbx, rbp
ja 0x1400b13c2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b13c2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b13c2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b13c2
mov rdx, r14
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x1400b1480
test rdi, rdi
je 0x1400b13a9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400b1421
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400cb2e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, rbp
jbe 0x1400b1330
cmp dword [0x14011be54], r14d
je 0x1400b13fc
cmp qword [0x14011be38], r14
je 0x1400b13e8
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
mov eax, 1
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x14011be54], r14d
je 0x1400b1464
cmp qword [0x14011be38], r14
je 0x1400b1450
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, str.GlobalLock
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401
cmp dword [0x14011be54], r14d
je 0x1400b14ba
cmp qword [0x14011be38], r14
je 0x1400b14a6
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, str.Out_of_memory.
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401
Function at 0x1400caf6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400caddc

Function at 0x1400d4a18
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140112e90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400ce6e8
xor ebx, ebx
cmp qword [0x140117a48], rbx
mov rdi, rax
jne 0x1400d4b2b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d4c02
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d4c02
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140117a48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140117a50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140117a58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140117a68], rax
test rax, rax
je 0x1400d4b22
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140117a60], rax
jmp 0x1400d4b32
mov rax, qword [0x140117a60]
jmp 0x1400d4b39
mov rax, qword [0x140117a60]
mov r11, qword [0x140117a68]
cmp rax, rdi
je 0x1400d4ba0
cmp r11, rdi
je 0x1400d4ba0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140117a68]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d4ba0
test rax, rax
je 0x1400d4ba0
call rsi
test rax, rax
je 0x1400d4b9a
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d4b9a
test byte [rsp + 0x40], 1
jne 0x1400d4ba0
bts ebp, 0x15
jmp 0x1400d4be0
mov rcx, qword [0x140117a50]
cmp rcx, rdi
je 0x1400d4be0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4be0
call rax
mov rbx, rax
test rax, rax
je 0x1400d4be0
mov rcx, qword [0x140117a58]
cmp rcx, rdi
je 0x1400d4be0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4be0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140117a48]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4c02
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d4c04
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d1920
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d6c97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140112e90]
jne 0x1400d193a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d1936
repz ret
ror rcx, 0x10
jmp 0x1400d6bf0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140117b90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140117c88]
mov qword [rsp + 0x58], rax
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 0x1400d6c75
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, [0x140117b90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call fcn.1400da43a
jmp 0x1400d6c97
mov rax, qword [rsp + 0x88]
mov qword [0x140117c88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140117c28], rax
mov rax, qword [0x140117c88]
mov qword [0x140117b00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140117c10], rax
mov dword [0x140117af0], 0xc0000409
mov dword [0x140117af4], 1
mov rax, qword [0x140112e90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140112e98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140117b88], eax
mov ecx, 1
call fcn.1400d473c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e33c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140117b88], 0
jne 0x1400d6d1e
mov ecx, 1
call fcn.1400d473c
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 0x1401396e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14013970d
xor al, al
jmp 0x14013986f
mov rax, qword [0x14015a6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14015a6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14015a6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14015a6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14015a6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14015a6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14015a6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14015a6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14015a700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140139861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1401397b9
mov r11d, 2
jmp 0x1401397dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1401397d3
mov r11d, 1
jmp 0x1401397dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140139885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140139822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14013983a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14013984a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140139858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1401397a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14013986a
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000c65c
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.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call fcn.140147000
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
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 0x14000c7d6
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.14000cd00
add rsp, 0x28
jmp 0x14000c65c
Function at 0x140f13108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f1328f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f13139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1311f
add dl, dl
jne 0x140f13146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f131a6
xor eax, eax
add dl, dl
jne 0x140f13155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1325d
add dl, dl
jne 0x140f13166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f13173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f13180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1318d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f1319a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1312e
mov eax, 1
add dl, dl
jne 0x140f131b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f131c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f131ab
sub eax, ebx
mov ebx, 1
jne 0x140f131fc
mov ecx, 1
add dl, dl
jne 0x140f131de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f131eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f131d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f13218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f13225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1320d
cmp eax, 0x7d00
jae 0x140f1324b
cmp eax, 0x500
jb 0x140f13246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
cmp eax, 0x7f
ja 0x140f1324e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f13282
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 0x140f1312e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001484
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov edi, r8d
mov ebx, r8d
lea r9, [rsp + 0x48]
mov r12, rcx
and edi, 0x300
mov r13, rdx
mov r8d, edi
or r8d, 9
call fcn.1400071c3
test eax, eax
jne 0x140001580
test bl, 2
mov rcx, qword [rsp + 0x48]
lea rsi, [rsp + 0x56]
je 0x140001512
xor edx, edx
lea r9, [rsp + 0x44]
mov r8, rsi
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140001551
mov r14d, ebx
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
and r14d, 1
jmp 0x140001531
mov r8d, ebx
mov rdx, rsi
call fcn.140001484
test eax, eax
jne 0x140001563
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r9d, 0x105
mov r8, rsi
call rbp
test eax, eax
jne 0x140001563
mov rcx, qword [rsp + 0x48]
test r14d, r14d
je 0x140001522
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x140001580
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, edi
mov rdx, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14000363c
Capabilities:
Hide graphical window

Disassembly:
push r12
sub rsp, 0xb0
mov r8d, ecx
mov rcx, qword [0x1400249c0]
test r8d, r8d
je 0x14000366f
test rcx, rcx
je 0x14000365f
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x1400249c0], 0
jmp 0x140003720
test rcx, rcx
je 0x140003684
xor ecx, ecx
add rsp, 0xb0
pop r12
jmp fcn.140007c4b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x14001c940]
jbe 0x140003720
mov rax, qword [0x14000c0c0]
cmp qword [rax], 0
je 0x1400036d9
mov rax, qword [0x14000c060]
test byte [rax + 0x34], 1
je 0x140003720
call fcn.140003590
lea r12, [rsp + 0x30]
lea rdx, str....__d__
mov rcx, r12
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r12
xor ecx, ecx
call fcn.140006602
jmp 0x140003720
mov rax, qword [0x14000c090]
lea r9, [0x1400035b0]
xor r8d, r8d
mov edx, 0x6f
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov edx, 5
mov rcx, rax
mov qword [0x1400249c0], rax
add rsp, 0xb0
pop r12
jmp qword [sym.imp.USER32.dll_ShowWindow]
add rsp, 0xb0
pop r12
ret

Function at 0x14000372a
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000a028]
jmp fcn.140007040
Function at 0x140003910
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
mov rbx, rdx
mov r13, r8
mov esi, r9d
test ecx, ecx
js 0x14000394c
movsxd rcx, ecx
add rcx, qword [0x14001c9b4]
xor r9d, r9d
xor r8d, r8d
mov dword [0x140030a98], ecx
mov edx, ecx
mov rcx, qword [0x14000a020]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 4
call fcn.140003752
mov r12d, eax
test eax, eax
js 0x140003a4d
mov rcx, qword [0x14000a020]
lea rdx, [rsp + 0x3c]
mov r8d, 4
call fcn.140007040
test eax, eax
jne 0x140003987
mov r12d, 0xfffffffd
jmp 0x140003a4d
mov ecx, dword [rsp + 0x3c]
add dword [0x140030a98], 4
call fcn.140003752
mov r12d, eax
test eax, eax
js 0x140003a4d
mov r8d, dword [rsp + 0x3c]
test r13, r13
jne 0x140003a0c
lea rsi, [0x14002c9e0]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
jle 0x140003a4d
mov eax, 0x4000
mov rcx, qword [0x14000a020]
mov rdx, rsi
cmp r8d, eax
cmovg r8d, eax
mov dword [rsp + 0x38], r8d
call fcn.140007040
test eax, eax
je 0x14000397c
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, rbx
call fcn.14000706f
test eax, eax
je 0x140003a47
mov eax, dword [rsp + 0x38]
sub dword [rsp + 0x3c], eax
add dword [0x140030a98], eax
add r12d, eax
jmp 0x1400039b3
cmp esi, r8d
mov rcx, qword [0x14000a020]
lea r9, [rsp + 0x38]
mov rdx, r13
mov qword [rsp + 0x20], 0
cmovle r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000397c
mov r12d, dword [rsp + 0x38]
add dword [0x140030a98], r12d
jmp 0x140003a4d
mov r12d, 0xfffffffe
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x140003db0
Capabilities:
Get common file path

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rax, qword [0x14000c0f0]
mov rbx, qword [rax]
lea r12, [rbx + 0xc800]
mov rcx, r12
call fcn.140007458
mov rcx, r12
call fcn.140006dc2
test eax, eax
je 0x140003e02
mov rcx, r12
call fcn.1400073e2
mov rcx, r12
call fcn.140006c19
lea rcx, [rbx + 0xc000]
mov rdx, r12
add rsp, 0x28
pop rbx
pop r12
jmp fcn.140006fd4
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x140003e0c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000c050]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140003e2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [0x14000c000]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140003e4b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.1400044b5
mov rax, qword [0x14000c0f0]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0xd000
add rsp, 0x20
pop rbx
jmp fcn.140007608