joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426de8
Capabilities:
Get common file path

Disassembly:
push 0x428
mov eax, 0x4551e2
call fcn.0043ddcc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x424], ax
xor esi, esi
lea eax, [ebp - 0x422]
push esi
push eax
call fcn.0043c330
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
cmp ebx, esi
jne 0x426f21
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040215a
push str.Msi.dll
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], esi
call fcn.00408e0c
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.0043c330
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x42c]
mov dword [ebp - 0x434], 0x104
call sub.msi.dll_MsiMessageBoxW
cmp eax, esi
jne 0x426ee5
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402123
push str.MSI_version:
lea ecx, [ebp - 0x428]
call fcn.0040215a
push esi
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
push 1
mov byte [ebp - 4], 1
call fcn.0040e85b
add esp, 0x10
jmp 0x426f0b
push str.Unable_to_determine_MSI_version
lea ecx, [ebp - 0x428]
call fcn.0040215a
push esi
lea eax, [ebp - 0x428]
push eax
push 1
mov byte [ebp - 4], 2
call fcn.0040ece1
add esp, 0xc
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x42c]
jmp 0x426f50
push str.SHGetFolderPath_in_GetMsiVersion_failed:
lea ecx, [ebp - 0x428]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x428]
push eax
push 1
mov dword [ebp - 4], 3
call fcn.0040ece1
mov ecx, dword [ebp - 0x428]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
call fcn.0043de4f
ret
Function at 0x428bd3
Capabilities:
Query service status

Disassembly:
push 0x34
mov eax, 0x454e6a
call fcn.0043dd63
push 4
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, 0x2722c
mov dword [ebp - 0x18], eax
cmp dword [0x48eac4], esi
je 0x428cdb
cmp eax, edi
je 0x428cdb
push 4
push str.MSIServer
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
add esi, 0x64
mov ebx, eax
cmp dword [0x48eac4], esi
je 0x428c9a
cmp ebx, edi
je 0x428c9a
lea eax, [ebp - 0x1c]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov esi, 0x27164
cmp dword [0x48eac4], esi
je 0x428c52
cmp eax, edi
je 0x428c52
cmp dword [ebp - 0x38], 4
jne 0x428c88
inc edi
jmp 0x428c88
push 0x47bfc4
lea ecx, [ebp - 0x10]
call fcn.0040215a
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
push ecx
push esi
mov ecx, eax
mov edx, 0x48eabc
call fcn.0040d106
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x18]
call esi
mov eax, edi
jmp 0x428d0f
push str.OpenSCManager_failed:
lea ecx, [ebp - 0x14]
call fcn.0040215a
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
mov edx, 0x48eabc
call fcn.0040d106
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x428d0d
push str.OpenSCManager_failed:
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x18]
push ecx
push esi
mov ecx, eax
mov edx, 0x48eabc
call fcn.0040d106
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
call fcn.0043de3b
ret
Function at 0x429379
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x454dac
call fcn.0043dd63
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4294d2
cmp eax, 4
jb 0x4294d2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040219e
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408c96
cmp eax, 0xffffffff
je 0x4293f3
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
jne 0x4293f3
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408cb8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00408fd2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
push 0x47389c
lea ecx, [ebp - 0x14]
call fcn.00408e0c
lea ecx, [ebp - 0x34]
call fcn.00436ea1
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
push 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00436f39
test eax, eax
je 0x429485
lea ecx, [ebp - 0x34]
call fcn.00436ba1
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00436e62
test eax, eax
jne 0x429481
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00437166
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
call dword [eax + 0x38]
test eax, eax
je 0x42946a
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.0040219e
call fcn.00429379
pop ecx
jmp 0x429472
lea esi, [ebp - 0x18]
call fcn.004294e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
test ebx, ebx
jne 0x42941e
lea ecx, [ebp - 0x34]
call fcn.00436abb
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4294bb
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.0040ece1
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00436eca
lea ecx, [edi - 0x10]
call fcn.004025dc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025dc
call fcn.0043de3b
ret

