joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438580
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d2208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.0043a490
xor edi, edi
mov dword [esp + 0x20], edi
mov eax, dword [eax + 8]
push edi
push edi
push 1
push edi
call eax
mov dword [0x512af0], eax
mov dword [esp + 0x20], 0xffffffff
lea esi, [esp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.0043a490
mov dword [esp + 0x20], 1
mov ecx, dword [eax + 8]
push edi
push edi
push 1
push edi
call ecx
mov dword [0x512af4], eax
mov dword [esp + 0x20], 0xffffffff
lea esi, [esp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.0043a490
mov dword [esp + 0x20], 2
mov edx, dword [eax + 8]
push edi
push 1
push edi
push edi
call edx
mov dword [0x512af8], eax
mov dword [esp + 0x20], 0xffffffff
push edi
push edi
push edi
push 0x4388b0
push edi
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004aa486
add esp, 0x18
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x43cb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca400
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CAttr_Bitmap_class_CAttrResident_.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x43cb66
push eax
call fcn.004a9c11
add esp, 4
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CAttrResident.0
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CAttrBase.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x43d880
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov byte [ebp - 0x15], 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edi, esi
call fcn.0043e670
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x43d8d1
cmp ecx, eax
je 0x43d8d6
call fcn.004aa693
cmp dword [ebp - 0x1c], edi
jne 0x43d984
lea edx, [ebp + 0xc]
push edx
push esi
lea ebx, [ebp - 0x2c]
call fcn.0043e570
lea ecx, [ebp - 0x1c]
call fcn.00404dc0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
push str.CREATE_TABLE_scanned2__x_file_id_INTEGER__file_time_INTEGER__detection_name_TEXT__t_on_INTEGER__
lea edi, [ebp - 0x1c]
call fcn.0043fe10
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [esi + 0x20]
call fcn.00446680
mov dword [ebp - 4], 0
jmp 0x43d938
mov edx, dword [ebp + 0xc]
push edx
push str.CREATE_INDEX_fileIndex_ON_scanned2__x_file_id__file_time__
lea edi, [ebp - 0x1c]
call fcn.0043fe10
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [esi + 0x20]
call fcn.00446680
mov dword [ebp - 4], 0
jmp 0x43d975
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404f30
mov dword [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00404dc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
push ecx
push str.SELECT_detection_name_FROM_scanned2__x_WHERE_file_id____AND_file_time____AND_t_on_____
lea edi, [ebp + 8]
call fcn.0043fe10
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x20]
call fcn.00446600
mov bl, 7
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
lea eax, [ebp - 0x20]
call fcn.00446590
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 2
lea eax, [ebp - 0x20]
call fcn.00446590
push 0
call fcn.004aaa67
add esp, 4
sub eax, 0x15180
push eax
push 3
lea eax, [ebp - 0x20]
call fcn.00446550
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00446340
mov byte [ebp - 4], 8
cmp byte [ebp - 0x2c], 0
jne 0x43da2f
push 0x4e3ed2
lea esi, [ebp - 0x34]
call fcn.00445ea0
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00404f90
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], bl
lea esi, [ebp - 0x34]
call fcn.00445dd0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00446110
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00404f30
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x442d10
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [esp + 8]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop ecx
ret
cmp dword [esp + 4], edi
je 0x442d3e
mov eax, 0x1e
pop ebx
pop ecx
ret
xor eax, eax
test edi, edi
jbe 0x442d4d
xor byte [eax + esi], 0x67
inc eax
cmp eax, edi
jb 0x442d44
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x442d60
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push ebp
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x442d87
pop esi
pop ebp
lea eax, [ebx + 0xe]
pop ebx
pop ecx
ret
test ebp, ebp
jbe 0x442da3
mov ecx, dword [esp + 0x18]
push edi
sub ecx, esi
mov edi, ebp
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x442d94
pop edi
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x442dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x442dd0
cmp dword [esp + 0xc], ebp
je 0x442dd0
mov ebx, 0x1d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x442f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea eax, [edx + 0x14]
lea edi, [edx + 4]
mov ecx, 0x108
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x442f7b
mov ecx, 0x104
nop
cmp word [eax], 0
je 0x442f77
add eax, 2
sub ecx, 1
jne 0x442f60
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x442f86
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
push ebx
lea ebx, [edx + 0x21c]
test ebx, ebx
je 0x442fb4
mov ecx, 0x104
mov eax, ebx
cmp word [eax], 0
je 0x442fb0
add eax, 2
sub ecx, 1
jne 0x442f98
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x442fc0
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
test byte [ebp + 4], 1
je 0x442fe4
call fcn.00444d00
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x442fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 4
Function at 0x443310
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4cd738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
mov ebp, 0x5c
push eax
lea ebx, [ebp - 0x5b]
xor eax, eax
mov edx, edi
mov dword [esp + 0x14], ebp
call fcn.0042e5b0
mov esi, eax
cmp esi, 0xffffffff
je 0x443408
mov dword [esp + 0x10], ebp
lea ebp, [ebx + 7]
lea ecx, [ecx]
lea ecx, [esp + 0x14]
push ecx
inc esi
push edi
mov ecx, esi
xor edx, edx
call fcn.0042d270
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x443396
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4433b8
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x4433af
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x10]
push edx
mov ebx, 1
mov eax, esi
mov edx, edi
call fcn.0042e5b0
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x4433e8
mov eax, dword [esp + 0x18]
push eax
call fcn.004a9c11
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
cmp esi, 0xffffffff
jne 0x443370
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x30
ret
Function at 0x4437c0
Capabilities:
Delete file

