joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a5d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14001c118]
test rax, rax
je 0x14001a61e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a61e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a61e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a61e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a61e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001a620
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400fba10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400fba20]
mov dword [rax], 1
mov rax, qword [0x1400fba30]
mov dword [rax], 1
mov rax, qword [0x1400fba00]
mov dword [rax], 1
mov rax, qword [0x1400fb8c0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400fb9f0]
mov dword [0x1400fe00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400fb9b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400fb990]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400fb870]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001550
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor eax, eax
mov rbx, rcx
mov edi, edx
mov rbp, r8
mov dl, byte [rbx + rax + 6]
lea r12, [rsp + 0x2d]
mov byte [rsp + rax + 0x2d], dl
inc rax
cmp rax, 0x32
jne 0x14000156a
lea rcx, str.PPF1.0_patch_information:_n
mov byte [rsp + 0x5f], 0
sub edi, 0x38
mov esi, 0x38
call sym.printf_char_const__::_
mov rdx, r12
lea rcx, str.Description_:__s_n
lea r12, [0x1400ff860]
call sym.printf_char_const__::_
lea rcx, str.File_id.diz_:_no_n
call sym.printf_char_const__::_
lea rcx, str.Patching...
call sym.printf_char_const__::_
mov ecx, 1
mov r13, qword [dbg.__acrt_iob_func]
call r13
mov rcx, rax
call sym.fflush
lea rcx, str.reading..._b_b_b_b_b_b_b_b_b_b
call sym.printf_char_const__::_
mov ecx, 1
call r13
mov rcx, rax
call sym.fflush
lea eax, [rsi + 1]
mov edx, esi
lea r8d, [rsi + 5]
movzx eax, byte [rbx + rax]
movzx ecx, byte [rbx + rdx]
shl eax, 8
add ecx, eax
lea eax, [rsi + 2]
movzx edx, byte [rbx + rax]
shl edx, 0x10
lea eax, [rcx + rdx]
lea edx, [rsi + 3]
movzx edx, byte [rbx + rdx]
shl edx, 0x18
add edx, eax
lea eax, [rsi + 4]
movzx r15d, byte [rbx + rax]
xor eax, eax
mov r14d, r15d
cmp r15d, eax
jle 0x14000164b
lea ecx, [r8 + rax]
mov cl, byte [rbx + rcx]
mov byte [r12 + rax], cl
inc rax
jmp 0x140001636
xor r8d, r8d
mov rcx, rbp
lea esi, [rsi + r15 + 5]
call dbg.fseeko64
mov r9, rbp
movzx r8d, r14b
mov rcx, r12
mov edx, 1
call sym.fwrite
mov eax, 0xfffffffb
sub eax, r15d
add edi, eax
jne 0x1400015de
lea rcx, str.successful._n
call sym.printf_char_const__::_
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001d32
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r12
sub rsp, 0x30
mov qword [rsp + 0x28], r8
mov r12d, edx
mov qword [rsp + 0x20], rcx
call sym.PPFVersion_unsigned_char_const_
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
cmp eax, 1
mov edx, eax
jne 0x140001d69
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF1Patch_unsigned_char_const__unsigned_int___iobuf_
cmp eax, 2
jne 0x140001d7c
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF2Patch_unsigned_char_const__unsigned_int___iobuf_
cmp eax, 3
jne 0x140001d95
mov r9d, 1
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF3Patch_unsigned_char_const__unsigned_int___iobuf__char_
lea rcx, str.Error:_Unknown_PPF_Patch_version__d_n
add rsp, 0x30
pop r12
jmp sym.printf_char_const__::_

Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400020f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401002f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400022a0
mov rax, qword [0x1401002f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000213c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400021c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140002120
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400022fd
mov rax, qword [0x1401002f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401002f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400022e2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400021c0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002250
add dword [0x1401002f4], 1
cmp ebx, 8
jae 0x1400021f8
test bl, 4
jne 0x1400022b0
test ebx, ebx
je 0x1400021e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400022d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400021e9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000222a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401002f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400021c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140002147
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400021e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400021e9
mov rax, qword [0x1401002f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002810
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140100360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140100340]
test rbx, rbx
je 0x140002864
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000285b
test r12, r12
je 0x14000285b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002840
lea rcx, [0x140100360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002a90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002aa0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002ab0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002af5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002aec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002af7
add rax, 0x28
cmp rax, r9
jne 0x140002ad8
xor eax, eax
ret

Function at 0x140002ba0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400fb8c0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002c19
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002c19
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002c16
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140002c0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002c19
add r8, 0x28
cmp r8, r9
jne 0x140002bf8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002d00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400fb8c0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002d6f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002d6f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002d6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d78
add rax, 0x28
cmp rax, r9
jne 0x140002d50
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002d90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400fb8c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002e08
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002e08
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002e08
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002e08
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002dfc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002e10
add rdx, 0x28
cmp rdx, r10
jne 0x140002de8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002e20
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002e2e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002e05
test r8d, r8d
jg 0x140002e18
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400013a8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000142f
lea rcx, str.Wlanapi.dll
call fcn.140009e1c
test rax, rax
mov qword [rbx], rax
je 0x14000142f
lea rdx, str.WlanSetProfile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WlanOpenHandle
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WlanCloseHandle
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WlanEnumInterfaces
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WlanFreeMemory
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140007808
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x720
mov rbp, qword [rsp + 0x768]
mov r13, r9
mov esi, r8d
mov eax, dword [rbp]
mov rbx, rdx
mov r12, rcx
add eax, 0x20
cmp eax, r8d
ja 0x1400079da
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x6d8
call fcn.14001d490
movzx r11d, byte [rbx + 0x70]
xor edi, edi
cmp r11d, edi
mov dword [rsp + 0x1c0], r11d
je 0x1400079da
cmp r11d, 0x20
jg 0x1400079da
mov edx, dword [rbp]
lea r9, [rsp + 0xc0]
mov rcx, r12
sub esi, edx
add rdx, rbx
mov qword [rsp + 0x20], rdi
mov r8d, esi
call fcn.14000759c
cmp eax, edi
je 0x1400079da
lea rdx, [rbx + 0x14]
lea r8d, [rdi + 0x7f]
lea rcx, [rsp + 0x40]
call fcn.140009284
mov byte [rsp + 0x30], 0x56
mov byte [rsp + 0x31], 0x66
mov byte [rsp + 0x32], 9
mov byte [rsp + 0x33], 0x42
mov byte [rsp + 0x34], 8
mov byte [rsp + 0x35], 3
mov byte [rsp + 0x36], 0x98
mov byte [rsp + 0x37], 1
mov byte [rsp + 0x38], 0x4d
mov byte [rsp + 0x39], 0x67
mov byte [rsp + 0x3a], 8
mov byte [rsp + 0x3b], 0x66
mov byte [rsp + 0x3c], reloc.COMCTL32.dll_InitCommonControls
lea r8, [rsp + 0xc0]
mov eax, 0x4ec4ec4f
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
add edi, 1
imul edx, edx, 0xd
sub eax, edx
cdqe
mov cl, byte [rsp + rax + 0x30]
xor byte [r8], cl
add r8, 1
cmp edi, 0x20
jl 0x1400078fd
cmp dword [rsp + 0x1c0], 0x20
jne 0x140007965
mov cl, byte [rbx + 0x94]
cmp cl, 7
jne 0x14000794c
mov dword [rsp + 0x714], 3
jmp 0x140007965
mov eax, dword [rsp + 0x714]
mov edx, 2
cmp cl, 4
cmove eax, edx
mov dword [rsp + 0x714], eax
lea rdx, [rbx + 0x2b8]
lea rcx, [rsp + 0x718]
mov r8d, 8
call fcn.14001cf80
mov ebx, 0xff
lea rcx, [rsp + 0x4c9]
mov r8d, ebx
mov rdx, r13
call fcn.140009284
lea rdx, [r12 + 0x34]
lea rcx, [rsp + 0x1c4]
mov r8d, ebx
call fcn.140009284
mov rdx, qword [rsp + 0x760]
lea rcx, [rsp + 0x2c4]
mov r8d, ebx
call fcn.140009284
mov r11, qword [r12]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [r11]
mov eax, 1
jmp 0x1400079dc
xor eax, eax
lea r11, [rsp + 0x720]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400079fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x1820
call fcn.14002e9a0
sub rsp, rax
mov rbx, rcx
mov rdi, r8
mov r12, rdx
mov r14d, 0xff
lea rcx, [rsp + 0x41]
xor ebp, ebp
xor edx, edx
mov r8, r14
mov dword [rsp + 0x1850], 0x1000
mov byte [rsp + 0x40], bpl
call fcn.14001d490
mov byte [rbx + 0x34], bpl
cmp byte [rdi], bpl
mov dword [rsp + 0x1860], r14d
je 0x140007a65
lea rdx, [rbx + 0x34]
mov r8, rdi
mov rcx, rbx
call fcn.140007640
lea rax, [rsp + 0x1850]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x820]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1868]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbp
xor edx, edx
jmp 0x140007bc0
mov eax, dword [rsp + 0x1850]
cmp eax, 0x70
jbe 0x140007af8
cmp dword [rsp + 0x820], 0
mov byte [rsp + 0x181f], 0
je 0x140007aec
lea rcx, [rsp + 0x820]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x820]
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call fcn.140007808
mov r11d, eax
mov eax, dword [rsp + 0x1850]
jmp 0x140007aef
xor r11d, r11d
test r11d, r11d
jne 0x140007b7b
cmp eax, 0x14
jbe 0x140007b7b
lea rcx, [rsp + 0x148]
xor edx, edx
mov r8d, 0x6d8
call fcn.14001d490
lea rdx, [rsp + 0x834]
lea rcx, [rsp + 0x140]
mov r8d, 0x7f
call fcn.140009284
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x5c9]
mov r8d, r14d
call fcn.140009284
lea rdx, [rbx + 0x34]
lea rcx, [rsp + 0x2c4]
mov r8d, r14d
call fcn.140009284
lea rcx, [rsp + 0x3c4]
mov r8d, r14d
mov rdx, rdi
call fcn.140009284
mov r11, qword [rbx]
lea rdx, [rsp + 0x140]
mov rcx, rbx
call qword [r11 + 8]
lea rax, [rsp + 0x1850]
add ebp, 1
mov dword [rsp + 0x1860], r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x820]
mov dword [rsp + 0x1850], 0x1000
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1868]
mov edx, ebp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x1860]
lea r8, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140007a98
mov rbx, qword [rsp + 0x1858]
add rsp, 0x1820
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008d5c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call fcn.14001d780
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008f84
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, ebx
je 0x14000900e
call qword [sym.imp.USER32.dll_EmptyClipboard]
cmp rdi, rbx
je 0x140009008
mov rcx, rdi
call fcn.14001d780
mov ecx, 0x2000
add eax, 1
movsxd rbp, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rbx
mov rsi, rax
je 0x140009008
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.14001cf80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 1]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
cmp rax, rbx
setne bl
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009028
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edx, edx
mov rcx, rbx
call fcn.140008cfc
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400090d3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x2000
mov ebp, eax
lea edx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rdi
mov rsi, rax
je 0x1400090c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0x58]
mov r8d, ebp
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1400090c0
mov rcx, rsi
mov byte [rbp + r12], dil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rdi + 1]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1400090c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400090db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x14000951c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14003b1b0], 0
mov rbx, rcx
jne 0x140009546
lea rcx, [0x14003b1b0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x14003b2b8], eax
lea rdx, [0x14003b1b0]
mov rcx, rbx
call fcn.14001cde0
mov eax, dword [0x14003b2b8]
add rsp, 0x20
pop rbx
ret
Function at 0x140009564
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14003b2c0], 0
mov rbx, rcx
jne 0x14000958e
lea rcx, [0x14003b2c0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x14003b3c8], eax
lea rdx, [0x14003b2c0]
mov rcx, rbx
call fcn.14001cde0
mov eax, dword [0x14003b3c8]
add rsp, 0x20
pop rbx
ret

