joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5aa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00408997
mov dword [ebp - 0x14], eax
cmp dword [0x4198a4], edi
jne 0x40a69b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a77b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a77b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a77b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4198a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4198a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4198ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4198b4], eax
test eax, eax
je 0x40a698
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4198b0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a6c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a6b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a6d5
push 4
pop eax
jmp 0x40a77d
cmp dword [ebp - 0x14], edi
je 0x40a6d5
push dword [0x4198a4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a6ba
mov eax, dword [0x4198b0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a733
cmp dword [0x4198b4], esi
je 0x40a733
push eax
call ebx
push dword [0x4198b4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a733
test eax, eax
je 0x40a733
call ecx
test eax, eax
je 0x40a728
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a728
test byte [ebp - 8], 1
jne 0x40a733
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a763
mov eax, dword [0x4198a8]
cmp eax, esi
je 0x40a760
push eax
call ebx
test eax, eax
je 0x40a760
call eax
mov edi, eax
test edi, edi
je 0x40a760
mov eax, dword [0x4198ac]
cmp eax, esi
je 0x40a760
push eax
call ebx
test eax, eax
je 0x40a760
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4198a4]
call ebx
test eax, eax
je 0x40a77b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a77d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a78c
leave
ret
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40941f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cf4
mov edx, dword [ebp - 8]
mov ecx, 0x409438
xor eax, eax
call fcn.00409224
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093ed
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409350
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00408dd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407284
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call int.00408da8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404660
call fcn.00405890
call fcn.00402eb4
jmp 0x409350
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409426
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x4094d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409532
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094fe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40950c
cmp edi, 1
jle 0x40950c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408fbc
test eax, eax
jne 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409532
inc edi
dec esi
jne 0x4094ee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ed0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44ba5c3b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x49e703d6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c07
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x42ec10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42ec10], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x405149
Capabilities:
Create process on windows

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

Function at 0x40520e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004054bd
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405242
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4053d6
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405260
test eax, eax
je 0x405381
test byte [ebp + 0xc], 2
je 0x405381
mov esi, 0x42afe0
push edi
push esi
call fcn.004058e9
test ebx, ebx
je 0x40527d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405283
push edi
call fcn.00405423
cmp byte [edi], 0
jne 0x405291
cmp byte [0x42afe0], 0x5c
jne 0x40529c
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405377
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405407
cmp byte [eax], 0
je 0x4052e2
cmp byte [ebp - 0x18], 0
je 0x4052e2
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052f8
mov al, byte [esi + 1]
test al, al
je 0x405356
cmp al, 0x2e
jne 0x4052f8
cmp byte [esi + 2], 0
je 0x405356
push esi
push ebx
call fcn.004058e9
test byte [ebp - 0x148], 0x10
je 0x40531d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405356
push dword [ebp + 0xc]
push edi
call fcn.0040520e
jmp 0x405356
push edi
call fcn.004055a1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40534e
test byte [ebp + 0xc], 4
je 0x405346
push edi
push 0xfffffffffffffff1
call fcn.00404c87
push 0
push edi
call fcn.00405637
jmp 0x405356
inc dword [0x42ebe8]
jmp 0x405356
push edi
push 0xfffffffffffffff2
call fcn.00404c87
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405381
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053d6
cmp dword [ebp - 8], esi
jne 0x405396
inc dword [0x42ebe8]
jmp 0x4053d6
push edi
call fcn.00405be0
test eax, eax
je 0x4053d6
push edi
call fcn.004053dc
push edi
call fcn.004055a1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053ce
test byte [ebp + 0xc], 4
je 0x40538e
push edi
push 0xfffffffffffffff1
call fcn.00404c87
push esi
push edi
call fcn.00405637
jmp 0x4053d6
push edi
push 0xffffffffffffffe5
call fcn.00404c87
pop edi
pop esi
leave
ret 8
Function at 0x4054bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e0
push esi
call fcn.004058e9
push esi
call fcn.00405470
mov edi, eax
test edi, edi
jne 0x4054de
xor eax, eax
jmp 0x405530
push edi
call fcn.00405b47
test byte [0x42eb78], 0x80
je 0x4054f7
mov al, byte [edi]
test al, al
je 0x4054da
cmp al, 0x5c
je 0x4054da
sub edi, esi
jmp 0x40550f
call fcn.00405be0
test eax, eax
je 0x405509
test byte [eax], 0x10
je 0x4054da
push esi
call fcn.00405423
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054fb
call fcn.004053dc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055bd
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4055c0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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_CreateFileA]
ret 0xc

