joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x406db6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x406da0
mov eax, ebx
call sub.rtl70.bpl__System__GetMem_qqri
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x406d99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x406d83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x406dc8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x406d83
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
call fcn.004015d4
movzx eax, ax
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
and eax, 0xff
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.004015d4
movzx eax, ax
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
and eax, 0xff
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406da0
mov eax, dword [ebp - 0x10]
call sub.rtl70.bpl__System__FreeMem_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dbd
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x407fa4
Capabilities:
Query or enumerate registry value

Disassembly:
pop es
sbb dword [ecx + eax*2 + 0x64], edx
insd dword es:[edi], dx
imul ebp, dword [esi + 0x41], 0x76457070
outsb dx, byte gs:[esi]
je 0x407ff8
push 0x546b6365
push 0x64616572
push 0x400407f
xor al, byte [ecx]
add byte [eax], al
adc al, byte [ecx + 0x72]
arpl word [ecx + 0x57], cx
push ebx
jb 0x408049
jb 0x408023
popal
outsb dx, byte [esi]
popal
jb 0x407fdd
add byte [ebx - 0x1374aa40], cl
add byte [eax], al
ret

Function at 0x407fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor edi, edi
push ebp
push 0x4080e9
push dword fs:[edi]
mov dword fs:[edi], esp
mov ebx, 0x10000
lea eax, [ebp - 0x14]
mov edx, ebx
call sub.rtl70.bpl__System__ReallocMem_qqrrpvi
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x408100
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA
sub eax, 1
jb 0x40805a
sub eax, 0xe9
jne 0x408050
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x408012
call sub.rtl70.bpl__System__TryFinallyExit_qqrv
jmp 0x4080f0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
dec eax
test eax, eax
jl 0x4080d3
inc eax
mov edx, dword [esi]
cmp dword [edx + 0xc], 0xee
jne 0x4080c8
mov eax, dword [esi]
mov eax, dword [eax + 8]
add eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
dec eax
test eax, eax
jl 0x4080d3
inc eax
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 4], 6
jne 0x4080bf
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
add eax, dword [ebx + 0x24]
mov ebx, dword [eax]
mov dword [ebp - 8], ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
jmp 0x4080d3
add dword [ebp - 0x1c], 0x28
dec eax
jne 0x408091
jmp 0x4080d3
mov edx, dword [esi]
mov edx, dword [edx]
add edx, dword [esi]
mov dword [esi], edx
dec eax
jne 0x408071
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080f0
mov eax, dword [ebp - 0x14]
call sub.rtl70.bpl__System__FreeMem_qqrpv
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408104
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x408118
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call sub.rtl70.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov esi, dword [ebp - 8]
mov eax, esi
xor edx, edx
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 0x10]
mov eax, ebx
xor edx, edx
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 0x20]
mov byte [eax], dl
mov eax, ecx
add eax, ebx
add eax, esi
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x408254
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x4082f4]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x408300
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x408432
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x408448
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x408407
lea eax, [ebp - 0x10]
mov edx, ebx
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x408407
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x408458
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x408407
cmp dword [ebp - 8], 0x34
jne 0x408407
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
call fcn.004015d4
movzx eax, ax
lea edx, [ebp - 0x18]
call sub.rtl70.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x18]
push 0x408464
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
call sub.rtl70.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x1c]
push 0x408464
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.004015d4
movzx eax, ax
lea edx, [ebp - 0x20]
call sub.rtl70.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x20]
push 0x408464
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xc]
call sub.rtl70.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x24]
mov eax, esi
mov edx, 7
call sub.rtl70.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408439
lea eax, [ebp - 0x24]
mov edx, 4
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x10]
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret

Function at 0x40859c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov eax, esp
xor ecx, ecx
mov edx, 0x20
call sub.rtl70.bpl__System__FillChar_qqrpvic
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov al, byte [esp + 4]
add esp, 0x20
ret
Function at 0x40c118
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x40c17e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
call sym.ArcIWServerMan_D7_72.bpl__Arciwsmwebcommon_DLLFileName_qqrv
lea eax, [ebp - 4]
mov edx, 0x40c194
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
lea eax, [ebp - 8]
call sym.ArcIWServerMan_D7_72.bpl__Arciwsmwebcommon_DLLFileName_qqrv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c185
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x40c1d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x40c296
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call sym.ArcIWServerMan_D7_72.bpl__Arciwsmwebcommon_DLLFilePath_qqrv
lea eax, [ebp - 4]
mov edx, dword [0x411278]
call sub.rtl70.bpl__System__LStrCat_qqrv
mov edx, dword [ebp - 4]
mov eax, 0x40c2ac
call fcn.004085c4
push 0
push 0x40c2c0
lea eax, [ebp - 0xc]
call sym.ArcIWServerMan_D7_72.bpl__Arciwsmwebcommon_DLLFilePath_qqrv
push dword [ebp - 0xc]
push dword [0x411278]
push 0x40c2cc
lea eax, [ebp - 0x10]
call sym.ArcIWServerMan_D7_72.bpl__Arciwsmwebcommon_DLLFileName_qqrv
push dword [ebp - 0x10]
push 0x40c2cc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x104]
push dword [eax + 0x7c]
push 0x40c2cc
lea eax, [ebp - 0x14]
call fcn.0040c19c
push dword [ebp - 0x14]
push 0x40c2c0
lea eax, [ebp - 8]
mov edx, 0xa
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c29d
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x40eee4
Capabilities:
Access peb ldr_data
Get ntdll base address
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x40eef7
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x40f02a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.ole32.dll_CoInitialize
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x40ef48
mov ecx, 0x40f058
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Sysutils_Exception_]
call sub.rtl70.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl70.bpl__System__RaiseExcept_qqrv
push 0x40f07c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 8], eax
push 0x40f088
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0xc], eax
push 0x40f090
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x10], eax
push 0x40f098
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x14], eax
push 0x40f0b0
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x18], eax
push 0x40f0cc
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x1c], eax
push 0x40f0d8
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x20], eax
push 0x40f0e4
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x24], eax
push 0x40f0f0
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x2c], eax
push 0x40f100
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x30], eax
push 0x40f114
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x34], eax
push 0x40f12c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [edi + 0x28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f031
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x405c03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x420
mov eax, 0x40b8f5
call fcn.0040a957
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x405dba
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405c55
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004012f1
test eax, eax
js 0x405dba
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x405ca7
push esi
call fcn.00406f75
test al, al
je 0x405ca7
mov eax, esi
call fcn.0040af02
mov eax, esp
jmp 0x405cb3
push esi
lea ecx, [ebp - 0x420]
call fcn.004025ec
push 3
push esi
push edi
push eax
call fcn.004034c0
mov esi, eax
test esi, esi
je 0x405db4
push 0x60
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x405cf3
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x405cf3
call fcn.00402a5a
mov esi, eax
jmp 0x405d99
push dword [ebp - 0x424]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405d13
call fcn.00402a5a
jmp 0x405d8c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x405d0c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x405d3d
mov esi, 0x8007000e
jmp 0x405d8e
push eax
lea ecx, [ebp - 0x414]
call fcn.00402645
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
je 0x405d36
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x414]
call fcn.0040709e
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x42c]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x414]
call fcn.00405a69
mov esi, eax
test edi, edi
je 0x405d99
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x405dd4
lea ecx, [ebp - 0x414]
call fcn.004042f0
jmp 0x405dd4
mov ebx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
cmp ebx, eax
je 0x405dcf
lea ecx, [ebp - 0x414]
call fcn.004042f0
mov esi, 0x8007000e
lea ecx, [ebp - 0x420]
call fcn.00401660
mov eax, esi
lea esp, [ebp - 0x43c]
call fcn.0040a916
ret 0x10
Function at 0x4067bf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4067d1
push 0xd
pop eax
jmp 0x406808
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067df
sub ecx, dword [ebp + 0xc]
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x4067d7
push esi
push edx
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40692b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
test eax, eax
je 0x40696a
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x405002
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x406968
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408c01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x411f80], 0
je 0x408c19
mov eax, dword [0x411f84]
jmp 0x408ce9
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c68
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x411f84
push esi
push esi
push dword [0x411130]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408c68
cmp dword [ebp - 8], 4
je 0x408cc2
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x408c79
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408cca
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x411f84
push esi
push esi
push dword [0x411130]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408cca
cmp dword [ebp - 8], 4
jne 0x408cca
mov esi, dword [0x411f84]
jmp 0x408cd0
mov dword [0x411f84], esi
cmp dword [ebp - 4], 0
mov byte [0x411f80], 1
je 0x408ce6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ced
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x40ce08
push Ordinal_1
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408d7f
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x408d75
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d75
cmp dword [ebp + 8], edi
jne 0x408d75
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x408d75
cmp dword [ebp - 4], ebx
je 0x408d81
push dword [ebp - 4]
call esi
jmp 0x408d81
cmp dword [ebp - 4], ebx
je 0x408d7f
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x408d8b
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409af9
cmp dword [ebp - 0x210], 4
jb 0x409af9
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00409bb3
jmp 0x409afb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2a7
mov esp, ebp
pop ebp
ret 8

Function at 0x409b0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409ba0
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409ba0
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409bb3
jmp 0x409ba2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a2a7
mov esp, ebp
pop ebp
ret 4

Function at 0x40a2b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x40d380], eax
je 0x40a2d6
cmp dword [0x40d380], ebx
jne 0x40a36a
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x40d380
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x40d380
push 4
push edi
mov dword [0x40d380], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x40d380]
not eax
mov dword [0x4111b8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret