joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a154
Capabilities:
Copy file
Create thread

Disassembly:
push 0x82c
mov eax, 0x48c41e
call fcn.00459b85
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push esi
call fcn.0041a40b
test al, al
je 0x41a184
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41a316
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004714b0
add esp, 0xc
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
call fcn.0041a31e
lea eax, [ebp - 0x810]
push eax
call fcn.00473ca3
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [edi + 0xf8]
call fcn.00408130
mov esi, 0x4b65d4
test ebx, ebx
mov eax, esi
cmovne eax, ebx
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [edi + 0x128]
call fcn.00408130
push 0x2c
call fcn.00459c5c
mov esi, eax
pop ecx
mov dword [ebp - 0x818], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x41a220
lea ecx, [edi + 0xf4]
call fcn.00407930
push 4
push edi
mov ecx, esi
push dword [eax]
call fcn.00419d28
jmp 0x41a222
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x154], eax
lea eax, [ebp - 0x81c]
push eax
push ebx
push edi
push 0x41a5f0
push ebx
push ebx
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x818], esi
call fcn.00459c53
mov ebx, eax
mov dword [esp], 0x4ff
push 0xffffffffffffffff
push 0
mov dword [ebx], esi
jmp 0x41a2ae
xor esi, esi
jmp 0x41a290
cmp dword [ebp - 0x834], 0x8032
jne 0x41a283
mov ecx, dword [edi + 0x154]
call fcn.0041af22
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41a26c
push 0x4ff
push 0xffffffffffffffff
push esi
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp esi, 1
je 0x41a268
push ebx
call fcn.004598bc
mov edi, dword [edi + 0x154]
pop ecx
test edi, edi
je 0x41a2e0
mov ecx, edi
call fcn.00419f4e
push 0x2c
push edi
call fcn.004598ae
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x41a314
mov esi, dword [ebp - 0x818]
lea eax, [ebp - 0x814]
and dword [ebp - 0x814], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x814], eax
setge al
jmp 0x41a316
xor eax, eax
call fcn.00459b34
ret 8

Function at 0x41c5bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x48ccc7
call fcn.00459b85
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x41c601
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041088a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00459b34
ret 8
Function at 0x41cac4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x48cecd
call fcn.00459bf1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x49]
push eax
lea ecx, [ebp - 0x44]
call fcn.004060a0
mov byte [ebp - 4], 1
mov esi, 0x4b65d4
mov eax, esi
test edi, edi
cmovne eax, edi
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00408130
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x41cb5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406070
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00404cc0
jmp 0x41cc84
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00459c53
pop ecx
mov esi, eax
test esi, esi
setne bl
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x60]
push eax
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cbc0
mov byte [ebp - 4], 2
test bl, bl
je 0x41cbaa
push 1
push esi
call fcn.004598ae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406070
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
jmp 0x41cb51
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
push ecx
push 4
push edi
push esi
push ecx
call dword [sym.imp.CRYPT32.dll_CertAddSerializedElementToStore]
test eax, eax
jne 0x41cc0b
mov byte [ebp - 4], 2
test bl, bl
je 0x41cbf9
push 1
push esi
call fcn.004598ae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406070
mov byte [ebp - 4], 6
jmp 0x41cbba
cmp dword [ebp - 0x50], 0
jne 0x41cc35
mov byte [ebp - 4], 2
test bl, bl
je 0x41cc23
push 1
push esi
call fcn.004598ae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406070
mov byte [ebp - 4], 7
jmp 0x41cbba
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
push dword [eax + 0xc]
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificate]
mov edi, eax
mov byte [ebp - 4], 2
test bl, bl
je 0x41cc5a
push 1
push esi
call fcn.004598ae
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406070
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404cc0
mov eax, edi
jmp 0x41cc86
xor eax, eax
call fcn.00459b43
ret 8
Function at 0x4204c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48db0a
mov eax, dword fs:[0]
push eax
mov eax, 0x1080
call fcn.00459cc0
mov eax, dword [0x4d9754]
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
and dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1079]
mov edi, dword [ebp + 0xc]
inc esi
push esi
mov dword [ebp - 0x108c], ebx
mov ecx, ebx
and dword [ebp - 0x1088], 0
push eax
call fcn.004060a0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1088], esi
or esi, 0xffffffff
mov dword [ebp - 0x1084], esi
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x420546
mov edi, dword [edi]
push eax
push 0x80
push 3
push eax
push ecx
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42062f
lea eax, [ebp - 0x1078]
mov esi, edi
push eax
mov dword [ebp - 0x1084], esi
call fcn.0046494f
pop ecx
push 0
lea eax, [ebp - 0x1080]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4205c1
push dword [ebp - 0x1080]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1078]
push eax
call fcn.00465046
add esp, 0xc
cmp dword [ebp - 0x1080], 0
ja 0x42057c
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004648d2
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push ebx
call fcn.00406110
add esp, 0x50
mov byte [ebp - 4], 0
cmp esi, 0xffffffff
je 0x42064f
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], 0
je 0x42064f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x1084], 0xffffffff
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.0045978b
leave
ret 8
Function at 0x4242b5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d9754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x4242dd
movzx eax, word [eax + 0x56]
cmp ax, 0xffff
jne 0x42431e
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x424318
lea eax, [ebp - 0x2c]
push eax
call fcn.004771cd
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x42432d
mov ecx, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [ecx + 0x56], ax
mov eax, dword [esi]
mov ax, word [eax + 0x56]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045978b
leave
ret 4
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x424318
xor eax, eax
jmp 0x42431e
Function at 0x4266f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push edi
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426753
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4daed8
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, byte [0x4dcfa0]
test eax, eax
push dword [ebp - 4]
cmove ecx, edi
mov byte [0x4dcfa0], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x426756
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
mov word [esi + 0xc], 0
push edi
call fcn.0042755d
test al, al
je 0x42677d
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x4267f3
mov ax, word [ebp + 8]
test ax, ax
jne 0x426793
cmp dword [esi + 0x40], 4
jne 0x426793
mov ecx, esi
call fcn.00426c44
lea edi, [esi + 0x50]
movzx eax, ax
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0042755d
test al, al
je 0x4267ae
mov byte [esi + 0xd], 1
jmp 0x4267f3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0042755d
test al, al
jne 0x4267f3
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0042755d
test al, al
jne 0x4267f3
call fcn.0045dcfb
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0042755d
test al, al
jne 0x4267f3
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x42825e
Capabilities:
Delete registry value

Disassembly:
push 0xac
mov eax, 0x48fc57
call fcn.00459b85
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xb8], eax
call fcn.00441910
mov edi, dword [ebx + 0xc]
push 0x10
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x4a5608]
lea ecx, [edi + 4]
call esi
xor ecx, ecx
test al, al
je 0x4283fe
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0xb4]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocStringLen
call fcn.00404b50
test eax, eax
jne 0x4283d3
push eax
lea eax, [ebp - 0xa1]
mov edi, 0x4b6748
mov esi, 0x4b6750
mov dword [ebp - 0x70], edi
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], esi
call fcn.004060a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa1]
push 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x18], esi
call fcn.004060a0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa0]
mov ecx, dword [ebx + 0xc]
push eax
mov ecx, dword [ecx + 0x268]
call fcn.0041c19e
mov byte [ebp - 4], 5
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x42833c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push str.__IS_PREREQCMD____s
push eax
call fcn.0041c7ad
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00404cc0
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x70]
push 0x104
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004587c3
add esp, 0x10
test eax, eax
jne 0x4283bb
mov edi, dword [ebx + 0xc]
lea ecx, [ebp - 0x70]
push 0
push ecx
push 0x12
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x4a5608]
lea ecx, [edi + 4]
call esi
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404cc0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xb4], 0
je 0x4283f6
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
jmp 0x4283f8
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 9
lea eax, [ebp - 0xa8]
mov edi, dword [ebx + 0xc]
push eax
push 0x10
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x4a5608]
lea ecx, [edi + 4]
call esi
mov ecx, dword [ebx + 0xc]
movzx eax, al
push eax
push dword [ebp - 0xb8]
mov ecx, dword [ecx + 8]
push 2
call fcn.0044a7e4
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa8], 0
je 0x42845b
push dword [ebp - 0xa8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.00459b34
ret 4
Function at 0x428c02
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d9754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edi
push eax
push dword [0x4dcfac]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x64]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x1c]
mov ecx, esi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0x1e
call fcn.0043f654
cmp dword [eax], 1
je 0x428c7c
cmp dword [eax + 4], ebx
je 0x428cd5
push ebx
push 0x4a8e30
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x428cd5
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], 0x46
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub esi, ecx
mov eax, esi
mov ebx, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x68]
mov edi, dword [ebp - 0x14]
sub ebx, edi
sub ecx, eax
mov eax, ebx
cdq
idiv dword [ebp - 0x68]
sub ecx, dword [ebp - 0x6c]
push 5
push 0
push 0
sub edi, eax
add ecx, esi
sub edi, dword [ebp - 0x70]
push ecx
add edi, ebx
push edi
push 0
push dword [0x4dcfac]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0045978b
leave
ret

Function at 0x429356
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4dcfac]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x429387
push 0
push dword [0x4dcfac]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4dcfb4]
push 0
mov ecx, dword [ecx + 0x26c]
call fcn.00454d64
ret
Function at 0x42af6f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49088a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d9754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x30]
jmp 0x42afbb
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x42afb1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x30
cmp esi, dword [edi + 0x34]
jne 0x42afa6
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x42afcb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.0041520f
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00404cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c92b
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x438
mov eax, 0x494eed
call fcn.00459b85
mov dword [ebp - 0x430], ecx
xor ebx, ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x440]
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404b50
mov esi, dword [ebp - 0x440]
test eax, eax
jne 0x42caac
push 0x410
lea eax, [ebp - 0x420]
mov edi, ebx
push ebx
push eax
call fcn.004714b0
add esp, 0xc
mov dword [ebp - 0x434], 0x208
lea eax, [ebp - 0x444]
push ebx
push ebx
push eax
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42caac
inc ebx
xor eax, eax
inc edi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x42c]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404b50
test eax, eax
jne 0x42ca20
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004356b8
test eax, eax
jne 0x42cad3
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x42c]
call fcn.00404b50
test eax, eax
jne 0x42ca5b
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004356b8
test eax, eax
jne 0x42cad3
xor ecx, ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x42c], ecx
je 0x42ca7c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
push ecx
push ecx
lea eax, [ebp - 0x444]
mov dword [ebp - 0x428], ecx
push eax
push ecx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42c9c9
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42cac2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x440], 0
and dword [ebp - 0x43c], 0
mov eax, ebx
call fcn.00459b34
ret 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x42c], 0
je 0x42caf3
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x42c], 0
and dword [ebp - 0x428], 0
jmp 0x42caac
Function at 0x42e865
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49563b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2030
call fcn.00459cc0
mov eax, dword [0x4d9754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x202c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x202c], edi
cmp edi, 0xffffffff
jne 0x42e900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp byte [ebp + 0x14], bl
je 0x42e8eb
cmp ecx, 0x20
je 0x42e8e4
cmp ecx, 0x21
jne 0x42e8eb
xor eax, eax
jmp 0x42ea6f
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x42ea89
push 0x2800
call fcn.00459c53
pop ecx
mov esi, eax
mov dword [ebp - 0x2040], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2024], ebx
mov dword [ebp - 0x2020], 0x2800
lea eax, [ebp - 0x2020]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
mov ebx, eax
mov dword [ebp - 0x2028], ebx
test ebx, ebx
je 0x42e964
push 0
push ebx
lea ecx, [ebp - 0x1018]
call fcn.0042a9de
push 0x4ca6c8
lea eax, [ebp - 0x1018]
jmp 0x42ea9a
mov eax, dword [ebp - 0x2020]
test eax, eax
je 0x42e9f8
push 0
lea ecx, [ebp - 0x2038]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42e9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x42e9b6
mov dword [ebp - 0x2034], ecx
push 0x4ca6fc
lea eax, [ebp - 0x2034]
jmp 0x42ea9a
mov eax, dword [ebp - 0x2020]
cmp dword [ebp - 0x2038], eax
je 0x42e9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x42e9f2
mov dword [ebp - 0x203c], ecx
push 0x4ca6fc
lea eax, [ebp - 0x203c]
jmp 0x42ea9a
mov eax, dword [ebp - 0x2020]
add dword [ebp - 0x2024], eax
test eax, eax
jne 0x42e91d
mov byte [ebp - 4], al
push 1
push esi
call fcn.004598ae
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x42ea61
cmp edi, 0xffffffff
je 0x42ea6d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 - 0x14]
xor ecx, ebp
call fcn.0045978b
leave
ret
mov dword [ebp - 0x2030], eax
push 0x4ca6fc
lea eax, [ebp - 0x2030]
push eax
call fcn.00471ff8
int3