Function at 0x4055ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405633
test edi, edi
jne 0x4055fa
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40562d
Function at 0x405637
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c07
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40565b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405794
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c168], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c168
je 0x40569f
push 1
push 0
push esi
call fcn.004055c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40579a
cmp eax, edi
jg 0x40579a
mov esi, 0x42bbe0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40579a
cmp eax, edi
jg 0x40579a
push esi
push ebp
push str._s_s_r_n
push 0x42b7e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040590b
push 4
push 0xc0000000
push esi
call fcn.004055c0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405794
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 0x40578d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40578d
cmp edi, dword [esp + 0x18]
jne 0x40578d
push str._Rename__r_n
push esi
call fcn.00405535
test eax, eax
jne 0x4057a1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058e9
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7e0
push eax
call fcn.00405581
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ebf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.00405535
test eax, eax
je 0x405758
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057c8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057bd
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40575a
Function at 0x4057d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405841
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405830
cmp dword [ebp + 0x14], 1
je 0x405832
cmp dword [ebp + 0x14], 2
je 0x405832
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405caa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c84
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405c7f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cbd
pop edi
not eax
pop esi
ret 0xc
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40b9d7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ecx
push 8
mov dword [ebp - 0x18], ebx
mov edx, 0x48f6f0
mov dword [ebp - 0xc], ebx
mov eax, ebx
pop ecx
cmp eax, dword [0x496ae0]
je 0x40ba06
add edx, ecx
mov eax, dword [edx]
cmp eax, 0xfffffffa
jne 0x40b9f5
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [edx + 4], 0xffffffff
cmove eax, ecx
xor edi, edi
or esi, eax
inc edi
mov eax, dword [0x4999c4]
cmp eax, edi
je 0x40ba2f
cmp eax, 2
je 0x40ba2f
cmp eax, 3
je 0x40ba2f
mov dword [ebp - 0x14], ebx
jmp 0x40ba9c
mov dword [ebp - 0x14], edi
cmp byte [0x4999d4], bl
jne 0x40ba3f
call fcn.0040bf9f
mov eax, dword [0x49b164]
cmp byte [eax + 3], bl
je 0x40ba6e
push edi
push dword [0x4999c0]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [0x4999d4], bl
je 0x40ba6e
push ebx
push edi
push 6
push dword [0x4999c0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x49b164]
mov eax, dword [eax + 0x1a]
mov dword [ebp - 0x18], eax
call fcn.004011fc
inc dword [0x499a90]
test esi, 0x1000
jne 0x40ba92
and esi, 0xffffdfff
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x40baa8
and esi, 0xffffdfff
or esi, 0x1000
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
call ebx
cmp dword [0x499a08], 0
mov edi, eax
mov dword [ebp - 8], edi
je 0x40bac5
call fcn.00413b53
jmp 0x40baca
mov eax, dword [0x4999fc]
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004136b1
test eax, eax
jne 0x40baeb
cmp edi, dword [0x4999c0]
je 0x40baeb
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
mov dword [ebp - 8], eax
call ebx
mov ecx, dword [ebp + 8]
xor edx, edx
mov ebx, eax
inc edx
mov dword [ebp - 0x10], ebx
call fcn.00413a75
mov ecx, dword [0x4999c0]
cmp ebx, ecx
je 0x40bb2b
test ecx, ecx
je 0x40bb2b
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40bb2b
push 0
push dword [0x4999c0]
mov dword [ebp - 0xc], 1
call dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [ebp - 4]
mov ecx, ebx
push esi
push 0x49b140
call fcn.0040c329
mov ebx, eax
test ebx, ebx
jne 0x40bb75
mov edi, dword [ebp - 0x10]
and esi, 0xf0f
or esi, 0x1010
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [ebp - 4]
mov ecx, edi
push esi
push 0x49b140
call fcn.0040c329
mov ebx, eax
test ebx, ebx
je 0x40bb4a
mov edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
je 0x40bb89
push 1
push dword [0x4999c0]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x10], 0
je 0x40bb99
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.00413a75
cmp dword [ebp - 0x14], 0
je 0x40bbe7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bbad
mov ecx, eax
call fcn.00401150
push 2
pop ecx
call fcn.00484df4
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [0x49b164]
dec dword [0x499a90]
cmp byte [eax + 3], 0
je 0x40bbdc
push 0
push dword [0x4999c0]
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x40bbe7
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4