joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002dd0
Capabilities:
Create directory

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 r13
push r14
sub rsp, 0x30
mov r12d, r8d
mov r13d, edx
mov r14, rcx
mov rbx, qword [0x180030860]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
test rbx, rbx
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
bswap r11d
mov byte [rsp + 0x28], r12b
bswap eax
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], eax
je 0x180002e36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x180002e38
xor edi, edi
mov rcx, qword [0x1800307d8]
lea ebp, [rdi + 1]
xor edx, edx
mov r8d, ebp
add r8, 0x13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180002eef
test rbx, rbx
je 0x180002ead
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call fcn.180014c44
test rax, rax
mov rbx, rax
je 0x180002ea5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002e93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov edi, ebp
mov byte [rax + rsi], 0x5c
mov ebx, edi
lea rcx, [rsp + 0x20]
mov edx, 9
add rbx, rsi
mov r8, rbx
call fcn.18001829c
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
mov rcx, rsi
mov byte [rbx + 0x12], 0
call fcn.180014f94
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002ef4
mov ebx, 8
cmp ebx, 0x50
je 0x180002df6
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x18000323c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov ebp, edx
mov rsi, rcx
lea rdx, [0x1800332dc]
lea r8, [rax + 0x20]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180003334
mov r8, qword [0x180030b20]
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
xor edx, edx
call fcn.180018078
test eax, eax
mov ebx, eax
jne 0x1800032b4
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000330d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x180030b20]
mov rcx, qword [rsp + 0x58]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebp, ebp
mov ebx, eax
je 0x18000330d
mov r8, qword [0x180030c20]
test r8, r8
je 0x180003306
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x180030c20], rsi
cmp qword [rsp + 0x50], 0
je 0x180003329
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x180003348
Capabilities:
Access pe header
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
cmp edx, 0x1000
mov eax, dword [0x1800309dc]
mov ebp, edx
mov dword [rsp + 0x78], eax
mov r12, rcx
jbe 0x180003561
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
mov rbx, rax
je 0x180003561
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x10000
mov edi, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180003566
lea rcx, [0x18003349b]
call fcn.180014c44
test rax, rax
mov r13, rax
je 0x18000354d
mov r8, qword [0x180030b30]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
bt word [rbx + 0x16], 0xd
mov rcx, qword [0x1800307f8]
mov r15d, eax
lea rax, [0x1800348f8]
lea r14, [0x180034948]
cmovae r14, rax
test rcx, rcx
je 0x180003423
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1800307f8], 0
mov rdx, qword [0x180030b28]
lea rax, [rsp + 0x80]
mov r9, r12
mov qword [rsp + 0x28], rax
mov r8, r14
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.180003178
test eax, eax
mov edi, eax
je 0x18000349a
lea rdx, [rsp + 0x78]
lea rcx, [0x180030b28]
call fcn.180017c9c
test eax, eax
je 0x180003492
and word [rsi + r15*2], 0
mov rdx, qword [0x180030b28]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov r9, r12
mov r8, r14
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.180003178
mov edi, eax
test edi, edi
jne 0x18000353b
bt word [rbx + 0x16], 0xd
mov rax, qword [rsp + 0x80]
mov qword [0x1800307f8], rax
jae 0x180003510
lea rcx, [0x180034862]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rsi
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800307d8]
movsxd r8, eax
xor edx, edx
add r8, rbx
lea r8, [r8 + r8 + 0x22]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180003506
lea r9, [0x180034862]
lea rdx, [0x1800348b8]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x180003513
lea edi, [rbx + 8]
jmp 0x180003513
mov rbx, rsi
test edi, edi
jne 0x18000353b
lea edx, [rdi + 1]
mov rcx, rbx
call fcn.18000323c
cmp rbx, rsi
mov edi, eax
je 0x18000353b
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180003566
mov edi, 0xb
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004c0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rax + 0x20], 0
mov r12, rcx
mov rcx, qword [0x180030910]
mov rsi, r8
mov rbp, rdx
lea r8, [rax - 0x28]
xor edx, edx
call fcn.180004b78
test eax, eax
mov ebx, eax
jne 0x180004cd9
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180004cce
mov r8d, dword [rsi]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180004cc9
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180004cb5
mov qword [rbp], rdi
jmp 0x180004cce
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004cce
mov ebx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x180004cf0
Capabilities:
Delete registry value
Set registry value

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, 0x40
mov rsi, rcx
mov rcx, qword [0x180030910]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.180004b78
test eax, eax
mov ebx, eax
jne 0x180004d68
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x180004d55
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180004d5b
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x180004d88
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x30
mov rcx, qword [0x180030910]
mov ebx, dword [0x18002f5b0]
lea r8, [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x50], 0x28
call fcn.180004b78
lea r13, [0x18002f5b0]
test eax, eax
mov edi, eax
jne 0x180004e5e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800331da]
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180004e04
cmp dword [rsp + 0x50], 0x28
je 0x180004e10
lea rcx, [0x18002f5b8]
call fcn.18001a180
movzx eax, word [0x18002f5b4]
bt ax, 0xf
jb 0x180004e53
mov rcx, qword [rsp + 0x60]
or ax, 0x8008
lea rdx, [0x1800331da]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov word [0x18002f5b4], ax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x18002f5b0], 0
jne 0x180004e9d
test ebx, ebx
mov dword [0x18002f5b0], ebx
je 0x180004e93
mov r9d, 3
lea rcx, [0x1800331da]
mov rdx, r13
lea r8d, [r9 + 0x25]
call fcn.180004cf0
cmp dword [0x18002f5b0], 0
jne 0x180004e9d
mov dword [0x18002f5b0], 0x3e8
cmp qword [0x180030a98], 0
jne 0x180004f05
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004efe
mov edx, dword [0x18002f5c4]
mov ecx, dword [0x18002f5c0]
mov r9d, dword [0x18002f5bc]
mov r8d, dword [0x18002f5b8]
bswap edx
bswap ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x18003341a]
bswap r9d
bswap r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [0x180030a98], rbx
mov eax, edi
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret

Function at 0x180004f10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test ecx, ecx
movzx edi, r8w
mov eax, ecx
mov ebx, 0x57
jne 0x180004f36
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
test eax, eax
je 0x180004f99
mov rcx, qword [0x180030910]
lea r8, [rsp + 0x30]
mov edx, 1
mov dword [0x18002f5b0], eax
mov word [0x18002f5b4], di
call fcn.180004b78
test eax, eax
mov ebx, eax
jne 0x180004f99
mov rcx, qword [rsp + 0x30]
lea rax, [0x18002f5b0]
lea r9d, [rbx + 3]
lea rdx, [0x1800331da]
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180004fa8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov r14, r8
lea r8, [rax + 0x20]
mov r13d, edx
mov r12, rcx
xor edi, edi
call fcn.1800198c0
cmp eax, edi
mov edx, eax
je 0x180005169
cmp eax, 8
jbe 0x180005150
mov rbp, qword [rsp + 0xc8]
add edx, 0xfffffff8
mov ebx, dword [rdx + rbp + 4]
lea rcx, [rbp + 4]
call fcn.180023f18
not eax
cmp ebx, eax
jne 0x180005150
mov rax, qword [rsp + 0xc8]
mov rcx, qword [0x1800307d8]
xor edx, edx
mov ebx, dword [rax]
lea r8d, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rdi
mov rsi, rax
je 0x180005150
lea rcx, [rbp + 4]
mov rdx, rax
call fcn.18001d284
cmp eax, ebx
jne 0x18000513e
lea rdx, [0x1800341e4]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, edi
jne 0x18000506f
mov edx, r13d
mov rcx, r12
call fcn.180023f18
not eax
mov dword [0x180030804], eax
lea rcx, [0x180030be0]
mov r9d, ebx
mov r8, rsi
mov rdx, r14
call fcn.1800071f4
mov rcx, qword [0x180030928]
mov ebp, 1
lea r8, [rsp + 0x30]
mov edx, ebp
call fcn.180004b78
cmp eax, edi
jne 0x1800050cf
mov rcx, qword [rsp + 0x30]
lea r9d, [rbp + 2]
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
cmp eax, edi
cmove edi, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r8d, 6
lea rax, [rbx + 4]
mov ebx, dword [rbx]
mov dword [rcx], ebx
mov qword [rdx], rax
add rbx, rax
add rcx, 4
add rdx, 8
sub r8, rbp
jne 0x1800050e2
cmp dword [rsp + 0x38], ebp
jb 0x18000513e
mov edx, dword [rsp + 0x3c]
cmp edx, ebp
jbe 0x1800050d2
mov rcx, qword [rsp + 0x58]
add edx, 0xffffffff
call fcn.180023f18
xor eax, dword [0x1800309f8]
cmp eax, 0x369d482b
jne 0x1800050d2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov ecx, 0x102
call fcn.18000f594
jmp 0x1800050d2
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0xc8]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180005180
mov rcx, qword [0x180030b00]
lea rdx, [0x18002f5b6]
add rcx, 8
call fcn.1800192d4
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800051a0
Capabilities:
Delete file
Initialize winsock library

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1d0
mov ecx, 0xf00
xor ebx, ebx
call fcn.18001567c
test rax, rax
mov rdi, rax
je 0x1800052d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, rdi
lea ecx, [rax - 1]
mov dword [rsp + 0x1f0], eax
mov byte [rcx + rdi], bl
mov esi, ecx
lea rcx, [0x180033a1f]
call fcn.180009824
test eax, eax
jne 0x1800052c7
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x200]
mov rcx, rdi
mov byte [rsi + rdi], 0x31
call fcn.180014dd0
test eax, eax
jne 0x1800052be
mov edx, dword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x200]
lea r9, [rsp + 0x1f8]
lea r8, [0x180033e79]
call fcn.180018c5c
test rax, rax
je 0x1800052a7
mov edx, dword [rsp + 0x1f0]
mov rsi, rax
sub eax, dword [rsp + 0x200]
add eax, dword [rsp + 0x1f8]
lea r9, [rsp + 0x1f8]
lea r8, [0x180033e79]
mov ecx, eax
sub edx, eax
add rcx, qword [rsp + 0x200]
call fcn.180018c5c
test rax, rax
jne 0x18000523e
test rsi, rsi
je 0x1800052a7
mov eax, dword [rsp + 0x1f8]
lea rdx, str._s:_r
mov rcx, rsi
mov byte [rax + rsi], bl
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
xor edx, edx
mov rcx, rsi
call fcn.1800183dc
mov rbx, rax
mov r8, qword [rsp + 0x200]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
mov qword [rsp + 0x1f8], rbx
je 0x1800053b1
lea rdx, [rsp + 0x30]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18000530f
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call fcn.180017f68
jmp 0x180005311
xor eax, eax
test eax, eax
je 0x180005390
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x180005390
cmp ecx, 0x8080808
je 0x180005390
cmp ecx, 0xdede43d0
je 0x180005390
movzx edx, cl
cmp edx, 0xa
je 0x180005390
movzx r8d, cx
cmp r8d, 0xa8c0
je 0x180005390
mov eax, ecx
and eax, 0xfff
cmp eax, 0x10ac
je 0x180005390
cmp edx, 0x7f
je 0x180005390
test cl, cl
je 0x180005390
cmp r8d, 0xfea9
je 0x180005390
mov eax, ecx
and eax, 0x7fff
cmp eax, 0x12c6
je 0x180005390
and ecx, 0x3ff
cmp ecx, 0x4064
je 0x180005390
mov dx, 0x3a
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrChrA]
test rax, rax
je 0x1800053ac
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov qword [rsp + 0x1f8], rbx
test rbx, rbx
jne 0x180005418
mov rcx, qword [0x180030030]
test rcx, rcx
je 0x180005418
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x1f8]
xor r9d, r9d
call fcn.1800049fc
mov rbx, qword [rsp + 0x1f8]
test eax, eax
jne 0x180005418
lea rdx, str.__t_r_n
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 7
jb 0x180005404
cmp eax, 0xf
jbe 0x180005418
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
add rsp, 0x1d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005658
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov r13, r8
mov r14, rdx
lea r8, [rax - 0x38]
xor edx, edx
mov r12d, r9d
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x40], r15d
call fcn.180004b78
cmp eax, r15d
mov ebx, eax
jne 0x180005828
mov rcx, qword [0x1800307d8]
mov edi, 0x105
xor edx, edx
mov r8, rdi
lea ebx, [r15 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rsi, rax
je 0x18000581d
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
je 0x18000580b
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov r8, rsi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x105
mov dword [rsp + 0x40], ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov ebx, eax
jne 0x18000578b
cmp dword [rsp + 0x48], 0x105
jbe 0x18000574a
add dword [rsp + 0x44], 1
mov ebx, r15d
jmp 0x1800057d4
cmp dword [rsp + 0x40], ebp
jbe 0x1800057f9
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
jne 0x180005742
mov ebx, 8
jmp 0x1800057f9
cmp eax, r15d
jne 0x1800057ef
cmp r12d, r15d
je 0x1800057ab
mov r8d, dword [0x1800309dc]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.180023e84
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call r14
cmp eax, r15d
mov ebx, eax
jne 0x1800057ef
mov rcx, qword [0x1800309f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800057f9
jmp 0x1800056e9
cmp ebx, 0x103
cmove ebx, r15d
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180006300
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x180030860]
mov edx, 1
mov r8d, edx
call fcn.18001562c
mov rcx, qword [0x180030920]
lea rdx, [0x1800062ac]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005658

Function at 0x1800066a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000f594
mov rcx, qword [0x1800309f0]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180030920]
lea rdx, [0x1800060cc]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005658
Function at 0x180007c08
Capabilities:
Access pe header
Allocate or change rwx memory
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15, rdx
mov rsi, rcx
mov rdi, rbx
mov qword [rsp + 0x28], rbx
mov bpl, bl
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbx
mov r13, rax
jne 0x180007c47
lea ebx, [rdi + 0xb]
jmp 0x180007df7
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rcx, rsi
call fcn.18001727c
cmp eax, ebx
jne 0x180007d01
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov ebp, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [rsp + 0x80], eax
je 0x180007cea
mov rcx, qword [0x1800307d8]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x180007cea
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9, rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180007cd8
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x30]
lea rdx, [0x18002a730]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x180007cd8
mov rax, qword [rsp + 0x30]
mov ebp, dword [rax + 8]
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x1800307d8]
xor edx, edx
shr ebp, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [0x180030010]
mov rax, rbx
mov ecx, ebx
mov rdx, r8
cmp bpl, byte [rdx]
jb 0x180007d1e
mov eax, ecx
lea rax, [rax + rax*4]
add rax, r8
add ecx, 1
add rdx, 5
cmp ecx, 5
jb 0x180007d10
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x80]
mov rcx, r15
mov qword [0x1800307d0], rax
call fcn.180004c0c
cmp eax, ebx
jne 0x180007d99
cmp dword [rsp + 0x88], 0x10
jne 0x180007d99
mov r8, qword [rsp + 0x80]
mov eax, dword [r13 + 0x58]
cmp dword [r8], eax
jne 0x180007d85
cmp qword [r8 + 8], rbx
je 0x180007d85
mov eax, dword [r13 + 0x50]
cmp qword [r8 + 8], rax
jae 0x180007d85
mov rax, qword [r8 + 8]
lea rdi, [rsi + rax]
mov qword [rsp + 0x28], rdi
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x180007dea
xor ecx, ecx
mov edx, 0x1000000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rbx
mov qword [0x180030898], rax
je 0x180007df7
mov eax, dword [r13 + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov qword [0x1800307c8], r15
mov qword [0x1800307c0], rsi
mov dword [0x1800307b8], eax
call fcn.180007a40
cmp eax, ebx
jne 0x180007df7
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.180007780
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret