joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036db8
Capabilities:
Read file 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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140036ade
call fcn.140026700
mov dword [rax], socket
call fcn.140028f80
jmp 0x140036c29
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140036c29
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140036c29
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140036b0d
lock or dword [rcx + 0x14], 0x10
jmp 0x140036c29
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140036b21
call fcn.14003ce00
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140036b31
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140036b34
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140030184
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140035290
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140036c17
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140036bc5
mov rcx, rbx
call fcn.140030184
cmp eax, 0xffffffff
je 0x140036bb0
mov rcx, rbx
call fcn.140030184
cmp eax, 0xfffffffe
je 0x140036bb0
mov rcx, rbx
call fcn.140030184
movsxd rdi, eax
lea r14, [0x140077db0]
mov rcx, rbx
sar rdi, 6
call fcn.140030184
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140036bb7
lea rdx, [0x140061880]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140036bc5
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140036be9
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140036be9
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140036be9
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140036c07
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140036c12
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140036c2e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140036aa8
Function at 0x1400013e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xe0
xor eax, eax
xor edi, edi
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdi + 0x68]
xor edx, edx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140001cf0
lea edx, [rdi + 1]
lea rcx, [0x1400013b0]
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001499
call fcn.140001a70
lea rdx, str.failed_to_create_process._n
lea rcx, [rax + 0x60]
call fcn.1400018f8
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
mov dword [0x140013540], eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400014f0
call fcn.140001a70
lea rdx, str.failed_to_get_exit_code_from_process._n
lea rcx, [rax + 0x60]
call fcn.1400018f8
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
mov eax, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
Function at 0x140002950
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140004708
nop
cmp dword [0x140013598], 1
je 0x1400028fc
mov dword [0x140013594], 1
mov byte [0x140013590], r12b
test ebx, ebx
jne 0x1400028e8
mov rcx, qword [0x1400145a0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400028d5
mov rcx, qword [0x140014598]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140002874
call fcn.14000574c
cmp qword [rdi], rax
jne 0x140002874
jmp 0x14000285a
cmp rdi, rsi
jb 0x1400028d5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000574c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400145a0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140014598]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400028b3
cmp r13, rax
je 0x1400028d3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14000285a
lea rdx, [0x14000f2e8]
lea rcx, [0x14000f2d0]
call fcn.1400026a4
lea rdx, [0x14000f2f8]
lea rcx, [0x14000f2f0]
call fcn.1400026a4
nop
test r12d, r12d
je 0x14000290b
mov ecx, 8
call fcn.140004608
test r12d, r12d
jne 0x140002936
mov dword [0x140013598], 1
lea ecx, [r12 + 8]
call fcn.140004608
mov ecx, r15d
call fcn.140002638
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400027c4

Function at 0x14000295c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400027c4
Function at 0x140004ab7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400123c0]
jne 0x14000236a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002366
repz ret
ror rcx, 0x10
jmp 0x140004a10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400138b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400139a8]
mov qword [rsp + 0x58], r11
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 0x140004a95
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, [0x1400138b0]
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 0x140004ab7
mov rax, qword [rsp + 0x88]
mov qword [0x1400139a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140013948], rax
mov rax, qword [0x1400139a8]
mov qword [0x140013820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140013930], rax
mov dword [0x140013810], 0xc0000409
mov dword [0x140013814], 1
mov rax, qword [0x1400123c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400123c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400138a8], eax
mov ecx, 1
call fcn.1400073c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000f470]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400138a8], 0
jne 0x140004b3e
mov ecx, 1
call fcn.1400073c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000988c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000574c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140014270], rbx
jne 0x140009992
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140009a67
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009a67
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140014270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140014278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140014280], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140014290], rax
test rax, rax
je 0x140009989
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140014288], rax
jmp 0x140009999
mov rax, qword [0x140014288]
jmp 0x1400099a0
mov rax, qword [0x140014288]
mov r11, qword [0x140014290]
cmp rax, rdi
je 0x140009a08
cmp r11, rdi
je 0x140009a08
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140014290]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140009a08
test rax, rax
je 0x140009a08
call rsi
test rax, rax
je 0x140009a02
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140009a02
test byte [rsp + 0x38], 1
jne 0x140009a08
bts ebp, 0x15
jmp 0x140009a46
mov rcx, qword [0x140014278]
cmp rcx, rdi
je 0x140009a46
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140009a46
call rax
mov rbx, rax
test rax, rax
je 0x140009a46
mov rcx, qword [0x140014280]
cmp rcx, rdi
je 0x140009a46
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140009a46
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140014270]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140009a67
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140009a69
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000de60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x14000de9a
call fcn.140003fdc
and dword [rax], 0
call fcn.140003fbc
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140003eec
mov eax, ebx
jmp 0x14000deea
test edx, 0xfffffff9
jne 0x14000de6d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000dec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140003ffc
call fcn.140003fbc
mov eax, dword [rax]
jmp 0x14000deea
test al, 0x10
jne 0x14000dee8
test al, 1
je 0x14000dee8
test bl, 2
je 0x14000dee8
call fcn.140003fdc
mov dword [rax], 5
call fcn.140003fbc
mov dword [rax], 0xd
jmp 0x14000deba
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000df80
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 0x14000dfae
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000fbe0
cmp byte [0x14003de90], 0
jne 0x14000dff9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dfe9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14003de90], 1
mov qword [0x14003de88], rax
jmp 0x14000e000
mov rax, qword [0x14003de88]
mov byte [0x14003de90], 1
jmp 0x14000e000
mov rax, qword [0x14003de88]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000e01f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000fc54
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000fc6f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000fc6f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000fc6f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
cwde
xchg ebp, eax
cmp edi, 0x37
mov ah, 0xb5
dec dword [rcx]
leave
invalid
Function at 0x14000f940
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14003baf0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.14000ed70
mov ebx, eax
test eax, eax
jne 0x14000fa67
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000fa41
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000f940
mov ebx, eax
test eax, eax
jne 0x14000fa67
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f9f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000fa56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.14000df80
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000fa77
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140017500
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fbe0
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 0x14000dfae
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000fbe0
cmp byte [0x14003de90], 0
jne 0x14000dff9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dfe9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14003de90], 1
mov qword [0x14003de88], rax
jmp 0x14000e000
mov rax, qword [0x14003de88]
mov byte [0x14003de90], 1
jmp 0x14000e000
mov rax, qword [0x14003de88]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000e01f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000fc54
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000fc6f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000fc6f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000fc6f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
cwde
xchg ebp, eax
cmp edi, 0x37
mov ah, 0xb5
dec dword [rcx]
leave
invalid
Function at 0x14000ffd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14003baf0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140017530
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001007c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001007c
call fcn.14000c990
mov ebx, eax
jmp 0x1400101a4
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001009d
call fcn.14000c990
jmp 0x140010193
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400100c0
call fcn.14000c990
jmp 0x140010193
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400100e2
mov ebx, 0x8007000e
jmp 0x140010195
mov ecx, eax
test eax, eax
je 0x14001011a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140010110
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001011a
lea rcx, [rsp + 0x70]
call fcn.14000c800
jmp 0x140010124
mov ecx, 0x80070216
call fcn.1400028d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140010137
cmp qword [rsp + 0x70], 0
jne 0x140010146
mov ebx, 0x8007000e
jmp 0x140010195
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140010170
call fcn.14000c990
jmp 0x140010193
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14000fcf0
mov ebx, eax
test rdi, rdi
je 0x1400101a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400101bb
lea rcx, [rsp + 0x70]
call fcn.14000e070
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140017500
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140010b00
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003baf0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017500
add rsp, 0x48
ret

Function at 0x140010b50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140010b68
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140010b74
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140010b70
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140010c70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14003baf0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140010cb4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017500
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x14000eb60]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140010cf5
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017500
add rsp, 0x40
pop rbx
ret

Function at 0x1400114b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x14003ddb9], 0
mov esi, edx
mov rbx, rcx
je 0x1400114d6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x14001151c
cmp eax, 0x80010106
jne 0x14001157c
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140011520
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.14000ee70
cmp al, 1
jne 0x14001156c
mov edx, esi
mov rcx, rbx
call fcn.14000f3d0
mov edi, eax
test eax, eax
jne 0x14001155e
mov rcx, rbx
call fcn.140010a90
mov rcx, rbx
call fcn.14000f240
mov edi, eax
jmp 0x140011570
js 0x140011570
mov rcx, rbx
call fcn.14000f240
mov edi, eax
jmp 0x140011570
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x14001157c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret