joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402430
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
push edi
xor esi, esi
push 0x1fe
mov edi, ecx
lea ecx, [esp + 0x2e]
mov ebx, edx
xor eax, eax
push esi
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov word [esp + 0x34], ax
call fcn.0045acf0
add esp, 0xc
cmp edi, esi
je 0x4024a3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4024a3
cmp ebx, esi
je 0x4024a3
lea edx, [esp + 0x18]
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
jne 0x4024bd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00457c10
add esp, 0x220
ret
push ebp
push ebx
call fcn.0045804f
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x4024d4
xor eax, eax
jmp 0x402591
mov eax, dword [esp + 0x1c]
push ebp
push ebx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402582
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402582
test dword [esp + 0x18], 0xfffffffc
jbe 0x402530
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
call edi
mov ecx, dword [esp + 0x10]
cmp word [ecx + esi*4], ax
je 0x402534
mov eax, dword [esp + 0x18]
inc esi
shr eax, 2
cmp esi, eax
jb 0x402516
jmp 0x402534
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + esi*4 + 2]
movzx eax, word [ecx + esi*4]
push edx
push eax
lea ecx, [esp + 0x34]
push str.StringFileInfo_04x_04xFileDescription
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402582
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 1
jmp 0x402586
mov esi, dword [esp + 0x24]
push ebp
call fcn.00458119
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00457c10
add esp, 0x220
ret
Function at 0x4026e0
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ebp
push edi
mov ebp, 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4027a9
test ebx, ebx
je 0x4027a9
push esi
push 0x100
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x402741
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40273a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x402746
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40275d
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40275f
xor ebp, ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebp, ebp
je 0x402741
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push edi
call esi
push 0
push 0
push 0x302
push edi
call esi
push 0x1c0001
push 0xd
push 0x100
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402c40
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x404
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
xor eax, eax
push 0x1fe
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0045acf0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
test esi, esi
je 0x402c91
push esi
call edi
test eax, eax
je 0x402c91
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x402cae
lea eax, [esp + 8]
push eax
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_GetSystemDefaultBrowserFileNameW]
add esp, 4
test eax, eax
je 0x402d1a
lea ecx, [esp + 8]
push ecx
call edi
test eax, eax
je 0x402d1a
lea edx, [esp + 8]
push ebx
push edx
call dword [sym.imp.Wnd2File.dll_WND2FILE_GetWindowHandleFromExecutableFileW]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402d00
lea esi, [esp + 0x20c]
lea edi, [esp + 0xc]
call fcn.00402970
test eax, eax
je 0x402d00
push 0x48e250
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402d00
push eax
push 0x4027b0
mov dword [0x4a3960], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [0x4a3960]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00457c10
add esp, 0x404
ret
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00457c10
add esp, 0x404
ret
Function at 0x402d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push 0x1fe
xor ebx, ebx
lea ecx, [esp + 0x216]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x21c], ax
call fcn.0045acf0
mov eax, dword [esp + 0x424]
add eax, 0xfffff900
add esp, 0xc
cmp eax, 6
ja case.default.0x402d8d
jmp dword [eax*4 + 0x4030ac]
mov ebp, 1
jmp 0x402dc3
mov ebp, 2
jmp 0x402dc3
mov ebp, 3
jmp 0x402dc3
mov ebp, 4
jmp 0x402dc3
mov ebp, 5
jmp 0x402dc3
mov ebp, 6
jmp 0x402dc3
mov ebp, 7
push esi
lea edx, [esp + 0x214]
push edi
push edx
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_GetSystemDefaultBrowserFileNameW]
add esp, 4
test eax, eax
je 0x402ebc
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x402ebc
lea ecx, [esp + 0x218]
mov dword [esp + 0x14], ebx
call fcn.00402c40
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x402e94
push eax
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_SetWindowToForeground]
add esp, 4
lea esi, [esp + 0x18]
lea edi, [esp + 0x218]
call fcn.00402970
test eax, eax
je 0x402e7b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.IExplore
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x402e4d
mov esi, dword [esp + 0x14]
lea ebx, [eax + 1]
jmp 0x402e60
push str.Netscape
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
jne 0x402e94
lea esi, [eax + 1]
push 0
push 0
push 0
push 1
push ebp
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_IssueWindowsAPPCommand]
add esp, 0x14
test eax, eax
je 0x402ed6
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00457c10
add esp, 0x40c
ret
cmp dword [esp + 0x420], 0x706
jne 0x402ebc
push 0
push 0
lea eax, [esp + 0x220]
push eax
push 0
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_ExecuteCommandW]
add esp, 0x10
test eax, eax
jne 0x402e76
push 0
push 0
push 0
push 1
push ebp
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_IssueWindowsAPPCommand]
add esp, 0x14
neg eax
sbb eax, eax
neg eax
jmp 0x402e7b
mov eax, dword [esp + 0x420]
add eax, 0xfffff900
jmp dword [eax*4 + 0x4030c8]
mov ecx, dword [esp + 0x410]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00457c10
add esp, 0x40c
ret
Function at 0x4030f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.Wnd2File.dll_WND2FILE_GetWindowHandleFromExecutableFileW]
push edi
push str.IExplore.EXE
call esi
add esp, 4
push 0
push 0x4027b0
mov ebp, eax
mov dword [0x4a3960], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [0x4a3960]
push str.WAOL.EXE
call esi
mov edi, eax
add esp, 4
test edi, edi
jne 0x40313f
push str.AOL.EXE
call esi
add esp, 4
mov edi, eax
test ebp, ebp
jne 0x403164
test ebx, ebx
jne 0x403173
test edi, edi
jne 0x4031af
mov ecx, dword [esp + 0x14]
push 1
push 0
push ecx
push 0
call dword [sym.imp.ComFnUtl.dll_ComFnUtl_ExecuteCommandW]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
test ebx, ebx
jne 0x403186
test edi, edi
jne 0x403186
mov ecx, 2
jmp 0x4031b1
test edi, edi
jne 0x40317e
mov ecx, 1
jmp 0x4031b1
test ebx, ebx
jne 0x403186
test edi, edi
jne 0x4031af
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
test eax, eax
je 0x40314b
mov esi, dword [sym.imp.USER32.dll_GetWindow]
cmp eax, ebp
je 0x40316c
cmp eax, ebx
je 0x403177
cmp eax, edi
je 0x4031af
push 2
push eax
call esi
test eax, eax
jne 0x403198
jmp 0x40314b
xor ecx, ecx
mov eax, dword [esp + 0x14]
push eax
call fcn.004029e0
add esp, 4
test eax, eax
je 0x40314b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x403670
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x49e280]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
xor ecx, ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], esi
mov word [esp + 0xc], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4036d4
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00401cd0
push 0xa
push str.MMDUtl.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], esi
call fcn.004066d0
mov eax, dword [esp + 0xc]
mov esi, 8
cmp dword [esp + 0x20], esi
jae 0x40371c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40373c
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x403735
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x20], esi
jb 0x40374f
mov eax, dword [esp + 0xc]
push eax
call fcn.00457c05
add esp, 4
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00457c10
add esp, 0x234
ret
Function at 0x403830
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x475bbb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
mov eax, dword [0x49e280]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
push 0x34
xor ebx, ebx
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
call fcn.00401cd0
push str.PowerCinema.exe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x268], ebx
call fcn.00406d60
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4038ba
mov eax, dword [eax + 4]
jmp 0x4038bd
add eax, 4
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [esp + 0xb]
cmp dword [esp + 0x4c], 8
jb 0x4038ef
mov edx, dword [esp + 0x38]
push edx
call fcn.00457c05
add esp, 4
xor eax, eax
cmp dword [esp + 0x30], 8
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
jb 0x403916
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00457c05
add esp, 4
cmp byte [esp + 0xb], bl
je 0x4039a5
push 0x1fe
lea eax, [esp + 0x56]
xor edx, edx
push ebx
push eax
mov word [esp + 0x5c], dx
call fcn.0045acf0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40399a
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40399a
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40399a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4039a7
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00457c10
add esp, 0x258
ret
Function at 0x403d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xfffffffffffffffe
push 0x4952a8
push 0x45c4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49e280]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x34], str.PowerDVD8.exe
mov dword [ebp - 0x30], str.PowerDVD9.exe
mov dword [ebp - 0x2c], str.PowerDVD10.exe
mov dword [ebp - 0x28], str.PowerDVD11.exe
mov dword [ebp - 0x24], str.PowerDVD12.exe
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x403de7
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
push 0x228
push ebx
lea eax, [ebp + 4]
push eax
call fcn.0045acf0
add esp, 0xc
mov dword [ebp], 0x22c
lea ecx, [ebp]
push ecx
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x403e10
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x49e280
call fcn.00467ef8
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00457c10
add ebp, 0x230
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x20], esi
cmp esi, 5
jae 0x403e4c
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebp + esi*4 - 0x34]
push ecx
call fcn.0045833f
add esp, 8
test eax, eax
jne 0x403e49
mov esi, dword [ebp + 8]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x49e280
call fcn.00467ef8
add esp, 0xc
mov eax, esi
jmp 0x403de9
inc esi
jmp 0x403e12
lea eax, [ebp]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403e10
mov dword [ebp - 4], 0xfffffffe
call fcn.00403e6e
jmp 0x403de7
Function at 0x403e80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4969d8
push 0x45c4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x49e280]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x264], eax
mov edi, ecx
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x254], esi
cmp esi, ebx
je 0x403f23
mov dword [ebp - 4], ebx
mov dword [ebp - 0x250], ebx
push 0x228
push ebx
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0045acf0
add esp, 0xc
mov dword [ebp - 0x250], 0x22c
lea edx, [ebp - 0x250]
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x403f3f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x49e280
call fcn.00467ef8
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00457c10
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x25c], ebx
cmp ebx, dword [ebp + 0xc]
jae 0x403ffe
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + ebx*4]
push eax
call fcn.0045833f
add esp, 8
test eax, eax
jne 0x403ff8
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, esi
sub eax, ecx
sar eax, 2
test ecx, ecx
jne 0x403f86
xor edx, edx
jmp 0x403f8e
mov edx, dword [edi + 0x14]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x403fc0
mov eax, 1
mov ecx, esi
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x260], eax
test eax, eax
jbe 0x403fb7
mov edx, dword [ebp - 0x248]
mov dword [ecx], edx
dec eax
add ecx, 4
jmp 0x403f99
add esi, 4
mov dword [edi + 0x10], esi
inc ebx
jmp 0x403f41
mov dword [ebp - 0x26c], 0
cmp ecx, esi
jbe 0x403fd3
call fcn.0045876b
mov eax, dword [edi]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], esi
push esi
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x274]
push ecx
mov eax, edi
call fcn.00406540
inc ebx
jmp 0x403f41
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403f3f
mov dword [ebp - 4], 0xfffffffe
call fcn.0040402a
jmp 0x403f23
Function at 0x406d60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x475958
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x49e280]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004018f0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406dc0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004066d0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004018f0
cmp dword [esp + 0x28], 8
jb 0x406e0d
mov eax, dword [esp + 0x14]
push eax
call fcn.00457c05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x40b010
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov dword [esp + 4], 0
test esi, esi
je 0x40b07f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40b07f
test ebx, ebx
je 0x40b07f
test edi, edi
jbe 0x40b07f
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b07f
mov ecx, dword [esp + 4]
push edi
push ebx
push 1
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40b5e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0xf24
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0xf1c], eax
cmp word [esp + 0xf28], 0x1a
mov eax, dword [esp + 0xf2c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
ja 0x40b798
test eax, eax
je 0x40b798
lea eax, [esp + 0x520]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40b798
push str.UnKnown.Asx
lea ecx, [esp + 0x524]
push ecx
lea edx, [esp + 0x120]
push 0x48d370
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b798
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48d380
lea ecx, [esp + 0x72c]
push ecx
call ebp
lea edx, [esp + 0x728]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x728]
push eax
mov ecx, eax
push ecx
mov ebx, 0x400
call fcn.0040b2b0
add esp, 8
push 0
lea edx, [esp + 0x14]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x734]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b791
cmp dword [esp + 0x10], edi
jne 0x40b791
movzx ecx, word [esp + 0xf38]
add ecx, 0x41
push ecx
lea edx, [esp + 0x31c]
push str._c:MPEGAV_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x324]
push esi
push eax
call fcn.0040b330
add esp, 0x14
test eax, eax
je 0x40b731
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x118]
push ecx
push edx
call ebp
push 0x48d490
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
mov ebx, 0x80
mov dword [esp + 0x18], 0
call fcn.0040b2b0
add esp, 8
push 0
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
push edi
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b791
cmp edi, dword [esp + 0x10]
jne 0x40b791
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x7f]
jmp 0x40b79a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xf2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457c10
add esp, 0xf24
ret
Function at 0x40b7c0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe74
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0xe70], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x482]
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x484], ax
call fcn.0045acf0
add esp, 0xc
test edi, edi
je 0x40ba1a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40ba1a
test esi, esi
je 0x40ba1a
cmp esi, 0xffffffff
je 0x40ba1a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [esp + 0x47c]
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x48d4a8
lea eax, [esp + 0x47c]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40ba1a
push 0x48d4b0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b9dd
push 0x48d4b4
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b9dd
test byte [esp + 0x20], 0x10
je 0x40b8ef
push edi
lea edx, [esp + 0x274]
push edx
call ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x274]
push ecx
call esi
push 0x48d4bc
lea edx, [esp + 0x274]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.0040b7c0
add esp, 8
jmp 0x40b9dd
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40b9dd
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x682]
push ecx
mov word [esp + 0x684], ax
call fcn.0045acf0
add esp, 0xc
push edi
lea edx, [esp + 0x274]
push edx
mov dword [esp + 0x20], 0
call ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x274]
push ecx
call esi
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 1
je 0x40b970
jmp 0x40b960
cmp word [esp + eax*2 + 0x270], 0x2e
je 0x40b970
sub eax, 1
jne 0x40b960
push 0x48d4c4
lea eax, [esp + eax*2 + 0x276]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b9dd
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push 0x48d4cc
push edx
mov dword [esp + 0x28], eax
call fcn.004587c6
lea ecx, [esp + 0x27c]
push ecx
mov edx, ecx
push edx
push eax
push eax
lea eax, [esp + 0x694]
push 0x48d4d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x684]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b875
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe70]
xor ecx, esp
call fcn.00457c10
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00457c10
mov esp, ebp
pop ebp
ret