joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417400
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0x20d], 0
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], ebx
xor esi, esi
push 0x104
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], esi
call fcn.0042ffd1
push str..bak
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043002d
add esp, 0x18
push esi
push esi
push 4
push esi
push esi
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41758c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x417546
push esi
push esi
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x41754e
push esi
push esi
lea eax, [edi - 0x300000]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042effb
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x214]
push eax
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417511
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x214]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41751d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x417526
cmp dword [ebp - 0x214], 0
ja 0x4174d7
push edi
call fcn.00430b42
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov byte [ebp - 0x20d], 1
push dword [ebp - 0x218]
call edi
jmp 0x417554
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
cmp byte [ebp - 0x20d], 0
pop edi
je 0x41757a
test esi, esi
jne 0x41757a
push 1
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x4175b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44797e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x45f4c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [0x462a38]
test al, 1
jne 0x417611
or eax, 1
mov dword [0x462a38], eax
push ecx
push str.advapi32.dll
mov ecx, 0x462a40
mov dword [ebp - 4], 0
call fcn.00407750
push 0x4494d0
call fcn.0042fcef
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x462a1c]
test eax, eax
jne 0x417655
push str.RegDeleteKeyExW
mov ecx, 0x462a40
call fcn.00407880
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x462a1c], eax
test eax, eax
jne 0x417655
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x20106
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417680
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00433da0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0x14]
push 0
push 0
push 0xa
push eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.Checking_if_OS__d._d_SP_d_is_greater_equal_than__d._d_SP_d
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov eax, dword [ebp - 0x124]
add esp, 0x24
cmp eax, 0xa
jbe 0x417709
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
jne 0x417721
mov eax, dword [ebp - 0x120]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret

Function at 0x4177b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push esi
cmp word [edx], 0
jne 0x4177d1
xor eax, eax
jmp 0x4177e5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4177d6
sub eax, esi
sar eax, 1
push eax
mov esi, 0x46064c
push edx
mov ecx, esi
call fcn.00404410
cmp dword [0x460660], 8
lea eax, [ebp - 0x214]
cmovae esi, dword [0x46064c]
push esi
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x451a28
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
call fcn.00417870
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
Function at 0x417870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.___Dumping_deffered_logs
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
mov eax, 0x46064c
cmp dword [0x460660], 8
cmovae eax, dword [0x46064c]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [0x460664]
cmp esi, dword [0x460668]
je 0x41791a
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4178e0
sub eax, edx
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00430b42
add esi, 4
add esp, 4
cmp esi, dword [0x460668]
jne 0x4178d7
mov esi, dword [0x460664]
push ebx
mov dword [0x460668], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.2.5.55
push str.Core_version:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov ecx, dword [0x462120]
add esp, 0x10
push str.IIF_SETUPVERSION
lea ecx, [ecx + 4]
call fcn.004146e0
push eax
push str.Setup_version:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00433da0
add esp, 0x1c
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov ecx, str.32_bit
mov eax, str.64_bit
cmovne eax, ecx
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0xe]
push eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.OS_data:__d__d__d__d__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov eax, dword [0x462120]
add esp, 0x10
add eax, 0x234
cmp dword [eax + 0x14], 8
jb 0x417a6e
mov eax, dword [eax]
test eax, eax
jne 0x417a76
xor cl, cl
jmp 0x417a83
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
test ax, ax
setne cl
test cl, cl
mov edx, 0x454598
mov eax, 0x454590
cmove eax, edx
push eax
push str.Reboot_pending:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x417ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push edi
mov edi, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x4e]
push esi
push eax
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call fcn.004310da
xor ecx, ecx
mov edx, 2
lea esi, [eax + 3]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042effb
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x60], ebx
push esi
push ebx
call fcn.004312c2
add esp, 0x44
push 0x454d9c
push esi
push ebx
call fcn.0043002d
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x417b6c
mov eax, dword [edi]
jmp 0x417b6e
mov eax, edi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417c0e
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417ba5
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x68]
sub ecx, edx
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call edi
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417bd0
sub ecx, edx
lea eax, [ebp - 0x68]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push ebx
push esi
call edi
push ebx
call fcn.00430b42
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
push 0x40
call fcn.0042effb
movdqu xmm0, xmmword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x64], eax
lea ecx, [edi + 0x18]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x3c]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x2c]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x1c]
movdqu xmmword [eax + 0x30], xmm0
lea eax, [ebp - 0x64]
push eax
call fcn.00417c70
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x18]
call fcn.00417c70
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x419660
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push 9
push eax
movzx eax, word [edi + 2]
push 0x59
push eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x24], 0
jne 0x4196d4
xor ecx, ecx
jmp 0x4196ef
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4196e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00404410
push 1
push 0x455124
mov ecx, esi
call fcn.004031f0
push 9
lea eax, [ebp - 0x24]
push eax
movzx eax, word [edi + 2]
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x24], 0
jne 0x419727
xor ecx, ecx
jmp 0x41973f
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419730
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004031f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
Function at 0x419920
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 [0x45f4c8]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
mov esi, dword [ebp + 8]
mov byte [esp + 0xc], 1
push edi
mov edi, ecx
test si, si
jne 0x419994
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x419970
mov ecx, 0x205
cmp ax, cx
je 0x419970
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x419976
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
movzx eax, si
push eax
push str.Current_UI_language:__04X
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
mov eax, esi
and eax, 0x3ff
cmp ax, 3
je 0x4199ad
cmp ax, 0x2d
je 0x4199ad
cmp ax, 0x56
jne 0x4199b2
mov esi, 0xc0a
lea eax, [esp + 0x220]
mov word [esp + 8], si
push eax
push 0x104
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [edi + 4]
push esi
push 0
push 0x454854
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push str.Language_folder:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 8]
mov edx, esi
push eax
push 0x4194c0
mov ecx, 0xa
call fcn.004203a0
add esp, 8
test eax, eax
jne 0x419a54
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push dword [esp + 0x16]
call fcn.00419a70
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 8

Function at 0x419a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
push edi
mov word [ebx + 2], ax
lea eax, [ebx + 0x61c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea esi, [ebx + 0x20c]
push edi
push 0x104
push esi
call fcn.0042ffd1
add esp, 0xc
push str.IntelCommon.dll
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call esi
push edi
push 0x104
lea edi, [ebx + 0x414]
push edi
call fcn.0042ffd1
add esp, 0xc
push str.resource.dll.mui
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419aeb
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [ebx], 0
lea esi, [ebx + 0x20c]
je 0x419b0e
push esi
push str.Loading_common_language_resource___s_
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
push 2
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call esi
mov dword [ebx + 0x824], eax
test eax, eax
jne 0x419b33
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
cmp byte [ebx], 0
je 0x419b50
push edi
push str.Loading_language_resource___s_
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
push 2
push 0
push edi
call esi
mov dword [ebx + 0x828], eax
test eax, eax
je 0x419b25
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x41b300
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042effb
add esp, 4
mov edi, eax
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
mov eax, 0x10
cmp byte [ebp + 0x10], cl
cmovne ecx, eax
lea eax, [ebp - 0x11c]
or ecx, 0x400
push ecx
push eax
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.00430b42
add esp, 4
lea eax, [ebp - 0x10c]
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, str.Button
lea ecx, [ebp - 0x10c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41b3fc
test dx, dx
je 0x41b3f8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41b3fc
add ecx, 4
add eax, 4
test dx, dx
jne 0x41b3d6
xor eax, eax
jmp 0x41b401
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b42a
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xb
jle 0x41b42a
push 0x47
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x114]
add ecx, eax
mov dword [ebp - 0x114], ecx
jmp 0x41b430
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x118]
sub ecx, dword [ebp - 0x11c]
inc eax
push 6
push eax
inc ecx
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41bd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 8
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x408], 0x400
jb 0x41bd9a
mov edx, dword [edx]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41bdee
cmp word [ebp - 0x404], ax
jne 0x41bdc7
xor ecx, ecx
jmp 0x41bddf
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bdd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00404410
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x41c1a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x129], 0
push 0
push eax
mov ebx, ecx
call fcn.00433da0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x278]
push 0x11c
push 0
push eax
call fcn.00433da0
add esp, 0xc
mov dword [ebp - 0x278], 0x11c
lea ecx, [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x154]
cmp cx, 9
jne 0x41c234
test ebx, ebx
js 0x41c241
mov al, byte [ebp - 0x129]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
test cx, cx
jne 0x41c21d
test ebx, 0x40000000
je 0x41c21d
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov eax, ebx
push 3
push 2
shr eax, 8
push 0
and eax, 0xff
push 0
mov dword [ebp - 0x124], eax
call esi
push 3
push 1
push edx
movzx ecx, bl
push eax
mov dword [ebp - 0x120], ecx
call esi
mov edi, eax
mov esi, 3
test ebx, 0x10000000
je 0x41c287
mov byte [ebp - 0xe], 1
jmp 0x41c29b
test ebx, 0x20000000
je 0x41c295
mov byte [ebp - 0xe], 3
jmp 0x41c29b
cmp byte [ebp - 0xe], 0
jbe 0x41c2b1
push 1
push 0x80
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edi, eax
mov esi, 0x83
lea ecx, [ebp - 0x278]
mov ebx, edx
call fcn.0041be00
test esi, esi
je 0x41c2d7
push ebx
push edi
push esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, 1
je 0x41c316
push ebx
push edi
sub esp, 0x11c
lea esi, [ebp - 0x278]
mov edi, esp
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
sub esp, 0x11c
lea esi, [ebp - 0x128]
mov ecx, 0x47
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0041c120
add esp, 0x240
cmp al, 1
jne 0x41c21d
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x41cbe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x6c0], ebx
lea eax, [edi + 8]
xor esi, esi
cmp dword [eax + 0x14], 8
jb 0x41cc0e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x214]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call ebx
push 0x4548e8
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cd6b
push dword [ebp - 0x6c0]
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x6bc], 0x10
lea eax, [ebp - 0x690]
je 0x41cd1f
mov ecx, 0x4516dc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cccc
test dx, dx
je 0x41ccc8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cccc
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cca6
xor eax, eax
jmp 0x41ccd1
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cd3d
mov eax, 0x4516e0
lea ecx, [ebp - 0x690]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41cd06
test dx, dx
je 0x41cd02
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41cd06
add ecx, 4
add eax, 4
test dx, dx
jne 0x41cce0
xor eax, eax
jmp 0x41cd0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cd3d
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.0041cbe0
jmp 0x41cd3d
push str..inf
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x41cd3d
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.0041cdb0
lea eax, [ebp - 0x6bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41cd7e
cmp esi, 0x12
jne 0x41cc60
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x12
je 0x41cd64
push 0x25c
push str.Hardware.cpp
push 0x451a28
push esi
lea ecx, [ebp - 0x46c]
call fcn.00407310
push 0x45d2ac
lea eax, [ebp - 0x46c]
push eax
call fcn.00431dcb
int3