Disassembly:
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x443b00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push 0x10000
xor edi, edi
push 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
jne 0x443b39
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_BackupRead]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ebp
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x10000
push esi
push edx
call ebx
mov ecx, dword [esp + 0x24]
mov edi, eax
test ecx, ecx
je 0x443b98
xor eax, eax
test ecx, ecx
jbe 0x443b7d
lea ebx, [ebx]
xor byte [eax + esi], 0x67
inc eax
cmp eax, ecx
jb 0x443b70
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push esi
push eax
call fcn.004bf8cb
add esp, 0xc
cmp dword [esp + 0x24], eax
jne 0x443ba8
test edi, edi
jne 0x443b40
jmp 0x443bb0
test edi, edi
jne 0x443bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x443bb0
mov dword [esp + 0x10], 0x1e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x443bd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x10000
xor edi, edi
push 8
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
jne 0x443c06
lea eax, [edi + 0xe]
pop edi
pop esi
pop ebp
add esp, 8
ret 8
mov dword [esp + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [esp + 0x1c]
push 0x10000
push esi
push eax
call fcn.004bfd45
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x443c61
xor ecx, ecx
test eax, eax
jbe 0x443c3f
xor byte [ecx + esi], 0x67
inc ecx
cmp ecx, eax
jb 0x443c32
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
lea edx, [esp + 0x24]
push edx
push eax
push esi
push ebp
call edi
test eax, eax
je 0x443c6b
cmp dword [esp + 0x18], 0x10000
jae 0x443c10
jmp 0x443c75
mov dword [esp + 0xc], 0x1e
jmp 0x443c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 8
ret 8
Function at 0x443d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea eax, [edx + 0x10]
lea edi, [edx + 4]
mov ecx, 0x108
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x443dbb
mov ecx, 0x104
nop
cmp word [eax], 0
je 0x443db7
add eax, 2
sub ecx, 1
jne 0x443da0
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x443dc6
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
push ebx
lea ebx, [edx + 0x218]
test ebx, ebx
je 0x443df4
mov ecx, 0x104
mov eax, ebx
cmp word [eax], 0
je 0x443df0
add eax, 2
sub ecx, 1
jne 0x443dd8
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x443e00
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
test byte [ebp + 4], 1
je 0x443e24
call fcn.00444d00
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x443e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 4

Function at 0x443e30
Capabilities:
Delete file
Delete registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ebp, eax
and eax, 0x100
push edi
xor edi, edi
and ebp, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 8], 1
mov ebx, eax
jne 0x443eb4
lea eax, [esp + 0x10]
push eax
push ebx
push edi
lea ecx, [esi + 0x10]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x443e98
push 2
push eax
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov edi, eax
test edi, edi
jne 0x443e98
or dword [esi + 8], 1
jmp 0x443ea5
lea ecx, [esi + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x443eb4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x443f26
test edi, edi
jne 0x443f26
lea edx, [esp + 0x10]
push edx
push ebx
push edi
lea eax, [esi + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x443f19
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x443eff
mov edx, dword [esp + 0x10]
or dword [esi + 8], 2
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov edx, dword [esp + 0x10]
push edx
mov esi, 0x15e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
mov eax, 0x15e
pop ebx
pop ecx
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x444000
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x4441a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea edi, [ebp + 0x18]
mov ecx, 0x108
mov esi, edx
lea eax, [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x434], 0
test eax, eax
je 0x4441eb
mov ecx, 0x104
lea ecx, [ecx]
cmp word [eax], 0
je 0x4441e7
add eax, 2
sub ecx, 1
jne 0x4441d0
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 8
test ecx, ecx
jne 0x4441f6
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 8
push ebx
lea ebx, [ebp + 0x22c]
test ebx, ebx
je 0x444332
mov ecx, 0x104
mov eax, ebx
lea esp, [esp]
cmp word [eax], 0
je 0x444228
add eax, 2
sub ecx, 1
jne 0x444210
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 8
test ecx, ecx
je 0x444332
test byte [edx + 4], 1
je 0x444269
call fcn.00444d00
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x444254
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebp
call fcn.00444700
test eax, eax
jne 0x444359
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [edx + 0x41c]
test eax, eax
je 0x4442ae
mov ecx, 0x100
xor edx, edx
lea ebx, [ebx]
cmp word [eax], dx
je 0x44428f
add eax, 2
sub ecx, 1
jne 0x444280
jmp 0x444293
test ecx, ecx
jne 0x4442a5
mov edx, 0x80070057
xor eax, eax
mov esi, edx
test edx, edx
jl 0x4442b3
lea ebp, [eax + eax]
jmp 0x4442b5
mov eax, 0x100
sub eax, ecx
jmp 0x44429a
mov esi, 0x80070057
xor ebp, ebp
test esi, esi
jl 0x444332
add ebp, 2
push ebp
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
test eax, eax
je 0x444357
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x41c]
mov ecx, ebp
shr ecx, 1
je 0x444332
cmp ecx, 0x7fffffff
ja 0x444332
mov edi, SysReAllocString
xor ebx, ebx
sub edi, ecx
mov edx, ecx
sub esi, eax
lea ecx, [edi + edx]
test ecx, ecx
je 0x44431d
movzx ecx, word [esi + eax]
test cx, cx
je 0x44431d
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x444300
jmp 0x444321
test edx, edx
jne 0x444329
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x44433e
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
pop ebx
pop edi
mov dword [eax + 8], ebp
pop esi
mov dword [eax + 0x434], ecx
xor eax, eax
pop ebp
ret 8
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4443b0
Capabilities:
Delete file
Delete registry value

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ebp, eax
and eax, 0x100
push edi
xor edi, edi
and ebp, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 0x1c], 1
mov dword [esp + 0x10], eax
jne 0x44447c
lea ecx, [esp + 0xc]
push ecx
push eax
push edi
lea edx, [esi + 0x24]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x444460
mov eax, dword [esp + 0xc]
call fcn.00444610
mov edi, eax
test edi, edi
jne 0x444460
push ebx
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44445b
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea eax, [ecx + edx + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
push ebx
call fcn.00442d60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x444454
or dword [esi + 0x1c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test edi, edi
je 0x44446d
lea edx, [esi + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44447c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x4444f8
test edi, edi
jne 0x4444f8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
push edi
lea edx, [esi + 0x24]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4444ea
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4444cf
mov edx, dword [esp + 0xc]
or dword [esi + 0x1c], 2
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 4
mov edx, dword [esp + 0xc]
push edx
mov esi, 0x15e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 4
pop edi
pop esi
mov eax, 0x15e
pop ebp
add esp, 8
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 4
Function at 0x444510
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test al, 1
je 0x4445d3
test al, 2
je 0x4445d3
mov eax, dword [esi + 0x20]
mov ecx, eax
and eax, 0x100
and ecx, 0xfffffcff
neg eax
push edi
sbb eax, eax
and eax, 0xffffff00
lea edx, [esp + 8]
push edx
add eax, 0xf023f
push eax
push 0
lea eax, [esi + 0x24]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4445ba
cmp byte [esp + 0x14], al
je 0x444597
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444597
lea edi, [eax + 0x50]
jmp 0x4445ba
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x4445ba
mov eax, dword [esp + 8]
test eax, eax
je 0x4445c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0xc
xor eax, eax
pop esi
add esp, 8
ret 0xc

Function at 0x4445e0
Capabilities:
Delete file

Disassembly:
add ecx, 0x22c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x444610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push ebx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x44467a
mov eax, dword [esi + 8]
mov ecx, dword [esp + 8]
push edi
lea edx, [ecx + eax + 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x444680
lea ebx, [eax + 0xe]
test edi, edi
je 0x444677
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
lea edx, [edi + ecx + 4]
mov ecx, dword [esi + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push ebx
call ebp
mov ebx, eax
test ebx, ebx
jne 0x444663
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov dword [edi + edx], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push edi
call fcn.004acac0
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
lea ecx, [edi + eax + 4]
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], ecx
test eax, eax
je 0x4446e6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov dword [esi + 0x434], edi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret