joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424948
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424a1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5ec
cmp byte [ebp - 9], 0
je 0x4249d9
mov eax, ebx
call fcn.0040aeb8
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4249d9
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00422828
test al, al
je 0x4249d9
mov eax, dword [ebp - 8]
call fcn.00425014
test al, al
je 0x4249ce
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00424d18
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042b880
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b120
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a5ec
push edi
mov eax, dword [ebp - 4]
call fcn.0040aeb8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4249f3
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a22
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a224
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a224
ret

Function at 0x424b58
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040aeb8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x424bad
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424ba7
test ah, 4
je 0x424ba7
test al, 0x10
je 0x424ba7
mov eax, esi
call fcn.0040aeb8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x424bad
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424f58
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0
call sub.kernel32.dll_SetLastError
push esp
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x424f88
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040af70
add esp, 0x20c
pop ebx
ret

Function at 0x4292fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x429335
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a34c
jmp 0x42933e
mov eax, ebx
mov edx, esi
call fcn.0040a5a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429348
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42936a
movzx eax, word [esp]
jmp 0x42936c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42a36c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42a491
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a174
mov esi, eax
mov eax, dword [0x6f1228]
cmp byte [eax], 0
je 0x42a439
mov eax, dword [0x6f0b80]
call fcn.004079f8
call fcn.00407080
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42a33c]
call fcn.0040cf78
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42a4ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42a475
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6f0a9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6f5634]
call fcn.0040d398
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a498
lea eax, [ebp - 4]
mov edx, dword [0x42a33c]
call fcn.0040d09c
ret

Function at 0x42b268
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 0x42b33e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5ec
lea eax, [ebp - 4]
call fcn.0040a78c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aeb8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42b328
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42b321
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.0040aeb8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42b30b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42b350
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42b30b
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 0x42b328
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b345
lea eax, [ebp - 4]
call fcn.0040a1c4
ret
Function at 0x42b354
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42b454
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5ec
lea eax, [ebp - 4]
call fcn.0040a78c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aeb8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42b43e
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42b437
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aeb8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42b421
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42b468
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42b421
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b43e
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b45b
lea eax, [ebp - 4]
call fcn.0040a1c4
ret

Function at 0x42c744
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a6cc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffd8
mov edi, eax
cmp edi, 0x104
jbe 0x42c6ef
mov eax, edi
add eax, eax
call fcn.00406f0c
mov esi, eax
jmp 0x42c6f1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffd8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42c72a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42c714
mov eax, esp
cmp esi, eax
je 0x42c737
mov eax, esi
call fcn.00406f28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42c770
cmp bl, 0
je 0x42c76c
cmp bl, 0x41
jl 0x42c767
cmp bl, 0x5a
jg 0x42c767
or bl, 0x20
xor al, bl
inc esi
jmp 0x42c74b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42c6b0
Function at 0x42d0e8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a1c4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040aeb8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42d12d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a34c
jmp 0x42d146
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b048
push ebx
mov eax, dword [esi]
call fcn.0040aeb8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4743b4
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4743f7
cmp byte [ebx + 0x11], 0
jne 0x4743f7
cmp byte [ebx + 0x24], 0
jne 0x4743f7
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x47440e
mov ecx, dword [0x6f1140]
mov dl, 1
mov eax, dword [0x44621c]
call fcn.0042a598
call fcn.004098c0
pop ebx
ret
mov ecx, dword [0x6f1140]
mov dl, 1
mov eax, dword [0x44621c]
call fcn.0042a598
call fcn.004098c0
pop ebx
ret

Function at 0x4748f4
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x474942
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0047432c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47495b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x474964
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0047432c
dec esi
jne 0x474986
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4771b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6f808c
cmp dword [edi], 0
jne 0x477230
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6f8088]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6e34ec
mov ecx, 2
call fcn.00407180
mov edx, 0x47718c
lea eax, [esi + 5]
call fcn.004771ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004771ac
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 0x477205
mov dword [0x6f8088], 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 0x4c61e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4c61ec
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4dbd28
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4dbde0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004dbcb8
test al, al
je 0x4dbdc2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a34c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4dbdc2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aeb8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040aeb8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040af1c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4dbd7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbde7
lea eax, [ebp - 0x2c]
call fcn.0040a1c4
lea eax, [ebp - 4]
call fcn.0040a1c4
ret

Function at 0x4dc130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004db834
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040aeb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004db8fc
test al, al
jne 0x4dc198
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6f0f14]
mov dl, 1
mov eax, dword [0x4da600]
call fcn.0042a5d4
call fcn.004098c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4dc1a4
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.0040aeb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004db8fc
test al, al
jne 0x4dc205
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6f15dc]
mov dl, 1
mov eax, dword [0x4da600]
call fcn.0042a5d4
call fcn.004098c0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004db864
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 0x4e5270
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 0x4e5276
ret

Function at 0x4eb87c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.004eb70c
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x4eb8be
lea eax, [ebp - 0x22]
call fcn.004e8e04
cmp ax, word [ebp - 0xe]
je 0x4eb8c3
call fcn.004e7dbc
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00406f0c
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x4eb9eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x4eb909
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4eb97a
call fcn.004e7dbc
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4eb9ce
call fcn.004e7dbc
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb9f2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00406f28
ret
Function at 0x507170
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x6f86f0], 0
je 0x5072b1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6f10bc]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x5072b1
mov eax, dword [0x6f86f4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6f86f0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x507280
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6f86f0]
call fcn.00462dcc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x507278
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x21d], 0
je 0x507278
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x507278
mov eax, dword [ebp - 0x14]
call fcn.005135c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x507278
push ebp
call fcn.0050712c
pop ecx
test al, al
jne 0x507278
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00408748
test al, al
je 0x507278
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00408748
cmp byte [ebp - 1], 0
je 0x507278
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004122d4
test al, al
je 0x507278
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6f86f4]
call fcn.005068ac
inc edi
dec ebx
jne 0x5071d5
mov eax, dword [0x6f86f4]
cmp dword [eax + 8], 0
jle 0x507298
mov eax, dword [0x6f86f4]
call fcn.00506960
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5072b1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00506f94
pop ecx
test al, al
jne 0x5072b1
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50faec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004124b8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005097c0
test ebx, ebx
jne 0x50fb3f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0050f964
mov ebx, eax
test ebx, ebx
je 0x50fc35
cmp esi, ebx
je 0x50fb68
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x50fb7d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x50fbb5
add eax, 0xffffff5f
sub eax, 2
jb 0x50fbcd
dec eax
sub eax, 2
jb 0x50fbe1
dec eax
sub eax, 2
jb 0x50fbd7
jmp 0x50fbeb
add eax, 0xfffffdff
sub eax, 2
jb 0x50fbcd
dec eax
sub eax, 2
jb 0x50fbe1
dec eax
sub eax, 2
jb 0x50fbd7
jmp 0x50fbeb
mov byte [esp + 0x120], 0
jmp 0x50fbf3
mov byte [esp + 0x120], 2
jmp 0x50fbf3
mov byte [esp + 0x120], 1
jmp 0x50fbf3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005c9210
mov esi, eax
call fcn.00505f40
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0050b190
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x50fc37
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret