joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4ca4a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4caea2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4caf3a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4caf1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4caf12
cmp qword [rbp - 0x10], 0
je 0x2fc4caf12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4caed8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4caf3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb040
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb068
mov eax, 0
jmp 0x2fc4cb0b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb091
mov eax, 0
jmp 0x2fc4cb0b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb0b1
mov eax, 0
jmp 0x2fc4cb0b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb0bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb13a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb131
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb131
mov rax, qword [rbp - 8]
jmp 0x2fc4cb14f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb104
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14204e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14204e1df
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 0x14204e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14204e06f
add dl, dl
jne 0x14204e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14204e0f6
xor eax, eax
add dl, dl
jne 0x14204e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14204e1ad
add dl, dl
jne 0x14204e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14204e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14204e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14204e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14204e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14204e07e
mov eax, 1
add dl, dl
jne 0x14204e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14204e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14204e0fb
sub eax, ebx
mov ebx, 1
jne 0x14204e14c
mov ecx, 1
add dl, dl
jne 0x14204e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14204e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14204e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14204e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14204e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14204e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14204e15d
cmp eax, 0x7d00
jae 0x14204e19b
cmp eax, 0x500
jb 0x14204e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14204e07e
cmp eax, 0x7f
ja 0x14204e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14204e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14204e1d2
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 0x14204e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400056a0]
mov dword [rax], 1
mov rax, qword [0x1400056b0]
mov dword [rax], 1
mov rax, qword [0x1400056c0]
mov dword [rax], 1
mov rax, qword [0x140005640]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x10000000
lea rax, str._PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 8], rax
lea rdx, [rbp - 0xc]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x200
lea rdx, [0x140005060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
ud2

Function at 0x140001c10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x1400028e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000297a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000295e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002952
cmp qword [rbp - 0x10], 0
je 0x140002952
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002918
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000297b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002aa8
mov eax, 0
jmp 0x140002af6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002ad1
mov eax, 0
jmp 0x140002af6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002af1
mov eax, 0
jmp 0x140002af6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002afc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002b7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002b71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002b71
mov rax, qword [rbp - 8]
jmp 0x140002b8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002b44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4048b8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
call fcn.00404788
test al, al
jne 0x4048e0
mov eax, 2
jmp 0x4049cd
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea r8d, [rbx + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x404977
mov esi, 0x1000
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x40494c
cmp qword [rsp + 0x38], rsi
jne 0x40494c
cmp dword [rsp + 0x40], esi
jne 0x40494c
cmp dword [rsp + 0x48], 0x20000
jne 0x40494c
cmp dword [rsp + 0x44], 4
jne 0x40494c
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x4049e2
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x4048d6
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x404908
lea rsi, [0x00407060]
or edi, 0xffffffff
lea rdx, [0x00401340]
mov rcx, rsi
mov r8d, edi
call fcn.00405fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
mov rcx, rsi
call fcn.00405f20
lea rdx, [0x00401354]
mov r8d, edi
mov rcx, rsi
call fcn.00405fd0
mov r8d, 0x10
mov edx, ebx
mov rcx, rsi
call fcn.00405f20
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x00407020]
mov eax, 1
jmp 0x4049cd
Function at 0x404a08
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x870
call fcn.00404788
xor ebx, ebx
cmp al, bl
je 0x404a2c
mov eax, 2
jmp 0x404bdf
mov edi, 0x400
lea rdx, [rsp + 0x70]
xor ecx, ecx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x404bac
cmp eax, edi
je 0x404bac
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x70]
lea r8d, [r9 + 7]
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x404a8e
lea rdx, [0x004011f0]
jmp 0x404bb3
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
cmp rax, rbx
jne 0x404abd
lea rdx, [0x00401208]
jmp 0x404bb3
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
cmp rax, rbx
jne 0x404ae9
lea rdx, [0x00401220]
jmp 0x404bb3
lea rdx, [rsp + 0x40]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
je 0x404b0f
lea rdx, [0x00401238]
jmp 0x404bb3
mov rcx, rsi
mov qword [rsp + 0x898], rbx
mov dword [rsp + 0x890], ebx
call fcn.00404858
mov ecx, eax
lea rax, [rcx + 0xc]
cmp qword [rsp + 0x58], rax
jb 0x404b66
lea rbx, [rcx + rsi]
lea rcx, [rsp + 0x898]
mov r8d, 8
mov rdx, rbx
call qword [0x00407020]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x890]
mov r8d, 4
call qword [0x00407020]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movabs r11, 0x74636a6e696d7678
cmp qword [rsp + 0x898], r11
jne 0x404a22
mov eax, 1
test byte [rsp + 0x890], al
jne 0x404bdf
jmp 0x404a22
lea rdx, [0x004011d8]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00405fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x00407060]
mov edx, eax
mov r8d, 0xa
call fcn.00405f20
xor eax, eax
mov rbx, qword [rsp + 0x8a0]
add rsp, 0x870
pop rdi
pop rsi
pop rbp
ret

Function at 0x404d48
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x22
cmp word [rax], dx
jne 0x404dad
lea rcx, [rax + 2]
call qword [0x00407038]
xor ecx, ecx
cmp rax, rcx
je 0x404d79
cmp word [rax + 2], cx
je 0x404d79
add rax, 4
jmp 0x404dcf
lea rdx, [0x00401160]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00405fd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [0x00407060]
mov rdx, rax
or r8d, 0xffffffff
call fcn.00405fd0
xor eax, eax
jmp 0x404dcf
mov edx, 0x20
mov rcx, rax
call qword [0x00407038]
xor ecx, ecx
cmp rax, rcx
jne 0x404dcb
lea rdx, [0x00401178]
jmp 0x404d80
add rax, 2
add rsp, 0x28
ret
Function at 0x404e08
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rax + 0x10]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.00405e90
lea rdx, [rsp + 0x20]
lea rcx, [0x00401150]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x448
ret

Function at 0x404ea8
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 r12
push r13
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov rdi, rcx
mov rbx, r14
cmp dword [rax + rcx + 0x8c], r14d
je 0x404f38
mov esi, dword [rax + rcx + 0x88]
mov ebp, r14d
add rsi, rcx
mov r13d, dword [rsi + 0x1c]
mov r12d, dword [rsi + 0x20]
add r13, rcx
add r12, rcx
cmp dword [rsi + 0x14], r14d
jbe 0x404f38
mov ecx, dword [r12]
lea rdx, [0x00401580]
add rcx, rdi
call qword [0x00407030]
cmp eax, r14d
je 0x404f23
inc ebp
add r12, 4
cmp ebp, dword [rsi + 0x14]
jb 0x404efd
jmp 0x404f38
mov eax, dword [rsi + 0x24]
mov edx, ebp
lea rcx, [rdi + rax]
movzx eax, word [rcx + rdx*2]
mov ebx, dword [r13 + rax*4]
add rbx, rdi
call main
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
sub eax, dword [0x00407054]
mov rdi, qword [rsp + 0x58]
cmp eax, 0x7fff
cmova rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x4055f8
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Generate random numbers using the delphi lcg
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d8
xor edi, edi
mov qword [rsp + 0x40], rdi
mov r12, rdi
mov rbp, rdi
mov r14, rdi
mov rsi, rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x528], rdi
call fcn.00404618
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x11
cmp eax, 0x111
je 0x4056aa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [rsp + 0x520]
mov r15d, dword [rsp + 0x520]
mov r13d, dword [rsp + 0x520]
mov dword [rsp + 0x520], edi
mov dword [0x00407054], eax
xor edi, edi
mov eax, dword [rsp + 0x520]
mov r15d, dword [rsp + 0x520]
mov r13d, dword [rsp + 0x520]
mov dword [rsp + 0x520], eax

Function at 0x141cb0108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cb028f
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 0x141cb0139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb011f
add dl, dl
jne 0x141cb0146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb01a6
xor eax, eax
add dl, dl
jne 0x141cb0155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb025d
add dl, dl
jne 0x141cb0166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb018d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cb019a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cb012e
mov eax, 1
add dl, dl
jne 0x141cb01b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb01c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb01ab
sub eax, ebx
mov ebx, 1
jne 0x141cb01fc
mov ecx, 1
add dl, dl
jne 0x141cb01de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb01eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb01d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cb0218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb0225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb020d
cmp eax, 0x7d00
jae 0x141cb024b
cmp eax, 0x500
jb 0x141cb0246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
cmp eax, 0x7f
ja 0x141cb024e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cb0282
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 0x141cb012e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180003110
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003138
xor eax, eax
lea r8, [0x180002fd0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003bc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xc50
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x440]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rbp + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x180003cfe
mov qword [rsp + 0xc68], rbx
lea rdx, [rsp + 0x440]
mov r8d, 0x3ff
mov qword [rsp + 0xc70], rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
cmp qword [0x180084dd8], 0xf
lea rcx, str.Mod_Hub_Base
cmova rcx, qword [str.Mod_Hub_Base]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
xorps xmm0, xmm0
lea rsi, [0x1800895c0]
mov rbx, rax
lea r8, [0x180054df8]
xor eax, eax
lea edx, [rbp + 0x45]
mov rcx, rsi
mov dword [0x180089600], eax
mov byte [0x180089604], al
movups xmmword [0x1800895c0], xmm0
movups xmmword [0x1800895d0], xmm0
movups xmmword [0x1800895e0], xmm0
movups xmmword [0x1800895f0], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x40]
mov rcx, rsi
lea edx, [rbp + 0x45]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, rbx
lea edx, [rbp + 0x45]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rbx, qword [rsp + 0xc68]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rbp
nop dword [rax]
inc r8
cmp byte [rsi + r8], bpl
jne 0x180003ce0
mov rdx, rsi
mov rcx, rdi
call fcn.1800034f0
mov rsi, qword [rsp + 0xc70]
jmp 0x180003d13
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bpl
mov rax, rdi
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.18004fc00
mov rbp, qword [rsp + 0xc78]
add rsp, 0xc50
pop rdi
ret