joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c13
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4444c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [eax], vtable.base::Thread.0
mov eax, dword [ebp - 0x20]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x20]
add eax, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x15]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
and dword [ebp - 4], 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00402ad2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x2d], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x2e], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 0x30], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 0x34], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x407e1d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x407e34
mov dword [ebp - 4], 0x10000
push 4
call fcn.0041c801
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4081dd
push dword [ebp + 8]
push 0
call fcn.0041d617
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407e83
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.0041c03e
pop ecx
xor al, al
jmp 0x407e9e
cmp dword [ebp + 0x10], 0
je 0x407e93
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x407e9c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret
Function at 0x4086d7
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4087a6
cmp dword [ebp + 0x10], 0
je 0x4087a6
cmp dword [ebp + 0xc], 0
je 0x4087a6
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [0x44627c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4087a6
push dword [ebp - 8]
push dword [0x44627c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4087a6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40879d
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40879d
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [0x44627c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4087ab
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d72
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
and dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0041d130
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp + 0x38], 8
jb 0x408823
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x228], eax
jmp 0x40882c
lea eax, [ebp + 0x24]
mov dword [ebp - 0x228], eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x408843
and dword [ebp - 0x220], 0
cmp dword [ebp + 0x38], 8
jb 0x408854
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x22c], eax
jmp 0x40885d
lea eax, [ebp + 0x24]
mov dword [ebp - 0x22c], eax
cmp dword [ebp + 0x1c], 8
jb 0x40886e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
jmp 0x408877
lea eax, [ebp + 8]
mov dword [ebp - 0x230], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
call fcn.0042e650
pop ecx
pop ecx
mov ecx, dword [ebp + 0x40]
mov dword [ecx], eax
mov eax, dword [ebp + 0x40]
cmp dword [eax], 0
jne 0x4088a3
mov dword [ebp - 0x220], 1
jmp 0x4088aa
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004050af
mov byte [ebp - 4], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x40890b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x23c], 0
and dword [ebp - 0x45c], 0
and dword [ebp - 0x244], 0
and dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0041d130
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x408973
mov eax, dword [ebp - 0x23c]
jmp 0x408a59
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408a3f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x240], eax
jmp 0x4089cd
mov eax, dword [ebp - 0x240]
dec eax
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jle 0x4089ed
mov eax, dword [ebp - 0x240]
movzx eax, word [ebp + eax*2 - 0x458]
cmp eax, 0x5c
jne 0x4089eb
jmp 0x4089ed
jmp 0x4089c0
mov eax, dword [ebp - 0x240]
lea eax, [ebp + eax*2 - 0x458]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408a23
mov eax, dword [ebp - 0x45c]
inc eax
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x23c], eax
jmp 0x408a3d
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408997
jmp 0x408a47
mov eax, dword [ebp - 0x23c]
jmp 0x408a59
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x408c9a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437dd3
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4444c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x50], 0
mov dword [ebp - 4], 2
and dword [ebp - 0x4c], 0
push 0x38
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.0041d130
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
cmp dword [ebp + 0x20], 8
jb 0x408d02
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
jmp 0x408d08
lea eax, [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x3c], 8
jb 0x408d1c
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x68], eax
jmp 0x408d22
lea eax, [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 0x48]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x44]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x43b782
mov ecx, dword [ebp + 8]
call fcn.00408211
mov eax, dword [ebp - 0x50]
or eax, 1
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.004050af
mov byte [ebp - 4], 1
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp + 0x28]
call fcn.004050af
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x40933d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.NOXVMAINSTALL
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40936f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x409381
mov eax, dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x409384
xor eax, eax
inc eax
leave
ret

Function at 0x409386
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push edi
mov dword [ebp - 0x154], ecx
mov byte [ebp - 1], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
push 0x11c
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.0041d130
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x28]
cmp eax, 9
jne 0x4093f4
mov byte [ebp - 1], 1
jmp 0x409400
movzx eax, word [ebp - 0x28]
test eax, eax
jne 0x409400
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x4130b9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4130db
xor al, al
jmp 0x4130f0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4130ee
xor al, al
jmp 0x4130f0
mov al, 1
leave
ret 4

Function at 0x4136ba
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x468], ecx
xor eax, eax
mov word [ebp - 0x428], ax
push 0x208
push 0
lea eax, [ebp - 0x426]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0041d130
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x43ba2c
push 0x105
lea eax, [ebp - 0x428]
push eax
call fcn.0041d7db
add esp, 0xc
push str.YSInstall.exe
push 0x105
lea eax, [ebp - 0x428]
push eax
call fcn.0041d7db
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41381c
and dword [ebp - 0x464], 0
push 0x38
push 0
lea eax, [ebp - 0x460]
push eax
call fcn.0041d130
add esp, 0xc
mov dword [ebp - 0x464], 0x3c
mov dword [ebp - 0x460], 0x40
and dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], str.open
lea eax, [ebp - 0x428]
mov dword [ebp - 0x454], eax
and dword [ebp - 0x450], 0
and dword [ebp - 0x44c], 0
and dword [ebp - 0x448], 0
and dword [ebp - 0x444], 0
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x1388
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x414c25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43937e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4444c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x28], 8
jb 0x414c5f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
jmp 0x414c65
lea eax, [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x20106
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x414cae
and dword [ebp - 0x28], 0
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x414d56
mov dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov ax, word [eax]
mov word [ebp - 0x42], ax
add dword [ebp - 0x3c], 2
cmp word [ebp - 0x42], 0
jne 0x414cc4
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
sar eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
shl eax, 1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], 0
je 0x414d35
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x414d56
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 0x28
Function at 0x41972a
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x419743
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x419749
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4197ef
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41976d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x419773
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4197c9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x419793
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x419799
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 0x80
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4197ba
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x4197c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4197dc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x4197e2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x419839
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x419802
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x419808
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x419839
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x419828
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x41982e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret
Function at 0x41ad04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x41ad18
mov eax, dword [ebp + 8]
movzx eax, word [eax]
test eax, eax
jne 0x41ad1c
xor eax, eax
jmp 0x41ad45
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41ad42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ad42
xor eax, eax
inc eax
jmp 0x41ad45
mov eax, dword [ebp - 4]
leave
ret

Function at 0x41aee6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0041d130
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408e1f
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x41b3d2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20106
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41b425
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41b425
push 3
pop eax
jmp 0x41b45c
mov dword [ebp - 4], 4
push 4
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x41b459
xor eax, eax
jmp 0x41b45c
xor eax, eax
inc eax
leave
ret

Function at 0x41b45e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41b498
xor eax, eax
jmp 0x41b555
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x800
push dword [ebp - 8]
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.0041d130
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x41b4ed
xor eax, eax
jmp 0x41b555
lea eax, [ebp - 0x818]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
add eax, 2
mov dword [ebp - 0x828], eax
mov eax, dword [ebp - 0x824]
mov ax, word [eax]
mov word [ebp - 0x82a], ax
add dword [ebp - 0x824], 2
cmp word [ebp - 0x82a], 0
jne 0x41b508
mov eax, dword [ebp - 0x824]
sub eax, dword [ebp - 0x828]
sar eax, 1
mov dword [ebp - 0x830], eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0040606c
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c438
leave
ret
Function at 0x41b7fa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44445c], 0xffffffff
jne 0x41b9fd
mov dword [0x44445c], 0xfffffc18
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0041d130
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b9fd
cmp dword [ebp - 0x110], 2
jne 0x41b9fd
cmp dword [ebp - 0x11c], 5
jae 0x41b879
mov dword [0x44445c], 0xfffffc19
cmp dword [ebp - 0x11c], 5
jne 0x41b93d
cmp dword [ebp - 0x118], 0
jne 0x41b89e
mov dword [0x44445c], 0xfffffc19
jmp 0x41b938
cmp dword [ebp - 0x118], 1
jne 0x41b925
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_1
call fcn.0041f484
add esp, 0xc
test eax, eax
jne 0x41b8cd
mov dword [0x44445c], 0xfffffc19
jmp 0x41b923
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_2
call fcn.0041f484
add esp, 0xc
test eax, eax
jne 0x41b8f3
mov dword [0x44445c], 0xfffffc19
jmp 0x41b923
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_3
call fcn.0041f484
add esp, 0xc
test eax, eax
jne 0x41b919
mov dword [0x44445c], 5
jmp 0x41b923
mov dword [0x44445c], 0xfffffc19
jmp 0x41b938
cmp dword [ebp - 0x118], 2
jne 0x41b938
mov dword [0x44445c], 6
jmp 0x41b9fd
cmp dword [ebp - 0x11c], 6
jne 0x41b9fd
cmp dword [ebp - 0x118], 0
jne 0x41b9ab
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_1
call fcn.0041f484
add esp, 0xc
test eax, eax
jne 0x41b979
mov dword [0x44445c], 8
jmp 0x41b9a9
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_2
call fcn.0041f484
add esp, 0xc
test eax, eax
jne 0x41b99f
mov dword [0x44445c], 8
jmp 0x41b9a9
mov dword [0x44445c], 7
jmp 0x41b9fd
cmp dword [ebp - 0x118], 1
jne 0x41b9c0
mov dword [0x44445c], 9
jmp 0x41b9fd
cmp dword [ebp - 0x118], 2
jne 0x41b9ea
call fcn.0041ba0e
test eax, eax
je 0x41b9de
mov dword [0x44445c], 0xc
jmp 0x41b9e8
mov dword [0x44445c], 0xa
jmp 0x41b9fd
cmp dword [ebp - 0x118], 3
jne 0x41b9fd
mov dword [0x44445c], 0xb
mov eax, dword [0x44445c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c438
leave
ret

Function at 0x41c438
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4444c4]
jne 0x41c442
repz ret
jmp fcn.00420a2c

Function at 0x41ed8f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41edb6
call fcn.004221e8
mov dword [eax], esi
call fcn.004221d5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041f2b1
mov eax, esi
jmp 0x41ee0b
test dword [ebp + 0xc], 0xfffffff9
jne 0x41ed9c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41ede3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004221fb
pop ecx
call fcn.004221d5
mov eax, dword [eax]
jmp 0x41ee0b
test al, 0x10
jne 0x41ee09
test al, 1
je 0x41ee09
test byte [ebp + 0xc], 2
je 0x41ee09
call fcn.004221e8
mov dword [eax], 5
call fcn.004221d5
mov dword [eax], 0xd
jmp 0x41edda
xor eax, eax
pop esi
pop ebp
ret