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

Disassembly:
sub esp, 0x230
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftMultimediaAudioWaveFormats
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100013f4
xor eax, eax
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1001524a
add esp, 0x230
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
mov ebp, 0x12
mov ebx, 0x200
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x100014a9
mov eax, 1
cmp word [esp + 0x28], ax
jne 0x1000146a
cmp word [esp + 0x2a], 2
jne 0x1000146a
cmp dword [esp + 0x2c], 0xac44
jne 0x1000146a
cmp word [esp + 0x36], 0x10
je 0x100014a5
lea ecx, [esp + 0x1c]
push ecx
add esi, eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
push eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebx
call edi
test eax, eax
je 0x10001444
jmp 0x100014a9
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
cmp dword [esp + 0x24], 0
je 0x1000151c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x18]
push edx
push str.SoftwareMicrosoftMultimediaAudio
push 0x80000001
call ebx
test eax, eax
jne 0x1000151c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebp, 1
push ebp
push 0
push str.DefaultFormat
push edx
mov dword [esp + 0x2c], ebp
call edi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
push str..DEFAULTSoftwareMicrosoftMultimediaAudio
push 0x80000003
call ebx
test eax, eax
je 0x10001520
xor eax, eax
jmp 0x10001546
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
push ebp
push 0
push str.DefaultFormat
push ecx
mov dword [esp + 0x2c], ebp
call edi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, ebp
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x230
ret
Function at 0x100017f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf023f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001863
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001858
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001524a
add esp, 0x110
ret

Function at 0x10001880
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf013f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100018f3
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x100018e8
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001524a
add esp, 0x110
ret

Function at 0x10001910
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf023f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000001
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001983
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001978
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001524a
add esp, 0x110
ret
Function at 0x100019a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf013f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000001
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001a13
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001a08
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001524a
add esp, 0x110
ret
Function at 0x10005050
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x10005086
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.HIDEWIN
mov edi, eax
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x1000520a
test ebp, ebp
je 0x1000520a
cmp dword [esp + 0x1c], 0
je 0x1000520a
test eax, eax
je 0x1000520a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1002a7ec
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000517e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x100051e0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100051e0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100051e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005240
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005239
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005203
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005242
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000522d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005240
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10005260
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x10005296
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RTKICON
mov edi, eax
push 0xbbe
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x1000541a
test ebp, ebp
je 0x1000541a
cmp dword [esp + 0x1c], 0
je 0x1000541a
test eax, eax
je 0x1000541a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtkAudMgr.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000538e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x100053f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100053f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100053f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005450
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005449
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005413
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005452
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000543d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005450
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10005470
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x100054a6
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BEATSICON
mov edi, eax
push 0xbc4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x1000562a
test ebp, ebp
je 0x1000562a
cmp dword [esp + 0x1c], 0
je 0x1000562a
test eax, eax
je 0x1000562a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempBeats.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000559e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005600
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005600
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005600
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005660
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005659
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005623
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005662
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000564d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005660
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10005680
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x100056b6
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SRSICON
mov edi, eax
push 0xbc6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x1000583a
test ebp, ebp
je 0x1000583a
cmp dword [esp + 0x1c], 0
je 0x1000583a
test eax, eax
je 0x1000583a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SRS.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100057ae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005810
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005810
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005810
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005870
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005869
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005833
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005872
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000585d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005870
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10005890
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x100058c6
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DTSICON
mov edi, eax
push 0xbc9
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005a4a
test ebp, ebp
je 0x10005a4a
cmp dword [esp + 0x1c], 0
je 0x10005a4a
test eax, eax
je 0x10005a4a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempDTS.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x100059be
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005a20
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005a20
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005a20
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005a80
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005a79
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005a43
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005a82
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005a6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005a80
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret