joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401960
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x437ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x44a1e0]
mov dword [esp + 0x158], eax
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x164], 0
jne 0x4019cc
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
mov dword [esp + 0x164], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x401abf
push esi
mov esi, dword [esp + 0x170]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push str.__t__q__s:cn__r:WNGA
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], eax
push 0x43aa18
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x24], eax
call fcn.0041c813
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a96
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 8]
push ecx
call edi
mov ecx, dword [0x44b18c]
push 0x43aa00
call fcn.00405510
lea eax, [esi - 0x10]
mov dword [esp + 0x16c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x401abd
lea eax, [esi - 0x10]
mov dword [esp + 0x16c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401abb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x158]
call fcn.0041c40e
add esp, 0x168
ret 4

Function at 0x401af0
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 0x401b0b
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401b21
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b42
cmp esi, eax
jae 0x401b19
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b34
cmp esi, eax
jae 0x401b19
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc
Function at 0x401ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437b08
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00434642
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x43aa38
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401cee
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00434642
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.00434642
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.00430002
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x401d69
mov dword [esp + 0x20], 0xffffffff
call fcn.0042fc16
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.0042f92a
lea ecx, [esp + 8]
call fcn.0042fb75
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042fc16
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x404560
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x44a1e0]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4045ce
push eax
push 0x43ac40
push 0x43ac24
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.0041c40e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045d5
sub eax, edx
push eax
lea ecx, [esp + 0x14]
lea esi, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00402330
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404610
mov eax, dword [str.Setup.ini]
mov ecx, dword [0x43ac1c]
mov dx, word [0x43ac20]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x8e
lea eax, [esp + 0x11c]
push eax
mov ecx, ebx
mov word [edi + 8], dx
call fcn.00401ca0
test eax, eax
je 0x4045b9
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00403840
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402420
mov eax, dword [eax]
push 0x43ac14
push eax
call fcn.0041cbad
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4046bd
push 0x43ac14
mov ecx, esi
call fcn.00402950
mov ecx, dword [esp + 0x224]
mov eax, 1
call fcn.0041c40e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405120
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405146
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405150
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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 0x405190
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x44a1e0]
mov dword [esp + 0x43c], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x448]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x10], eax
push 0x43aec0
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.0041c813
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_CreateProcessA]
test eax, eax
pop edi
jne 0x40521f
mov ecx, dword [esp + 0x43c]
call fcn.0041c40e
add esp, 0x440
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 + 0x440]
mov eax, 1
pop esi
call fcn.0041c40e
add esp, 0x440
ret 4

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44a1e0]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x10c], eax
mov eax, ebx
push ebp
mov ebp, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405272
sub eax, edx
mov dword [esp + 8], eax
je 0x4052ff
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xb
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [esp + 0x17]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
movsb byte es:[edi], byte [esi]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052b0
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4052c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
pop esi
ja 0x4052ff
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebp
call fcn.00405190
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
call fcn.0041c40e
add esp, 0x10c
ret 4
Function at 0x405340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x437e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0x68
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x40538b
mov ecx, eax
call fcn.004035d0
jmp 0x40538d
xor eax, eax
or edi, 0xffffffff
push 0x64
mov dword [esp + 0x18], edi
mov dword [esi + 0x14], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 1
je 0x4053ba
mov ecx, eax
call fcn.004082e0
jmp 0x4053bc
xor eax, eax
push 0x24
mov dword [esp + 0x18], edi
mov dword [esi + 0x10], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 2
je 0x4053e6
mov ecx, eax
call fcn.00408950
jmp 0x4053e8
xor eax, eax
push 1
mov dword [esp + 0x18], edi
mov dword [esi + 0x18], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 3
je 0x405412
mov ecx, eax
call fcn.004116c0
jmp 0x405414
xor eax, eax
push 1
mov dword [esp + 0x18], edi
mov dword [esi + 0x1c], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 4
je 0x40543e
mov ecx, eax
call fcn.004116c0
jmp 0x405440
xor eax, eax
push 8
mov dword [esp + 0x18], edi
mov dword [esi + 0x20], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 5
je 0x40546a
mov ecx, eax
call fcn.00401910
jmp 0x40546c
xor eax, eax
mov ecx, eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], eax
call fcn.00401920
push 1
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 6
je 0x40549d
mov ecx, eax
call fcn.004116c0
jmp 0x40549f
xor eax, eax
push 0x44
mov dword [esp + 0x18], edi
mov dword [esi + 0x28], eax
call fcn.0042f85a
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 7
je 0x4054c9
mov ecx, eax
call fcn.004095f0
jmp 0x4054cb
xor eax, eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], eax
call fcn.00404560
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437e68
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.00404ad0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401f20
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 0x406402
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 0x4067f0
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
sub esp, 0x36c
mov eax, dword [0x44a1e0]
push esi
mov dword [esp + 0x36c], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [0x44b18c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push 0x43b23c
add edx, 4
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404b60
mov ecx, dword [eax]
lea edx, [esp + 0x64]
jmp 0x406850
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x406850
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x18]
call fcn.004088e0
lea edi, [esp + 0x64]
dec edi
test eax, eax
je 0x4068a0
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406890
mov esi, str.ImeReg64.exe__UnsetupIME_wnwb.ime
jmp 0x4068ad
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4068a0
mov esi, str.ImeReg32.exe__UnsetupIME_wnwb.ime
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x16c]
push 0x43b1ac
push edx
movsw word es:[edi], word [esi]
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 0xc
lea eax, [esp + 0x168]
push eax
call fcn.00405510
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40694c
lea ecx, [esp + 0x168]
push 0x43b1d4
push ecx
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 8
lea edx, [esp + 0x168]
push edx
call fcn.00405510
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x368]
call fcn.0041c40e
add esp, 0x36c
ret
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x104
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x26c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406998
mov eax, dword [str.wnwb.ime]
mov ecx, dword [0x43b1cc]
mov dx, word [0x43b1d0]
mov dword [edi], eax
push 5
push 0
lea eax, [esp + 0x274]
mov dword [edi + 4], ecx
push eax
mov word [edi + 8], dx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x370]
mov eax, dword [esp + 0x18]
pop edi
pop esi
call fcn.0041c40e
add esp, 0x36c
ret
Function at 0x4072a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437f98
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00434642
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x43aa38
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4072ee
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00434642
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.00434642
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.00430002
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x407369
mov dword [esp + 0x20], 0xffffffff
call fcn.0042fc16
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.0042f92a
lea ecx, [esp + 8]
call fcn.0042fb75
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042fc16
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x408220
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x44a1e0]
push esi
mov dword [esp + 0x108], eax
push edi
lea eax, [esp + 8]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 8]
dec edi
jmp 0x408250
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408250
mov ecx, dword [str.Language.ini]
mov edx, dword [0x43b6bc]
mov eax, dword [0x43b6c0]
mov dword [edi], ecx
mov cl, byte [0x43b6c4]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
push 0x8b
lea edx, [esp + 0xc]
mov byte [edi + 0xc], cl
push edx
mov ecx, esi
call fcn.004072a0
test eax, eax
jne 0x4082a4
pop edi
pop esi
mov ecx, dword [esp + 0x104]
call fcn.0041c40e
add esp, 0x108
ret
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004073b0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, 1
pop esi
call fcn.0041c40e
add esp, 0x108
ret
Function at 0x408840
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40885a
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.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x4088b2
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 0x40afd0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x44a1e0]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40b04c
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 byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
push eax
push str._.8X
push ecx
call fcn.0041c813
add esp, 0xc
mov ecx, dword [esp + 0x114]
call fcn.0041c40e
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40bc20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x520
mov eax, dword [0x44a1e0]
mov dword [esp + 0x51c], eax
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdf2
mov edx, dword [esp + 4]
push edi
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x43ab90
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40bdea
lea eax, [esp + 0x318]
push 0x43ab90
push eax
call fcn.0041c813
mov ecx, dword [0x44b18c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x18]
push str._sUninst.exe
push ecx
call fcn.0041c813
mov edx, dword [0x44b18c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x128]
push str._suninst.exe
push edx
call fcn.0041c813
lea eax, [esp + 0x234]
push 0x43c510
push eax
call fcn.0041c813
lea ecx, [esp + 0x444]
push str.http:__www.wn51.com
push ecx
call fcn.0041c813
lea eax, [esp + 0x348]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bd02
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x320]
push edx
push 1
push 0
push str.DisplayName
push eax
call esi
lea eax, [esp + 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40bd32
mov edx, dword [esp + 8]
sub eax, ecx
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.UninstallString
push edx
call esi
lea eax, [esp + 0x114]
lea ecx, [eax + 1]
jmp 0x40bd60
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40bd60
sub eax, ecx
mov ecx, dword [esp + 8]
push eax
lea eax, [esp + 0x118]
push eax
push 1
push 0
push str.DisplayIcon
push ecx
call esi
lea eax, [esp + 0x218]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40bd90
sub eax, ecx
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x21c]
push edx
push 1
push 0
push str.Publisher
push eax
call esi
lea eax, [esp + 0x420]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bdc0
sub eax, edx
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x424]
push ecx
push 1
push 0
push str.URLInfoAbout
push edx
call esi
mov eax, dword [esp + 8]
push eax
call edi
pop esi
mov ecx, dword [esp + 8]
push ecx
call edi
pop edi
mov ecx, dword [esp + 0x51c]
call fcn.0041c40e
add esp, 0x520
ret