joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rdi, r8
mov rsi, rcx
test r8, r8
jne 0x41b10b
xor eax, eax
jmp 0x41b2bb
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x80], ebx
lea rcx, [rsp + 0x38]
call fcn.00419c30
xor r11d, r11d
mov qword [rdi], r11
mov qword [rdi + 8], r11
mov qword [rdi + 0x10], r11
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b297
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41b1c9
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x41b1b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x41b1c2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41b2bb
cmp dword [rsp + 0x80], 4
je 0x41b20c
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x41b1f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x41b205
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41b2bb
mov word [rdi], 0x13
mov dword [rsp + 0x88], 4
lea rax, [rdi + 8]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b25b
mov eax, ebx
mov ecx, SafeArrayGetDim
cmp dword [rsp + 0x30], 4
cmovne eax, ecx
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x41b283
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x41b293
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41b2bb
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x41b2b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x41d2d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get system information on windows

Disassembly:
push rbx
mov eax, 0x10060
call fcn.004e6570
sub rsp, rax
mov rax, qword [0x00535d58]
xor rax, rsp
mov qword [rsp + 0x10050], rax
cmp qword [rcx + 8], 0
mov rbx, rcx
je 0x41d30a
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x41d51f
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x41d51f
mov qword [rsp + 0x10078], rsi
xor esi, esi
mov qword [rsp + 0x10080], rdi
cmp dword [rax + 0x28c], esi
jbe 0x41d389
xor edi, edi
nop
nop
nop
nop
lea rcx, [rax + 0x280]
mov edx, esi
call fcn.0044a6a0
test eax, eax
je 0x41d373
mov rcx, qword [rbx + 0x10]
movzx eax, word [rcx + rdi + 0x2b8]
bt ax, 9
jb 0x41d373
test al, 8
je 0x41d373
test byte [rcx + rdi + 0x2b0], 1
je 0x41d391
mov rax, qword [rbx + 0x10]
add esi, 1
add rdi, 0x9c
cmp esi, dword [rax + 0x28c]
jb 0x41d340
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x40
mov rax, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x10078]
bt dword [rax + 0x4c], 0x11
jae 0x41d3ac
mov rcx, rbx
call fcn.0041dab0
mov rax, qword [rbx + 0x10]
test byte [rax + 0xb], 1
je 0x41d3be
mov rcx, rbx
call fcn.0041e860
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x1650]
test rcx, rcx
je 0x41d41b
nop
test rcx, rcx
mov rax, rcx
je 0x41d4e0
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx]
test rax, rax
je 0x41d416
cmp dword [rax + 0xa0], 8
jne 0x41d416
cmp dword [rax + 0x38], 0
je 0x41d416
mov edx, dword [rax + 0x154]
bt edx, 0xc
jae 0x41d416
test dl, 1
jne 0x41d4d0
bt edx, 0xa
jb 0x41d4d0
test rcx, rcx
jne 0x41d3d0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
mov rdx, qword [rbx + 0x10]
bt dword [rdx + 0x74], 0x1a
jae 0x41d444
and dword [rdx + 8], 0xfffff7ff
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x200000
xor edx, edx
xor ecx, ecx
call fcn.00421f30
xor edx, edx
lea ecx, [rdx + 1]
call fcn.00421f30
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x2c]
mov dword [rsp + 0x20], 0
call fcn.004cb030
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41d517
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x41d4b0
mov word [rsp + rcx*2 + 0x4c], ax
cmp word [rsp + 0x20], 9
jne 0x41d4e6
lea r8, str.RTKVAA64.EXE
lea rcx, [rsp + 0x50]
mov edx, 0x7fff
call fcn.004c8820
jmp 0x41d4fc
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20000
jmp 0x41d41b
call fcn.0049c5dc
int3
lea r8, str.RTKVADDA.EXE
lea rcx, [rsp + 0x50]
mov edx, 0x7fff
call fcn.004c8820
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d517
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20000000
mov rdi, qword [rsp + 0x10080]
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.004c7bc0
add rsp, 0x10060
pop rbx
ret
Function at 0x43d1b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
sub rsp, 0x28
cmp qword [rcx + 0x10], 0
mov rbp, rdx
mov rbx, rcx
jne 0x43d1cd
xor eax, eax
add rsp, 0x28
pop rbp
pop rbx
ret
call fcn.0043cf70
test eax, eax
je 0x43d1c4
test rbp, rbp
je 0x43d1c4
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
xor esi, esi
cmp dword [rbx + 0x50], esi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x20], r13
mov edi, esi
jbe 0x43d226
mov r12, qword [rbx + 0x48]
nop
mov eax, edi
mov r8d, 0x28
lea rcx, [rax + rax*8]
lea rdx, [r12 + rcx*8 + 8]
lea rcx, [rbx + 0x20]
call fcn.004cb650
test eax, eax
je 0x43d229
add edi, 1
cmp edi, dword [rbx + 0x50]
jb 0x43d200
or edi, 0xffffffff
movsxd rcx, dword [rbp + 0x10]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x50]
test ecx, ecx
js 0x43d275
cmp edi, ecx
je 0x43d28b
lea rdx, [rcx + rcx*8]
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx + rdx*8 + 8]
mov qword [rbx + 0x20], rax
mov rax, qword [rcx + rdx*8 + 0x10]
mov qword [rbx + 0x28], rax
mov rax, qword [rcx + rdx*8 + 0x18]
mov qword [rbx + 0x30], rax
mov rax, qword [rcx + rdx*8 + 0x20]
mov qword [rbx + 0x38], rax
mov rax, qword [rcx + rdx*8 + 0x28]
jmp 0x43d362
mov edx, dword [rbp + 4]
cmp dword [rbx + 0x24], edx
jne 0x43d2a1
movzx eax, word [rbp + 8]
cmp word [rbx + 0x32], ax
jne 0x43d2a1
cmp edi, ecx
jne 0x43d2a1
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x28
pop rbp
pop rbx
ret
mov dword [rbx + 0x24], edx
movzx eax, word [rbp + 8]
cmp ax, 0x10
jbe 0x43d2bc
cmp ax, 0x20
ja 0x43d2bc
mov word [rbx + 0x2e], 0x20
jmp 0x43d2c0
mov word [rbx + 0x2e], ax
mov rax, qword [rbx + 0x10]
lea r8, [0x00400000]
cmp dword [rax + 0xa0], 8
jne 0x43d326
test edi, edi
js 0x43d326
mov rax, qword [rax + 0x178]
mov edx, dword [rbp]
mov rcx, rsi
add rax, 4
nop
nop
test dword [rax], edx
jne 0x43d307
add rcx, 1
add esi, 1
add rax, 8
cmp rcx, 7
jl 0x43d2f0
jmp 0x43d326
movsxd rax, esi
lea rcx, [rax + rax*2]
movzx eax, word [r8 + rcx*8 + 0x137d14]
mov word [rbx + 0x22], ax
mov eax, dword [r8 + rcx*8 + 0x137d18]
mov dword [rbx + 0x34], eax
movzx eax, word [rbx + 0x22]
movzx ecx, word [rbx + 0x2e]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx ecx, ax
mov word [rbx + 0x2c], ax
imul ecx, dword [rbx + 0x24]
mov dword [rbx + 0x28], ecx
movzx eax, word [rbp + 8]
mov word [rbx + 0x32], ax
mov rax, qword [r8 + 0xf7768]
mov qword [rbx + 0x38], rax
mov rax, qword [r8 + 0xf7770]
mov rcx, rbx
mov qword [rbx + 0x40], rax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rbp
pop rbx
jmp fcn.0047c660
Function at 0x447dc0
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 r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov edx, 6
add ax, 1
mov rcx, rbp
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov r12, rax
je 0x447f22
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x447f22
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x447f22
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x447e66
nop
cmp rdi, r11
jae 0x447f22
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x447e50
cmp rdi, r11
jae 0x447f22
movzx eax, word [rdi]
test ax, ax
je 0x447f22
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x447e9c
mov edx, ebx
mov rcx, rsi
call fcn.004034e0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x447eb9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.004c80e0
test eax, eax
je 0x447ef8
cmp eax, 0xc
je 0x447ef2
cmp eax, 0x16
je 0x447eec
cmp eax, 0x22
je 0x447eec
cmp eax, 0x50
je 0x447ef8
call fcn.0049c5dc
int3
call fcn.0049c5dc
int3
call fcn.0049c594
int3
test ebx, ebx
js 0x447f17
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x447f17
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x447f24
mov ecx, 0x80070057
call fcn.004034c0
int3
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 r12
ret
Function at 0x44c560
Capabilities:
Identify system language via api

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
mov rdi, rcx
mov word [rcx + 0xe], 0x409
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
test ax, ax
mov esi, 0x404
lea rbx, [0x00538088]
movzx r11d, ax
lea r12, str.Arabic
mov ebp, 0x804
lea r13d, [rsi + 0x12]
je 0x44c63d
movzx r8d, ax
xor ecx, ecx
mov r9w, 0x409
and r8w, 0x3ff
mov rdx, rbx
nop
nop
nop
movzx eax, word [rdx]
and ax, 0x3ff
cmp r8w, ax
je 0x44c5eb
add ecx, 1
add rdx, 0x10
cmp ecx, 0x1a
jb 0x44c5d0
jmp 0x44c5f8
movsxd rax, ecx
shl rax, 4
mov r9w, word [rax + r12 + 8]
mov ax, r11w
and eax, 0x3ff
cmp eax, 4
je 0x44c624
cmp eax, 0x16
jne 0x44c638
and r11w, 0xfc00
mov r9d, 0x816
cmp r11w, 0x400
cmove r9w, r13w
jmp 0x44c638
and r11w, 0xfc00
mov r9d, esi
cmp r11w, 0x800
cmove r9w, bp
mov word [rdi + 0xe], r9w
movzx eax, word [rdi + 0xe]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x0053fac0]
xor r9d, r9d
mov dword [rdi + 8], 1
mov word [rdi + 0xc], ax
call fcn.004a0ffc
test ax, ax
mov r11d, eax
je 0x44c703
movzx r8d, r11w
xor edx, edx
mov ax, 0x409
and r8w, 0x3ff
nop
nop
nop
movzx ecx, word [rbx]
and cx, 0x3ff
cmp r8w, cx
je 0x44c6ac
add edx, 1
add rbx, 0x10
cmp edx, 0x1a
jb 0x44c690
jmp 0x44c6b9
movsxd rax, edx
shl rax, 4
mov ax, word [rax + r12 + 8]
mov cx, r11w
and ecx, 0x3ff
cmp ecx, 4
je 0x44c6e5
cmp ecx, 0x16
jne 0x44c6f8
and r11w, 0xfc00
mov eax, 0x816
cmp r11w, 0x400
cmove ax, r13w
jmp 0x44c6f8
and r11w, 0xfc00
cmp r11w, 0x800
cmove si, bp
mov ax, si
mov word [rdi + 0xc], ax
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x458ce0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10040
call fcn.004e6570
sub rsp, rax
mov rax, qword [0x00535d58]
xor rax, rsp
mov qword [rsp + 0x10020], rax
mov r8, qword [rcx + 0x118]
mov rbx, rcx
test r8, r8
jne 0x458d14
xor eax, eax
jmp 0x458d86
mov r8, qword [r8 + 0x1650]
mov r10, qword [rcx + 0x110]
mov qword [rsp + 0x10068], rdi
test r8, r8
je 0x458d7c
nop
test r8, r8
mov r9, r8
je 0x458f53
mov r9, qword [r9 + 0x10]
mov r8, qword [r8]
test r9, r9
je 0x458d77
test r10, r10
je 0x458f48
mov rax, qword [r9 + 0x20]
mov rdi, r10
sub rdi, rax
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x458d73
add rax, 2
test ecx, ecx
jne 0x458d60
test edx, edx
je 0x458d9f
test r8, r8
jne 0x458d30
xor eax, eax
mov rdi, qword [rsp + 0x10068]
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.004c7bc0
add rsp, 0x10040
pop rbx
ret
lea rdx, [rbx + 0x4a8]
lea rcx, [r9 + 0x90]
xor r8d, r8d
call sub.DSOUND.dll_DirectSoundCaptureCreate
test eax, eax
js 0x458d7c
mov eax, dword [rbx + 0x654]
mov qword [rsp + 0x10058], rbp
mov qword [rsp + 0x10060], rsi
mov qword [rsp + 0x10038], r12
mov ebp, 1
shl eax, 2
mov qword [rsp + 0x10030], r13
mov word [rbx + 0x650], 1
mov word [rbx + 0x65e], 0x10
mov dword [rbx + 0x658], eax
mov word [rbx + 0x652], 2
mov word [rbx + 0x65c], 4
lea r12, [rbx + 0x5c0]
lea rsi, [rbx + 0x4c0]
lea r13d, [rbp + 0xf]
nop
nop
nop
nop
mov edi, dword [rbx + 0x658]
xor edx, edx
xor r9d, r9d
shl edi, 3
xor r8d, r8d
shr edi, 4
imul edi, ebp
add edi, 0xffffffff
mov dword [rsi], edi
movzx ecx, word [rbx + 0x65c]
mov eax, dword [rbx + 0x658]
shl eax, 3
shr eax, 4
div ecx
xor ecx, ecx
sub edi, edx
xor edx, edx
mov dword [rsi], edi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
add rsi, 0x10
mov qword [r12], rax
mov qword [rsi - 8], rax
add ebp, 1
add r12, 8
sub r13, 1
jne 0x458e30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
mov qword [rbx + 0x640], rax
mov dword [rbx + 0x5b0], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov r13, qword [rsp + 0x10030]
mov r12, qword [rsp + 0x10038]
mov rsi, qword [rsp + 0x10060]
mov rbp, qword [rsp + 0x10058]
je 0x458d7c
add eax, 0xffffffff
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x458f02
lea r8, [0x004f7618]
lea rcx, [rsp + 0x20]
mov edx, 0x7fff
call fcn.004c8820
lea r8, str.MicCal.wav
lea rcx, [rsp + 0x20]
mov edx, 0x7fff
call fcn.004c8820
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rbx + 0x670]
call fcn.00409ff0
mov eax, 1
jmp 0x458d7e
mov ecx, 0x80004005
call fcn.004034c0
int3
call fcn.0049c5dc
int3
Function at 0x458f60
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x70
cmp qword [rcx + 0x4a8], 0
mov rdi, rcx
jne 0x458f7b
xor eax, eax
add rsp, 0x70
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rsi
xor esi, esi
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.004591c0
mov ecx, 0xc8
call fcn.00490410
test rax, rax
mov rbx, rax
je 0x458fe7
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0xc0], rsi
mov dword [rax + 0x38], esi
mov dword [rax + 0xa4], esi
jmp 0x458fea
mov rbx, rsi
test rbx, rbx
mov qword [rdi + 0x648], rbx
jne 0x458ffd
xor eax, eax
jmp 0x45914d
mov rcx, qword [rdi + 0x670]
xor edx, edx
mov r8d, 0x11002
mov qword [rsp + 0x88], rbp
mov dword [rbx + 0xa0], 2
mov dword [rbx + 0xa4], esi
call qword [sym.imp.WINMM.dll_mmioOpenW]
test rax, rax
mov qword [rbx + 8], rax
je 0x459055
lea rbp, [rdi + 0x650]
mov rcx, rbx
mov rdx, rbp
call fcn.0048ea30
test eax, eax
jns 0x45905c
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
jmp 0x459145
mov rcx, rbx
call fcn.0048e7d0
test eax, eax
js 0x459055
mov eax, dword [rdi + 0x658]
mov rcx, qword [rdi + 0x4a8]
mov dword [rsp + 0x40], 0x28
shl eax, 3
mov qword [rsp + 0x50], rbp
lea r8, [rdi + 0x4b0]
mov dword [rsp + 0x48], eax
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x98], r12
call qword [rax + 0x18]
test eax, eax
js 0x45913b
lea rbx, [rdi + 0x5c0]
mov ebp, 0x11
nop
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x4590ce
call qword [sym.imp.KERNEL32.dll_ResetEvent]
add rbx, 8
sub rbp, 1
jne 0x4590c0
mov rcx, qword [rdi + 0x4b0]
lea r8, [rdi + 0x4b8]
lea rdx, [0x005060a8]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x45913b
mov rcx, qword [rdi + 0x4b8]
lea r8, [rdi + 0x4c0]
lea edx, [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x45913b
lea rcx, [0x004595e0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 4
call fcn.004a0d48
test rax, rax
mov rbp, rax
jne 0x459163
xor eax, eax
mov r12, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x30], 2
lea r9, [rdi + 0x668]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rdi + 0x4b0]
xor edx, edx
mov r8, qword [rcx]
call qword [r8 + 0x48]
test eax, eax
setns sil
mov eax, esi
jmp 0x45913d
Function at 0x4591c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
cmp qword [rcx + 0x668], rsi
mov dword [rsp + 0x30], esi
je 0x45922b
mov rcx, qword [rcx + 0x640]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x668]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x45921e
cmp dword [rsp + 0x30], 0x103
jne 0x45921e
mov rcx, qword [rbx + 0x668]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x668]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x4b8]
mov qword [rbx + 0x668], rsi
test rcx, rcx
je 0x45924b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x4b8], rsi
mov rcx, qword [rbx + 0x4b0]
test rcx, rcx
je 0x459276
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rbx + 0x4b0]
test rcx, rcx
je 0x459276
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x4b0], rsi
mov rdi, qword [rbx + 0x648]
test rdi, rdi
je 0x4592b1
mov rcx, rdi
call fcn.0048e8a0
cmp dword [rdi + 0xa4], esi
jne 0x4592a2
mov rcx, qword [rdi]
test rcx, rcx
je 0x4592a2
call fcn.00490454
mov qword [rdi], rsi
mov rcx, rdi
call fcn.00490454
mov qword [rbx + 0x648], rsi
mov rax, qword [rbx + 0x670]
lea rdi, [0x004f7838]
mov ecx, 1
mov rsi, rax
repe cmpsw word [rsi], word [rdi]
je 0x4592d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x398]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x472a80
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x40], r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
call fcn.0049bd14
nop
lea rax, [0x00504c48]
mov qword [rbx], rax
lea rax, [0x00504cf8]
mov qword [rbx + 0x40], rax
call fcn.0049d8dc
mov rcx, rax
xor esi, esi
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x472aed
mov ecx, 0x80004005
call fcn.004034c0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x48], rax
lea r12, [rbx + 0x60]
mov qword [r12], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x78], rsi
lea rdi, [rbx + 0x80]
mov esi, 4
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x472b20
test rbp, rbp
jne 0x472b46
xor ecx, ecx
jmp 0x472b59
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rbp
lea rcx, [rbx + 0x48]
call fcn.00409ff0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
mov dword [rbx + 0x50], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 0x54], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 0x58], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0x5c], eax
mov qword [rsp + 0x20], r12
lea r9, [0x004f8b98]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x004f8b78]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x472c55
mov rcx, qword [r12]
mov rax, qword [rcx]
lea rdx, [rbx + 0x40]
call qword [rax + 0x30]
test eax, eax
js 0x472c55
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x004732f0]
call fcn.004a0d48
mov rsi, rax
test rax, rax
je 0x472c55
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
lea r9, [rbx + 0x78]
mov r8, rdi
mov rdx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call fcn.004731d0
test eax, eax
je 0x472c55
mov rcx, rbx
call fcn.004731d0
test eax, eax
je 0x472c55
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x472c55
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rax, rbx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret