joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a08930
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41a0154c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], 1
call sub.MSVCR90.dll_memset
mov eax, 0x41a0b2bc
add esp, 0xc
mov dword [ebp - 0x210], 0x208
mov ecx, eax
cmp dword [ecx], 0
je 0x41a0899e
add ecx, 0x14
inc esi
cmp ecx, 0x41a0b2e4
jge 0x41a08af1
jmp 0x41a08987
imul esi, esi, 0x14
add esi, eax
je 0x41a08af1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a08ad3
cmp dword [ebp - 0x214], 1
jne 0x41a08ad3
xor ebx, ebx
cmp word [ebp - 0x20c], bx
je 0x41a08ad5
cmp dword [ebp - 0x210], ebx
je 0x41a08ad5
shr dword [ebp - 0x210], 1
cmp dword [ebp - 0x210], 0x104
jae 0x41a08a1a
mov ecx, dword [ebp - 0x210]
mov word [ebp + ecx*2 - 0x20c], ax
jmp 0x41a08a1e
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp eax, ebx
je 0x41a08ad5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a08b84
push eax
call edi
cmp eax, ebx
jne 0x41a08a4c
mov eax, dword [ebp + 0x10]
jmp 0x41a08a4e
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x41a08a72
push 0x41a08b78
push dword [esi]
call edi
push 0x41a08b64
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x41a08b54
jmp 0x41a08aa6
cmp eax, 2
jne 0x41a08a87
push 0x41a08b78
push dword [esi]
call edi
push 0x41a08b40
jmp 0x41a08a64
cmp eax, 3
jne 0x41a08ab0
push 0x41a08b30
push dword [esi]
call edi
push 0x41a08b18
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x41a08b04
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], ebx
je 0x41a08ad5
cmp dword [esi + 0x10], ebx
je 0x41a08ad5
cmp dword [esi + 0xc], ebx
je 0x41a08ad5
push dword [0x41a0b2e4]
push esi
call fcn.41a086ba
test eax, eax
jl 0x41a08ad5
xor esi, esi
jmp 0x41a08ad5
xor ebx, ebx
cmp esi, ebx
je 0x41a08af1
mov eax, dword [esi]
cmp eax, ebx
je 0x41a08ae6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.41a092ac
leave
ret 0xc
Function at 0x41a092ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a0154c]
jne 0x41a0934f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x41a0b410], eax
mov dword [0x41a0b40c], ecx
mov dword [0x41a0b408], edx
mov dword [0x41a0b404], ebx
mov dword [0x41a0b400], esi
mov dword [0x41a0b3fc], edi
mov word [0x41a0b428], ss
mov word [0x41a0b41c], cs
mov word [0x41a0b3f8], ds
mov word [0x41a0b3f4], es
mov word [0x41a0b3f0], fs
mov word [0x41a0b3ec], gs
pushfd
pop dword [0x41a0b420]
mov eax, dword [ebp]
mov dword [0x41a0b414], eax
mov eax, dword [ebp + 4]
mov dword [0x41a0b418], eax
lea eax, [ebp + 8]
mov dword [0x41a0b424], eax
mov eax, dword [ebp - 0x320]
mov dword [0x41a0b360], 0x10001
mov eax, dword [0x41a0b418]
mov dword [0x41a0b314], eax
mov dword [0x41a0b308], 0xc0000409
mov dword [0x41a0b30c], 1
mov eax, dword [0x41a0154c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x41a0b0dc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x41a0b358], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41a09450
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x41a0b358], 0
jne 0x41a0943b
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4014e1
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
push eax
and esi, 0x300
mov eax, esi
or eax, 9
push eax
push dword [ebp + 0xc]
and edi, 1
push dword [ebp + 8]
call fcn.004061c2
xor ebx, ebx
cmp eax, ebx
jne 0x4015c5
test byte [ebp + 0x10], 2
je 0x401543
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4015aa
push 0x105
lea eax, [ebp - 0x214]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40157f
test edi, edi
jne 0x4015aa
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.004014e1
test eax, eax
jne 0x401588
push 0x105
lea eax, [ebp - 0x214]
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x401558
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064dc
test eax, eax
jne 0x4015ba
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4015c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x4015c5
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405d17
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408898
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408888
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d68
xor eax, eax
jmp 0x405d95
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405d94
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405d92
xor eax, eax
jmp 0x405d94
call esi
pop esi
leave
ret 4

Function at 0x405db6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x425208
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x425208], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405df5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405df9
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405fc4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405fe4
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405fea
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406019
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x408974]
mov dword [ebp - 8], eax
mov eax, dword [0x408978]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406069
test edi, edi
jne 0x406026
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406063
Function at 0x406223
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.004061c2
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406294
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x7fe], ax
pop edi
jne 0x406294
cmp dword [ebp + 0xc], 1
je 0x406299
cmp dword [ebp + 0xc], 2
je 0x406299
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x40646c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406490
xor eax, eax
test eax, eax
je 0x4064a3
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4064a3
xor ecx, ecx
jmp 0x4064a6
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4082b0]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4065df
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fc4
mov edi, eax
cmp edi, 0xffffffff
je 0x406620
test byte [esp + 0x10], 1
push esi
je 0x406609
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406611
xor eax, eax
inc eax
jmp 0x406622
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406600
test byte [esp + 0x10], 4
jne 0x406620
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425250
push esi
call fcn.00406357
push esi
call fcn.00405eed
mov edi, eax
test edi, edi
jne 0x4066eb
xor eax, eax
jmp 0x406749
push edi
call fcn.00406394
test byte [0x429d70], 0x80
je 0x406708
movzx eax, word [edi]
test ax, ax
je 0x4066e7
cmp ax, 0x5c
je 0x4066e7
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40672a
push esi
call fcn.00406445
test eax, eax
je 0x406724
test byte [eax], 0x10
je 0x40674e
push esi
call fcn.00406656
push esi
call ebx
cmp eax, edi
jg 0x406715
push esi
call fcn.00406627
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406748
Function at 0x4069c7
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x425a50], 0x55004e
mov dword [0x425a54], 0x4c
mov edi, 0x400
mov ebp, 0x425a50
test esi, esi
je 0x406a1d
push 1
push 0
push esi
call fcn.00405fea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406b3c
cmp eax, edi
jg 0x406b3c
push edi
mov esi, 0x4270a0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406b3c
cmp eax, edi
jg 0x406b3c
push esi
push ebp
push str._ls_ls_r_n
push 0x4264a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x429d10]
push dword [eax + 0x128]
push esi
call fcn.00406752
push 4
push 0xc0000000
push esi
call fcn.00405fea
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406b3c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406b35
push edi
push esi
push ebp
call fcn.0040606d
test eax, eax
je 0x406b35
push str._Rename__r_n
push esi
call fcn.00405f4a
test eax, eax
jne 0x406ad3
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406b08
push 0x4089a4
add eax, 0xa
push eax
call fcn.00405f4a
mov ebp, eax
test ebp, ebp
je 0x406b04
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406af5
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406aef
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406b0a
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x4264a0
add eax, esi
push eax
call fcn.00405fa0
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040609c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406b41
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406b64
push dword [esp + 8]
push dword [esp + 8]
call fcn.004069c7
pop ecx
pop ecx
inc dword [0x429dd0]
ret 8
Function at 0x406b6d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004066ca
mov dword [ebp - 8], eax
test bl, 8
je 0x406bab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429dc8], eax
jmp 0x406d2d
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406bc6
test eax, eax
je 0x406cd9
test bl, 2
je 0x406cd9
push edi
mov esi, 0x4268a0
push esi
call fcn.00406357
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406be8
push str..
push esi
call ebx
jmp 0x406bee
push edi
call fcn.00406656
cmp word [edi], 0
jne 0x406bfe
cmp word [0x4268a0], 0x5c
jne 0x406c06
push 0x4082b0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406ccd
cmp word [ebp - 0x22c], 0x2e
jne 0x406c51
cmp word [ebp - 0x22a], 0
je 0x406cb0
cmp word [ebp - 0x22a], 0x2e
jne 0x406c51
cmp word [ebp - 0x228], 0
je 0x406cb0
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406357
test byte [ebp - 0x258], 0x10
je 0x406c7c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406cb0
push dword [ebp + 0xc]
push edi
call fcn.00406b6d
jmp 0x406cb0
push dword [ebp - 4]
push edi
call fcn.004065df
test eax, eax
jne 0x406ca8
cmp dword [ebp - 4], eax
je 0x406ca0
push edi
push 0xfffffffffffffff1
call fcn.004050b5
push 0
push edi
call fcn.00406b41
jmp 0x406cb0
inc dword [0x429dc8]
jmp 0x406cb0
push edi
push 0xfffffffffffffff2
call fcn.004050b5
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406c29
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406cd9
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406d2c
cmp dword [ebp - 8], esi
je 0x406d1c
push edi
call fcn.00406445
test eax, eax
je 0x406d2c
push edi
call fcn.00406627
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.004065df
test eax, eax
jne 0x406d24
cmp dword [ebp - 4], esi
je 0x406d1c
push edi
push 0xfffffffffffffff1
call fcn.004050b5
push esi
push edi
call fcn.00406b41
jmp 0x406d2c
inc dword [0x429dc8]
jmp 0x406d2c
push edi
push 0xffffffffffffffe5
call fcn.004050b5
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406d33
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278a4], 0
jne 0x406d71
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d47
mov dword [ecx*4 + 0x4278a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406d42
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d9e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4278a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d7f
not eax
pop ebp
ret 0xc
Function at 0x466840
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x120]
push 0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x466981
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x466981
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea edx, [ebx - 8]
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
jne 0x466962
cmp dword [esp + 0x18], 0xfa123456
jne 0x4668fe
mov ecx, dword [esp + 0x1c]
mov edx, 0xfffffff8
sub edx, ecx
add ebx, edx
push 0
push 0
push ebx
push esi
call ebp
mov ecx, dword [edi + 0x228]
mov edx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [edi + 0x228]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x466962
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x2c], 0xfa123456
call ebx
cmp dword [esp + 0x10], 8
jne 0x466962
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x466981
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x114
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x21065822
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4bf83b05
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x404b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42f0d0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404d5d
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404d5d
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0041a230
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42f07c]
test eax, eax
je 0x404d5d
push 4
push 0x1000
push 4
push 0
call dword [0x42f0bc]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42f060]
test eax, eax
je 0x404d5d
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push str.Unknown_exception
push dword [ebp - 0x160]
call dword [0x42f074]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404c5c
push 0x434ed0
push 0x434ee8
call dword [0x42f0a4]
push eax
call dword [0x42f064]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42f068]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404d5d
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
xor eax, eax
mov dword [ebp - 0x164], 0
cmp ax, word [edi + 6]
jae 0x404cf6
xor ebx, ebx
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jl 0x404ca8
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42f084]
push dword [ebp - 0x15c]
call dword [0x42f0a8]
push 0x8000
push 0
push esi
call dword [0x42f0c4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d52
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42f0c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d52
mov esp, ebp
pop ebp
ret
Function at 0x100078b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001c32b
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
mov esi, dword [esp + 0x3a8]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x3a8]
push ebx
push ebx
push str.VendorSetup
push esi
push edi
call fcn.10010b60
add esp, 0x14
test eax, eax
jne 0x10007954
push ebx
push ebx
push 0x1001d314
push esi
push edi
call fcn.10010b60
add esp, 0x14
test eax, eax
je 0x10007c9b
mov eax, dword [edi]
push ebx
lea ecx, [esp + 0x90]
push 0x104
push ecx
push 1
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
je 0x10007c9b
cmp byte [esp + 0x8c], bl
je 0x10007c9b
mov edx, dword [edi]
lea eax, [esp + 0x8c]
push str.VendorSetup
push eax
mov ecx, edi
call dword [edx + 0xc]
test eax, eax
je 0x10007c9b
push ebp
mov edx, dword [edi]
push ebx
lea eax, [esp + 0x94]
push 0x104
push eax
push 1
mov ecx, edi
mov dword [esp + 0x20], 1
call dword [edx + 0x38]
test eax, eax
je 0x10007c86
cmp byte [esp + 0x90], bl
je 0x10007c86
lea ecx, [esp + 0x194]
push 0x104
push ecx
lea edx, [esp + 0x98]
push 1
push edx
call fcn.10004f30
test eax, eax
je 0x10007c5f
lea eax, [esp + 0x298]
push 0x104
push eax
lea ecx, [esp + 0x98]
push 2
push ecx
call fcn.10004f30
test eax, eax
je 0x10007c5f
lea ecx, [esp + 0x18]
xor ebp, ebp
xor edi, edi
call fcn.1000b530
lea edx, [esp + 0x194]
push str.setup32.dll
push edx
mov dword [esp + 0x3ac], ebx
call fcn.10005380
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10007af5
test dword [esp + 0x3bc], 0x100000
je 0x10007af5
push ebx
push str.epupdate.exe
lea ecx, [esp + 0x20]
call fcn.1000b740
mov ebp, eax
lea eax, [esp + 0x90]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x90]
push str.epupdate.exe
push ecx
call fcn.100053d0
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
invalid
invalid