joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077f0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x444880
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407816
xor eax, eax
pop ecx
ret 4
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00423ded
mov ecx, dword [esp + 8]
add esp, 4
shl eax, 1
push eax
push esi
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x407860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x444880
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40788a
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.Start_Page
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4

Function at 0x4078d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x4551e4]
mov dword [esp + 0x824], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x830]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x10], eax
push 0x443ce8
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.0042396a
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40795f
mov ecx, dword [esp + 0x824]
call fcn.00423492
add esp, 0x828
ret 4
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x828]
mov eax, 1
pop esi
call fcn.00423492
add esp, 0x828
ret 4

Function at 0x407a70
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00423ded
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.0043836f
mov esi, eax
push edi
push esi
call fcn.00423f01
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x407aed
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x407acd
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x407ac7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407ae7
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x407aa7
pop ebx
push esi
call fcn.0043836a
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.0043836a
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
Function at 0x407b10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xbf4
mov eax, dword [0x4551e4]
mov dword [esp + 0xbf0], eax
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407b58
xor eax, eax
mov ecx, dword [esp + 0xbf0]
call fcn.00423492
add esp, 0xbf4
ret 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov esi, 1
push esi
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 0x3e8
call edi
test eax, eax
jne 0x407beb
cmp esi, dword [esp + 0xc04]
je 0x407c57
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 0x3e8
call edi
test eax, eax
je 0x407ba3
mov eax, dword [esp + 0xc04]
push eax
lea ecx, [esp + 0x224]
push str.url_d
push ecx
call fcn.0042396a
mov esi, dword [esp + 0xc0c]
push esi
call fcn.00423ded
add esp, 0x10
shl eax, 1
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xbf8]
pop edi
mov eax, 1
pop esi
call fcn.00423492
add esp, 0xbf4
ret 8
mov esi, dword [esp + 0xc00]
push esi
call fcn.00423ded
mov edx, dword [esp + 0xc]
add esp, 4
shl eax, 1
push eax
push esi
push 1
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
jmp 0x407c2a
Function at 0x407c80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4551e4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [esp + 0x218], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push SysReAllocString
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
je 0x407cd1
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push SysReAllocString
call edi
test eax, eax
jne 0x407d3d
push str.ACD953A8_8DB7_43cb_80B3_86C45AFA64C6
lea edx, [esp + 0x14]
push 0x443ce8
push edx
call fcn.0042396a
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call esi
test eax, eax
jne 0x407d1d
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
jmp 0x407dd4
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call edi
test eax, eax
je 0x407d56
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
call fcn.00423492
add esp, 0x214
ret 8
mov esi, dword [esp + 0x220]
push esi
call fcn.00423ded
add esp, 4
shl eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.DisplayName
push eax
call esi
mov edi, dword [esp + 0x224]
push edi
call fcn.00423ded
mov ecx, dword [esp + 0x10]
add esp, 4
shl eax, 1
push eax
push edi
push 1
push 0
push 0x44495c
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call fcn.00423ded
mov ecx, dword [esp + 0xc]
add esp, 4
shl eax, 1
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.DefaultScope
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, 1
pop esi
call fcn.00423492
add esp, 0x214
ret 8

Function at 0x407df0
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x4551e4]
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x414]
test eax, eax
push 0
je 0x407e18
push 0x1f
lea eax, [esp + 8]
push eax
jmp 0x407e1f
push 6
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp]
push 0x443cf8
push edx
call fcn.00423ed7
mov eax, dword [esp + 0x414]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00423ed7
lea edx, [esp + 0x10]
push 0x444a58
push edx
call fcn.00423ed7
mov ecx, dword [esp + 0x420]
add esp, 0x18
lea eax, [esp]
push eax
push ecx
push 0x44495c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x410]
test eax, eax
je 0x407e8d
push 2
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x400]
mov eax, 1
call fcn.00423492
add esp, 0x404
ret 0x10
Function at 0x407eb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4551e4]
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
mov dword [esp + 0x214], eax
mov edi, ecx
call fcn.00423ded
add esp, 4
test eax, eax
je 0x407f2c
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x14]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
call fcn.00423f01
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00423ed7
add esp, 0x10
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x407f2c
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.004078d0
mov ecx, dword [esp + 0x210]
pop edi
pop esi
call fcn.00423492
add esp, 0x20c
ret 4

Function at 0x407f50
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407fa5
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x407f9e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4

Function at 0x407fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4408b8
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.00402bf0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402510
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 0x408062
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 0xc
Function at 0x4093b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x284], 2
jne 0x4093be
jmp fcn.004090a0
jmp fcn.00408dc0

Function at 0x4093d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x87c
mov eax, dword [0x4551e4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x87c], eax
push 0x104
lea eax, [esp + 0x470]
push eax
call esi
push 0x104
lea ecx, [esp + 0x268]
push ecx
call esi
lea edx, [esp + 0x46c]
push 0x443cf8
push edx
call fcn.00423ed7
mov esi, dword [esp + 0x88c]
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.00423ed7
lea edx, [esp + 0x274]
push 0x443cf8
push edx
call fcn.00423ed7
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.00423ed7
lea edx, [esp + 0x284]
push 0x444e44
push edx
call fcn.00423ed7
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
add esp, 0x28
xor eax, eax
test ecx, ecx
je 0x4095bb
mov edx, dword [esi + 0x44]
push edi
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [0x45616c]
push edx
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [esp + 0x684]
push str._s_s__s
push ecx
call fcn.0042396a
lea edx, [esp + 0x68c]
push edx
lea eax, [esp + 0x78]
push 0x444e20
push eax
call fcn.0042396a
add esp, 0x20
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [0x45616c]
call fcn.00408490
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x698]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x409586
mov edx, dword [esi + 8]
mov ecx, dword [0x45616c]
mov eax, dword [esi + 0x40]
push edx
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [esp + 0x68]
push 0x444dfc
push ecx
call fcn.0042396a
mov ecx, dword [0x45616c]
add esp, 0x14
lea edx, [esp + 0x5c]
push edx
call fcn.00408490
mov eax, dword [0x45616c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40956e
push 0
push 0x444df0
lea edx, [esp + 0x64]
push edx
call fcn.00434f27
xor eax, eax
pop esi
mov ecx, dword [esp + 0x878]
call fcn.00423492
add esp, 0x87c
ret 4
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x87c]
pop esi
call fcn.00423492
add esp, 0x87c
ret 4
Function at 0x4097f0
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
sub esp, 0x678
mov eax, dword [0x4551e4]
mov dword [esp + 0x674], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x45616c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov edx, dword [ecx + 0x14]
push 0x444f0c
add edx, 0x1c
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00403020
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00423f01
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x409873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x18]
call fcn.0040ba90
test eax, eax
je 0x409890
push str.ImeReg64.exe__UnsetupIME_wnwb.ime
lea ecx, [esp + 0x60]
push ecx
jmp 0x40989a
push str.ImeReg32.exe__UnsetupIME_wnwb.ime
lea edx, [esp + 0x60]
push edx
call fcn.00423ed7
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x268]
push 0x444e20
push ecx
call fcn.0042396a
mov ecx, dword [0x45616c]
add esp, 0xc
lea edx, [esp + 0x264]
push edx
call fcn.00408490
lea eax, [esp]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409932
lea eax, [esp + 0x264]
push 0x444e5c
push eax
call fcn.0042396a
add esp, 8
lea ecx, [esp + 0x264]
push ecx
mov ecx, dword [0x45616c]
call fcn.00408490
xor eax, eax
mov ecx, dword [esp + 0x674]
call fcn.00423492
add esp, 0x678
ret
mov edx, dword [esp]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
push 0x104
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x470]
push 0x444e48
push edx
call fcn.00423ed7
add esp, 8
push 5
push 0
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x678]
mov eax, dword [esp + 0x14]
pop esi
call fcn.00423492
add esp, 0x678
ret
Function at 0x40a230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440a88
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.0043d155
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x443cf0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40a27e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.0043d155
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.0043d155
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00438b88
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x40a2f9
mov dword [esp + 0x20], 0xffffffff
call fcn.00438798
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.004384ac
lea ecx, [esp + 8]
call fcn.004386f7
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00438798
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40b3b0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4551e4]
push esi
mov dword [esp + 0x20c], eax
lea eax, [esp + 4]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
push str.Language.ini
push ecx
call fcn.00423ed7
add esp, 8
push 0x8b
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040a230
test eax, eax
jne 0x40b410
pop esi
mov ecx, dword [esp + 0x208]
call fcn.00423492
add esp, 0x20c
ret
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040a620
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
mov eax, 1
pop esi
call fcn.00423492
add esp, 0x20c
ret
Function at 0x40b9f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4456dc
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40ba0a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x40ba62
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40e6a0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4551e4]
push edi
mov dword [esp + 0x214], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40e71f
push 0x104
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
push eax
push 0x4462d8
push ecx
call fcn.0042396a
add esp, 0xc
mov ecx, dword [esp + 0x214]
call fcn.00423492
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f2c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x4551e4]
push esi
push edi
mov dword [esp + 0xa40], eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f43b
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x4440cc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40f434
lea eax, [esp + 0x18]
push 0x4440cc
push eax
call fcn.0042396a
mov ecx, dword [0x45616c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [esp + 0x63c]
push str._sUninst.exe
push ecx
call fcn.0042396a
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x238]
push str._suninst.exe
push edx
call fcn.0042396a
lea eax, [esp + 0x448]
push 0x44667c
push eax
call fcn.0042396a
lea ecx, [esp + 0x860]
push str.http:__www.wn51.com_
push ecx
call fcn.0042396a
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x30
push 0x104
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push str.DisplayName
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x634]
push ecx
push 1
push 0
push str.UninstallString
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x224]
push eax
push 1
push 0
push str.DisplayIcon
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x42c]
push edx
push 1
push 0
push str.Publisher
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x83c]
push ecx
push 1
push 0
push str.URLInfoAbout
push edx
call esi
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea edx, [esp + 0x10]
push edx
push str.wnDealDown
push SysReAllocString
call edi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push 0
push str.wnDealDownfiles
push 1
push 0x443d70
push eax
call esi
mov ecx, dword [esp + 0x10]
push 0x104
push str.wnDealDown.exe__1
push 1
push str.shellopencommand_
push ecx
call esi
lea edx, [esp + 0x14]
push edx
push 0x446558
push SysReAllocString
call edi
mov eax, dword [esp + 0x14]
push 0x104
push str.wnDealDown
push 1
push 0x443d70
push eax
call esi
mov ecx, dword [esp + 0xa40]
pop edi
pop esi
call fcn.00423492
add esp, 0xa3c
ret