joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eb30
Capabilities:
Capture webcam image
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
mov eax, dword [0x54e9d0]
test eax, eax
je 0x43ecec
cmp dword [ebp + 0xc], 0xfffffffe
je 0x43eb93
mov eax, dword [ebp + 0xc]
mov edx, 0x80000000
test eax, edx
je 0x43eb90
cmp dword [0x54e9dc], 0x10
je 0x43eb6b
cmp dword [0x54e9dc], 0x18
jne 0x43eb89
and dword [ebp + 0xc], 0x7fffffff
cmp dword [ebp + 0xc], 0x20
jbe 0x43eb7f
xor eax, eax
jmp 0x43ecee
mov eax, dword [0x54e9e4]
add dword [ebp + 0xc], eax
jmp 0x43eb90
xor eax, eax
jmp 0x43ecee
dec dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 4
movzx eax, byte [ebp + 0x10]
or eax, 0x50
mov byte [ebp - 0xb], al
mov dword [ebp - 8], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 1
push 0x414
mov eax, dword [0x54e9d0]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, eax
je 0x43ecec
mov eax, dword [0x54e9d4]
test eax, eax
je 0x43ec74
mov dword [ebp - 0xd4], 0x2c
mov dword [ebp - 0xd0], 0x10
mov eax, dword [0x54e9d0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xac], 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x419
mov eax, dword [0x54e9d0]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
lea edx, [ebp - 0xc4]
push edx
push eax
push 0x41d
mov eax, dword [0x54e9d0]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
lea eax, [ebp - 0xd4]
push eax
push 0
push 0x404
mov eax, dword [0x54e9d4]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 5
jae 0x43ece5
cmp dword [ebp + 0xc], 0xfffffffe
jne 0x43ec9e
xor ebx, ebx
jmp 0x43eca3
mov ebx, 7
mov eax, ebx
mov word [ebp - 0xaa], ax
movzx eax, byte [ebp + 0x10]
mov edx, 8
test eax, edx
jne 0x43ecc2
mov edx, pe_nt_image_headers32
test eax, edx
je 0x43ecca
add word [ebp - 0xaa], 0xd
mov eax, dword [0x54e9dc]
movsx edx, word [ebp - 0xaa]
add eax, edx
movzx eax, ax
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043eea0
mov eax, 1
jmp 0x43ecee
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43ef40
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x54e9c8]
test eax, eax
je 0x43f079
xor esi, esi
jmp 0x43f06d
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
cmp dword [edx + eax], ebx
jne 0x43f06c
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
add eax, edx
mov edx, dword [eax + 4]
test edx, edx
je 0x43f06c
mov eax, dword [eax + 8]
test eax, eax
je 0x43f06c
push 0
push 0
push 0x418
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 4]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
mov edi, eax
test eax, eax
je 0x43f06c
dec edi
jmp 0x43f064
lea eax, [ebp - 0x14]
push eax
mov eax, edi
push eax
push 0x417
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 4]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
cmp dword [ebp - 0x10], 0
je 0x43f063
mov dword [ebp - 0x40], 0x2c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x38], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x419
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 4]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
lea edx, [ebp - 0x30]
push edx
push eax
push 0x41d
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 4]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
lea eax, [ebp - 0x40]
push eax
push 0
push 0x406
imul eax, esi, 0x28
mov edx, dword [0x54e9c8]
mov eax, dword [edx + eax + 8]
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
dec edi
test edi, edi
jge 0x43efc0
inc esi
cmp esi, dword [0x514a88]
jl 0x43ef60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44057c
Capabilities:
Get file system object information

Disassembly:
push ebp
push ebx
mov edx, 0x5a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x440583
mov edx, dword [esp + 0x174]
lea ecx, [esp]
call fcn.0043a610
cmp dword [esp + 0x17c], 0
je 0x4405b1
mov dword [esp + 4], 0x10000
cmp dword [esp + 0x178], 0
je 0x4405ec
mov ebx, dword [esp + 4]
or ebx, 0x100
or ebx, 0
push ebx
push 0x160
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x10]
call sub.SHELL32.DLL_SHGetFileInfoA
lea ebp, [esp + 8]
mov eax, dword [ebp]
jmp 0x44061d
mov ebx, dword [esp + 4]
or ebx, 0x100
or ebx, 1
push ebx
push 0x160
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x10]
call sub.SHELL32.DLL_SHGetFileInfoA
lea ebp, [esp + 8]
mov eax, dword [ebp]
jmp 0x44061d
push dword [esp]
call fcn.00462c80
add esp, 0x168
pop ebx
pop ebp
ret 0xc
Function at 0x4416c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4416ce
mov eax, dword [esp + 0x48]
mov dword [0x54e9c4], eax
mov edx, dword [esp + 0x3c]
lea ecx, [esp]
call fcn.0043a610
mov edx, dword [esp + 0x44]
lea ecx, [esp + 4]
call fcn.0043a610
push dword [esp]
call fcn.00441dbc
mov dword [esp + 8], eax
push dword [0x54e9c4]
push dword [esp + 4]
call fcn.00441eac
lea eax, [esp + 0x10]
push eax
call fcn.00462b10
lea eax, [esp + 0x14]
mov eax, dword [0x54e9c4]
push eax
push eax
push 1
push dword [esp + 0x18]
call fcn.00443470
inc dword [0x54e9c4]
mov edx, str._aAb
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
je 0x441781
mov eax, dword [0x54e9c4]
push eax
push eax
push dword [esp + 0x14]
call fcn.00442430
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0x18]
call fcn.00442dd0
lea eax, [esp + 0x10]
push eax
call fcn.00462b10
push dword [esp + 4]
mov edx, 0x514c57
pop ecx
call fcn.00462bf0
je 0x4417aa
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegOpenKeyA
mov dword [esp + 0x20], eax
jmp 0x4417d6
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegConnectRegistryA
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
push dword [esp + 0x34]
call sub.ADVAPI32.DLL_RegOpenKeyA
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x441873
mov dword [esp + 0x30], 0xff
mov eax, dword [0x54e9c4]
push eax
push eax
push 0xff
call fcn.004434e0
lea eax, [esp + 0x14]
push eax
call fcn.00462b10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
push eax
push dword [esp + 0x58]
push dword [esp + 0x40]
call sub.ADVAPI32.DLL_RegEnumValueA
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x44185c
mov eax, dword [0x54e9c4]
push eax
push eax
push dword [esp + 0x38]
push dword [esp + 0x1c]
call fcn.00443470
lea eax, [esp + 0x20]
push eax
call fcn.00462b10
jmp 0x44186a
mov edx, 0x514aa1
lea ecx, [esp + 0x1c]
call fcn.0043a618
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x1c]
push dword [0x54e9c4]
call fcn.00462b90
pop eax
add eax, dword [0x5148c0]
jmp 0x441899
push dword [esp]
call fcn.00462c80
push dword [esp + 4]
call fcn.00462c80
push dword [esp + 0xc]
call fcn.00462c80
push dword [esp + 0x10]
call fcn.00462c80
push dword [esp + 0x1c]
call fcn.00462c80
add esp, 0x34
pop ebx
ret 0xc

