joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40117d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40119e
cmp esi, eax
jae 0x401177
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401190
cmp esi, eax
jae 0x401177
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4019b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004017b0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401250
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401a42
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402cb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48105b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
mov eax, dword [0x4ac588]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x818], eax
call fcn.00401ac0
push 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
mov dword [esp + 0x82c], 0
call fcn.00402c30
mov eax, dword [eax]
push str..url
push eax
call fcn.0044b736
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402d35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x402d97
mov edi, dword [0x4adff4]
mov eax, dword [edi + 0xec]
push 1
push esi
push 0
push 0
add edi, 0xd0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ecx, edi
call fcn.00435f50
neg eax
sbb eax, eax
neg eax
jmp 0x402dff
push esi
mov byte [esp + 0x14], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
push 0x800
lea ecx, [esp + 0x18]
push ecx
push 0
stosw word es:[edi], ax
push 0x487ec8
push str.InternetShortcut
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [0x4adff4]
mov eax, dword [esi + 0xec]
push 1
lea edx, [esp + 0x14]
push edx
push 0
push 0
add esi, 0xd0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ecx, esi
call fcn.00435f50
mov eax, 1
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x814]
call fcn.0044af18
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4071d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [esp + 0x18], eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
call ebp
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
sete cl
push esi
inc ecx
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [esp + 0x1c]
lea edx, [ebx + ebx + 0x1c]
push edx
push 0x2042
call edi
mov edi, eax
push edi
call ebp
push ebx
mov edx, eax
mov ecx, 0x14
mov dword [edx], ecx
xor ecx, ecx
add eax, 0x14
push eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], ecx
push ebx
mov dword [edx + 8], ecx
push eax
mov dword [edx + 0xc], ecx
push 2
mov ecx, 1
push 0
mov dword [edx + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40728b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call edi
mov ecx, dword [esp + 0x10]
push esi
push ecx
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x408450
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [0x4adff4]
push 0xffffffffffffffff
push 0x4815d0
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x40
add eax, 0xfffff200
js 0x40858a
cmp eax, dword [ecx + 0x132c]
jge 0x40858a
mov ecx, dword [ecx + 0x1328]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
sub eax, 0x10
push esi
push eax
call fcn.00401250
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], 0
call fcn.00461fc6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
push esi
lea eax, [esp + 8]
push str.ProPertyFav___s
push eax
mov byte [esp + 0x58], 1
call fcn.004022e0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408533
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x3c
cmp dword [esi - 4], 1
pop edi
jle 0x408514
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401460
mov esi, dword [esp + 0x54]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], str.properties
mov dword [esp + 0x10], 0xc
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408556
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x408579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
call fcn.0045e516
int3
Function at 0x40a740
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4ac588]
push ebx
push esi
push edi
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
mov ebx, ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a8a1
mov byte [esp + 0x18], al
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push str.Favorites
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a8a1
mov al, byte [esp + 0x11b]
test al, al
jne 0x40a8a1
xor eax, eax
mov byte [esp + 0x120], 0
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x124]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0x120]
push ecx
lea ecx, [ebx + 0x260]
call fcn.00401a80
mov ecx, dword [0x4adff4]
call fcn.00416cf0
mov edx, dword [eax + 4]
push 3
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004670df
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
mov esi, eax
lea ecx, [ecx]
mov eax, dword [esi + 4]
push 0x400
push 3
push eax
call edi
test eax, eax
jne 0x40a850
mov ecx, dword [ebx + 0xe8]
mov edx, dword [ecx + 0x70]
push 0xffff0000
push eax
push 0x1101
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0xe8]
add ecx, 0x54
call fcn.0040bda0
push 0xffff0000
push esi
push 0
lea eax, [esp + 0x12c]
push eax
mov ecx, ebx
call fcn.00408fb0
mov ecx, dword [esp + 0x22c]
call fcn.0044af18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b9e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x4ac588]
push esi
push edi
mov dword [esp + 0x16c], eax
mov esi, ecx
push 0x4011
xor eax, eax
mov ecx, 0x58
lea edi, [esp + 0xc]
push 0x160
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x10
push str..txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x40ba4e
push eax
call fcn.0045f3d7
test eax, eax
je 0x40ba36
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push eax
push 0
push 0x1109
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0045f3d7
mov ecx, dword [esp + 0x16c]
call fcn.0044af18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bae0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x498
mov eax, dword [0x4ac588]
push esi
push edi
mov dword [esp + 0x49c], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x4a8]
push ecx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
call fcn.0040b260
test eax, eax
je 0x40bced
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x40bced
mov eax, dword [esp + 0x4a4]
cmp eax, 0xffff0000
mov dword [esp + 8], edi
jne 0x40bb43
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x10], edx
jmp 0x40bb53
push eax
mov ecx, esi
call fcn.0045efab
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
push 0xe0
push edi
push ecx
call dword [eax + 0x10]
test eax, eax
jl 0x40bce3
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40bcd9
push ebx
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040ba60
push 0xa08
push 0x160
lea edx, [esp + 0x8c]
push edx
mov ebx, eax
push 0
push ebx
call ebp
test dword [esp + 0x8c], 0x20010000
je 0x40bcb9
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x44], eax
mov edx, ecx
mov dword [esp + 0x48], eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 0x67
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4009
push 0x160
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1ec]
push eax
push 0
push ebx
call ebp
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1e8]
push 0x400b
push 0x160
and edx, 0x20000000
lea eax, [esp + 0x34c]
push eax
neg edx
push 0
sbb edx, edx
push ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
call ebp
mov ecx, dword [esp + 0x348]
mov edx, dword [esp + 0x4ac]
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x50]
push eax
mov ecx, 0xa
lea esi, [esp + 0x2c]
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
push 0
push 0x1100
push ecx
mov dword [esp + 0x60], edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
call fcn.0045f007
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40bb92
pop ebp
pop ebx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
call fcn.0044af18
add esp, 0x498
ret 4
Function at 0x40bfb0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4819fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x4ac588]
push ebx
push ebp
push esi
mov dword [esp + 0x280], eax
mov eax, dword [esp + 0x294]
push edi
push eax
mov ebx, ecx
call fcn.0045efab
mov ebp, eax
lea edx, [esp + 0x1c]
push edx
xor eax, eax
push 0x8000
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x50]
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x2c]
push ebp
lea eax, [esp + 0x18]
push eax
sub esp, 0x108
mov edi, esp
mov ecx, 0x42
lea esi, [esp + 0x12c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0040b600
push 0x408
push 0x160
lea ecx, [esp + 0x12c]
push ecx
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ebp, dword [esp + 0x14]
mov edi, 0x489c80
lea esi, [esp + 0x234]
mov ecx, 0x12
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40c079
mov edi, str.Internet_Shortcut
lea esi, [esp + 0x234]
mov ecx, 0x12
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c085
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebx
call fcn.0040b400
mov edi, 0x489c60
lea esi, [esp + 0x234]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40c0b3
mov edi, str.Shortcut
lea esi, [esp + 0x234]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c0bf
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebx
call fcn.0040b4e0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c11f
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ac0
mov ecx, dword [0x4adff4]
push eax
mov dword [esp + 0x294], 0
call fcn.00417da0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x290], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test ebp, ebp
je 0x40c12d
mov ebx, dword [ebx + 0x58]
mov eax, dword [ebx]
push ebp
push ebx
call dword [eax + 0x14]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
call fcn.0044af18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret 4
Function at 0x40dae0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x481bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 4]
call fcn.00412380
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.00427660
test eax, eax
je 0x40dba4
push ebx
push ebp
push esi
push edi
call fcn.00461fc6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x28], 1
mov esi, 1
push esi
lea eax, [esp + 0x14]
push str.url_d
push eax
call fcn.004022e0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
push ecx
call ebp
call ebx
inc esi
cmp esi, 0x19
jl 0x40db51
lea ecx, [esp + 0x14]
call fcn.00427510
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
jg 0x40dba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00427640
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40de20
Capabilities:
Enumerate browser history

