joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069170
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x30], 0
mov eax, 0x51
mov word [rsp + 0x80], ax
mov eax, 0x69
mov word [rsp + 0x82], ax
mov eax, 0x6e
mov word [rsp + 0x84], ax
mov eax, 0x67
mov word [rsp + 0x86], ax
mov eax, 0x6e
mov word [rsp + 0x88], ax
mov eax, 0x69
mov word [rsp + 0x8a], ax
mov eax, 0x61
mov word [rsp + 0x8c], ax
mov eax, WSAStartup
mov word [rsp + 0x8e], ax
mov eax, 0x20
mov word [rsp + 0x90], ax
mov eax, 0x43
mov word [rsp + 0x92], ax
mov eax, 0x68
mov word [rsp + 0x94], ax
mov eax, WSAStartup
mov word [rsp + 0x96], ax
mov eax, WSAStartup
mov word [rsp + 0x98], ax
mov eax, 0x6d
mov word [rsp + 0x9a], ax
mov eax, 0x65
mov word [rsp + 0x9c], ax
xor eax, eax
mov word [rsp + 0x9e], ax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140003dd0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140067960
nop
lea rcx, [rsp + 0x60]
call fcn.140003260
lea rcx, [rsp + 0x40]
call fcn.140005270
movzx eax, al
test eax, eax
je 0x1400692e1
lea rdx, [0x140125f54]
mov rcx, qword [rsp + 0x2d0]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x2d0]
jmp 0x14006940c
lea rcx, [rsp + 0x40]
call fcn.140019d70
movzx eax, al
test eax, eax
jne 0x140069328
lea rdx, [0x140125f54]
mov rcx, qword [rsp + 0x2d0]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x2d0]
jmp 0x14006940c
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.140009fd0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xa0]
lea r8, [0x140125f54]
lea rdx, str.Version
lea rcx, str.AppLoadInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0xa0]
lea rcx, [0x140125f54]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x14006939e
add rax, 2
test dx, dx
jne 0x140069388
xor eax, eax
jmp 0x1400693a3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400693da
lea rdx, [0x140125f54]
mov rcx, qword [rsp + 0x2d0]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x2d0]
jmp 0x14006940c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2d0]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400ce670
add rsp, 0x2c0
pop rdi
ret
Function at 0x140069af0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x298]
lea rcx, [rsp + 0x40]
call fcn.140068150
nop
lea rcx, [rsp + 0x40]
call fcn.140019d70
movzx eax, al
test eax, eax
jne 0x140069b7c
lea rdx, [0x140125f54]
mov rcx, qword [rsp + 0x290]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x290]
jmp 0x140069bf3
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.140009fd0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
lea r8, [0x140125f54]
lea rdx, str.Version
lea rcx, str.Upgrade
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x290]
call fcn.140003dd0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003260
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400ce670
add rsp, 0x280
pop rdi
ret
Function at 0x14006b700
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x348]
sub rsp, 0x430
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r14, rdx
call fcn.14006c420
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400751c0
nop
call fcn.14006c428
mov rdi, rax
mov rcx, rax
call fcn.140075ca8
xor ebx, ebx
lea rcx, [rsp + 0x40]
test al, al
je 0x14006b798
mov rdx, r14
call fcn.140075500
lea rcx, [rsp + 0x40]
call fcn.140075484
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006b8d4
mov dil, 1
jmp 0x14006b8d1
mov rdx, rdi
call fcn.1400754d8
call fcn.14006c75c
test al, al
je 0x14006b7b3
call fcn.14006c430
mov rsi, rax
jmp 0x14006b80a
call fcn.14006c438
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1400751c0
nop
lea rcx, [rbp + 0x60]
call fcn.140075484
mov rcx, rax
xor edx, edx
call fcn.140072018
mov rdi, rax
lea rcx, [rsp + 0x40]
call fcn.140075484
mov rcx, rax
mov rdx, rdi
call fcn.1400795ac
mov rsi, rax
test rdi, rdi
je 0x14006b801
mov rcx, rdi
call fcn.1400cea54
nop
lea rcx, [rbp + 0x60]
call fcn.14007532c
test rsi, rsi
jne 0x14006b817
mov dil, bl
jmp 0x14006b8d1
mov dword [rsp + 0x30], ebx
or r8d, 0xffffffff
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400751f0
nop
lea r8, [0x14012b634]
lea rdx, [0x14012af90]
lea rcx, [rbp - 0x30]
call fcn.140075f24
lea rcx, [rbp - 0x30]
call fcn.140075484
mov rdx, rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov dil, 1
mov r8b, dil
mov rcx, rsi
call fcn.140078fb0
test eax, eax
jne 0x14006b8c5
mov r15d, dword [rbp + 0x31c]
lea eax, [r15 - 1]
cmp eax, 0x3fffff
ja 0x14006b8c5
mov ecx, r15d
call fcn.1400cf2d8
mov r14, rax
mov r9d, r15d
mov r8, rax
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call fcn.140079aa8
test eax, eax
je 0x14006b90c
cmp eax, 0x600
je 0x14006b90c
mov rcx, r14
call fcn.1400cea54
call fcn.14006c75c
test al, al
jne 0x14006b8c5
mov rcx, rsi
call fcn.140078cf0
mov dil, bl
lea rcx, [rbp - 0x30]
call fcn.14007532c
mov bl, dil
lea rcx, [rsp + 0x40]
call fcn.14007532c
mov al, bl
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.1400ce670
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14006c75c
nop
test al, al
jne 0x14006b91e
mov rcx, rsi
call fcn.140078cf0
mov rcx, r14
call fcn.1400cea54
jmp 0x14006b8c8
Function at 0x14006c8e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [rdi + 8]
mov ebx, edi
test ax, ax
cmovs ebx, ecx
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006c911
or ebx, 1
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006c924
or ebx, 2
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006c937
or ebx, 4
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006c94a
or ebx, 0x20
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006fd78
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
lea r15, [rcx + 0x530]
mov rbx, rcx
xor r13d, r13d
mov rcx, r15
mov r12, r9
mov r14, r8
mov edi, edx
mov esi, r13d
call fcn.140075a10
test eax, eax
jle 0x14006fdf7
mov edx, esi
mov byte [rbp + 0x30], r13b
mov rcx, r15
call fcn.140075470
lea rcx, [rbp + 0x30]
mov r9, r12
mov qword [rsp + 0x20], rcx
mov r8, r14
mov edx, edi
mov rcx, rax
mov r10, qword [rax]
call qword [r10]
cmp byte [rbp + 0x30], r13b
jne 0x14006fe5f
mov rcx, r15
inc esi
call fcn.140075a10
cmp esi, eax
jl 0x14006fdbb
sub edi, 0x100
je 0x14006fed8
sub edi, 4
je 0x14006fe63
cmp edi, 2
jne 0x14006feb8
mov ecx, r14d
mov dword [rbp + 0x30], r13d
call fcn.1400d784c
mov rcx, qword [rbx + 0x160]
lea r8, [rbp + 0x30]
mov word [rbp + 0x30], ax
lea rdx, [0x140071e38]
mov r9d, 0x80000012
mov rax, qword [rcx]
call qword [rax + 0x258]
mov rbx, rax
test rax, rax
je 0x14006feb8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x240]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x30]
mov al, 1
jmp 0x14006feba
cmp qword [rbx + 0x168], r13
je 0x14006feb8
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call fcn.1400d1170
mov rax, qword [rbx + 0x190]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x30], 6
mov word [rbp - 0x14], r14w
call fcn.14006c8e0
mov word [rbp - 0x12], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x168]
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x20], eax
mov rax, qword [rcx]
call qword [rax + 0x270]
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp r14, 9
jne 0x14006feb8
mov rcx, qword [rbx + 0x168]
test rcx, rcx
je 0x14006ff40
mov rax, qword [rcx]
call qword [rax + 0x1f0]
test al, al
je 0x14006ff40
mov rcx, qword [rbx + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x208]
test al, al
je 0x14006ff40
mov rcx, qword [rbx + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rax
lea rdx, str.RichEditUI
call fcn.1400d042c
test rax, rax
je 0x14006ff40
mov rcx, qword [rbx + 0x168]
call fcn.14009724c
test al, al
jne 0x14006feb8
mov rcx, qword [rbx + 0x168]
test rcx, rcx
je 0x14006ff92
mov rax, qword [rcx]
call qword [rax + 0x1f0]
test al, al
je 0x14006ff92
mov rcx, qword [rbx + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x208]
test al, al
je 0x14006ff92
mov rcx, qword [rbx + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rax
lea rdx, str.WkeWebkitUI
call fcn.1400d042c
test rax, rax
jne 0x14006feb8
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov rcx, rbx
setns dl
call fcn.1400717e8
jmp 0x14006fe5f
Function at 0x1400713d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rdi + 0xc8]
cmp rax, rcx
je 0x140071405
cmp rbx, qword [rdi + 0x168]
je 0x140071405
call qword [sym.imp.USER32.dll_SetFocus]
mov rax, qword [rdi + 0x168]
cmp rbx, rax
je 0x140071524
test rax, rax
je 0x140071482
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.1400d1170
mov dword [rsp + 0x30], 0x17
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x270]
mov rdx, qword [rdi + 0x168]
lea r8, str.killfocus
xor r9d, r9d
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140070e64
and qword [rdi + 0x168], 0
test rbx, rbx
je 0x140071524
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp rax, rdi
jne 0x140071524
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1f0]
test al, al
je 0x140071524
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x208]
test al, al
je 0x140071524
xor edx, edx
mov qword [rdi + 0x168], rbx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.1400d1170
mov dword [rsp + 0x30], 0x18
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x270]
mov rdx, qword [rdi + 0x168]
lea r8, str.setfocus
mov byte [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140070e64
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14007815c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x278]
sub rsp, 0x360
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rcx
call fcn.1400763f0
mov rcx, rax
mov edi, 0xfffffff0
mov edx, edi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
and ebx, 0xff3fffff
or ebx, 0x6000000
mov rcx, rsi
call fcn.1400763f0
mov rcx, rax
mov r8d, ebx
mov edx, edi
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea r14, [rsi + 0x58]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x60]
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, r14
call fcn.14006c4b0
mov rax, rsi
lea rcx, [rsi + 0x40]
neg rax
sbb rdx, rdx
and rdx, rcx
mov rcx, r14
call fcn.14006b478
lea rcx, [rbp + 0xf0]
call fcn.14009ad24
nop
mov rax, qword [rsi]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [rax + 0x50]
nop
lea rcx, [rbp - 0x30]
call fcn.140075ca8
lea rdx, [rsp + 0x40]
mov rcx, rsi
test al, al
mov rax, qword [rsi]
jne 0x140078294
call qword [rax + 0x58]
nop
mov rcx, rax
call fcn.140075484
mov rcx, rax
call fcn.1400d82a8
movzx ebx, ax
lea rcx, [rsp + 0x40]
call fcn.14007532c
mov rax, rsi
lea rcx, [rsi + 0x48]
neg rax
sbb rdi, rdi
and rdi, rcx
lea rcx, [rbp - 0x30]
call fcn.140075484
mov r8, rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
mov r9, rdi
mov edx, ebx
lea rcx, [rbp + 0xf0]
call fcn.14009bd88
mov rbx, rax
jmp 0x1400782da
call qword [rax + 0x58]
nop
mov rcx, rax
call fcn.140075484
mov rcx, rsi
lea rdx, [rsi + 0x48]
neg rcx
sbb r9, r9
and r9, rdx
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.14009bd88
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14007532c
test rbx, rbx
jne 0x140078344
or r8d, 0xffffffff
lea rdx, [0x140101510]
lea rcx, [rsp + 0x40]
call fcn.1400751f0
nop
mov rax, qword [rsi]
lea rdx, [rbp + 0x60]
mov rcx, rsi
call qword [rax + 0x58]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400754d8
nop
lea rcx, [rbp + 0x60]
call fcn.14007532c
lea rcx, [rsp + 0x40]
call fcn.140075484
mov rdx, rax
lea r9d, [rbx + 0x10]
lea r8, str.Duilib
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdx, rbx
mov rcx, r14
call fcn.14006b558
mov rax, rsi
lea r8, [rsi + 0x38]
neg rax
sbb rdx, rdx
and rdx, r8
mov rcx, r14
call fcn.14006b394
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + gethostname]
nop
lea rcx, [rbp - 0x30]
call fcn.14007532c
nop
lea rcx, [rbp + 0xf0]
call fcn.140099a8c
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400ce670
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140078d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140078dd4
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140078dd4
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x140078e85
mov rcx, rdi
mov rdx, rdi
cmp ax, 0x2f
je 0x140078df2
cmp ax, 0x5c
jne 0x140078df5
mov rcx, rdx
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x140078de6
cmp rcx, rdi
je 0x140078e44
sub rcx, rdi
mov rdx, rdi
sar rcx, 1
lea rsi, [rcx + rcx]
mov r8, rsi
lea rcx, [rsp + 0x230]
call fcn.1400d0d10
cmp rsi, 0x208
jae 0x140078ea8
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.140078d90
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x140078e5b
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400dd874
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400dd848
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140078e85
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400ce670
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
call fcn.1400cf144
int3

