joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4492e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44931c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4492fd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44930c
or bl, 4
test esi, 0x20000000
je 0x449317
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f9e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f9f2
add esp, 0xfffffff0
call fcn.00403800
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f0d8
mov eax, dword [0x45be98]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fd84
mov eax, dword [0x45bea4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fd90
mov eax, ebx
call fcn.0044fd9c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417394]
call fcn.004034b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417394]
call fcn.004034b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417394]
call fcn.004034b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417394]
call fcn.004034b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417394]
call fcn.004034b0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c1b4
push eax
push 0
push 0
mov eax, dword [0x45bffc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420afc]
call fcn.00421f64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420afc]
call fcn.00421f64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420afc]
call fcn.00421f64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004501ec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500b4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500b4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fb2f
call fcn.00403858
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fe98
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450043
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450024
mov dl, 1
mov eax, dword [0x4177b0]
call fcn.004034b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404298
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450013
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d918
test al, al
je 0x450006
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450054
lea eax, [ebp - 0x254]
call fcn.004097f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450006
xor eax, eax
push ebp
push 0x44ffff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45008c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ffe8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404508
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ffe8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450006
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ff09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b2c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45004a
lea eax, [ebp - 0x260]
call fcn.00404298
ret

Function at 0x45098c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45dbd8]
cmp byte [eax + 0xa5], 0
jne 0x4509fd
cmp dword [0x45dbf0], 0
jne 0x4509be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450948
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbf0], eax
cmp dword [0x45dbec], 0
jne 0x4509d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbec], eax
cmp dword [0x45dbf4], 0
jne 0x4509fd
push esp
push 0
push 0
push 0x4508ec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dbf4], eax
pop edx
ret
Function at 0x451090
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbd8]
cmp dword [eax + 0x30], 0
je 0x45113a
cmp dword [ebx + 0x94], 0
jne 0x451134
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451020
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451134
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4510fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451134
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004196fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451109
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451c98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451ccd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404388
jmp 0x451cda
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452d10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452d51
mov eax, esi
call fcn.00439120
test al, al
je 0x452d51
mov eax, dword [ebx + 0x84]
call fcn.00438ec0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452d51
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438ec0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456384
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x45c1e8]
cmp dword [eax], 2
je 0x4563a2
mov ecx, 0x35f
mov edx, 0x4563d4
mov eax, 0x456408
call fcn.00404270
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x456324
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x45dc2c], eax
cmp dword [0x45dc2c], 0
jne 0x4563c9
call fcn.0040daf0
ret

Function at 0x45663c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x45be5c]
cmp byte [eax], 0
jne 0x45666a
mov ecx, 0xaf
mov edx, 0x4566b8
mov eax, 0x4566ec
call fcn.00404270
mov eax, ebx
call fcn.00404978
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4566a9
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404b0c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456700
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x45be5c]
cmp byte [eax], 0
jne 0x456723
mov ecx, 0xbd
mov edx, 0x456764
mov eax, 0x456798
call fcn.00404270
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x456756
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x456756
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x456756
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x459018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x45907c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ca0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459083
lea eax, [ebp - 0xc]
call fcn.00404298
ret

Function at 0x4590b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x45910c
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4590db
call fcn.0040daf0
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402ca8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45910c
call fcn.0040daf0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x459624
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x45974c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
dec eax
sub eax, 2
jb 0x45966e
mov ecx, 0x7d
mov edx, 0x459764
mov eax, 0x45979c
call fcn.00404270
mov eax, dword [0x45be5c]
cmp byte [eax], 0
jne 0x4596cc
cmp esi, 1
jne 0x4596a6
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.0042baf4
jmp 0x459729
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.0042bb20
jmp 0x459729
mov eax, edi
call fcn.00404bb4
inc eax
add eax, eax
push eax
mov eax, edi
call fcn.00404ba4
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x459729
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x45c004]
call fcn.00406438
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x42b5dc]
call fcn.0040c6f8
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459753
lea eax, [ebp - 0x20]
call fcn.00404298
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042bc
ret

Function at 0x4597f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push esp
push eax
mov eax, dword [0x45c080]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409370
add esp, 0x104
pop ebx
ret
Function at 0x402f30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x11
push edi
call fcn.00402f00
mov ebp, dword [esp + 0x120]
add esp, 8
push eax
push ebp
push edi
call fcn.004036c0
add esp, 0xc
test eax, eax
je 0x402f72
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push str.mmates.ini
lea eax, [esp + 0x14]
push 0x104
push eax
push str._DEFAULT
push str.browser
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str._DEFAULT
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402fc7
test cl, cl
je 0x402fc3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402fc7
add eax, 2
add esi, 2
test cl, cl
jne 0x402f9f
xor eax, eax
jmp 0x402fcc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403001
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov ecx, dword [esp + 0x120]
push ecx
push edi
push ebp
call fcn.00402d90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ebp, [ebx + 0x30c]
push eax
push ebp
push ecx
push 0x80000000
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4036aa
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x18
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, dword [esp + 0x124]
push esi
call fcn.00402f00
add esp, 8
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push ebx
push eax
push 0x80000000
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4036aa
push ebx
call fcn.00416d50
add esp, 4
push 0x15
push esi
call fcn.00402f00
add esp, 8
push eax
push ebx
call fcn.004109e0
mov byte [eax + 4], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x16
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00402f00
add esp, 8
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x104]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x80000000
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4036aa
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x17
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00402f00
add esp, 8
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x208]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x80000000
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4036aa
mov eax, 1
mov word [ebx + 0x410], ax
mov word [ebx + 0x412], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x404220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
and eax, 0xffff
push str.CONFIG
push eax
mov byte [edi], 0
mov ecx, dword [0x41f5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40424e
pop edi
pop esi
pop ebx
ret
mov edx, dword [0x41f5d8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x404266
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00410b40
add esp, 0xc
mov byte [ebx + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x404c30
Capabilities:
Read .ini file

Disassembly:
call fcn.004069f0
push eax
push str.Custom_d
push 0x420178
call fcn.00410970
add esp, 0xc
push str.DeskToppers.ini
push 0x27
push 0x41fd50
push str.Fred
push str.TypeName
push 0x420178
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x404d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404d34
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404d47
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00404ed0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x404d7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x404da0
mov cx, word [eax + 0xe]
imul ecx, dword [eax + 4]
add ecx, 0x1f
shr ecx, 3
and ecx, 0x1ffffffc
imul ecx, dword [eax + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea edi, [eax + edx*4]
add edi, ecx
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
jne 0x404dcc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x404dce
mov ebx, eax
test ebx, ebx
je 0x404e03
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x4201a8]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
add esi, edx
mov edx, dword [eax + 0x20]
push ebx
lea edi, [eax + edx*4]
mov edx, dword [eax]
mov eax, ecx
add 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 ebp
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x406d10
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x406d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x1000
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x406d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x1000
call fcn.00410c90
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x14], edx
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_UnmapViewOfFile]
test eax, eax
jne 0x406dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x407460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 1
call fcn.004071a0
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x41aab4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x407495
push esi
call fcn.004077f0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4074b1
push esi
call fcn.004077f0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
call fcn.004071d0
add esp, 4
test eax, eax
jne 0x4074dc
push esi
call fcn.004077f0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x4080f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 0x418378
push 1
push 0
push 0x418288
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4081ae
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x418678
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4081a4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10