joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140161a74
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.1401b0b80
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x1e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401adee0
add rsp, 0x78
ret

Function at 0x140161c0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
lea r8, [0x1401ed6f8]
mov rdx, rcx
mov rcx, qword [0x14023bc40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140161d99
mov rdx, rax
mov rcx, qword [0x14023bc40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140161d99
mov rdx, rbx
mov rcx, qword [0x14023bc40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140161d99
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140161d99
and qword [rsp + 0x68], 0
mov esi, edi
mov edx, edi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140161d92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140161d89
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.1401aff80
and qword [rsp + 0x58], 0
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140161d80
mov rsi, qword [rsp + 0x58]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140161d2d
lea rax, [0x1401f0458]
mov qword [rbx], rax
lea rax, [0x1401f0468]
mov qword [rbx], rax
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
jmp 0x140161d2f
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f0cf3.0]
test rbx, rbx
je 0x140161d80
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x140161d6c
mov r8d, 0xffffff
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x140161d6c
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400f0cf3.0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x68]
jmp 0x140161d9b
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401629c8
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call fcn.1400e1990
test al, al
je 0x140162a28
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1401629f6
mov rax, qword [rbx]
movzx r9d, word [rax]
lea r8, [0x1401f0490]
mov edx, 0xa
lea rcx, [rsp + 0x20]
call fcn.1400132a4
cmp qword [rbx + 0x18], 8
jb 0x140162a1a
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401adee0
add rsp, 0x40
pop rbx
ret
Function at 0x140165f8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r9, qword [rcx + 0x30]
lea rdx, [rcx + 8]
mov r8b, byte [rcx + 0x28]
mov ecx, dword [rcx]
jmp fcn.1401651c0

Function at 0x140167970
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x728]
sub rsp, 0x820
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rbp + 0x710], rax
mov dil, cl
xor esi, esi
cmp qword [0x140231af0], rsi
je 0x140167baf
mov edx, dword [0x14027b3e8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov r8, qword [rax + rdx*8]
or rbx, 0xffffffffffffffff
mov eax, dword [rcx + r8]
cmp dword [0x140256d90], eax
jg 0x140167bd7
test dil, dil
je 0x140167a03
mov edx, reloc.SHELL32.dll_SHRestricted
lea rcx, [0x140256d8c]
call fcn.140094e40
test al, al
jne 0x140167a03
mov byte [0x14025657c], 1
jmp 0x140167baf
mov byte [0x14025657c], sil
mov r8d, 0x200
lea rdx, [rbp + 0x310]
mov rcx, qword [0x140231af0]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x140256578]
lea eax, [rcx - 8]
mov edi, 0x9d
cmp eax, 1
jbe 0x140167b23
lea rax, [rbp + 0x310]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140167a42
lea r9, [0x14022fab0]
cmp qword [0x14022fac8], 8
cmovae r9, qword [0x14022fab0]
mov rdx, qword [0x14022fac0]
cmp rdx, rbx
jne 0x140167aa2
lea r8, [rbp + 0x310]
test rdx, rdx
je 0x140167b23
lea rax, [rbp + 0x310]
sub r9, rax
movzx eax, word [r9 + r8]
cmp ax, word [r8]
jne 0x140167aa2
add r8, 2
sub rdx, 1
jne 0x140167a88
jmp 0x140167b23
lea rdx, [0x14022fab0]
mov rcx, qword [0x140231af0]
call fcn.140027fd0
mov ecx, dword [0x140256578]
cmp ecx, 3
jne 0x140167b3c
cmp qword [0x140256570], rsi
je 0x140167b28
mov ebx, 0x3d0
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1401b0b80
mov dword [rsp + 0x20], ebx
mov rax, qword [0x140231af0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x7b
mov dword [rsp + 0x34], 4
mov edx, dword [0x140256a74]
lea rcx, [rsp + 0x20]
call fcn.140166e78
lea rdx, [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [0x140256578]
cmp ecx, 3
jne 0x140167b3c
lea rdx, [0x14022fad0]
mov ecx, edi
call fcn.1401678ac
mov ecx, dword [0x140256578]
cmp ecx, 2
jbe 0x140167b46
cmp ecx, 9
jne 0x140167ba2
lea rdx, [0x14022fad0]
mov ecx, edi
call fcn.1401678ac
lea rdx, [0x14022fa70]
lea rcx, [rbp + 0x2f0]
call fcn.1400e2880
nop
mov r8, rax
mov ebx, 0x9c
mov edx, ebx
mov rcx, qword [0x140231af0]
call fcn.140027fbc
nop
lea rcx, [rbp + 0x2f0]
call fcn.140006b84
mov edx, ebx
mov rcx, qword [0x140231af0]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call fcn.140128e88
mov rcx, qword [0x140231af0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rbp + 0x710]
xor rcx, rsp
call fcn.1401adee0
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rcx, [0x140256d90]
call fcn.1401ae638
cmp dword [0x140256d90], ebx
jne 0x1401679dd
mov dword [0x140256d8c], esi
lea rcx, [0x140256d90]
call fcn.1401ae5d8
jmp 0x1401679dd
Function at 0x140171d54
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov qword [rbp - 0x30], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401da070]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], di
lea r8, [rbp - 0x30]
mov rdx, rcx
lea rcx, [0x140234e50]
call fcn.140088da8
lea rcx, [rbp - 0x30]
call fcn.1400df0fc
lea r8d, [rdi + 1]
lea rdx, [0x1401da77c]
lea rcx, [rbp - 0x30]
call fcn.140006c14
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov dword [rsp + 0x28], 1
lea rax, [0x1401d9fd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140171e2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140171e2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140171e57
call fcn.1401addcc
movdqa xmm0, xmmword [0x1401da070]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], di
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401adee0
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
call fcn.1401b4fa4
int3
Function at 0x14017a9b8
Capabilities:
Get file system object information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x340
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rsp + 0x338], rax
mov r9d, dword [rcx + 0x38]
lea r8, str._c:_
mov rdi, rcx
add r9d, 0x41
mov edx, 0xa
lea rcx, [r11 - 0x48]
call fcn.1400132a4
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x301
lea r8, [rsp + 0x60]
xor edx, edx
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test byte [rdi + 0x10], 1
lea rbx, [rdi + 0x20]
je 0x14017aa63
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, qword [rbx]
mov edx, eax
call qword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, 0xe
mov esi, eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, qword [rbx]
mov edx, eax
call qword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, eax
jmp 0x14017aa6b
mov esi, dword [rsp + 0x50]
mov ebp, dword [rsp + 0x50]
mov r8d, dword [rdi + 0x2c]
lea r14, [rdi + 0x28]
mov edx, dword [r14]
lea rax, [0x1401d9fd0]
mov rcx, qword [rbx]
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 2]
mov qword [rsp + 0x20], r14
call qword [sym.imp.GDI32.dll_ExtTextOutW]
lea ecx, [r12 + 0x31]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r12 + 0x32]
mov r15d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r9, qword [rsp + 0x60]
mov r8d, dword [rdi + 0x2c]
mov edx, dword [r14]
mov rcx, qword [rbx]
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_DrawIconEx]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140161960
lea rax, [rsp + 0x70]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14017ab0e
mov edx, dword [r14]
lea r9, [rsp + 0x70]
mov r8d, dword [rdi + 0x2c]
add edx, 7
mov dword [rsp + 0x20], ecx
add edx, r15d
mov rcx, qword [rbx]
add r8d, 2
call qword [sym.imp.GDI32.dll_TextOutW]
test byte [rdi + 0x10], 1
je 0x14017ab57
mov rcx, qword [rbx]
mov edx, esi
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rcx, qword [rbx]
mov edx, ebp
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rsp + 0x338]
xor rcx, rsp
call fcn.1401adee0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14017ac18
Capabilities:
Open clipboard
Read clipboard data

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, 0x20
test rcx, rcx
mov bpl, dl
mov rbx, rcx
mov rsi, rcx
sete dil
mov r14d, 1
test rcx, rcx
jne 0x14017ac68
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14017acd0
lea ecx, [r14 + 0xe]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x14017ac86
cmp qword [0x140231ad8], 0
je 0x14017ac86
mov dl, dil
mov rcx, rbx
call fcn.14017acec
test al, al
je 0x14017ac86
mov dil, r14b
jmp 0x14017ac89
xor dil, dil
test rsi, rsi
jne 0x14017ac96
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14017ac9f
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_DragFinish]
test dil, dil
je 0x14017acd0
movzx eax, byte [0x140232b0a]
test bpl, bpl
mov rcx, qword [0x140231ad8]
mov edx, 0x800e
cmovne eax, r14d
xor r9d, r9d
xor r8d, r8d
mov byte [0x140232b0a], al
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401871cc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14022ff58]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov edi, dword [rdx + 0x10]
mov eax, 0x10000
mov esi, dword [rdx + 0x14]
xor r8d, r8d
mov r10, rcx
mov dword [rbp - 0x21], eax
mov ecx, dword [rdx + 0x18]
mov rbx, rdx
mov qword [rbp - 0x19], rax
mov dword [rbp - 9], eax
mov dword [rbp - 5], eax
mov dword [rbp + 3], eax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], eax
mov dword [rbp + 0x17], eax
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], eax
mov dword [rbp + 0x27], eax
lea eax, [rcx + 1]
mov dword [rdx + 0x18], eax
mov qword [rbp - 0x29], r8
mov dword [rbp - 0x1d], 0x38000
mov qword [rbp - 0x11], r8
mov dword [rbp - 1], 0x7c000
mov dword [rbp + 0x1b], 0xfe000
cmp ecx, 6
jb 0x140187258
mov dword [rdx], r8d
jmp 0x1401872bf
mov byte [rsp + 0x50], r8b
mov eax, 0xaaaaaaab
mul ecx
mov r9d, 0xa
shr edx, 2
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov eax, 5
sub eax, ecx
cmp ecx, 3
cmovb eax, ecx
lea rcx, [rbp - 0x29]
imul rdx, rax, 0x1c
mov al, byte [rbx + 6]
mov byte [rsp + 0x48], al
add rdx, rcx
mov al, byte [rbx + 5]
mov rcx, r10
mov byte [rsp + 0x40], al
mov al, byte [rbx + 4]
mov byte [rsp + 0x38], al
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 7
call fcn.140186828
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401adee0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14019bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rdx + 0x1c]
lea r11, [0x140000000]
mov r14, qword [rdx]
xor r9d, r9d
mov rbx, qword [rdx + 8]
or esi, 0xffffffff
mov dword [0x14025944c], r9d
mov r12d, 0x23d
mov dword [0x140259d64], r12d
mov r15, rdx
mov rbp, rcx
mov edi, r9d
lea r10d, [rsi + 2]
mov edx, r9d
test r13d, r13d
jle 0x14019bc17
mov ecx, r9d
cmp word [r14 + rcx*4], r9w
je 0x14019bbfd
add edi, r10d
mov esi, edx
movsxd rax, edi
mov dword [0x14025944c], edi
mov dword [r11 + rax*4 + 0x259470], edx
cmp rcx, r12
jae 0x14019be11
mov byte [rcx + r11 + 0x259d70], r9b
jmp 0x14019bc03
mov word [r14 + rcx*4 + 2], r9w
add edx, r10d
add rcx, r10
cmp rcx, r13
jl 0x14019bbcd
cmp edi, 2
jge 0x14019bcc5
mov r9d, dword [0x14025a328]
mov r8d, dword [0x14025a3a8]
movsxd r11, esi
cmp esi, 2
lea rdx, [r11 + 1]
lea ecx, [rsi + 1]
mov rax, rdx
cmovge rax, r11
lea r15, [0x140000000]
mov r10d, ecx
mov r11, rax
cmovge r10d, esi
mov eax, 0
inc edi
cmp esi, 2
mov dword [0x14025944c], edi
cmovge ecx, eax
movsxd rax, edi
mov dword [r15 + rax*4 + 0x259470], ecx
mov eax, 0
mov r15, qword [rsp + 0x68]
cmovge rdx, rax
lea ecx, [rax + 1]
mov word [r14 + rdx*4], cx
cmp rdx, r12
jae 0x14019be11
dec r9d
lea rcx, [0x140000000]
mov byte [rdx + rcx + 0x259d70], al
mov dword [0x14025a328], r9d
test rbx, rbx
je 0x14019bcb3
movzx eax, word [rbx + rdx*4 + 2]
sub r8d, eax
mov dword [0x14025a3a8], r8d
mov esi, r10d
cmp edi, 2
jl 0x14019bc28
mov r10d, 1
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x14019bcf3
mov r8d, ebx
mov rdx, r14
mov rcx, rbp
call fcn.14019cffc
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x14019bcd7
lea r15, [0x140000000]
movsxd rbx, dword [0x140259474]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov dword [0x14025944c], edi
mov ecx, dword [r15 + rax*4 + 0x259470]
mov dword [0x140259474], ecx
mov rcx, rbp
call fcn.14019cffc
movsxd rcx, dword [0x140259474]
lea eax, [r12 - 1]
movsxd rdx, eax
mov r9, rcx
dec eax
mov qword [rsp + 0x78], rdx
mov r12d, eax
mov r10d, 1
movzx eax, word [r14 + rcx*4]
mov r8d, r10d
add ax, word [r14 + rbx*4]
mov dword [r15 + rdx*4 + 0x259470], ebx
mov dword [r15 + rdx*4 + 0x25946c], ecx
movzx ecx, byte [rbx + r15 + 0x259d70]
movsxd rdx, r13d
mov word [r14 + rdx*4], ax
movzx eax, byte [r9 + r15 + 0x259d70]
cmp cl, al
mov word [r14 + r9*4 + 2], r13w
mov word [r14 + rbx*4 + 2], r13w
cmovbe ecx, eax
mov eax, r13d
add cl, r10b
mov dword [0x140259474], eax
mov byte [rdx + r15 + 0x259d70], cl
add r13d, r10d
mov rdx, r14
mov rcx, rbp
call fcn.14019cffc
mov r10d, 1
cmp edi, 2
jge 0x14019bcfa
mov rcx, qword [rsp + 0x78]
mov eax, r12d
mov rdx, qword [rsp + 0x68]
dec eax
mov dword [0x140259d64], eax
mov eax, dword [0x140259474]
mov dword [r15 + rcx*4 + 0x259468], eax
mov rcx, rbp
call fcn.14019cc98
mov r8d, esi
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14019ced8
call fcn.1401ae314
int3
Function at 0x14019fef0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x14027a3e0]
mov rcx, rsi
mov rdi, rdx
call fcn.1400bb190
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x14019ff81
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x14019ff35
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14019ffa0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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 r15
sub rsp, 0x30
cmp byte [0x1402333a8], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1401a0082
cmp byte [rcx + 4], 0
je 0x14019ffed
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.14013e610
jmp 0x1401a0082
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x1401a0082
lea r15, [0x14027a3e0]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x1401a0007
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14019e5cc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1401aa6f4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401aa731
test al, 0x10
jne 0x1401aa72d
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1401aa731
mov al, 1
jmp 0x1401aa749
lea rdx, [rdi + 0x648b80]
mov ecx, 0x11
lea r8, [rsp + 0x38]
call fcn.14009dae0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ac414
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401ac48c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401ac48c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401ac48c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401ac480
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401ac49e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401ac46e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401ac48e

Function at 0x1401aeef4
Capabilities:
Parse pe header

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

Function at 0x1401bb690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401bb6c7
call fcn.1401be3ec
mov dword [rax], 0x16
call fcn.1401b4f84
xor eax, eax
jmp 0x1401bb755
mov rdx, r9
mov rcx, r8
call fcn.1401bb564
mov rbx, rax
test rax, rax
je 0x1401bb752
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401bb420]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401bb73f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401be360
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401bb726
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401bb735
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401c28b0
jmp 0x1401bb752
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401bb74f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401bc998
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14027b770]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401bc9ef
cmp word [rdx], r13w
jne 0x1401bc9ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401bc9f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401bcb19
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401bcb3a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401bca2d
mov rdx, r9
mov word [rbx], cx
jmp 0x1401bca54
cmp r9, r8
jae 0x1401bca64
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401bca0e
jmp 0x1401bcb19
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bcb0e
cmp dword [rsp + 0x80], esi
je 0x1401bcb0e
lea r8, [0x14027b770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401bcae6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401bcab6
mov word [rbx], r13w
jmp 0x1401bcb16
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401bcac3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401bcb16
cmp word [rsp + 0x70], r13w
jne 0x1401bcaf3
cmp rbx, r14
je 0x1401bcab0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401bc8f4
cmp word [rsp + 0x70], r13w
je 0x1401bcb19
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14027b770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401bcb13
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401bcb19