Function at 0x1400794c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x140079592
cmp dword [rcx + 8], 0xffffffff
jne 0x140079592
lea rdi, [rcx + 0x250]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
call fcn.1400dd890
movzx ecx, word [rbx + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x140079536
cmp cx, 0x2f
je 0x140079536
lea rdx, [0x14012af90]
mov rcx, rdi
call fcn.1400dd848
mov r9d, 1
cmp esi, r9d
jne 0x14007955b
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14007955b
mov eax, 0x2000000
jmp 0x140079597
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r14d
mov rcx, rbp
call fcn.14007be44
test rax, rax
jne 0x140079579
mov eax, dword [rsp + 0x40]
jmp 0x140079597
mov rcx, rax
call fcn.14007c664
mov qword [rbx], rax
neg rax
sbb eax, eax
not eax
and eax, 0x200
jmp 0x140079597
mov eax, 0x1000000
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140079af8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
lea r8, [0x140102890]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
add eax, dword [rcx + 4]
mov edx, dword [r10 + 8]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 4], ecx
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret

Function at 0x14007bf7c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
imul r8d, edx
mov rdi, r9
cmp byte [r9], 0
mov rsi, rdx
mov r10, rcx
je 0x14007bfc3
and qword [rax - 0x18], 0
lea r9, [rax + 0x10]
mov rdx, rcx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14007bfbd
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x14007bfef
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
lea eax, [rdx + r8]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r8d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r10
call fcn.1400d0d10
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14007c144
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x14007c15d
xor eax, eax
jmp 0x14007c1ce
lea rdi, [0x140102890]
not r9d
cmp r8d, 8
jb 0x14007c1a3
mov r11d, r8d
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x14007c179
add r8d, 0xfffffff8
sub r11, 1
jne 0x14007c174
test r8d, r8d
je 0x14007c1c8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x14007c1a8
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140091cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
mov ecx, eax
and r11d, 7
je 0x140091cf9
cmp eax, r11d
jge 0x140091ceb
mov rcx, rbx
call fcn.14008cba8
mov eax, dword [rbx + 0x10]
mov ecx, r11d
shr dword [rbx + 0x14], cl
sub eax, r11d
mov dword [rbx + 0x10], eax
mov ecx, eax
xor edx, edx
test eax, eax
jle 0x140091d27
mov r8d, dword [rbx + 0x14]
lea r9, [rsp + 0x30]
mov al, byte [rbx + 0x14]
inc edx
mov byte [r9], al
inc r9
lea eax, [rcx - 8]
shr r8d, 8
mov dword [rbx + 0x14], r8d
mov ecx, eax
test eax, eax
jg 0x140091d08
mov dword [rbx + 0x10], eax
jns 0x140091d3a
lea rcx, str.zlib_corrupt
call fcn.14008caa4
jmp 0x140091ddf
movsxd rax, edx
cmp rax, 4
jge 0x140091d65
mov rcx, qword [rbx]
cmp rcx, qword [rbx + 8]
jb 0x140091d50
xor dl, dl
jmp 0x140091d58
mov dl, byte [rcx]
inc rcx
mov qword [rbx], rcx
mov byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 4
jl 0x140091d46
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140091d29
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140091daa
lea rcx, str.read_past_buffer
jmp 0x140091d30
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x140091dc4
mov rcx, rbx
call fcn.1400958c0
test eax, eax
je 0x140091ddf
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1400d0d10
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400994c8
Capabilities:
Log keystrokes via polling

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 r14
sub rsp, 0x30
xor r14d, r14d
mov rbp, r9
mov rdi, r8
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x708], r14
je 0x140099576
cmp edx, 0x100
jne 0x140099550
cmp di, 0xd
jne 0x140099550
cmp byte [rcx + 0x712], r14b
je 0x140099527
lea ecx, [r14 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140099550
cmp byte [rbx + 0x713], r14b
jne 0x140099550
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14009954c
mov byte [rsp + 0x28], r14b
lea r8, str.return
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rdx, rbx
call fcn.140070e64
xor eax, eax
jmp 0x14009957b
mov rax, qword [rbx + 0x708]
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + 0x18]
jmp 0x14009957b
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14009bd88
Capabilities:
Extract resource via kernel32 functions

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, 0x20
mov rax, rdx
mov r12, r9
shr rax, 0x10
mov r14, r8
mov rbx, rdx
mov rdi, rcx
test ax, ax
je 0x14009bdd9
cmp word [rdx], 0x3c
je 0x14009bdd9
call fcn.14006c1e4
mov rcx, rax
mov rdx, rbx
call fcn.140080ca4
test rax, rax
cmovne rbx, rax
mov rax, rbx
shr rax, 0x10
test ax, ax
je 0x14009be27
cmp word [rbx], 0x3c
mov rdx, rbx
mov rcx, rdi
jne 0x14009bdf8
call fcn.140099d70
jmp 0x14009be00
xor r8d, r8d
call fcn.140099ddc
test al, al
jne 0x14009beb8
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rbp, qword [rdi + 0x158]
test rbp, rbp
jne 0x14009be3b
call fcn.14006c40c
mov rbp, rax
mov r8, r14
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14009be08
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
jne 0x14009be71
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14009be08
mov rdx, rsi
mov qword [rdi + 0x148], r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.14009a128
test al, al
je 0x14009be08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rdi + 0x150], r14
mov r9, qword [rsp + 0x78]
mov rdx, r12
mov r8, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14009ad54
jmp 0x14009be0a