joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415850
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68c], edx
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4159e6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x218]
push str..lnk
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea eax, [ebp - 0x684]
mov dword [ebp - 0x688], 0
push 0
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4159e6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x415910
lea eax, [ebp - 0x65c]
push 0x5963fc
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x4159cd
lea eax, [ebp - 0x65c]
push 0x596400
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x4159cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x688], 0x10
jne 0x4159cd
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00420610
mov ecx, dword [ebp - 0x68c]
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 4], 0
call fcn.0041bb20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4159cd
push dword [ebp - 0x438]
call fcn.0053ce3a
add esp, 4
lea eax, [ebp - 0x688]
push eax
push esi
call ebx
test eax, eax
jne 0x415910
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x416d90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
mov dword [esp + 0x10], reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [esp + 0x14], str.SOFTWAREHintsoft
mov dword [esp + 0x18], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], str.SOFTWARESicent
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], str.SOFTWAREGoyoo
mov dword [esp + 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], str.SOFTWARE_
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 1
push 0
push dword [esp + esi*8 + 0x20]
push dword [esp + esi*8 + 0x20]
call edi
test eax, eax
je 0x416e7e
inc esi
cmp esi, 4
jb 0x416df7
xor eax, eax
push 0x206
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [esp + 0x30]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x597a78
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x23c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x4171b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4171e1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xaac56b
lea eax, [ebp - 0x60]
mov dword [ebp - 0x10], 0x11d0cd44
movdqu xmmword [ebp - 0x30], xmm0
push 0
push eax
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], esi
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x60], 0x30
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], 2
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], 0
push eax
push 0
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test eax, eax
js 0x417278
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x4171cf
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea edx, [ebp - 0x20]
xor edi, edi
call fcn.004170f0
add esp, 4
test eax, eax
je 0x4172d3
mov esi, dword [ebp - 0x1c]
push edi
push edi
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
test eax, eax
je 0x4172cc
push 0
push eax
push dword [ebp - 0x18]
mov edi, 1
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x417d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push 0x590a2d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004072b0
push 0x597bd4
push esi
mov dword [ebp - 4], 0
call fcn.005465d2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417e6c
push 2
push 0
push ebx
call fcn.005448c8
push ebx
call fcn.00544cdb
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x2c], esi
call fcn.005448c8
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x30], eax
call fcn.00521d36
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x417e22
push ebx
call fcn.00544038
jmp 0x417e69
push dword [ebp - 0x30]
push 0
push esi
call fcn.0053e230
push ebx
push dword [ebp - 0x2c]
push 1
push esi
call fcn.0054478d
push ebx
call fcn.00544038
add esp, 0x20
cmp byte [esi], 0
jne 0x417e4b
xor ecx, ecx
jmp 0x417e59
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417e50
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004072b0
push esi
call fcn.0053d801
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00406640
cmp dword [ebp - 0x14], 0x10
jb 0x417e88
push dword [ebp - 0x28]
call fcn.0053ce3a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x418630
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, edx
push 0x208
push eax
mov word [ebp - 0x290], ax
mov edi, ecx
lea eax, [ebp - 0x28e]
push eax
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x104
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x598710
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41874b
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41874b
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0053e230
push 0x3f
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x290]
call fcn.00411900
add esp, 0x10
test eax, eax
je 0x41874b
lea eax, [ebp - 0x84]
push 0x2e
push eax
call fcn.00546524
add esp, 8
test eax, eax
je 0x41874b
add eax, 2
push 0x2e
push eax
call fcn.00546524
add esp, 8
test eax, eax
je 0x41874b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x84]
push eax
push 0x596370
push esi
push edi
call fcn.00546433
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x418a50
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x418ab3
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418bd8
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x418bd8
dec eax
je 0x418bc9
dec eax
jne 0x418bd8
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x418af8
cmp dword [ebp - 0x118], 0
jne 0x418bd8
mov al, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x418b4a
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x418b3a
cmp eax, 3
je 0x418b3a
cmp eax, 1
jne 0x418b22
mov al, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x418bd8
mov al, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov al, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x418bd8
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x418bb4
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0x24
lea eax, [ebp - 0x144]
push eax
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x130], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x418bd8
cmp byte [ebp - 6], 1
jne 0x418bd8
cmp word [ebp - 0x144], 9
jne 0x418bd8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x418ba4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x418bd8
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x4190f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x418], ecx
xor esi, esi
test edi, edi
je 0x419205
cmp word [edi], si
je 0x419205
test ebx, ebx
je 0x419205
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0053e230
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x5981c0
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00546433
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
add esp, 0x2c
mov dword [ebp - 0x41c], 1
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x206
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4191f2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4191f2
lea eax, [ebp - 0x20c]
push eax
push 0x596370
push 0x102
push ebx
call fcn.00546433
add esp, 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x419c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x6b0], 0
push 0x206
push eax
mov word [ebp - 0x28c], ax
mov esi, ecx
lea eax, [ebp - 0x28a]
push eax
call fcn.0053e230
add esp, 0xc
call fcn.00418a50
cmp al, 2
jb 0x419cc6
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x6a4], 1
lea eax, [ebp - 0x6ac]
mov dword [ebp - 0x6ac], 0x7e
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x6a4]
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x419cdf
lea eax, [ebp - 0x84]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x28c]
push 0x103
push eax
call fcn.00546433
add esp, 0x10
jmp 0x419cdf
push str.http_shellopencommand
lea eax, [ebp - 0x28c]
push 0x103
push eax
call fcn.00546433
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x69a]
push eax
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x6a0], 1
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6a8], 0x40e
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x419d67
push ecx
lea edx, [ebp - 0x28c]
mov word [ebp - 0x28c], ax
lea ecx, [ebp - 0x69c]
call fcn.004137f0
add esp, 4
test eax, eax
je 0x419d67
lea eax, [ebp - 0x28c]
push eax
jmp 0x419d6c
push 0x598710
mov ecx, esi
call fcn.00420610
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x41a090
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.0053fec0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x1048
push eax
mov word [ebp - 0x1050], ax
lea eax, [ebp - 0x104e]
push eax
call fcn.0053e230
lea eax, [ebp - 0x1050]
mov edx, str.__url
push 0x824
push eax
mov ecx, esi
call fcn.004139d0
lea ecx, [ebp - 0x1050]
add esp, 0x14
lea edx, [ecx + 2]
jmp 0x41a0f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a0f0
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1050]
push eax
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMAIN
push SysReAllocString
call edi
lea ecx, [ebp - 0x1050]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a130
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1050]
push eax
push 1
push str.First_Home_Page
push str.SoftwareMicrosoftInternet_ExplorerMAIN
push SysReAllocString
call edi
push str.BackupHomePage
push str.SoftwareMicrosoftInternet_ExplorerEUPP
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.IsWow64Process
push 0x5966e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x1054], 0
test esi, esi
je 0x41a280
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41a280
cmp dword [ebp - 0x1054], 0
je 0x41a280
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1054], 0
push eax
push 0xf013f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMAIN
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a280
lea ecx, [ebp - 0x1050]
lea edx, [ecx + 2]
jmp 0x41a200
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a200
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1050]
push eax
push 1
push str.Start_Page
push 0
push dword [ebp - 0x1054]
call edi
lea ecx, [ebp - 0x1050]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a234
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1050]
push eax
push 1
push str.First_Home_Page
push 0
push dword [ebp - 0x1054]
call edi
push str.BackupHomePage
push str.SoftwareMicrosoftInternet_ExplorerEUPP
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push dword [ebp - 0x1054]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x41a4c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5731e2
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2a4], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 0x2a8], edi
mov word [edi], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov word [ebp - 0x2a0], ax
lea eax, [ebp - 0x29e]
push eax
mov dword [ebp - 0x2a4], 1
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push 0x2e
push eax
call fcn.0053eaa9
mov esi, eax
add esp, 8
test esi, esi
je 0x41a62f
push str..exe
push esi
call fcn.0053ede2
add esp, 8
test eax, eax
jne 0x41a62f
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov word [esi], ax
lea eax, [ebp - 0x2a0]
push 0x598620
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41a62f
push 0x598620
lea eax, [esi + 4]
push eax
call ebx
test eax, eax
je 0x41a5b5
mov esi, eax
jmp 0x41a5a2
test esi, esi
je 0x41a62f
add esi, 4
push 0x598628
push esi
call fcn.00546736
add esp, 8
test eax, eax
je 0x41a5d3
xor ecx, ecx
mov word [eax], cx
push 0x20
push esi
call fcn.00546524
add esp, 8
test eax, eax
jne 0x41a62f
push 9
push esi
call fcn.00546524
add esp, 8
test eax, eax
jne 0x41a62f
push 0x80
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.0053e230
push esi
push 0x596370
lea eax, [ebp - 0x94]
push 0x40
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.0041b8c0
cmp dword [edi + 0x10], 0
jne 0x41a6ae
xor eax, eax
push 0x80
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, str.__cid
mov ecx, eax
call fcn.004139d0
add esp, 8
cmp word [ebp - 0x94], 0
jne 0x41a67f
xor ecx, ecx
jmp 0x41a69f
lea ecx, [ebp - 0x94]
lea edx, [ecx + 2]
jmp 0x41a690
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a690
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.00420490
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x41b070
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x573328
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5bd250]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
push 0
push 0x20
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b163
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x41b158
lea eax, [ebx + 2]
push eax
call fcn.00521d36
mov esi, eax
add esp, 4
test esi, esi
je 0x41b158
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0053e230
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b14f
cmp ebx, dword [esp + 0x14]
jne 0x41b14f
push esi
lea ecx, [esp + 0x24]
call fcn.0040e690
push esi
call fcn.0053d801
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
xor ecx, ecx
test edi, edi
sete cl
xor eax, eax
cmp dword [ebp + 0x14], eax
sete al
test eax, ecx
jne 0x41b22a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41b22a
cmp dword [esp + 0x34], 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
cmovae ecx, dword [esp + 0x20]
call fcn.00411650
cmp dword [esp + 0x34], 0x10
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x30], 0
cmovae ecx, dword [esp + 0x20]
mov byte [ecx], 0
test esi, esi
je 0x41b22a
mov edx, dword [esp + 0x14]
test edi, edi
je 0x41b1d6
push edi
mov ecx, esi
call fcn.00431940
add esp, 4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b217
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00431620
mov edi, dword [esp + 0x20]
add esp, 0xc
test edi, edi
je 0x41b221
push edi
lea ecx, [esp + 0x24]
call fcn.0040e690
push edi
call fcn.0053d801
add esp, 4
jmp 0x41b221
push esi
lea ecx, [esp + 0x24]
call fcn.0040e690
push esi
call fcn.0053d801
add esp, 4
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00406640
cmp dword [esp + 0x34], 0x10
jb 0x41b249
push dword [esp + 0x20]
call fcn.0053ce3a
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x41b5c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x41b604
cmp edi, 0xffffffff
je 0x41b604
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 1
pop edi
pop ebp
ret