joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004920
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, r8
mov ebx, edx
call fcn.140003190
test al, al
je 0x140004a63
cmp ebx, 2
jne 0x140004a63
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0xa8]
call fcn.140002770
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x100040
xor ecx, ecx
mov qword [rsp + 0x28], rcx
lea rax, str.runas
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 7
cmova rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140004a86
mov rdx, qword [rsp + 0xc0]
cmp rdx, 7
jbe 0x140004a3c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004aaf
call fcn.140006568
mov al, 1
jmp 0x140004a65
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006840
mov rbx, qword [rsp + 0x108]
add rsp, 0xe0
pop rdi
ret
lea rdx, str.cant_start_update
lea rcx, [rsp + 0x90]
call fcn.1400047e0
lea rdx, [0x140030398]
lea rcx, [rsp + 0x90]
call fcn.1400073d0
nop
call fcn.14000d0dc
int3
Function at 0x140006f28
Capabilities:
Parse pe header

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

Function at 0x140012e88
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012c84

Function at 0x1400175b4
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, [0x140033950]
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 0x14001760b
cmp word [rdx], r13w
jne 0x14001760b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140017610
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017735
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017756
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140017649
mov rdx, r9
mov word [rbx], cx
jmp 0x140017670
cmp r9, r8
jae 0x140017680
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 0x14001762a
jmp 0x140017735
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 0x14001772a
cmp dword [rsp + 0x80], esi
je 0x14001772a
lea r8, [0x140033950]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140017702
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400176d2
mov word [rbx], r13w
jmp 0x140017732
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 0x1400176df
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140017732
cmp word [rsp + 0x70], r13w
jne 0x14001770f
cmp rbx, r14
je 0x1400176cc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001eb80
cmp word [rsp + 0x70], r13w
je 0x140017735
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, [0x140033950]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001772f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017735
Function at 0x14001956c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400195f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400195b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001959c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019598
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015554
mov rdi, rax
test rax, rax
je 0x1400195e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021880
mov rbp, rdi
xor ecx, ecx
call fcn.140014920
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001da88
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001da9e
mov al, 1
jmp 0x14001dafe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001daaf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001dafc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a4bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001dafc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001dafc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001dafc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001dafe
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400204d4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001eb80
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001eb80
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140020624
cmp rax, 0xffffffffffffffff
je 0x140020624
xor edi, edi
test rbp, rbp
jle 0x1400205cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400148a8
mov rbx, rax
test rax, rax
jne 0x14002055c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400205c5
mov edx, 0x8000
mov ecx, r14d
call fcn.140013cd4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001b958
cmp eax, 0xffffffff
je 0x1400205a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002056c
mov edx, r15d
mov ecx, r14d
call fcn.140013cd4
jmp 0x1400205c5
cmp byte [rsi + 0x38], dil
je 0x1400205bc
cmp dword [rsi + 0x34], 5
jne 0x1400205bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400205c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140014920
jmp 0x140020638
jns 0x140020638
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001eb80
cmp rax, 0xffffffffffffffff
jne 0x1400205f0
cmp byte [rsi + 0x30], dil
je 0x140020638
mov edi, dword [rsi + 0x2c]
jmp 0x140020638
mov ecx, r14d
call fcn.14001a4bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140020638
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140020638
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140020631
mov eax, dword [rsi + 0x2c]
jmp 0x140020636
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001eb80
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400214d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400214f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400214f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141e0
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141f3
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001421d
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014231
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014243
xor al, al
jmp 0x140014261
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001425f
xor al, al
jmp 0x140014261
mov al, 1
add rsp, 0x38
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140008c30]
mov rcx, qword [0x140008ae0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140008c40]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140008c50]
mov dword [rax], 1
mov rax, qword [0x140008c20]
mov dword [rax], 1
jne 0x140001090
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001090
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000106b
cmp cx, 0x20b
je 0x14000107a
jmp 0x140001090
cmp dword [rax + 0x74], 0xe
jbe 0x140001090
cmp dword [rax + 0xe8], 0
jmp 0x14000108a
cmp dword [rax + 0x84], 0xe
jbe 0x140001090
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140008c10]
mov dword [0x14000c020], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x1400010ac
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140008bd0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008bb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140008a90]
cmp dword [rax], 1
jne 0x1400010ee
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002015
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c0c8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000c0c4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140002063
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000205b
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000214c
inc ebx
add rax, 0x28
jmp 0x14000203b
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140002082
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000c0c8]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400020e6
mov rax, qword [0x14000c0c8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002146
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002146
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000c0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002146
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000c0c4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002510
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x14000c120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000255e
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002558
test r12, r12
je 0x140002558
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140002530
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002743
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140002743
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002744
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x14000277e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x140002775
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002780
inc r8d
add rax, 0x28
jmp 0x14000275c
xor eax, eax
ret

Function at 0x1400027f5
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140008ae0]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140002821
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140005cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005ce3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005d2a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005d25
nop
cmp rbx, rcx
jae 0x140005d2a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005d10
cmp rbx, rcx
jb 0x140005d2e
xor eax, eax
jmp 0x140005d3a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140005d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140005e71
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140005e71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005e71
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005df9
nop word [rax + rax]
cmp rbx, rcx
jae 0x140005e71
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005de0
cmp rbx, rcx
jae 0x140005e71
movzx edi, word [rbx]
test di, di
je 0x140005e71
mov rax, qword [r14]
mov ecx, 1
movzx esi, di
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140005e27
mov edx, esi
mov rcx, r14
call fcn.140006140
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
movzx edx, di
call fcn.1401d8748
test eax, eax
je 0x140005e52
cmp eax, 0xc
je 0x140005e9a
cmp eax, 0x16
je 0x140005e94
cmp eax, 0x22
je 0x140005e94
cmp eax, 0x50
jne 0x140005e8e
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x140005ea0
mov dword [rcx - 0x10], esi
xor r8d, r8d
mov rcx, qword [r14]
movzx edx, di
lea eax, [r8 + 1]
mov word [rcx + rdx*2], r8w
jmp 0x140005e73
xor eax, eax
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
call fcn.140035158
int3
call fcn.140035158
int3
call fcn.14003517c
int3
mov ecx, 0x80070057
call fcn.140006230
int3
Function at 0x14000d620
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x238]
mov rbx, rcx
cmp qword [rcx + 0x240], rax
jb 0x14000d676
mov r9, qword [rcx + 0x28]
test r9, r9
jne 0x14000d64b
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
add rcx, 0x31
mov edx, 1
mov r8d, 0x200
call fcn.1401d93f8
mov qword [rbx + 0x238], rax
test rax, rax
je 0x14000d642
mov qword [rbx + 0x240], 0
mov rcx, qword [rbx + 0x240]
movzx eax, byte [rcx + rbx + 0x31]
inc rcx
mov qword [rbx + 0x240], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140035684
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or edx, 0xffffffff
mov rsi, rcx
call fcn.140039a20
xor ebx, ebx
test eax, eax
je 0x1400356ed
mov rcx, rsi
mov edi, 0x811c9dc5
call fcn.1401d8b54
mov r9, rax
mov eax, 0xcccccccd
mul r9d
shr edx, 3
test r9d, r9d
je 0x1400356db
movzx r8d, word [rsi + rbx*2]
inc ebx
imul edi, edi, 0x1000193
add ebx, edx
xor edi, r8d
cmp ebx, r9d
jb 0x1400356c4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140035158
int3

