joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c556
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 8], 0
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x14001c5c5
xor ecx, ecx
sub r8, rcx
add rcx, qword [rsi]
mov edx, 1
mov r9, rdi
call fcn.14003973c
mov rbx, rax
mov rcx, rdi
call fcn.140039190
test eax, eax
jne 0x14001c5b3
mov rcx, qword [rsi + 8]
test rbx, rbx
je 0x14001c5ba
add rcx, rbx
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
cmp r8, rcx
ja 0x14001c576
jmp 0x14001c5be
mov eax, 2
jmp 0x14001c5fd
mov r8, qword [rsi + 0x10]
xor eax, eax
cmp rcx, r8
jne 0x14001c5db
mov rcx, rdi
call fcn.1400391bc
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi]
lea rbx, [rsi + 0x18]
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x20], 0
mov dword [rsi + 0x30], 0
mov qword [rsi + 0x38], rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001cc58
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [0x14005f3d7]
call fcn.1400392f8
test rax, rax
je 0x14001ccc0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.14001cadb
mov rdi, rax
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
mov edx, 1
mov r9, rsi
call fcn.140039a00
cmp rax, qword [rdi + 0x10]
sete bl
mov rcx, rsi
call fcn.1400390a8
test eax, eax
sete sil
and sil, bl
mov rcx, rdi
call fcn.140024b8b
jmp 0x14001ccc2
xor esi, esi
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001ec3c
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rcx, qword [rcx]
lea rdx, [0x14005f3d7]
call fcn.1400392f8
test rax, rax
je 0x14001ecac
mov rsi, rax
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.14001e639
mov rdi, rax
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
mov edx, 1
mov r9, rsi
call fcn.140039a00
cmp rax, qword [rdi + 0x10]
sete bl
mov rcx, rsi
call fcn.1400390a8
test eax, eax
sete sil
and sil, bl
mov rcx, rdi
call fcn.140024b8b
jmp 0x14001ecae
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140022cfc
Capabilities:
Hash data using sha1 via x86 extensions

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
movdqa xmm9, xmmword [rcx]
movdqa xmm8, xmmword [rcx + 0x10]
movdqa xmm6, xmmword [0x140050ff0]
movdqu xmm5, xmmword [rdx]
movdqu xmm4, xmmword [rdx + 0x10]
movdqu xmm3, xmmword [rdx + 0x20]
movdqu xmm2, xmmword [rdx + 0x30]
pshufb xmm5, xmm6
movdqa xmm7, xmm8
paddd xmm7, xmm5
movdqa xmm1, xmm9
sha1rnds4 xmm1, xmm7, 0
pshufb xmm4, xmm6
movdqa xmm7, xmm9
sha1nexte xmm7, xmm4
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm7, 0
sha1msg1 xmm5, xmm4
pshufb xmm3, xmm6
sha1nexte xmm1, xmm3
movaps xmm7, xmm0
sha1rnds4 xmm7, xmm1, 0
sha1msg1 xmm4, xmm3
pshufb xmm2, xmm6
sha1nexte xmm0, xmm2
pxor xmm5, xmm3
sha1msg2 xmm5, xmm2
movaps xmm1, xmm7
sha1rnds4 xmm1, xmm0, 0
sha1msg1 xmm3, xmm2
sha1nexte xmm7, xmm5
pxor xmm4, xmm2
sha1msg2 xmm4, xmm5
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm7, 0
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm1, xmm4
sha1msg2 xmm3, xmm4
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 1
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm0, xmm3
sha1msg2 xmm2, xmm3
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 1
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm6, xmm2
sha1msg2 xmm5, xmm2
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 1
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm1, xmm5
sha1msg2 xmm4, xmm5
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 1
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm0, xmm4
sha1msg2 xmm3, xmm4
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 1
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm6, xmm3
sha1msg2 xmm2, xmm3
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 2
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm1, xmm2
sha1msg2 xmm5, xmm2
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 2
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm0, xmm5
sha1msg2 xmm4, xmm5
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 2
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm6, xmm4
sha1msg2 xmm3, xmm4
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 2
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm1, xmm3
sha1msg2 xmm2, xmm3
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 2
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm0, xmm2
sha1msg2 xmm5, xmm2
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 3
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm6, xmm5
sha1msg2 xmm4, xmm5
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 3
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm1, xmm4
sha1msg2 xmm3, xmm4
movaps xmm5, xmm0
sha1rnds4 xmm5, xmm1, 3
xorps xmm2, xmm4
sha1nexte xmm0, xmm3
sha1msg2 xmm2, xmm3
movaps xmm1, xmm5
sha1rnds4 xmm1, xmm0, 3
sha1nexte xmm5, xmm2
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm5, 3
paddd xmm0, xmm9
movdqa xmmword [rcx], xmm0
sha1nexte xmm1, xmm8
movaps xmmword [rcx + 0x10], xmm1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140024cd3
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
movsx esi, byte [rcx + rax]
lea ebx, [rsi - 0x41]
cmp bl, 0x19
ja 0x140024cfd
add esi, 0xffffffbf
jmp 0x140024d40
lea ebx, [rsi - 0x61]
cmp bl, 0x19
ja 0x140024d0a
add esi, 0xffffffb9
jmp 0x140024d40
lea ebx, [rsi - 0x30]
cmp bl, 9
ja 0x140024d17
add esi, 4
jmp 0x140024d40
cmp sil, 0x2b
je 0x140024d34
cmp sil, 0x3d
je 0x140024d3b
cmp sil, 0x2f
jne 0x140024dbf
mov esi, 0x3f
jmp 0x140024d40
mov esi, 0x3e
jmp 0x140024d40
mov esi, 0xffffffff
mov dword [rsp + rax*4 + 0x20], esi
inc rax
cmp rax, 4
jne 0x140024cec
mov edi, dword [rsp + 0x20]
xor ebp, ebp
cmp edi, 0xffffffff
je 0x140024dc1
mov esi, dword [rsp + 0x24]
cmp esi, 0xffffffff
je 0x140024dc1
mov eax, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x2c]
cmp eax, 0xffffffff
je 0x140024dae
mov ebp, 2
mov ecx, ebx
and ecx, eax
shl edi, 0x12
shl esi, 0xc
or edi, esi
shl eax, 6
shr edi, 0x10
mov byte [rdx], dil
cmp ecx, 0xffffffff
je 0x140024d9a
mov ecx, eax
and ecx, 0xf00
or ecx, esi
mov byte [rdx + 1], ch
cmp ebx, 0xffffffff
je 0x140024dc1
and ebx, 0x3f
or ebx, eax
mov byte [rdx + 2], bl
mov ebp, 3
jmp 0x140024dc1
cmp ebx, 0xffffffff
jne 0x140024dc1
mov ebp, 1
mov ebx, 0xffffffff
jmp 0x140024d73
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002b3d0
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140024dd9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140024e0b
xor r10d, r10d
xor r9d, r9d
mov al, byte [rdx + r10]
xor al, byte [rcx + r10]
movzx eax, al
or r9d, eax
inc r10
cmp r8, r10
jne 0x140024de4
mov eax, 0x100
sub eax, r9d
cmp eax, 0xff
seta al
ret
mov al, 1
ret
Function at 0x140025d1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14006e1e0], 0
je 0x140025d34
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [0x14006e1e0], 1
lea rcx, str.hhctrl.ocx
call fcn.1400261c4
mov rsi, rax
test rax, rax
je 0x140025dc3
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e1e8], rax
test rax, rax
je 0x140025dce
cmp byte [0x14006e209], 0
jne 0x140025dde
mov byte [0x14006e209], 1
call fcn.140025cd8
test eax, eax
je 0x140025dde
mov rdx, qword [0x14006e1d8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x14006e20c], eax
test eax, eax
je 0x140025dde
mov rdx, qword [0x14006e1d8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140025dde
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14006e200], rax
jmp 0x140025de5
mov qword [0x14006e1e8], 0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x14006e200]
test rax, rax
jne 0x140025d2d
mov sil, 1
lea rax, str.SoftwareSimonTathamPuTTY64CHMPath
lea rdi, str.SoftwareSimonTathamPuTTYCHMPath
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140026437
test rax, rax
jne 0x140025e27
test sil, 1
je 0x140025d2d
xor esi, esi
mov rax, rdi
jmp 0x140025dff
mov qword [0x14006e1f0], rax
mov byte [0x14006e1f8], 0
jmp 0x140025d2d

Function at 0x140025e3a
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14006e1f0]
test rcx, rcx
je 0x140025e7c
cmp byte [0x14006e1f8], 1
jne 0x140025e7e
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14006e1e8]
mov rcx, qword [0x14006e1f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x14006e1f0]
jmp 0x140025e7e
xor ecx, ecx
call fcn.14000743e
mov qword [0x14006e1f0], 0
mov byte [0x14006e1f8], 0
add rsp, 0x28
ret
Function at 0x140025eac
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r15, rdx
mov r13, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x14006e1f0]
test rdx, rdx
jne 0x140025f8e
cmp qword [0x14006e200], 0
je 0x140025f8e
cmp byte [0x14006e210], 0
jne 0x140025f7d
mov byte [0x14006e210], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140025f7d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
lea rcx, str._sputty__lu__llu.chm
lea rdx, [rsp + 0x50]
mov r8d, eax
xor r9d, r9d
call fcn.140024718
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140026001
mov rsi, rax
jmp 0x140026088
xor ebx, ebx
mov rcx, rbx
call fcn.14000743e
mov rdx, qword [0x14006e1f0]
test rdx, rdx
je 0x140025fdc
test r15, r15
je 0x140025fc6
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.140024718
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x14006e1e8]
mov rcx, rsi
call fcn.14000743e
jmp 0x140025fd5
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x14006e1e8]
mov byte [0x14006e208], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14002b3d0
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], r13
mov edi, 1
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_CreateFileA]
call r14
cmp eax, 0x50
jne 0x14002611e
mov rcx, rbx
call fcn.14000743e
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.140024718
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call r12
inc rdi
cmp rax, 0xffffffffffffffff
je 0x14002601e
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov r8d, dword [0x14006e20c]
test r8d, r8d
je 0x1400260e3
mov rbp, qword [0x14006e200]
xor edi, edi
lea r14, [rsp + 0x4c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
sub r8d, edi
mov dword [rsp + 0x4c], 0
mov edx, edi
add rdx, rbp
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, r14
call r12
test eax, eax
je 0x1400260f5
mov eax, dword [rsp + 0x4c]
add edi, eax
inc edi
mov r8d, dword [0x14006e20c]
cmp r8d, edi
ja 0x1400260a9
mov qword [0x14006e1f0], rbx
mov byte [0x14006e1f8], 1
xor ebx, ebx
jmp 0x1400260fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.14000743e
cmp rsi, 0xffffffffffffffff
je 0x140025f87
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140025f87
mov r13, qword [rsp + 0x40]
jmp 0x140025f7f
Function at 0x140026128
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x14006e208], 1
jne 0x140026148
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14006e1e8]
mov rcx, qword [0x14006e1f0]
test rcx, rcx
je case.default.0x140026161
cmp byte [0x14006e1f8], 1
jne case.default.0x140026161
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x28
ret
div al
jnp 0x1400cd840
xacquire lock sbb byte [rcx], dh
sahf
invalid
invalid
mov dh, 0x6b
lodsb al, byte [rsi]
mov al, 0x91
mov edi, 0x48d02ee8
adc eax, 0xfdf1bb19
scasb al, byte [rdi]
cmp edx, dword [rdi]
cmpsb byte [rsi], byte [rdi]
invalid

Function at 0x1400261c4
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [0x14006e258], 0
jne 0x140026241
mov edx, dword [0x14006e260]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x14006e260], r9
ja 0x140026241
lea rdi, [0x14006e260]
mov rbx, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x14006e258]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rdi
call fcn.140007448
mov qword [0x14006e258], rax
mov edx, dword [0x14006e260]
mov rcx, rax
call rbx
mov r9d, eax
cmp qword [0x14006e260], r9
jbe 0x140026200
mov rcx, qword [0x14006e258]
lea rdx, [0x14005f49d]
mov r8, rsi
xor r9d, r9d
call fcn.1400247bb
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rsi
call fcn.14000743e
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140026437
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov rsi, rdx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
test rdx, rdx
je 0x14002647f
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14002647a
xor ebx, ebx
xor edi, edi
jmp 0x14002652a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor edi, edi
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140026518
cmp dword [rsp + 0x44], 1
mov ebx, 0
jne 0x14002651a
mov ecx, dword [rsp + 0x40]
inc ecx
xor edi, edi
mov edx, 1
xor r8d, r8d
call fcn.1400073c4
mov rbx, rax
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x3c]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002651a
cmp dword [rsp + 0x44], 1
jne 0x14002651a
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x40]
jbe 0x140026511
xor edi, edi
jmp 0x14002651a
mov byte [rbx + rax], 0
mov rdi, rbx
xor ebx, ebx
test rsi, rsi
je 0x14002652a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14000743e
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002b3d0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400266a8
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov edx, 0x107
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rcx, rdi
call fcn.14003c240
mov word [rsp + rax + 0x50], 0x2a5c
mov byte [rsp + rax + 0x52], 0
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140026739
mov rdi, rax
lea rbx, [rsp + 0x160]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, rbx
mov edx, 0x140
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x140026719
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
mov edx, 4
call r14
lea rcx, [rsp + 0x30]
mov edx, 0x20
call fcn.140026564
test al, al
je 0x14002677e
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.14002654c
mov rcx, r14
call fcn.14002a838
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14002b3d0
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400267a4
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rsi, [rsp + 0x78]
mov qword [rsi], rax
mov ecx, 9
mov rdx, rsi
mov r8d, 8
call fcn.14001f5c8
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsi], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14001f5c8
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsi], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14001f5c8
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
lea rdx, [rsp + 0x74]
mov dword [rdx], eax
mov ecx, 0xc
mov r8d, 4
call fcn.14001f5c8
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0xd
mov rdx, rsi
mov r8d, 8
call fcn.14001f5c8
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, 6
mov rdx, rsi
mov r8d, 0x38
call fcn.14001f5c8
lea rsi, [rsp + 0x98]
lea r14, [rsp + 0x90]
lea rdi, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x20], rsi
lea rbx, [rsp + 0x80]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov ecx, 0xe
mov rdx, rbx
mov r8d, 0x20
call fcn.14001f5c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, 0xf
mov rdx, rbx
mov r8d, 0x20
call fcn.14001f5c8
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14002b3d0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140029564
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r8, str.Please_wait_while_a_key_is_generated...
mov edx, 0x69
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, 0xffff0000
mov qword [rsp + 0x20], rax
mov rbx, qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov rcx, rsi
mov edx, 0x6a
mov r8d, 0x401
xor r9d, r9d
call rbx
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x6a
mov r8d, 0x402
xor r9d, r9d
call rbx
mov ecx, 1
mov edx, 0x38
xor r8d, r8d
call fcn.1400073c4
mov rbx, rax
mov rcx, rsi
mov edx, 0x6a
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rbx + 0x14], eax
mov eax, dword [rdi + 0x1c]
mov dword [rbx + 0x18], eax
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x20], rax
mov al, byte [rdi + 0x28]
mov byte [rbx + 0x28], al
lea rax, [rdi + 0x50]
mov qword [rbx + 0x30], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140029d18]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140029655
mov byte [rdi + 1], 1
jmp 0x14002967a
lea rdx, str.Out_of_thread_resources
lea r8, str.Key_generation_error
mov rcx, rsi
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call fcn.14000743e
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002b3d0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002a220
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14006e2e0], 1
jne 0x14002a238
mov al, byte [0x14006e2e1]
jmp 0x14002a3b2
mov byte [0x14006e2e0], 1
lea rcx, str.advapi32.dll
call fcn.1400261c4
mov qword [0x14006e2e8], rax
test rax, rax
je 0x14002a3aa
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e2f0], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a36b
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e2f8], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a378
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e300], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a385
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e308], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a392
lea rdx, str.InitializeSecurityDescriptor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e310], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a39f
lea rdx, str.SetSecurityDescriptorOwner
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e318], rax
test rax, rax
je 0x14002a3aa
mov rcx, qword [0x14006e2e8]
test rcx, rcx
je 0x14002a3b7
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14002a3b9
mov qword [0x14006e2f8], 0
jmp 0x14002a3aa
mov qword [0x14006e300], 0
jmp 0x14002a3aa
mov qword [0x14006e308], 0
jmp 0x14002a3aa
mov qword [0x14006e310], 0
jmp 0x14002a3aa
mov qword [0x14006e318], 0
xor eax, eax
mov byte [0x14006e2e1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14006e320], rax
test rax, rax
setne al
jmp 0x14002a3ac

Function at 0x14002a838
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14002a902
cmp rax, 0xffffffffffffffff
je 0x14002a8e2
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a8d9
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14002a8d9
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
mov r9, r14
call r15
test eax, eax
je 0x14002a8d9
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14002a8ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.14002b3d0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret