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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5450c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1b0c
call fcn.0052e580
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x1a
lea edi, [ebp - 0x218]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x1ae]
rep movsd dword es:[edi], dword [esi]
push 0x19e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x1b0c], 2
xor eax, eax
mov word [ebp - 0x1870], ax
push 0x144e
push eax
lea eax, [ebp - 0x186e]
push eax
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x1b14], 0xa28
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408490
test eax, eax
jne 0x407e9f
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d50
sub eax, edx
sar eax, 1
cmp eax, 0x25
jbe 0x407e9f
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0xc
lea eax, [ebp - 0x1b10]
push eax
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407e9f
lea eax, [ebp - 0x1b14]
push eax
lea eax, [ebp - 0x1870]
push eax
lea eax, [ebp - 0x1b0c]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x1b10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407e9f
lea eax, [ebp - 0x1870]
push eax
lea ecx, [ebp - 0x1888]
call fcn.004059f0
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1888]
call fcn.0040ad70
push eax
push 0
lea eax, [ebp - 0x18b8]
push eax
lea ecx, [ebp - 0x1888]
call fcn.00405a80
push 0xffffffffffffffff
push 1
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1888]
call fcn.0040ad70
push eax
lea eax, [ebp - 0x18a0]
push eax
lea ecx, [ebp - 0x1888]
call fcn.00405a80
cmp dword [ebp - 0x18a4], 8
lea esi, [ebp - 0x18b8]
lea eax, [ebp - 0x1b08]
cmovae esi, dword [ebp - 0x18b8]
lea edi, [ebp - 0x18a0]
cmp dword [ebp - 0x188c], 8
push eax
cmovae edi, dword [ebp - 0x18a0]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407e7e
push edi
mov ecx, esi
call fcn.00408e20
lea ecx, [ebp - 0x18a0]
call fcn.00405a50
lea ecx, [ebp - 0x18b8]
call fcn.00405a50
lea ecx, [ebp - 0x1888]
call fcn.00405a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x407ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5450c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1b0c
call fcn.0052e580
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x1a
lea edi, [ebp - 0x218]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x1ae]
rep movsd dword es:[edi], dword [esi]
push 0x19e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x1b0c], 2
xor eax, eax
mov word [ebp - 0x1870], ax
push 0x144e
push eax
lea eax, [ebp - 0x186e]
push eax
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x1b14], 0xa28
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408490
test eax, eax
jne 0x4080bf
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f70
sub eax, edx
sar eax, 1
cmp eax, 0x25
jbe 0x4080bf
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0xc
lea eax, [ebp - 0x1b10]
push eax
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4080bf
lea eax, [ebp - 0x1b14]
push eax
lea eax, [ebp - 0x1870]
push eax
lea eax, [ebp - 0x1b0c]
push eax
push 0
push 0x589d90
push dword [ebp - 0x1b10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4080bf
lea eax, [ebp - 0x1870]
push eax
lea ecx, [ebp - 0x1888]
call fcn.004059f0
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1888]
call fcn.0040ad70
push eax
push 0
lea eax, [ebp - 0x18b8]
push eax
lea ecx, [ebp - 0x1888]
call fcn.00405a80
push 0xffffffffffffffff
push 1
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1888]
call fcn.0040ad70
push eax
lea eax, [ebp - 0x18a0]
push eax
lea ecx, [ebp - 0x1888]
call fcn.00405a80
cmp dword [ebp - 0x18a4], 8
lea esi, [ebp - 0x18b8]
lea eax, [ebp - 0x1b08]
cmovae esi, dword [ebp - 0x18b8]
lea edi, [ebp - 0x18a0]
cmp dword [ebp - 0x188c], 8
push eax
cmovae edi, dword [ebp - 0x18a0]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40809e
push edi
mov ecx, esi
call fcn.00408e20
lea ecx, [ebp - 0x18a0]
call fcn.00405a50
lea ecx, [ebp - 0x18b8]
call fcn.00405a50
lea ecx, [ebp - 0x1888]
call fcn.00405a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x4080e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5450fb
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x19
lea edi, [ebp - 0x420]
mov esi, str.SOFTWAREHNCSharedInstall_InformationHOffice130
lea eax, [ebp - 0x3ba]
rep movsd dword es:[edi], dword [esi]
push 0x1a2
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x68c], 2
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push eax
lea eax, [ebp - 0x216]
push eax
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x694], 0x104
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40828e
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x68c]
push eax
push 0
push str.Path
push dword [ebp - 0x690]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40828e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.004059f0
push 0x1b
push str.HOffice130BinZenTitle.exe
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.00405b20
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x688]
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408277
push 0x3c
lea eax, [ebp - 0x6d0]
push 0
push eax
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x6d0], 0x3c
lea eax, [ebx + 0x1ef6]
mov dword [ebp - 0x6c4], str.open
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x6d0]
mov dword [ebp - 0x6c0], esi
push eax
mov dword [ebp - 0x6b4], 5
mov dword [ebp - 0x6cc], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x698]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x424], 8
jb 0x40828e
push dword [ebp - 0x438]
call fcn.0040b23d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x4082b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x19
lea edi, [ebp - 0x414]
mov esi, str.SOFTWAREHNCSharedInstall_InformationHOffice130
lea eax, [ebp - 0x3ae]
rep movsd dword es:[edi], dword [esi]
push 0x1a2
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0052c790
xor eax, eax
mov dword [ebp - 0x41c], 2
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0052c790
add esp, 0x18
mov dword [ebp - 0x420], 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
pop edi
pop esi
test eax, eax
jne 0x4083a2
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push str.Path
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4083a2
push str.HOffice130BinZenTitle.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4083a2
lea eax, [ebp - 0x20c]
push eax
call fcn.0052b167
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x408490
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28c]
push esi
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x28c], 0
lea eax, [ebp - 0x28c]
je 0x4084d9
mov edi, edi
add eax, 2
cmp word [eax], 0
jne 0x4084d0
cmp word [eax], 0x5c
je 0x4084e9
nop
sub eax, 2
cmp word [eax], 0x5c
jne 0x4084e0
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esi + 0x424]
push eax
lea eax, [ebp - 0x28c]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
je 0x408539
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x498]
mov ecx, 0x20
push eax
lea eax, [ebp - 0x84]
mov esi, str._SELECT__Value__FROM__Property__WHERE__Property_ProductCode
push eax
push dword [ebp - 0x4a0]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
push 0
push dword [ebp - 0x498]
call dword [sym.imp.msi.dll_MsiViewModify]
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x498]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x494], ax
lea eax, [ebp - 0x492]
push eax
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x4a4], 0x104
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x494]
push eax
push 1
push dword [ebp - 0x49c]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
call dword [sym.imp.msi.dll_MsiConfigureFeatureA]
lea eax, [ebp - 0x494]
push eax
push 0x104
push ebx
call fcn.0052b09f
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00529d59
mov esp, ebp
pop ebp
ret 4