Function at 0x444184
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x44419c
push dword [esp + 4]
push 0x44411d
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x4441d9
push esi
mov esi, dword [0x54df30]
test esi, esi
je 0x4441d8
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4441d0
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x54df30
call fcn.00462a15
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4441a9
pop edi
pop ebx
pop esi
ret 4
Function at 0x4560d0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x4561e1
cmp byte [eax], 0
je 0x4561e1
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x45612a
cmp eax, 3
jne 0x456167
cmp byte [ebp - 0x107], 0x3a
jne 0x456167
cmp eax, 2
jne 0x45614b
lea eax, [ebp - 0x108]
push 0x4848f0
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x4561e1
jmp 0x4561db
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x456163
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4561b3
test byte [ebp - 0x248], 0x10
je 0x456196
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x4561aa
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4561e1
cmp byte [ebp - 0x108], 0x5c
jne 0x4561e1
cmp byte [ebp - 0x107], 0x5c
jne 0x4561e1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4561e1
test al, 0x10
je 0x4561e1
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x4564b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4564e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4567c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x54ea70]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.004625f0
test eax, eax
je 0x456812
cmp dword [eax + 4], 0
je 0x4567f8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00456c90
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc
Function at 0x456820
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x54ea70]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.004625f0
mov esi, eax
test esi, esi
je 0x4568a4
cmp dword [esi + 4], 0
je 0x456873
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00456c90
test eax, eax
je 0x456867
add dword [esi + 0xc], 1
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4568af
cmp dword [esp + 8], 0
je 0x4568af
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x4568c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00462f00
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x54ea70]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.004625f0
mov ebx, eax
test ebx, ebx
je 0x4569de
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x45691e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00456c90
mov dword [esp + 0x14], eax
jmp 0x456935
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x456947
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x456971
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00462f00
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x4569dd
cmp dword [esp + 0x14], 0
je 0x456988
cmp al, 0xd
je 0x456988
cmp al, 0xa
jne 0x456900
sub ebp, 1
cmp al, 0xd
jne 0x4569dd
cmp dword [ebx + 4], 0
je 0x4569a4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00456c90
jmp 0x4569bb
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4569dd
cmp dword [ebx + 4], 0
je 0x4569ce
add dword [ebx + 0xc], 1
jmp 0x4569dd
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00462f80
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x456a50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x54ea70]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004625f0
mov esi, eax
test esi, esi
je 0x456b22
mov ecx, dword [esp + 0x14]
test ecx, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x456ada
cmp byte [ecx], 0
je 0x456ada
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x456ac0
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x456aa0
sub eax, edi
push eax
push ecx
push esi
call fcn.00456b90
mov dword [esp + 0xc], eax
jmp 0x456ad9
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x456ac0
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x456afd
push 2
push 0x484884
push esi
call fcn.00456b90
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x484884
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x456b30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [0x54ea70]
mov al, byte [esp + 0xc]
push ecx
push edx
mov dword [esp + 8], 0
mov byte [esp + 0x14], al
call fcn.004625f0
test eax, eax
je 0x456b80
cmp dword [eax + 4], 0
lea ecx, [esp + 0xc]
je 0x456b6d
push 1
push ecx
push eax
call fcn.00456b90
pop ecx
ret 8
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [eax]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
Function at 0x456b90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x456bc5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x456c3e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x456c2b
sub ecx, 1
je 0x456c16
sub ecx, 2
je 0x456c03
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.004564b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x456c6b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x456c90
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x456cb1
push esi
call fcn.004564b0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x456d2a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x456d17
sub ecx, 1
je 0x456d02
sub ecx, 2
je 0x456cef
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x456d73
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x456d96
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4580a1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x98
push ebx
push esi
push edi
push dword [0x54eaa0]
call fcn.0046274b
xor edi, edi
cmp dword [0x54e024], edi
mov dword [ebp + 0x58], eax
jne 0x458164
call fcn.0045dcb8
mov esi, 0x94
push esi
push edi
push 0x54df90
call sub.MSVCRT.dll_memset
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x3c]
inc ebx
push eax
mov dword [0x54df90], 0x13
mov dword [0x54df94], esi
mov dword [0x54dfa0], 0x457a95
mov dword [0x54dfa4], 0x457a73
mov dword [0x54dff8], 0x457ad3
mov dword [0x54dffc], 0x457af8
mov dword [0x54df9c], 0x457ab0
mov dword [0x54df88], ebx
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x45815e
cmp dword [ebp - 0x2c], ebx
je 0x458158
cmp dword [ebp - 0x2c], 2
jne 0x45815e
cmp dword [ebp - 0x38], 5
jb 0x458158
jne 0x45815e
cmp dword [ebp - 0x34], edi
jne 0x45815e
mov dword [0x54df88], edi
mov dword [0x54e024], ebx
mov eax, dword [ebp + 0x58]
push edi
push dword [0x517fd4]
push 0xffffffffffffffff
push dword [eax]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x74]
or eax, 0x50010000
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push eax
push edi
push str.BUTTON
push edi
call dword [sym.imp.USER32.DLL_CreateWindowExA]
cmp eax, edi
mov dword [ebp + 0x74], eax
je 0x4581fe
push dword [ebp + 0x64]
push dword [0x54ea7c]
call fcn.0046258c
mov ebx, dword [ebp + 0x78]
cmp ebx, edi
mov esi, eax
mov dword [esi + 0x10], ebx
je 0x4581cc
push ebx
call fcn.0046188e
test eax, eax
je 0x4581cc
push edi
push edi
push ebx
call fcn.00461970
mov dword [esi + 0x18], eax
jmp 0x4581cf
mov dword [esi + 0x18], edi
push 0x457dde
push 0xfffffffffffffffc
push dword [ebp + 0x74]
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push 0x54df90
push dword [ebp + 0x74]
mov dword [0x54df8c], eax
push esi
push dword [ebp + 0x64]
call fcn.0045de30
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x1c

Function at 0x45aae5
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x54ea7c]
call fcn.004625f0
mov edi, eax
test edi, edi
je 0x45ab47
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x45ab0e
push dword [esp + 0xc]
push edi
call eax
jmp 0x45ab47
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00462f00
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00462f80
pop esi
pop ebx
pop edi
ret 8

Function at 0x45ad7d
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.DLL_EnableWindow]
ret
Function at 0x45fff1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x46007c
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x46006e
push 0x11
call esi
test al, al
js 0x46006e
push 0x10
call esi
test al, al
js 0x46006e
push 0x12
call esi
test al, al
js 0x46006e
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x46006e
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x46009c
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46009c
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x46009c
dec eax
push eax
push dword [0x54ea78]
call fcn.004625f0
mov eax, dword [eax + 8]
jmp 0x46009e
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x461726
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x54e9bc], eax
je 0x461759
push 0x484b60
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54e9c0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x54e9b8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x461797
cmp dword [ebp - 0xc], 1
je 0x4617a8
cmp dword [ebp - 0xc], 2
jne 0x461797
cmp dword [ebp - 0x18], 5
jb 0x4617a8
jne 0x461797
cmp dword [ebp - 0x14], edi
jne 0x461797
mov dword [0x54e9b8], edi
cmp dword [0x54e9b8], edi
je 0x4617ae
call fcn.0046166d
test eax, eax
jne 0x4617ae
mov dword [0x54e9b8], edi
pop edi
add ebp, 0x78
leave
ret