joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417900
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x417af6
cmp word [edi], si
je 0x417af6
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042dc9b
add esp, 0xc
push 0x44c9e0
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417990
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
mov ecx, 0x449504
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4179c6
test dx, dx
je 0x4179c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4179c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4179a0
xor eax, eax
jmp 0x4179cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417aa5
mov ecx, 0x449508
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417a06
test dx, dx
je 0x417a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4179e0
xor eax, eax
jmp 0x417a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417aa5
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0042dc9b
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x417a77
lea ecx, [esp + 0x260]
push ecx
call fcn.00417900
mov esi, eax
add esp, 4
test esi, esi
je 0x417aa5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x417aca
cmp esi, 0x12
jne 0x417990
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, 0x12
jne 0x417adf
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 3
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x417b10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x417b61
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x417b77
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret

Function at 0x417ba0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x417c1d
lea ecx, [ebp - 0x10]
push ecx
push 0x44c9e4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x417c1d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x418130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004367d0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4181af
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4181c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41820d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0042dc9b
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.0042d215
mov esp, ebp
pop ebp
ret

Function at 0x418230
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41828d
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042dc9b
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x4182db
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x4182db
movzx eax, word [esi]
test ax, ax
je 0x4182db
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x4182c8
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x4182b0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x4182f0
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x20d], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x224], edi
call fcn.0042dc9b
push str..bak
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0042dcfe
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push edi
push edi
push 4
push edi
push edi
push SysReAllocString
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41849c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x41844f
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call ebx
mov ebx, eax
mov dword [ebp - 0x21c], ebx
cmp ebx, 0xffffffff
je 0x418459
push 0
push 0
add edi, 0xffd00000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042c6dc
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418409
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
jne 0x418430
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x218], 0
ja 0x4183d3
mov ebx, dword [ebp - 0x214]
push edi
call fcn.0042e6d9
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41845f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41845f
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20d], 0
je 0x418489
test ebx, ebx
jne 0x418489
mov ecx, dword [ebp - 0x220]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x418810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442139
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], esi
mov word [esi], cx
push 9
mov dword [ebp - 4], eax
movzx eax, word [edi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
push 0x59
push eax
mov dword [ebp - 0x28], 1
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x418880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418880
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
call fcn.004047c0
push 1
mov eax, 0x44ccd8
mov ecx, esi
call fcn.00403c20
movzx edx, word [edi + 2]
push 9
lea ecx, [ebp - 0x24]
push ecx
push 0x5a
push edx
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x4188c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4188c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
call fcn.00403c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret

Function at 0x418ae0
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x10], 1
test di, di
jne 0x418b53
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x418b2f
mov edx, 0x205
cmp ax, dx
je 0x418b2f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x418b35
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
movzx eax, di
push eax
push str.Current_UI_language:__04X
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
mov eax, edi
and eax, 0x3ff
cmp ax, 3
je 0x418b6c
cmp ax, 0x2d
je 0x418b6c
cmp ax, 0x56
jne 0x418b71
mov edi, 0xc0a
lea ecx, [esp + 0x220]
push ecx
push 0x104
mov word [esp + 0x10], di
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 4]
push edi
push 0
push 0x44c958
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push str.Language_folder:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xa
lea edx, [esp + 0x10]
mov ecx, 0x4185f0
call fcn.0041e600
add esp, 8
test eax, eax
jne 0x418c0c
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov eax, dword [esp + 0x1e]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00418c20
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x418c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x61c]
push 0x104
push ecx
mov word [esi + 2], ax
call fcn.0042dc9b
add esp, 0xc
push edi
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0042dc9b
add esp, 0xc
push str.IntelCommon.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
lea edi, [esi + 0x414]
push 0x104
push edi
call fcn.0042dc9b
add esp, 0xc
push str.resource.dll.mui
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418c99
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [esi], 0
je 0x418cb6
push ebx
push str.Loading_common_language_resource___s_
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
push 2
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov dword [esi + 0x824], eax
test eax, eax
jne 0x418cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ecx
pop ebp
ret 4
cmp byte [esi], 0
je 0x418cf7
push edi
push str.Loading_language_resource___s_
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
push 2
push 0
push edi
call ebx
mov dword [esi + 0x828], eax
test eax, eax
je 0x418ccd
pop edi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41a0e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c6dc
add esp, 4
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x10
or eax, 0x400
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0xffffffffffffffff
push edi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0042e6d9
add esp, 4
push 0x80
lea edx, [ebp - 0x108]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.Button
lea eax, [ebp - 0x108]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a1d6
test dx, dx
je 0x41a1d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a1d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a1b0
xor eax, eax
jmp 0x41a1db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41a204
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xb
jle 0x41a204
push 0x47
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x110]
add ecx, eax
mov dword [ebp - 0x110], ecx
jmp 0x41a20a
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x114]
sub ecx, dword [ebp - 0x118]
push 6
inc eax
push eax
inc ecx
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret 8

Function at 0x41a7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x408], 0x400
jb 0x41a80c
mov eax, dword [eax]
lea edx, [ebp - 0x408]
push edx
lea edx, [ebp - 0x404]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x41a850
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a835
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
call fcn.004047c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x41ae80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004367d0
push esi
lea ecx, [ebp - 0x270]
push 0
push ecx
mov dword [ebp - 0x128], esi
call fcn.004367d0
add esp, 0x18
lea edx, [ebp - 0x150]
push edx
mov dword [ebp - 0x270], esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x150]
cmp ax, 9
jne 0x41aef7
test ebx, ebx
js 0x41af04
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x41aee5
test ebx, 0x40000000
je 0x41aee5
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 2
mov eax, ebx
shr eax, 8
push 0
and eax, 0xff
push 0
mov dword [ebp - 0x124], eax
call esi
push 3
push 1
movzx ecx, bl
push edx
push eax
mov dword [ebp - 0x120], ecx
call esi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x12c], 3
test ebx, 0x10000000
je 0x41af51
mov byte [ebp - 0xe], 1
jmp 0x41af65
test ebx, 0x20000000
je 0x41af5f
mov byte [ebp - 0xe], 3
jmp 0x41af65
cmp byte [ebp - 0xe], 0
jbe 0x41af82
push 1
push 0x80
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov esi, eax
mov edi, edx
mov dword [ebp - 0x12c], 0x83
lea edx, [ebp - 0x270]
push edx
call fcn.0041a870
mov eax, dword [ebp - 0x12c]
add esp, 4
test eax, eax
je 0x41afb0
push edi
push esi
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, 1
je 0x41afef
push edi
push esi
sub esp, 0x11c
mov edi, esp
mov ecx, 0x47
lea esi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
sub esp, 0x11c
mov ecx, 0x47
lea esi, [ebp - 0x128]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0041ac90
add esp, 0x240
cmp al, 1
jne 0x41aee5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x41d120
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
push esi
mov dword [ebp - 0x680], eax
mov ebx, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
lea ecx, [ebp - 0x214]
push 0x104
push ecx
mov dword [ebp - 0x684], eax
call fcn.0042dc9b
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str..inf
lea edx, [ebp - 0x214]
push edx
call edi
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d182
sub eax, edx
mov edx, dword [ebp - 0x680]
sar eax, 1
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x212], cx
lea eax, [ebp - 0x624]
push 0x104
push eax
call fcn.0042dc9b
add esp, 0xc
push esi
lea ecx, [ebp - 0x624]
push ecx
call edi
lea eax, [ebp - 0x624]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d1d0
sub eax, edx
sar eax, 1
xor edx, edx
push ebx
mov word [ebp + eax*2 - 0x622], dx
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0042dc9b
mov ecx, dword [ebp - 0x684]
add esp, 0xc
push ecx
lea edx, [ebp - 0x41c]
push edx
call edi
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d217
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
sub eax, edx
xor ecx, ecx
sar eax, 1
mov word [ebp + eax*2 - 0x41a], cx
mov dword [ebp - 0x6a4], ecx
lea ecx, [ebp - 0x6a4]
lea edx, [ebp - 0x214]
mov eax, 0x614
push ecx
mov dword [ebp - 0x6a0], 3
mov dword [ebp - 0x69c], edx
mov word [ebp - 0x694], ax
call esi
test eax, eax
je 0x41d298
push 0x3a7
push eax
lea edx, [ebp - 0x67c]
push edx
mov ecx, str.Hardware.cpp
mov ebx, str.SHFileOperation_returned_an_error__Code_is_not_always_a_Win32_code_.
call fcn.004073e0
push 0x450a78
lea eax, [ebp - 0x67c]
push eax
call fcn.0042ed12
lea eax, [ebp - 0x6a4]
lea ecx, [ebp - 0x624]
lea edx, [ebp - 0x41c]
push eax
mov dword [ebp - 0x6a0], 2
mov dword [ebp - 0x69c], ecx
mov dword [ebp - 0x698], edx
call esi
test eax, eax
je 0x41d2f4
push 0x3b1
push eax
lea ecx, [ebp - 0x67c]
push ecx
mov ecx, str.Hardware.cpp
mov ebx, str.SHFileOperation_returned_an_error__Code_is_not_always_a_Win32_code_.
call fcn.004073e0
push 0x450a78
lea edx, [ebp - 0x67c]
push edx
call fcn.0042ed12
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret 4