Function at 0x4294e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ecx
mov eax, esi
call fcn.00401000
test eax, eax
je 0x429515
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x429515
push 0x186a0
push esi
push 2
call fcn.0040ece1
add esp, 0xc
pop ecx
ret
Function at 0x4296e9
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x454d1e
call fcn.0043dd63
call fcn.0042a9e0
push eax
lea ecx, [ebp - 0x18]
call fcn.00410472
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x10]
push 0x46002c
mov byte [ebp - 4], 2
call fcn.00408f42
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property_s
push eax
call fcn.004020ef
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x429742
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
je 0x4297b0
push 0x475db4
lea ecx, [ebp + 0xc]
call fcn.0040215a
mov byte [ebp - 4], 3
push edi
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.0040ece1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], esi
je 0x429793
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x4297a0
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov eax, edi
call fcn.0043de3b
ret
push esi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x4297d2
push str.MsiViewExecute__
lea ecx, [ebp + 0xc]
call fcn.0040215a
mov byte [ebp - 4], 4
jmp 0x42976c
cmp dword [ebp - 0x14], esi
je 0x4297df
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, esi
jne 0x429786
push dword [ebp + 0x10]
push 1
push dword [ebp - 0x14]
call fcn.0042987c
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x429860
push str.MsiGetRecordString__
lea ecx, [ebp + 0xc]
call fcn.0040215a
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.0040ece1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], esi
je 0x429842
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x42984f
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov eax, esi
jmp 0x4297aa
cmp dword [ebp - 0x14], esi
je 0x42986d
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x429851
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x429851
Function at 0x429b5e
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x489d50]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
mov edi, ecx
call fcn.0043c330
xor eax, eax
push esi
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push ebx
push eax
call fcn.0043c330
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x478f98
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x429c11
mov eax, dword [ebp - 0x78]
xor ecx, ecx
cmp ecx, 0x103
je 0x429c0b
xor edx, edx
push 0xa
pop esi
div esi
mov dx, word [edx*2 + str.0123456789]
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ebx
ja 0x429beb
xor eax, eax
mov word [edi + ecx*2], ax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x429c27
push str.thsnYaVieBoda
call fcn.00422f1d
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4fa
add ebp, 0x3a8
leave
ret
Function at 0x429c3f
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x3c
mov eax, 0x454c6a
call fcn.0043ddcc
mov esi, edx
mov dword [ebp - 0x38], ecx
xor ebx, ebx
call fcn.0040234f
push 8
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0043c330
add esp, 0xc
push 8
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0043c330
add esp, 0xc
push 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0043c330
add esp, 0xc
push esi
lea ecx, [ebp - 0x28]
call fcn.0040219e
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0040d0c7
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
mov ecx, 0x48e428
mov dword [ebp - 0x48], eax
call fcn.0040d0c7
mov dword [ebp - 0x3c], eax
mov eax, dword [0x48e428]
mov eax, dword [eax - 0xc]
shr eax, 1
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push str.Encrypted_by_Adobe.
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x429d39
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp dword [ebp - 0x30], ebx
jbe 0x429d2b
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
shr eax, 4
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.0041045a
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
and eax, 0xf
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.0041045a
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x429cf5
push dword [ebp - 0x2c]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x429d67
push str.Encryption_failed.
lea ecx, [ebp - 0x34]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x34]
push eax
push 1
mov byte [ebp - 4], 1
call fcn.0040ece1
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call fcn.00408ee8
push 0xffffffffffffffff
mov ecx, 0x48e428
call fcn.00408ee8
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, ebx
call fcn.0043de4f
ret
Function at 0x429f92
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push 0x14
mov eax, 0x4544ca
call fcn.0043dd63
call fcn.0042a9e0
push eax
lea ecx, [ebp - 0x14]
call fcn.00410472
xor edi, edi
push 0x48e96c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00408fd2
mov esi, 0x48e90c
mov eax, esi
call fcn.0040521a
test eax, eax
mov eax, str.ReaderReader_sl.exe
jne 0x429fd8
mov eax, str.AcrobatAcrobat_sl.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.00408e0c
mov eax, esi
call fcn.0040521a
test eax, eax
mov eax, str.Adobe_Reader_Speed_Launcher
jne 0x429ff6
mov eax, str.Adobe_Acrobat_Speed_Launcher
push eax
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov byte [ebp - 4], 1
call fcn.0042a9e0
push eax
lea ecx, [ebp - 0x10]
call fcn.00410472
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00424f39
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp dword [eax - 0xc], edi
je 0x42a04f
lea eax, [ebp - 0x10]
push eax
call fcn.0042a46a
push esi
lea ecx, [ebp - 0x10]
call fcn.00408d87
test eax, eax
je 0x42a096
push 5
push edi
push edi
push esi
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
mov eax, str.Unable_to_launch:
jl 0x42a06b
mov eax, str.Launched:
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040215a
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040e85b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [esi - 0x10]
call fcn.004025dc
call fcn.0043de3b
ret
Function at 0x42bffd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x489d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42c095
push 0x459e4c
push 4
push eax
call fcn.0043cde5
push eax
call fcn.00402258
add esp, 0x10
push ebx
push edi
call fcn.0043defb
mov edi, dword [eax]
call fcn.0043defb
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043d6ad
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0043defb
cmp dword [eax], ebx
je 0x42c0ac
call fcn.0043defb
push dword [eax]
call fcn.0042a72a
pop ecx
jmp 0x42c0b3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42c040
jmp 0x42c13a
call fcn.0043defb
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x42c136
cmp dword [ebp - 0x234], esi
jae 0x42c136
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0043c330
add esp, 0xc
push 0x459bac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x42c125
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42c125
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42c125
push ebx
push ebx
push esi
jmp 0x42c12e
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42c138
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b4fa
leave
ret

Function at 0x435792
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4357d9
call fcn.0042e0d1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4357d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4357f5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043530a
mov esi, eax
test edi, edi
je 0x4357f3
test ebx, ebx
je 0x4357f3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43644d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x436471
cmp dword [edi + 0x54], 0
jne 0x436471
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042e0d1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043640e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44ce07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004428b1
and dword [ebp - 4], 0
cmp dword [0x48e2d4], 0
mov ebx, eax
jne 0x44ceb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44cf69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44cf69
push eax
call fcn.0044283f
mov dword [esp], 0x45cc20
push edi
mov dword [0x48e2d4], eax
call esi
push eax
call fcn.0044283f
mov dword [esp], 0x45cc0c
push edi
mov dword [0x48e2d8], eax
call esi
push eax
call fcn.0044283f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48e2dc], eax
call esi
push eax
call fcn.0044283f
pop ecx
mov dword [0x48e2e4], eax
test eax, eax
je 0x44ceb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044283f
pop ecx
mov dword [0x48e2e0], eax
mov eax, dword [0x48e2e0]
cmp eax, ebx
je 0x44cf10
cmp dword [0x48e2e4], ebx
je 0x44cf10
push eax
call fcn.004428ba
push dword [0x48e2e4]
mov esi, eax
call fcn.004428ba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44cf10
test edi, edi
je 0x44cf10
call esi
test eax, eax
je 0x44cf07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44cf07
test byte [ebp - 0xc], 1
jne 0x44cf10
or dword [ebp + 0x10], 0x200000
jmp 0x44cf49
mov eax, dword [0x48e2d8]
cmp eax, ebx
je 0x44cf49
push eax
call fcn.004428ba
pop ecx
test eax, eax
je 0x44cf49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44cf49
mov eax, dword [0x48e2dc]
cmp eax, ebx
je 0x44cf49
push eax
call fcn.004428ba
pop ecx
test eax, eax
je 0x44cf49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48e2d4]
call fcn.004428ba
pop ecx
test eax, eax
je 0x44cf69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44cf6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040b9f0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x403992
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x403b17
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00403960
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x403ba9
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403b92
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x403b92
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x403b9b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x403bb2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x403cb3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x403e91
Capabilities:
Get common file path

Disassembly:
cmp word [0x4111c8], 0
push esi
mov esi, 0x4111c8
jne 0x403eb2
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4113d4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4113d4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4040a4
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40c3f0
push eax
push eax
push dword [esp + 0x14]
push 0x40d9f4
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x404f08
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x410b68
push dword [esp + 0xc]
push esi
push 0x40c3f0
push dword [esp + 0x14]
push 0x410d78
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret