joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104450
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140104492
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401044d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140104532
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1401044f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140104573
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14011965b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14011965c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140104540
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14010458c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1401045c6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401045cb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140104614
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140104614
dec r8
sub rdx, 1
jne 0x1401045fa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140104dd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1401046a4
mov ebx, eax
test eax, eax
jne 0x140104e08
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140104e6b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140104e62
test al, 0x10
je 0x140104e62
bt eax, 0xa
jae 0x140104e5b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140104e7c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140104e57
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140104e57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140104e62
and dword [rsp + 0x3c], 0
jmp 0x140104e67
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140106318
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140017b40
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]
nop
add rsp, 0x28
ret
Function at 0x140011447
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018e90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018eb0
xor al, al
jmp 0x140018f31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018ec3
xor al, al
jmp 0x140018f31
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 0x140018eed
xor al, al
jmp 0x140018f31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018f01
xor al, al
jmp 0x140018f31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018f13
xor al, al
jmp 0x140018f31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018f2f
xor al, al
jmp 0x140018f31
mov al, 1
add rsp, 0x38
ret
Function at 0x140011631
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140014870
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
lea rcx, [0x14002a0f3]
call fcn.14001161d
nop
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x120]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x128]
mov word [rbp + 0x26], ax
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fe00]
call fcn.140011514
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140016c90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011659
movzx eax, al
test eax, eax
jne 0x140016cb0
mov ecx, 7
call fcn.140011523
nop
mov byte [rsp + 0x20], 0
call fcn.140011569
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140016cd4
mov ecx, 7
call fcn.140011523
nop
jmp 0x140016d2c
cmp dword [0x140024b78], 0
jne 0x140016d27
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112cb
test eax, eax
je 0x140016d08
mov eax, 0xff
jmp 0x140016e31
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.14001154b
mov dword [0x140024b78], 2
jmp 0x140016d2c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001150a
call fcn.14001146f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016d89
mov rcx, qword [rsp + 0x30]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x140016d89
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.1400114ba
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016dbd
mov rcx, qword [rsp + 0x38]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x140016dbd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115fa
nop
call fcn.140016ee0
mov dword [rsp + 0x28], eax
call fcn.140011447
movzx eax, al
test eax, eax
jne 0x140016ddc
mov ecx, dword [rsp + 0x28]
call fcn.140011073
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016deb
call fcn.140011609
nop
xor edx, edx
mov cl, 1
call fcn.14001121c
mov eax, dword [rsp + 0x28]
jmp 0x140016e31
add rsp, 0x68
ret
Function at 0x140ecf528
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ecf6af
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ecf559
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecf53f
add dl, dl
jne 0x140ecf566
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecf5c6
xor eax, eax
add dl, dl
jne 0x140ecf575
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecf67d
add dl, dl
jne 0x140ecf586
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecf593
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecf5a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecf5ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ecf5ba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ecf54e
mov eax, 1
add dl, dl
jne 0x140ecf5d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecf5e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecf5cb
sub eax, ebx
mov ebx, 1
jne 0x140ecf61c
mov ecx, 1
add dl, dl
jne 0x140ecf5fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ecf60b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecf5f3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecf54e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ecf638
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ecf645
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecf62d
cmp eax, 0x7d00
jae 0x140ecf66b
cmp eax, 0x500
jb 0x140ecf666
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecf54e
cmp eax, 0x7f
ja 0x140ecf66e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecf54e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ecf6a2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ecf54e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001668
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001702
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov esi, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140001702
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rdi
jmp 0x140001704
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001b80
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180593241
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x18056aa71
mov ebx, 0x9f9d3c90
push r8
add bx, bx
movzx r8d, bl
lea rbx, [0x180573630]
movzx r8d, byte [r10]
push 0x1595d7b7
xor r8d, r11d
and r8d, 0xff
mov r8d, dword [rbx + r8*4]
shr r11d, 8
xor r11d, r8d
sal dword [rsp + 4], 0xc3
inc r10
xor r11d, 0x2b0e0ba4
dec rcx
lea rsp, [rsp + 8]
jne 0x180593261
jmp 0x18056aa6f
Function at 0x1400042d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14020f568]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov eax, dword [0x1401d2314]
mov rdi, rcx
lea rcx, [rbp + 0x190]
mov dword [rbp + 0x180], eax
movzx eax, byte [0x1401d2318]
xor edx, edx
mov r8d, 0x104
mov byte [rbp + 0x184], al
call fcn.140159440
lea rcx, [rbp + 0x190]
mov r8, rdi
mov edx, 0x104
call fcn.140157844
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x190]
repne scasb al, byte [rdi]
lea rax, [rbp + 0x190]
not rcx
cmp byte [rcx + rax - 2], 0x5c
je 0x140004370
lea r8, [0x1401d231c]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140157844
lea r8, [rbp + 0x180]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140157844
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400043a9
xor eax, eax
jmp 0x1400044ff
mov qword [rsp + 0x3e0], r12
xor r12d, r12d
mov qword [rsp + 0x3d8], rsi
nop dword [rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x118
call fcn.140159440
test byte [rbp + 0x40], 0x10
je 0x140004433
lea rsi, [rbp + 0x6c]
lea rdi, [0x1401d2320]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x1400044ca
lea rsi, [rbp + 0x6c]
lea rdi, [0x1401d2324]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x1400044ca
lea r8, [rbp + 0x6c]
lea rcx, [rsp + 0x34]
mov edx, 0x104
mov dword [rsp + 0x20], 1
call fcn.140157dd8
mov rdx, qword [0x14021c800]
mov qword [0x14021c808], rdx
jmp 0x140004470
lea r8, [rbp + 0x6c]
lea rcx, [rsp + 0x34]
mov edx, 0x104
mov dword [rsp + 0x20], r12d
call fcn.140157dd8
mov eax, dword [rbp + 0x60]
mov edx, dword [rbp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x54]
mov qword [rsp + 0x2c], rax
mov rax, qword [0x14021c800]
mov dword [rsp + 0x24], edx
mov qword [0x14021c808], rax
mov ecx, 0x128
call fcn.140006fcc
mov rdi, rax
test rax, rax
je 0x14000449f
mov qword [rax + 8], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, 0x118
mov qword [rax], rax
call fcn.140157510
jmp 0x1400044a2
mov rdi, r12
mov rcx, qword [0x14021c808]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx]
mov qword [rax + 8], rdi
mov qword [rdi + 8], rcx
mov qword [rcx], rdi
inc dword [0x14021c810]
mov qword [0x14021c808], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400044ea
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400043c0
mov r12, qword [rsp + 0x3e0]
mov rsi, qword [rsp + 0x3d8]
mov eax, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140157300
add rsp, 0x3b0
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001d1bc
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x14001d1fa
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14001d2ae
call fcn.14000e630
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001d219
mov ecx, 0x80004005
call fcn.140005c90
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140158968
test eax, eax
je 0x14001d281
cmp eax, 0xc
je 0x14001d27b
cmp eax, 0x16
je 0x14001d275
cmp eax, 0x22
je 0x14001d275
cmp eax, 0x50
je 0x14001d281
call fcn.14000e4b8
int3
call fcn.14000e4b8
int3
call fcn.14000e470
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14001d2ac
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140020300
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140020326
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14001262c
jmp 0x14002038d
cmp byte [0x140214fa0], 0
jne 0x14002036a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14002035a
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140214f98], rax
jmp 0x140020361
mov rax, qword [0x140214f98]
mov byte [0x140214fa0], 1
jmp 0x140020371
mov rax, qword [0x140214f98]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140020387
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x14002038d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140020814
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x140020846
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140020846
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140054080
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140093b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x140093b91
call fcn.14001429c
mov rdi, qword [rax + 0x18]
mov r8, qword [0x140218000]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x140093bb0
xor eax, eax
jmp 0x140093bfc
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140093bac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140093bf1
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.140093a24
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400c3610
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400c3621
xor eax, eax
jmp 0x1400c364f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400c37e4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400c37f5
xor eax, eax
jmp 0x1400c3819
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400c3820
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x1400c3862
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x14015e32b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14020f568]
jne 0x14015731a
rol rcx, 0x10
test cx, 0xffff
jne 0x140157316
repz ret
ror rcx, 0x10
jmp 0x14015e284
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14021b660]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14021b758]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14015e309
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14021b660]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14015e32b
mov rax, qword [rsp + 0x88]
mov qword [0x14021b758], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14021b6f8], rax
mov rax, qword [0x14021b758]
mov qword [0x14021b5d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14021b6e0], rax
mov dword [0x14021b5c0], 0xc0000409
mov dword [0x14021b5c4], 1
mov rax, qword [0x14020f568]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14020f570]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14021b658], eax
mov ecx, 1
call fcn.14016a334
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401cbac8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14021b658], 0
jne 0x14015e3b2
mov ecx, 1
call fcn.14016a334
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret