joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c73
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403c9c
cmp al, 0x22
je 0x403c94
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403c88
cmp byte [esi], 0x22
jne 0x403ca6
inc esi
jmp 0x403ca6
cmp al, 0x20
jle 0x403ca6
inc esi
cmp byte [esi], 0x20
jg 0x403ca0
mov al, byte [esi]
test al, al
je 0x403cb0
cmp al, 0x20
jle 0x403c99
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x403cca
movzx eax, word [ebp - 0x14]
jmp 0x403ccd
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403f85
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403fbc
cmp byte [edi], 0
je 0x403fbc
push esi
push edi
mov esi, edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [eax + edi - 1]
cmp eax, edi
jbe 0x403fb7
mov cl, byte [eax]
xor byte [esi], cl
mov cl, byte [esi]
xor byte [eax], cl
mov cl, byte [eax]
xor byte [esi], cl
inc esi
dec eax
cmp eax, esi
ja 0x403fa5
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, 0x104
mov edi, 0x40df90
push ebx
mov esi, 0x40a278
push edi
push esi
push ebp
call fcn.00403e2e
push ebx
push edi
push esi
push ebp
call fcn.00403e2e
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
pop ebp
mov eax, ecx
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404014
xor eax, eax
ret
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x404079
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040ce
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x404560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dl, byte [0x40df90]
push ebx
push esi
push edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], dl
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
and dword [ebp - 4], 0
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0
push eax
push 0x104
push dword [ebp + 8]
call ebx
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov esi, 0x40a27c
lea eax, [ebp - 0x218]
push esi
push eax
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00403f27
add esp, 0xc
mov dword [ebp + 8], eax
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x40465f
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push dword [ebp + 8]
test eax, eax
lea eax, [ebp - 0x110]
push eax
jne 0x404612
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x404614
call edi
lea eax, [ebp - 0x110]
push esi
push eax
call edi
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call ebx
lea eax, [ebp - 0x110]
push eax
call fcn.00404002
test eax, eax
pop ecx
jne 0x404657
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov dword [ebp - 8], eax
inc dword [ebp - 4]
jmp 0x4045ce
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404705
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404745
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, esi
jne 0x40474b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
ret
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, esi
jne 0x404769
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
jmp 0x404745
cmp word [eax], 0x5a4d
jne 0x404745
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
jne 0x404745
cmp dword [esi], 0x4550
jne 0x404745
push 1
pop eax
jmp 0x404747
Function at 0x404792
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x40eb08
mov dword [0x40e9dc], eax
call fcn.0040680e
mov dword [esp], 0x40e9e8
call fcn.0040680e
xor edi, edi
push edi
call fcn.00405b2a
cmp dword [0x40de64], edi
pop ecx
pop ecx
je 0x404819
mov esi, 0x40ea00
push esi
call fcn.00404002
test eax, eax
pop ecx
jne 0x4047ed
push esi
call fcn.00404560
test eax, eax
pop ecx
jne 0x4047ed
push str.Couldnt_create_output_directory.
call fcn.00403aa1
pop ecx
jmp 0x40485b
push edi
call fcn.00405282
pop ecx
call fcn.004061e3
cmp dword [0x40de5c], edi
je 0x404812
push 5
push edi
push edi
push esi
push str.explore
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00403a68
jmp 0x40485b
mov esi, str.Tahoma
push esi
call fcn.004040d0
test eax, eax
pop ecx
je 0x40482c
push esi
jmp 0x404831
push str.MS_Shell_Dlg
push 0x40de70
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push edi
push 0x404a4d
push edi
push 0x66
push dword [0x40e9dc]
mov dword [0x40e9d4], 0xd
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
pop eax
pop edi
pop esi
ret 0x10
Function at 0x4010d0
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 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d1e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x405cef
cmp eax, 2
jne 0x405d0a
mov eax, dword [esp]
test esi, esi
je 0x405d18
test eax, eax
je 0x405d13
test al, 1
jne 0x405d0a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405d18
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x4061f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x496898
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.00445b4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406236
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406303
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406296
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402310
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00463068
add esp, 8
test eax, eax
jl 0x4062f9
cmp eax, dword [esi - 8]
jg 0x4062f9
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.00402360
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406333
mov ecx, dword [esi]
push esi
jmp 0x40632c
push 0x80070057
call fcn.004010b0
push 0x4a16f4
mov ecx, ebx
call fcn.00401bc0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406333
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x406fe0
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x497da0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402360
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00432e80
add esp, 4
test eax, eax
jne 0x407040
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.7z
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00404ff0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 1
push eax
mov eax, dword [esp + 0x10]
call fcn.004070f0
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004311d0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4070f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407117
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.00449de3
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x4a1fd4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x4081b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x496738
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00445b4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408201
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00402260
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4082e4
push str.YouXunBoxYouxun.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00404ff0
add esp, 0xc
push str.RUNASADMIN
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401bc0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4082bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408338
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00462d06
add esp, 0x24
ret
Function at 0x409000
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x496700
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x4a05e4
push 1
push ebx
push 0x4a0614
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40906e
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.00463714
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x4090a3
mov eax, esi
jmp 0x4090a9
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404f70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00401f70
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4090ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp edi, ebx
je 0x40910d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4a0644
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x409172
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40915e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x409137
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4091c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4091e0
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x1a
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409275
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x409221
push 0x104
mov ecx, esi
call fcn.00402310
mov eax, dword [esi]
push edi
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409249
push ecx
push eax
call fcn.00463068
add esp, 8
test eax, eax
jl 0x40926b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40926b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop ecx
ret
push 0x80070057
call fcn.004010b0
xor eax, eax
pop ecx
ret

Function at 0x409280
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4092c3
cmp dword [esp + 0x10], 2
jne 0x4092c3
cmp dword [esp + 4], 6
jne 0x4092c3
mov eax, 1
cmp dword [esp + 8], eax
je 0x4092c5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00462d06
add esp, 0x118
ret
Function at 0x4095d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x494fd8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 2
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x409622
push 0x104
mov ecx, esi
call fcn.00402310
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edi
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x4a16f4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40965b
push ecx
push eax
call fcn.00463068
add esp, 8
test eax, eax
jl 0x4096f4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4096f4
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 0
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 0x4096bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x40a450
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x496650
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [esp + 0x228], 1
push eax
lea ecx, [esp + 0x1a]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x104
mov word [esp + 0x1c], ax
call fcn.00467d30
add esp, 0xc
push 0x4a24e0
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a53b
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x240]
push eax
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a53b
mov eax, dword [esp + 0x22c]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x238]
push 1
push 0
push eax
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, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00462d06
add esp, 0x224
ret