joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b320
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140030118]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000b36c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000fd60
add rsp, 0x50
pop rsi
ret
lea rcx, str.Service_start_pending._n
call fcn.140011af4
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000b4bd
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x34]
mov edi, eax
cmp ecx, 2
jne 0x14000b431
mov qword [rsp + 0x70], rbp
mov ebp, 0x2710
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000b3db
mov edx, 0x3e8
jmp 0x14000b3e0
cmp edx, ebp
cmova edx, ebp
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000b428
cmp dword [rsp + 0x34], ebx
jbe 0x14000b40f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x34]
mov edi, eax
jmp 0x14000b41d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [rsp + 0x38]
ja 0x14000b428
mov ecx, dword [rsp + 0x24]
cmp ecx, 2
je 0x14000b3c0
jmp 0x14000b42c
mov ecx, dword [rsp + 0x24]
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x68]
cmp ecx, 4
jne 0x14000b461
lea rcx, str.StartService_SUCCESS._n
call fcn.140011af4
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000fd60
add rsp, 0x50
pop rsi
ret
lea rcx, str._nService_not_started.__n
call fcn.140011af4
mov edx, dword [rsp + 0x24]
lea rcx, str.__Current_State:__d_n
call fcn.140011af4
mov edx, dword [rsp + 0x2c]
lea rcx, str.__Exit_Code:__d_n
call fcn.140011af4
mov edx, dword [rsp + 0x30]
lea rcx, str.__Service_Specific_Exit_Code:__d_n
call fcn.140011af4
mov edx, dword [rsp + 0x34]
lea rcx, str.__Check_Point:__d_n
call fcn.140011af4
mov edx, dword [rsp + 0x38]
lea rcx, str.__Wait_Hint:__d_n
call fcn.140011af4
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000fd60
add rsp, 0x50
pop rsi
ret
Function at 0x14000b570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
mov r10, rcx
test r9d, r9d
je 0x14000b635
sub rbx, r8
mov r11d, r9d
nop word [rax + rax]
movzx eax, byte [r10]
inc eax
and eax, 0x800000ff
jge 0x14000b5a6
dec eax
or eax, 0xffffff00
inc eax
movzx r9d, al
mov byte [r10], al
movzx eax, byte [r10 + 1]
movzx ecx, byte [r9 + r10 + 2]
add ecx, eax
and ecx, 0x800000ff
jge 0x14000b5cc
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [r10 + 1], cl
movzx edx, byte [r9 + r10 + 2]
movzx eax, cl
movzx ecx, byte [rax + r10 + 2]
mov byte [r9 + r10 + 2], cl
movzx eax, byte [r10 + 1]
mov byte [rax + r10 + 2], dl
movzx eax, byte [r10]
movzx edx, byte [rax + r10 + 2]
movzx eax, byte [r10 + 1]
movzx ecx, byte [rax + r10 + 2]
add edx, ecx
and edx, 0x800000ff
jge 0x14000b617
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
inc r8
movzx ecx, byte [rax + r10 + 2]
xor cl, byte [rbx + r8 - 1]
dec r11
mov byte [r8 - 1], cl
jne 0x14000b590
mov rbx, qword [rsp + 8]
ret

Function at 0x14000b740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
lea rdx, [0x140028330]
mov dword [rsp + 0x48], 0
call fcn.14001117c
mov rdi, rax
test rax, rax
je 0x14000b83f
mov ecx, 1
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x40], 7
call fcn.14000cd20
lea rcx, [rsp + 0x40]
mov r8d, 1
mov rdx, rax
mov rbx, rax
call fcn.14000b640
mov edx, 1
mov r9, rdi
mov r8d, edx
mov rcx, rbx
call fcn.140011d44
mov rcx, rbx
call fcn.14000cd50
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8d, 1
call fcn.14000b510
mov ecx, 0x1d78
mov dword [rsp + 0x48], eax
call fcn.14000cd20
mov r8d, 0x1d78
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call fcn.14000b640
mov r9, rdi
mov edx, 1
mov r8d, 0x1d78
mov rcx, rbx
call fcn.140011d44
mov rcx, rbx
call fcn.14000cd50
mov ecx, dword [rsp + 0x48]
mov r8d, 0x1d78
mov rdx, rsi
call fcn.14000b510
mov edx, 4
lea rcx, [rsp + 0x48]
lea r8d, [rdx - 3]
mov r9, rdi
mov dword [rsp + 0x48], eax
call fcn.140011d44
mov rcx, rdi
call fcn.140011034
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b850
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x20
mov rax, rdx
mov r12, rcx
lea rdx, [0x140028338]
mov rcx, rax
mov esi, 1
call fcn.14001117c
mov rdi, rax
test rax, rax
je 0x14000b972
mov ecx, esi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.14000cd20
mov edx, esi
mov r9, rdi
mov rcx, rax
mov r8d, edx
mov rbx, rax
call fcn.1400120b4
lea rdx, [rsp + 0x50]
mov r8d, esi
mov rcx, rbx
call fcn.14000b640
mov rcx, rbx
call fcn.14000cd50
lea rdx, [rsp + 0x50]
mov r8d, esi
xor ecx, ecx
call fcn.14000b510
cmp byte [rsp + 0x50], 7
mov ebp, eax
ja 0x14000b920
mov ecx, 0x1d78
call fcn.14000cd20
mov r9, rdi
mov edx, esi
mov rcx, rax
mov r8d, 0x1d78
mov rbx, rax
call fcn.1400120b4
mov r8d, 0x1d78
mov rdx, r12
mov rcx, rbx
call fcn.14000b640
mov rcx, rbx
call fcn.14000cd50
mov r8d, 0x1d78
mov rdx, r12
mov ecx, ebp
call fcn.14000b510
mov ebp, eax
jmp 0x14000b922
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x58]
mov r9, rdi
lea r8d, [rdx - 3]
call fcn.1400120b4
mov rcx, rdi
call fcn.140011034
mov rbx, qword [rsp + 0x40]
test esi, esi
je 0x14000b962
cmp dword [rsp + 0x58], ebp
jne 0x14000b962
mov eax, 1
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x14000cd80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140030118]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], si
call fcn.14000fdf0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x104
lea rcx, [rsp + 0x20]
test rax, rax
jne 0x14000ce86
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r11d, eax
test eax, eax
je 0x14000cf41
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rcx, qword [str._spooldriversw32x863_]
mov rax, qword [0x1400285f8]
mov qword [rdi - 2], rcx
mov rcx, qword [0x1400285f0]
mov qword [rdi + 6], rcx
mov qword [rdi + 0xe], rax
mov rax, qword [0x140028600]
mov qword [rdi + 0x16], rax
mov rax, qword [0x140028608]
lea rcx, [rsp + 0x20]
mov qword [rdi + 0x1e], rax
mov rax, qword [0x140028610]
mov qword [rdi + 0x26], rax
movzx eax, word [0x140028618]
mov word [rdi + 0x2e], ax
lea rax, [rsp + 0x20]
sub rbx, rax
nop dword [rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rbx + rcx - 2], ax
test ax, ax
jne 0x14000ce70
jmp 0x14000cf41
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r11d, eax
test eax, eax
je 0x14000cf41
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rcx, qword [str._spooldrivers_]
mov rax, qword [0x1400268a8]
mov qword [rdi - 2], rcx
mov rcx, qword [0x1400268a0]
lea rdx, [rsp + 0x20]
mov qword [rdi + 6], rcx
mov qword [rdi + 0xe], rax
mov rax, qword [0x1400268b0]
mov qword [rdi + 0x16], rax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.x64_]
or rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
movzx eax, word [0x140026890]
mov word [rdi + 6], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov eax, dword [0x140025878]
mov dword [rdi - 2], eax
movzx eax, word [0x14002587c]
mov word [rdi + 2], ax
lea rax, [rsp + 0x20]
sub rbx, rax
nop word [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rbx + rdx - 2], cx
test cx, cx
jne 0x14000cf30
test r11d, r11d
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000fd60
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000d370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x38]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rbp
mov rdi, rcx
mov qword [rsp + 0x40], rsi
nop
mov edx, dword [rdi + 0x8c]
mov esi, dword [rdi + 0x50]
mov eax, dword [rdi + 0x38]
sub esi, dword [rdi + 0x94]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x14000d42c
mov rcx, qword [rdi + 0x48]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.14000ff50
sub eax, dword [rax]
add byte [rbx + rcx*4 + 0x47], al
insb byte [rdi], dx
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebx
sub dword [rdi + 0x8c], ebx
sub dword [rdi + 0x7c], ebx
lea rdx, [rax + r8*2]
nop
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x14000d3f0
sub eax, ebx
jmp 0x14000d3f2
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x14000d3e0
mov rax, qword [rdi + 0x58]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x14000d420
sub eax, ebx
jmp 0x14000d422
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x14000d410
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x14000d4a4
mov edx, dword [rdi + 0x94]
mov eax, dword [rdi + 0x8c]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x48]
call fcn.14000cff0
add dword [rdi + 0x94], eax
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x14000d48e
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rdi + 0x68], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x14000d4a4
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x14000d390
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14000df80
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
test rdx, rdx
mov r10, rdx
jne 0x14000df93
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x14000e0d3
nop
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14000e08d
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
nop
nop
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x14000dfd0
test edx, edx
je 0x14000e0a4
movzx eax, byte [r10]
add r10, 1
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x14000e091
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x14000dfa0
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret

Function at 0x140010f24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140010f4e
call fcn.1400140a4
and dword [rax], 0
call fcn.140014084
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14001401c
mov eax, ebx
jmp 0x140010f9e
test edx, 0xfffffff9
jne 0x140010f31
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140010f77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400140c4
call fcn.140014084
mov eax, dword [rax]
jmp 0x140010f9e
test al, 0x10
jne 0x140010f9c
test al, 1
je 0x140010f9c
test bl, 2
je 0x140010f9c
call fcn.1400140a4
mov dword [rax], 5
call fcn.140014084
mov dword [rax], 0xd
jmp 0x140010f6e
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140012c67
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140030118]
jne 0x14000fd7a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000fd76
repz ret
ror rcx, 0x10
jmp 0x140012bc0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140033710]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140033808]
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 0x140012c45
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, [0x140033710]
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 0x140012c67
mov rax, qword [rsp + 0x88]
mov qword [0x140033808], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400337a8], rax
mov rax, qword [0x140033808]
mov qword [0x140033680], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140033790], rax
mov dword [0x140033670], 0xc0000409
mov dword [0x140033674], 1
mov rax, qword [0x140030118]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140030120]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140033708], eax
mov ecx, 1
call fcn.14001ba6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140029d78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140033708], 0
jne 0x140012cee
mov ecx, 1
call fcn.14001ba6c
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 0x140017714
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140017584
Function at 0x14001e844
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 [0x140030118]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400139ec
xor ebx, ebx
cmp qword [0x1400346b8], rbx
mov rdi, rax
jne 0x14001e957
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001ea2e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ea2e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400346b8], 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 [0x1400346c0], 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 [0x1400346c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400346d8], rax
test rax, rax
je 0x14001e94e
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 [0x1400346d0], rax
jmp 0x14001e95e
mov rax, qword [0x1400346d0]
jmp 0x14001e965
mov rax, qword [0x1400346d0]
mov r11, qword [0x1400346d8]
cmp rax, rdi
je 0x14001e9cc
cmp r11, rdi
je 0x14001e9cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400346d8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14001e9cc
test rax, rax
je 0x14001e9cc
call rsi
test rax, rax
je 0x14001e9c6
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 0x14001e9c6
test byte [rsp + 0x40], 1
jne 0x14001e9cc
bts ebp, 0x15
jmp 0x14001ea0c
mov rcx, qword [0x1400346c0]
cmp rcx, rdi
je 0x14001ea0c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001ea0c
call rax
mov rbx, rax
test rax, rax
je 0x14001ea0c
mov rcx, qword [0x1400346c8]
cmp rcx, rdi
je 0x14001ea0c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001ea0c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400346b8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001ea2e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001ea30
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000fd60
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180acc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180acc1df
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 0x180acc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180acc06f
add dl, dl
jne 0x180acc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180acc0f6
xor eax, eax
add dl, dl
jne 0x180acc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180acc1ad
add dl, dl
jne 0x180acc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180acc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180acc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180acc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180acc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180acc07e
mov eax, 1
add dl, dl
jne 0x180acc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180acc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180acc0fb
sub eax, ebx
mov ebx, 1
jne 0x180acc14c
mov ecx, 1
add dl, dl
jne 0x180acc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180acc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180acc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180acc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180acc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180acc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180acc15d
cmp eax, 0x7d00
jae 0x180acc19b
cmp eax, 0x500
jb 0x180acc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180acc07e
cmp eax, 0x7f
ja 0x180acc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180acc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180acc1d2
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 0x180acc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400014a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x10], rax
mov eax, dword [rbp + 0x10]
movzx eax, ax
mov rcx, rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001538
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001538
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001538
mov eax, 1
jmp 0x14000153d
mov eax, 0
test al, al
je 0x140001561
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov rdx, qword [rbp + 0x20]
mov dword [rdx], eax
mov rax, qword [rbp - 8]
jmp 0x140001570
mov rax, qword [rbp + 0x20]
mov dword [rax], 0
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140001b90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140007800
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x140001d30
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c30
mov rcx, rbx
call fcn.140002670
test rax, rax
mov rdi, rax
je 0x140001d52
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400027b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ce0
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b90
nop dword [rax]
xor esi, esi
jmp 0x140001c58
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001b90
nop
nop word cs:[rax + rax]
nop dword [rax]