Disassembly:
sub esp, 0x34
push ebx
lea eax, [esp + 8]
push eax
push 0x49ad38
push 1
push 0
push str._J7_
mov ebx, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40df23
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x40de79
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 4]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push esi
mov dword [esp + 0x38], 0x80000
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x28
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
xor esi, esi
call dword [edx + 0xc]
test eax, eax
jl 0x40df11
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40df0a
inc esi
cmp esi, 8
jg 0x40df11
mov eax, dword [esp + 8]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x40dee0
jmp 0x40df11
mov ecx, ebx
call fcn.0040d270
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, ebx
call fcn.0040dae0
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x40e630
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481c8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2724
call fcn.0044c250
mov eax, dword [0x4ac588]
push ebx
push esi
push edi
mov dword [esp + 0x272c], eax
call fcn.00461fc6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
mov ecx, 0x9c4
lea edi, [esp + 0x18]
mov dword [esp + 0x273c], 0
rep stosd dword es:[edi], eax
je 0x40e6a9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6a0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401710
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00407bd0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40e6ca
xor eax, eax
jmp 0x40e6d9
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6d0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401870
mov edi, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e72f
mov dword [esp + 0x273c], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e728
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40e7bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov edi, eax
push esi
sub edi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jbe 0x40e788
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, 0x2710
push 0
jbe 0x40e77a
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
sub edi, 0x2710
jne 0x40e754
jmp 0x40e788
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x24]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x273c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x2734]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x272c]
call fcn.0044af18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f570
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
xor esi, esi
cmp eax, esi
je 0x40f632
mov eax, dword [esp + 0x18]
cmp dword [eax], esi
je 0x40f632
push ebx
push edi
mov edi, dword [esp + 0x24]
cmp edi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 1
jbe 0x40f5f3
mov ebp, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40f5eb
cmp dword [esp + 0x14], 0x103
jne 0x40f5eb
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0
push 0
push 0x12
push edx
call ebp
push 1
call ebx
inc esi
cmp esi, edi
jb 0x40f5b1
jmp 0x40f5ef
cmp esi, edi
jb 0x40f60d
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp]
push 0x2f
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor bl, bl
jmp 0x40f615
mov ebp, dword [esp + 0x1c]
mov bl, byte [esp + 0x13]
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
pop esi
mov dword [ebp], 0
pop ebp
add esp, 8
ret 0xc
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
Function at 0x4168e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4ac588]
push ebp
mov dword [esp + 0x114], eax
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
mov ebp, 0x104
push SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x416933
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
call fcn.0044af18
add esp, 0x114
ret
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.Display_Inline_Images
push eax
mov dword [esp + 0x2c], ebp
call ebx
mov edi, 0x48bcb8
lea esi, [esp + 0x1c]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x416976
mov dword [esp + 0x10], 0x10
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.Display_Inline_Videos
push edx
mov dword [esp + 0x2c], ebp
call ebx
mov edi, 0x48bcb8
lea esi, [esp + 0x1c]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4169ad
or dword [esp + 0x10], 0x20
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.Play_Background_Sounds
push eax
mov dword [esp + 0x2c], ebp
call ebx
mov edi, 0x48bcb8
lea esi, [esp + 0x1c]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
pop ebx
jne 0x4169e7
or dword [esp + 4], 0x40
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
movzx eax, word [esp + 4]
pop ebp
call fcn.0044af18
add esp, 0x114
ret