Function at 0x140009824
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x14003164b]
mov r8, rdx
lea rdx, str.open
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp rax, 0x20
seta cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140009d4c
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rdx
mov rsi, rcx
mov byte [rdx], dil
mov r8b, byte [rcx]
jmp 0x140009dac
cmp edi, 0xc8
jge 0x140009d86
mov eax, 0xf2
sub al, dil
xor al, r8b
xor al, 0x39
mov byte [rsp + 0x30], al
jmp 0x140009d8f
xor r8b, 0x13
mov byte [rsp + 0x30], r8b
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rbx
call fcn.14001e8a0
add edi, 1
movsxd rax, edi
mov r8b, byte [rax + rsi]
test r8b, r8b
jne 0x140009d6b
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140009dc4
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [rcx]
xor r10d, r10d
mov r9, rcx
test al, al
lea r11, [0x14003b600]
je 0x140009e02
movsxd r8, edx
shl r8, 8
mov cl, r10b
add r9, 1
and cl, 0x3f
sub cl, 0x56
xor cl, al
movsxd rax, r10d
add r10d, 1
add rax, r8
mov byte [rax + r11], cl
mov al, byte [r9]
test al, al
jne 0x140009dde
movsxd rcx, edx
movsxd rax, r10d
shl rcx, 8
add rax, rcx
mov byte [rax + r11], 0
lea rax, [rcx + r11]
ret

Function at 0x14000a530
Capabilities:
Enumerate files on windows

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
sub rsp, 0x20
or rsi, 0xffffffffffffffff
mov rbx, rcx
lea rdx, [rcx + 0x14c]
cmp qword [rcx], rsi
jne 0x14000a574
add rcx, 8
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edi, edi
cmp rax, rsi
mov qword [rbx], rax
setne dil
jmp 0x14000a594
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov edi, eax
jne 0x14000a598
cmp qword [rbx], rsi
je 0x14000a594
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx], rsi
test edi, edi
je 0x14000a5e1
lea r12, [rbx + 0x3d0]
lea rsi, [rbx + 0x28c]
lea rbp, [rbx + 0x178]
mov rcx, r12
call fcn.14001d780
mov rcx, rbp
mov rbx, rax
call fcn.14001d780
lea r9, [rbx + rax + 1]
cmp r9, 0x143
jae 0x14000a5de
mov r8, rsi
mov rdx, rbp
mov rcx, r12
call fcn.1400094c0
jmp 0x14000a5e1
mov byte [rsi], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret