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

Disassembly:
push 0xffffffffffffffff
push 0x4d1938
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.0043a120
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.0043a120
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.0043a120
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 0x4385f0
push edi
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004a9f99
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 0x43c900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cac70
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 0x43c946
push eax
call fcn.004a9741
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 0x43d660
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce110
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.0043e450
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x43d6b1
cmp ecx, eax
je 0x43d6b6
call fcn.004aa1a6
cmp dword [ebp - 0x1c], edi
jne 0x43d764
lea edx, [ebp + 0xc]
push edx
push esi
lea ebx, [ebp - 0x2c]
call fcn.0043e350
lea ecx, [ebp - 0x1c]
call fcn.00405840
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.0043fae0
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [esi + 0x20]
call fcn.00446230
mov dword [ebp - 4], 0
jmp 0x43d718
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.0043fae0
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [esi + 0x20]
call fcn.00446230
mov dword [ebp - 4], 0
jmp 0x43d755
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00405410
mov dword [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00405840
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.0043fae0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x20]
call fcn.004461b0
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.00446140
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 2
lea eax, [ebp - 0x20]
call fcn.00446140
push 0
call fcn.004aa57a
add esp, 4
sub eax, 0x15180
push eax
push 3
lea eax, [ebp - 0x20]
call fcn.00446100
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00445ef0
mov byte [ebp - 4], 8
cmp byte [ebp - 0x2c], 0
jne 0x43d80f
push 0x4e3ed2
lea esi, [ebp - 0x34]
call fcn.00445a50
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00405470
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], bl
lea esi, [ebp - 0x34]
call fcn.00445980
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00445cc0
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00405410
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 0x4428c0
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 0x4428e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop ecx
ret
cmp dword [esp + 4], edi
je 0x4428ee
mov eax, 0x1e
pop ebx
pop ecx
ret
xor eax, eax
test edi, edi
jbe 0x4428fd
xor byte [eax + esi], 0x67
inc eax
cmp eax, edi
jb 0x4428f4
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x442910
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 0x442937
pop esi
pop ebp
lea eax, [ebx + 0xe]
pop ebx
pop ecx
ret
test ebp, ebp
jbe 0x442953
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 0x442944
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 0x442975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x442980
cmp dword [esp + 0xc], ebp
je 0x442980
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 0x442af0
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 0x442b2b
mov ecx, 0x104
nop
cmp word [eax], 0
je 0x442b27
add eax, 2
sub ecx, 1
jne 0x442b10
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x442b36
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
push ebx
lea ebx, [edx + 0x21c]
test ebx, ebx
je 0x442b64
mov ecx, 0x104
mov eax, ebx
cmp word [eax], 0
je 0x442b60
add eax, 2
sub ecx, 1
jne 0x442b48
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x442b70
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
test byte [ebp + 4], 1
je 0x442b94
call fcn.004448b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x442b94
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 0x442ec0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4cc1d8
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.0042e5c0
mov esi, eax
cmp esi, 0xffffffff
je 0x442fb8
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 0x442f46
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442f68
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x442f5f
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.0042e5c0
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], ebp
jb 0x442f98
mov eax, dword [esp + 0x18]
push eax
call fcn.004a9741
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 0x442f20
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.004a974c
add esp, 0x30
ret
Function at 0x443370
Capabilities:
Delete file

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

Function at 0x4436c0
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 0x4436f9
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 0x443758
xor eax, eax
test ecx, ecx
jbe 0x44373d
lea ebx, [ebx]
xor byte [eax + esi], 0x67
inc eax
cmp eax, ecx
jb 0x443730
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push esi
push eax
call fcn.004bf3fb
add esp, 0xc
cmp dword [esp + 0x24], eax
jne 0x443768
test edi, edi
jne 0x443700
jmp 0x443770
test edi, edi
jne 0x443770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x443770
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 0x443790
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 0x4437c6
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.004bf875
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x443821
xor ecx, ecx
test eax, eax
jbe 0x4437ff
xor byte [ecx + esi], 0x67
inc ecx
cmp ecx, eax
jb 0x4437f2
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 0x44382b
cmp dword [esp + 0x18], 0x10000
jae 0x4437d0
jmp 0x443835
mov dword [esp + 0xc], 0x1e
jmp 0x443835
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 0x443940
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 0x44397b
mov ecx, 0x104
nop
cmp word [eax], 0
je 0x443977
add eax, 2
sub ecx, 1
jne 0x443960
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x443986
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
push ebx
lea ebx, [edx + 0x218]
test ebx, ebx
je 0x4439b4
mov ecx, 0x104
mov eax, ebx
cmp word [eax], 0
je 0x4439b0
add eax, 2
sub ecx, 1
jne 0x443998
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 4
test ecx, ecx
jne 0x4439c0
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 4
test byte [ebp + 4], 1
je 0x4439e4
call fcn.004448b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4439e4
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 0x4439f0
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 0x443a74
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 0x443a58
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 0x443a58
or dword [esi + 8], 1
jmp 0x443a65
lea ecx, [esi + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x443a74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x443ae6
test edi, edi
jne 0x443ae6
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 0x443ad9
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x443abf
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 0x443bc0
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x443d50
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 0x443d9b
mov ecx, 0x104
lea ecx, [ecx]
cmp word [eax], 0
je 0x443d97
add eax, 2
sub ecx, 1
jne 0x443d80
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 8
test ecx, ecx
jne 0x443da6
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 8
push ebx
lea ebx, [ebp + 0x22c]
test ebx, ebx
je 0x443ee2
mov ecx, 0x104
mov eax, ebx
lea esp, [esp]
cmp word [eax], 0
je 0x443dd8
add eax, 2
sub ecx, 1
jne 0x443dc0
pop ebx
pop edi
pop esi
lea eax, [ecx + 0x57]
pop ebp
ret 8
test ecx, ecx
je 0x443ee2
test byte [edx + 4], 1
je 0x443e19
call fcn.004448b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x443e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebp
call fcn.004442b0
test eax, eax
jne 0x443f09
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [edx + 0x41c]
test eax, eax
je 0x443e5e
mov ecx, 0x100
xor edx, edx
lea ebx, [ebx]
cmp word [eax], dx
je 0x443e3f
add eax, 2
sub ecx, 1
jne 0x443e30
jmp 0x443e43
test ecx, ecx
jne 0x443e55
mov edx, 0x80070057
xor eax, eax
mov esi, edx
test edx, edx
jl 0x443e63
lea ebp, [eax + eax]
jmp 0x443e65
mov eax, 0x100
sub eax, ecx
jmp 0x443e4a
mov esi, 0x80070057
xor ebp, ebp
test esi, esi
jl 0x443ee2
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 0x443f07
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x41c]
mov ecx, ebp
shr ecx, 1
je 0x443ee2
cmp ecx, 0x7fffffff
ja 0x443ee2
mov edi, SysReAllocString
xor ebx, ebx
sub edi, ecx
mov edx, ecx
sub esi, eax
lea ecx, [edi + edx]
test ecx, ecx
je 0x443ecd
movzx ecx, word [esi + eax]
test cx, cx
je 0x443ecd
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x443eb0
jmp 0x443ed1
test edx, edx
jne 0x443ed9
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x443eee
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 0x443f60
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 0x44402c
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 0x444010
mov eax, dword [esp + 0xc]
call fcn.004441c0
mov edi, eax
test edi, edi
jne 0x444010
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 0x44400b
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.00442910
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x444004
or dword [esi + 0x1c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test edi, edi
je 0x44401d
lea edx, [esi + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44402c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x4440a8
test edi, edi
jne 0x4440a8
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 0x44409a
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 0x44407f
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 0x4440c0
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 0x444183
test al, 2
je 0x444183
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 0x44416a
cmp byte [esp + 0x14], al
je 0x444147
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 0x444147
lea edi, [eax + 0x50]
jmp 0x44416a
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 0x44416a
mov eax, dword [esp + 8]
test eax, eax
je 0x444179
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 0x444190
Capabilities:
Delete file

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

Function at 0x4441c0
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 0x44422a
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 0x444230
lea ebx, [eax + 0xe]
test edi, edi
je 0x444227
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 0x444213
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.004ac5e0
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 0x444296
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