Function at 0x140036db8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140036e2b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036e3f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140036e3f
mov rcx, rax
call fcn.1401cc2e4
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140036e44
cmp dword [rcx + 8], 0
je 0x140036e3f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140036e44
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003a874
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
movsxd rbp, r8d
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0xd0], 0
jne 0x14003a8b5
mov r8d, ebp
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14003a992
call fcn.140035a3c
mov r14, rax
test rax, rax
jne 0x14003a8cd
mov ecx, 0x80004005
call fcn.140006230
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1401cc2e4
mov rcx, r14
call rbx
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rdi, qword [rdi + 0xd0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x118]
mov rcx, rbx
call fcn.1401cc2e4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call rbx
mov rdx, rbp
or rbx, 0xffffffffffffffff
mov r9, rbx
mov r8, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1401e5448
test eax, eax
je 0x14003a94e
cmp eax, 0xc
je 0x14003a948
cmp eax, 0x16
je 0x14003a942
cmp eax, 0x22
je 0x14003a942
cmp eax, 0x50
je 0x14003a94e
call fcn.140035158
int3
call fcn.140035158
int3
call fcn.14003517c
int3
test rsi, rsi
jne 0x14003a957
xor ebp, ebp
jmp 0x14003a962
mov rcx, rsi
call fcn.1401d8b54
mov rbp, rax
mov rsi, qword [rsp + 0x50]
mov ecx, ebx
lock xadd dword [rsi - 8], ecx
add ecx, ebx
test ecx, ecx
jg 0x14003a990
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.1401cc2e4
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, ebp
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14003b3ac
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14003b3d7
mov r8, rdx
mov rdx, qword [rdi]
call fcn.140036db8
jmp 0x14003b44f
cmp byte [0x1402e0cf0], 0
jne 0x14003b41e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b40e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402e0ce8], rax
jmp 0x14003b415
mov rbx, qword [0x1402e0ce8]
mov byte [0x1402e0cf0], 1
jmp 0x14003b425
mov rbx, qword [0x1402e0ce8]
test rbx, rbx
je 0x14003b443
mov rcx, rbx
call fcn.1401cc2e4
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14003b44f
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004140c
Capabilities:
Extract resource via kernel32 functions

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
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140041474
call fcn.1400362c4
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140041474
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140041496
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.14004e328
mov esi, eax
test rdi, rdi
je 0x140041494
test rbx, rbx
je 0x140041494
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
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