joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e60
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x42e1e0
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f1a
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x402f1a
lea eax, [ebp - 0xc10]
call fcn.00402140
mov ebx, eax
test ebx, ebx
je 0x402ece
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x402ed7
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x42e1e0
call fcn.00402e40
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40304e
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x403058
mov ecx, 2
call fcn.00402428
mov ebx, eax
mov eax, 0x40305c
mov ecx, 0x20
mov edx, ebx
call fcn.00402428
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x402fc3
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x402fe5
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.00402378
mov ebx, eax
mov eax, 0x40305c
mov ecx, 0x20
mov edx, ebx
call fcn.00402428
mov ebx, eax
mov eax, 0x403058
mov ecx, 2
mov edx, ebx
call fcn.00402428
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x42e1e0
call fcn.0040215c
mov ebx, eax
test ebx, ebx
jbe 0x403142
mov eax, dword [0x42a800]
call fcn.00402140
mov ecx, eax
inc ecx
lea edx, [ebx + 0x42e1dc]
mov eax, dword [0x42a800]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x403148
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x403142
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x40310a
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x42e1e0
call fcn.00402e40
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov edx, 0x42e1e0
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call sub.rtl160.bpl__System_Move_qqrpxvpvi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c88
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
xor ebx, ebx
cmp dword [0x42ec8c], 0
je 0x405d21
cmp byte [0x42ec88], 0
je 0x405cd6
push 0x405d28
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x405d48
call fcn.00402184
lea edx, [ebp - 0x400]
mov eax, 0x405d28
call fcn.00402474
jmp 0x405d21
call sub.rtl160.bpl__System_IsMemoryManagerSet_qqrv
test al, al
jne 0x405d21
lea eax, [ebp - 0x428]
call sub.rtl160.bpl__System_GetHeapStatus_qqrv
cmp dword [ebp - 0x41c], 0
je 0x405d1f
push 0x405d5c
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x405f44
call fcn.00402184
lea edx, [ebp - 0x400]
mov eax, 0x405d5c
call fcn.00402474
jmp 0x405d21
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406238
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x42ec88], 0
jne 0x4063b9
push 1
push 0x2000
push 0x10000
push 0x80800000
call sub.kernel32.dll_VirtualAlloc
mov dword [0x42e5e0], eax
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x40626f
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x42ec84], eax
cmp dword [0x42ec84], 0
jne 0x40633d
mov eax, dword [sym.imp.rtl160.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x4062f8
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x42ec84], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x42ec84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x42ec6c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x42ec6c], fcn.00404098
mov dword [0x42ec70], 0x404214
mov dword [0x42ec74], 0x404300
mov dword [0x42ec78], 0x404464
mov dword [0x42ec7c], 0x4052f8
mov dword [0x42ec80], 0x405348
mov byte [0x42ec89], 1
jmp 0x40637f
push 0
push 0
push 0
push 4
mov eax, dword [0x42ec84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x42ec6c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x42ec84]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x42ec84], eax
mov byte [0x42ec89], 0
mov eax, 0x42ec54
call sub.rtl160.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x42ec6c
call sub.rtl160.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x42ec88], 1
cmp byte [0x42ec89], 0
je 0x4063af
push 0x4063c0
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4063b9
push 0x4063dc
call sub.kernel32.dll_OutputDebugStringA
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40de34
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x40df0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov eax, 0x40df28
call sub.rtl160.bpl__System_Pos_qqrx20System_UnicodeStringt1
dec eax
jne 0x40de92
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x20c]
mov edx, 0x208
call fcn.00401e9c
push 0
call sub.kernel32.dll_SetLastError
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_QueryDosDeviceW
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40dedc
lea eax, [ebp - 0x20c]
mov edx, 0x208
call fcn.00401e9c
mov eax, esi
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df16
lea eax, [ebp - 0x210]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret

Function at 0x40e154
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x40d1d8]
call fcn.0040df30
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40e1fe
xor eax, eax
push ebp
push 0x40e1f7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40e1d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0xc
call fcn.00401e9c
push 0
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x40e1cc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e1e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1fe
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ea08
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040e040
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40eac2
xor edx, edx
push ebp
push 0x40eaa3
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x210]
mov edx, 0x200
call fcn.00401e9c
lea eax, [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x10], eax
mov dword [esi], 7
xor eax, eax
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x200
mov eax, dword [ebp - 0x10]
push eax
push 0x200
push esi
push 0x2d1400
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x40ea8c
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x40eac2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eaaa
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
xor ecx, ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x422a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00424490
push 0
push 0
call sub.kernel32.dll_GetLogicalDriveStringsW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
add eax, eax
push eax
call sub.rtl160.bpl__System_GetMemory_qi
pop ecx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x42283c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetLogicalDriveStringsW
mov ebx, dword [ebp - 0x14]
jmp 0x42281a
lea eax, [ebp - 4]
mov edx, ebx
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 4]
mov eax, 0x422a2c
call sub.rtl160.bpl__System_Strutils_EndsText_qqrx20System_UnicodeStringt1
test al, al
je 0x4227cd
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x434]
mov edx, ebx
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4205a0]
call fcn.00421fa0
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00423f4c
xor edx, edx
mov eax, ebx
call sub.rtl160.bpl__System_Sysutils_StrRScan_qqrpxbb
mov ebx, eax
test ebx, ebx
je 0x422824
cmp word [ebx], 0
jne 0x42281a
add ebx, 2
cmp word [ebx], 0
jne 0x422796
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422843
mov eax, dword [ebp - 0x14]
push eax
call sub.rtl160.bpl__System_FreeMemory_qpv
pop ecx
ret
Function at 0x422ed4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x42302a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x428]
mov eax, ebx
call fcn.0041cea4
mov eax, dword [ebp - 0x428]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x422f44
lea edx, [ebp - 0x42c]
mov eax, ebx
call fcn.0041cea4
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
jmp 0x422f4e
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041cf88
lea eax, [ebp - 0x21a]
mov edx, 0x20a
call fcn.00401e9c
lea eax, [ebp - 0x424]
mov edx, 0x20a
call fcn.00401e9c
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x105
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x105
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetVolumeInformationW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x423004
lea eax, [ebp - 0x430]
lea edx, [ebp - 0x21a]
mov ecx, 0x105
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov edx, dword [ebp - 0x430]
mov eax, ebx
call fcn.0041d308
lea eax, [ebp - 0x434]
lea edx, [ebp - 0x424]
mov ecx, 0x105
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov edx, dword [ebp - 0x434]
mov eax, ebx
call fcn.0041d3ec
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0041d6a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423031
lea eax, [ebp - 0x434]
mov edx, 4
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x423038
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd38
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42323e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x58], 2
je 0x423204
lea edx, [ebp - 0x2bc]
mov eax, ebx
call fcn.0041cea4
mov eax, dword [ebp - 0x2bc]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x4230b6
lea edx, [ebp - 0x2c0]
mov eax, ebx
call fcn.0041cea4
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
jmp 0x4230e8
lea edx, [ebp - 0x2c4]
mov eax, ebx
call fcn.0041d06c
mov eax, dword [ebp - 0x2c4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x4230de
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041d06c
jmp 0x4230e8
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041cf88
lea eax, [ebp - 0x2b8]
mov edx, 0x2b4
call fcn.00401e9c
push 0x600
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x423140
lea eax, [ebp - 0x2c8]
lea edx, [ebp - 0x2ac]
mov ecx, 0x104
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov edx, dword [ebp - 0x2c8]
mov eax, ebx
call fcn.0041d708
cmp byte [esi + 0xd], 0
jne 0x423218
lea eax, [ebp - 0x2b8]
mov edx, 0x2b4
call fcn.00401e9c
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
test edi, edi
je 0x423199
mov edx, dword [ebp - 0x2b4]
mov eax, ebx
call fcn.0041d794
cmp dword [esi + 0x60], 0
jne 0x4231a3
mov dword [esi + 0x60], edi
jmp 0x4231a3
or edx, 0xffffffff
mov eax, ebx
call fcn.0041d794
cmp byte [esi + 0xd], 0
jne 0x423218
lea eax, [ebp - 0x2b8]
mov edx, 0x2b4
call fcn.00401e9c
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
test edi, edi
je 0x4231f8
mov edx, dword [ebp - 0x2b4]
mov eax, ebx
call fcn.0041d7a8
cmp dword [esi + 0x64], 0
jne 0x423218
mov dword [esi + 0x64], edi
jmp 0x423218
or edx, 0xffffffff
mov eax, ebx
call fcn.0041d7a8
jmp 0x423218
or edx, 0xffffffff
mov eax, ebx
call fcn.0041d794
or edx, 0xffffffff
mov eax, ebx
call fcn.0041d7a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423245
lea eax, [ebp - 0x2c8]
mov edx, 4
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x4090448b
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x49290226
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x414dd6
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx], ebx
or esi, esi
push edx
pop edi
sub edi, 0x980c3b3
add ecx, 4
sub edi, 0x3a701004
dec edi
sub edx, edi
cmp ecx, eax
jne fcn.00414dd6
mov edi, 0x4e9807ab
dec edx
ret
Function at 0x1001845
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001868
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push 0x100124c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1001864
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x1001976
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax]
xor edi, edi
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ebx, 0x80070000
jne 0x10019cd
call esi
cmp eax, 0x10000
jae 0x10019c1
call esi
test eax, eax
jle 0x10019c1
call esi
mov edi, eax
and edi, 0xffff
or edi, ebx
jmp 0x10019c5
call esi
mov edi, eax
test edi, edi
jl 0x1001a5e
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x1001a31
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp eax, ecx
je 0x1001a31
push ecx
push ecx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x1388
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a5e
push 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1001a1c
push 0x3e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a5c
call esi
cmp eax, 0x10000
jae 0x1001a2b
call esi
test eax, eax
jg 0x1001a4e
call esi
mov edi, eax
jmp 0x1001a5e
push 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1001a5c
call esi
cmp eax, 5
jne 0x1001a1c
mov edi, 0x80070425
jmp 0x1001a5e
call esi
mov edi, eax
and edi, 0xffff
or edi, ebx
jmp 0x1001a5e
xor edi, edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
jl 0x1001aaa
and dword [ebp + 0xc], 0
mov ebx, 0x2710
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push dword [eax]
add dword [ebp + 0xc], 0x64
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1001aa0
push eax
call esi
cmp dword [ebp + 0xc], ebx
jb 0x1001a76
cmp dword [ebp + 0xc], ebx
jb 0x1001aaa
mov edi, 0x8007041d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10023d4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x6c], eax
jne 0x10023f5
xor al, al
jmp 0x100240e
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x10023bc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret

Function at 0x1002417
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1007070]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1002456
push esi
push 0x20
push esi
push 4
push 2
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x100245e
xor eax, eax
inc eax
jmp 0x1002553
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ebx, 0x1007088
push 0x1007020
mov ecx, ebx
call fcn.01002247
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10070f0], eax
mov esi, 0x10013fc
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x10]
movsw word es:[edi], word [esi]
call fcn.01002326
xor edi, edi
jmp 0x10024c9
push 0x10013e4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10024e9
push 0x10013d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10024f7
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01002326
mov esi, eax
cmp esi, edi
jne 0x100249f
mov ecx, ebx
call fcn.010023d4
push 1
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002523
push edi
push edi
push edi
push 0x65
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
jmp 0x1002542
push edi
push edi
push 1
push 0x65
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push 1
push 1
push 0x10013b0
push 0x1001360
call fcn.010050e9
jmp 0x1002542
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
call esi
test eax, eax
jne 0x1002519
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010051f3
leave
ret