Function at 0x408600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.0052c790
push str.ROOT
push esi
call fcn.0052b195
add esp, 0x14
cmp esi, eax
jne 0x40867d
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov word [ebp - 0x206], ax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0xa58]
push 0x104
push eax
call fcn.0052b09f
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00529d59
mov esp, ebp
pop ebp
ret 4
Function at 0x408e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push edi
push 0x3c
push 0
push eax
mov edi, ecx
call fcn.0052c790
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
push eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a1b3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Release
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x40a1b6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0x80ea8
setb al
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40a5a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x698], ax
lea eax, [ebp - 0x696]
push eax
call fcn.0052c790
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x288], ax
lea eax, [ebp - 0x286]
push eax
call fcn.0052c790
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x48e]
push eax
call fcn.0052c790
lea eax, [esi + 0x1cd8]
mov dword [ebp - 0x6a8], 0x104
push eax
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0052b09f
lea eax, [esi + 0x424]
push eax
lea eax, [ebp - 0x698]
push 0x104
push eax
call fcn.0052b09f
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0052b0fb
add esp, 0x48
lea eax, [ebp - 0x6a4]
push eax
push 0
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
je 0x40a687
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
push edi
mov ecx, 0x1e
lea edi, [ebp - 0x80]
mov esi, str._SELECT__Value__FROM__Property__WHERE__Property_PRODTYPE
lea eax, [ebp - 0x69c]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x6a4]
movsw word es:[edi], word [esi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
push 0
push dword [ebp - 0x69c]
call dword [sym.imp.msi.dll_MsiViewModify]
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x69c]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
lea eax, [ebp - 0x6a8]
push eax
lea eax, [ebp - 0x490]
push eax
push 1
push dword [ebp - 0x6a0]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
push dword [ebp - 0x6a0]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call esi
push dword [ebp - 0x69c]
call esi
push dword [ebp - 0x6a4]
call esi
mov eax, str.trial
lea ecx, [ebp - 0x490]
pop edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a74f
test dx, dx
je 0x40a739
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a74f
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a717
xor eax, eax
test eax, eax
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
sbb eax, eax
or eax, 1
test eax, eax
pop esi
sete al
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x40a770
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54523b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040a5a0
cmp al, 1
jne 0x40a8a3
call fcn.0040e6bf
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a7c5
push 0x80004005
call fcn.00402a30
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x105
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a7f7
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00402590
push 1
push 0x58938c
lea ecx, [ebp - 0x224]
call fcn.00403a40
push 0xe
push str.WinHDB130B.ini
lea ecx, [ebp - 0x224]
call fcn.00403a40
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a882
call fcn.0040a8c0
cmp eax, 0x1e
jg 0x40a85d
test eax, eax
jns 0x40a882
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a87e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x40a8a5
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a8a3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x40a8c0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54527b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x30809
mov dword [ebp - 0x14], 0xb0e0502
mov dword [ebp - 0x20], 0xf010704
mov dword [ebp - 0x1c], 0xd060a0c
call fcn.0040e6bf
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a926
push 0x80004005
call fcn.00402a30
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
push 0x105
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
jmp 0x40a960
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a960
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.00402590
push 1
push 0x58938c
lea ecx, [ebp - 0x274]
call fcn.00403a40
push 0xe
push str.WinHDB130B.ini
lea ecx, [ebp - 0x274]
call fcn.00403a40
mov esi, dword [ebp - 0x274]
push 0x58a4f0
push esi
call fcn.0052bbc7
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x274], eax
push ecx
push 0x58a4f4
push eax
call fcn.0052bd60
lea eax, [ebp - 0x50]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9d5
sub eax, edx
xor ecx, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test edi, edi
jle 0x40aa1a
jmp 0x40a9f0
movsx edx, byte [ebp + ecx - 0x20]
movzx eax, byte [ebp + edx - 0x50]
mov edx, ecx
mov byte [ebp + ecx - 0x38], al
and edx, 7
movsx eax, byte [ebp + ecx - 0x18]
movzx eax, byte [ebp + eax - 0x50]
xor al, byte [ebp + edx - 0x38]
mov byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, edi
jl 0x40a9f0
lea eax, [ebp - 0x26]
push eax
call fcn.0052add4
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x26], 0
call fcn.0052add4
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x28], 0
call fcn.0052add4
add esp, 0xc
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movdqu xmm0, xmmword [ebp - 0x3c]
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.0040aae0
movdqu xmm0, xmmword [ebp - 0x270]
sub esp, 0x10
mov edi, eax
mov ecx, esp
movdqu xmmword [ecx], xmm0
call fcn.0040aae0
push dword [ebp - 0x274]
mov ebx, eax
sub ebx, edi
call fcn.0052bee9
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aab7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret
Function at 0x40b4a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004160e1
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b4de
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040b4ff
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410c35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x410c7a
call fcn.004160e1
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410c7a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x410c96
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041628f
mov ebx, eax
test edi, edi
je 0x410c94
test esi, esi
je 0x410c94
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f396
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00415330
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41f3d2
call fcn.0041f5b5
mov dword [esi + 0xc], 1
jmp 0x41f3d7
call fcn.0041f5b5
cmp dword [esi], 0
je 0x41f420
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41f3fa
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040ec65
jmp 0x41f40b
push 0xff
mov ecx, esi
call fcn.004029f0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040ee7d
jmp 0x41f444
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41f444
push dword [esi]
push dword [ebp - 4]
call fcn.0041a76e
pop esi
mov esp, ebp
pop ebp
ret 0xc