joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x43d9ee
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x43da00
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x43da0e
push edi
call fcn.0043de40
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.0043d7d0
add esp, 0x10
test eax, eax
je 0x43da37
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x43da5a
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x43da92
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x43dae0
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0043c6f0
add esp, 4
test eax, eax
jne 0x43dae0
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x43db0d
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x43db19
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x43db59
mov al, byte [ebp]
test al, al
je 0x43db59
push eax
push ebx
call fcn.0043c440
add esp, 8
inc ebp
jne 0x43db45
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x43df90
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x43e072
cmp dword [ebp + 4], 0xffffffff
jne 0x43e072
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x43e002
cmp cl, 0x2f
je 0x43e002
mov edi, 0x45d124
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x43e02e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43e02e
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.0043cc10
add esp, 0x10
test eax, eax
jne 0x43e051
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0043d130
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x43e5d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x43e5f8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43e5f8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x43e6d2
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x43e618
cmp cl, 0x5c
jne 0x43e61a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x43e60e
push esi
cmp eax, ebp
push edi
je 0x43e65c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.0043e5d0
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x43e688
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x43e6d2
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x43f030
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 3
push 0
push 0
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x43f460
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x45ff4c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x43f482
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43f4bb
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push edi
call ebp
push edi
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push edi
mov byte [esi + ebx], 0
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x38]
push esi
push 0x45d330
push edx
call sub.MFC42.DLL_CString::Format
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0x30
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43f790
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44c120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
push 0xa
lea ecx, [esp + 0x18]
call fcn.00446870
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x45d124
push eax
call esi
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x43f872
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x45d124
push eax
call esi
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x43f80f
mov edx, dword [esp + 0xc]
push edx
call fcn.0043f740
add esp, 4
test eax, eax
jne 0x43f8e8
mov bl, 3
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CStringList::AddHead
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x43f8e8
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x3a
je 0x43f8e8
push eax
call fcn.0043f740
add esp, 4
test eax, eax
je 0x43f885
mov esi, dword [esp + 0x18]
test esi, esi
je 0x43f918
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0xc]
push 0
push edx
call edi
test eax, eax
je 0x43f94e
test esi, esi
jne 0x43f8f6
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CStringList::CStringList
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CStringList::CStringList
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x43f9c0
Capabilities:
Get file size

Disassembly:
push esi
mov eax, dword [esp + 8]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f9f7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x43fab0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push ebx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push str.CONFIG
push 0
push edx
push eax
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x43fae8
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
cmp edx, 4
jne 0x43fafd
mov ecx, 4
jmp 0x43fb0a
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
push ecx
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x43fb26
xor ebx, ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
ret

Function at 0x43fb40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov edx, dword [esp + 0x11c]
lea eax, [esp + 8]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0x128]
push eax
mov eax, dword [esp + 0x120]
push ecx
push 0
push 0xf003f
push 0
push str.CONFIG
push 0
push edx
push eax
mov byte [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x43fb8f
xor eax, eax
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0xc]
push esi
xor esi, esi
sub eax, 2
jne 0x43fbf0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43fbf0
push edi
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
pop edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
add esp, 0x114
ret

Function at 0x43fc10
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43fc33
xor eax, eax
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x43fc60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43fcd6
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret

Function at 0x43fce0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x158
lea ecx, [esp + 0x54]
push esi
push edi
push eax
push str.regsvr32___s___s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x174]
add esp, 0xc
test eax, eax
jne 0x43fd3b
mov edi, 0x45ffd8
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
lea eax, [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43fd96
push eax
call esi
mov dword [esp + 8], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x43fda1
push eax
call esi
pop edi
pop esi
add esp, 0x158
ret
Function at 0x43fdd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push esi
push edi
push 0x45d900
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43fdf6
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
add esp, 0x1c
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
test edi, edi
jne 0x43fe38
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x43fe72
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
lea edx, [esp + 0xc]
push edx
push 0x454278
push 0
push 0
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x43fea9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x10]
push 4
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4401c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4401df
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x440229
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
push 0
or ecx, 4
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x4404f0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x128
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0xc], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x29], al
mov ecx, dword [esp + 0x134]
lea eax, [esp + 8]
mov dword [esp + 0x10], ecx
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x128
ret

Function at 0x440af0
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0043fb40
mov edx, eax
add esp, 0x10
test edx, edx
je 0x440b30
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x440b30
xor edx, edx
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x440b9b
mov esi, dword [esp + 0x118]
test edx, edx
je 0x440b66
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x11]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x440bb2
push esi
lea edx, [esp + 0x10]
push str.__s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0043fab0
add esp, 0x20
pop edi
pop esi
pop ebx
add esp, 0x104
ret
test edx, edx
je 0x440bb2
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0043fc10
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x441010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x74]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x78]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0xb
xor eax, eax
lea edi, [esi + 4]
mov dword [esi], 0
rep stosd dword es:[edi], eax
mov ecx, 0xb
lea edi, [esi + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x6c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x445f70
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x12c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
push ecx
push edx
push eax
call fcn.0043eca0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x445fb0
pop edi
add esp, 0x12c
ret
lea ecx, [esp + 4]
push ecx
push 0xffffffffffffffff
push edi
call fcn.0043ecc0
add esp, 0xc
test eax, eax
je 0x445fd7
push edi
call fcn.0043ed80
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
xor esi, esi
mov ebp, eax
test eax, eax
mov ebx, 1
jle 0x446011
lea edx, [esp + 0x10]
push edx
push esi
push edi
call fcn.0043ecc0
lea eax, [esp + 0x20]
push eax
push esi
push edi
call fcn.0043ed60
add esp, 0x18
test eax, eax
je 0x44600c
xor ebx, ebx
inc esi
cmp esi, ebp
jl 0x445feb
push edi
call fcn.0043ed80
add esp, 4
mov eax, ebx
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x12c
ret
Function at 0x10001300
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040b30], eax
je 0x1000131e
mov eax, 0x10dd
jmp 0x100013ff
mov eax, dword [0x10040b40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000139c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [0x1002c02c]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000137a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000137a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001470
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.100176c9
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10001326
mov dword [0x10040b40], 0
call fcn.10001410
mov ecx, dword [0x10040b3c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x100013e9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100176c9
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100013b4
mov dword [0x10040b3c], 0
mov dword [0x10040b30], 0
xor eax, eax
mov esp, ebp
pop ebp
ret