joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a1b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
jmp 0x56aa1a
jmp 0x56a8cc
jmp 0x56a947
jmp 0x56a750
jmp 0x56aa07
jmp 0x56a8aa
jmp 0x56a60f
jmp 0x56a49b
jmp 0x56a2ed
jmp 0x56a22c
jmp 0x56aa95
jmp 0x56a3a1
jmp 0x56ab0d
jmp 0x56a428
jmp 0x56a46d
jmp 0x56ab5c
jmp 0x56a43e
jmp 0x56a3c0
jmp 0x56a7c4
jmp 0x56a6f7
jmp 0x56a627
jmp 0x56a8a1
jmp 0x56a236
jmp 0x56a8b4
jmp 0x56abdc
jmp 0x56a8f2
jmp 0x56a7e0
jmp 0x56a87e
jmp 0x56a5dc
jmp 0x56a920
jmp 0x56a218
jmp 0x56a6b6
jmp 0x56a862
jmp 0x56ace1
jmp 0x56a292
jmp 0x56a3ff
jmp 0x56ac5f
jmp 0x56a501
jmp 0x56a8e0
jmp 0x56a83d
jmp 0x56ac86
jmp 0x56acb0
jmp 0x56a96f
jmp 0x56ac47
jmp 0x56a3ae
jmp 0x56a674
jmp 0x56acbd
jmp 0x56ab95
jmp 0x56aaee
jmp 0x56a1b9
jmp 0x56a2dc
jmp 0x56a415
jmp 0x56aa85
jmp 0x56a454
jmp 0x56aa4a
jmp 0x56a35c
jmp 0x56a4ea
jmp 0x56a714
jmp 0x56a4d3
jmp 0x56a65b
jmp 0x56a98e
jmp 0x56a5ef
jmp 0x56a593
jmp 0x56a7ea
jmp 0x56a7a5
jmp 0x56ac6b
jmp 0x56a34d
jmp 0x56a1ec
jmp 0x56a980
jmp 0x56a2ff
jmp 0x56a386
jmp 0x56aba9
jmp 0x56a5a9
jmp 0x56ac0b
jmp 0x56a9a3
jmp 0x56a4bf
jmp 0x56a68a
jmp 0x56a5c7
jmp 0x56acce
jmp 0x56a763
jmp 0x56a6bc
jmp 0x56ab3b
jmp 0x56a327
jmp 0x56a6a5
jmp 0x56a9c9
jmp 0x56a602
jmp 0x56aa77
jmp 0x56a789
jmp 0x56a33b
jmp 0x56a76f
jmp 0x56a9ec
jmp 0x56a25d
jmp 0x56a780
jmp 0x56a6da
jmp 0x56a7fe
jmp 0x56a485
jmp 0x56a2a4
jmp 0x56a347
jmp 0x56aaad
jmp 0x56a642
jmp 0x56a7b9
jmp 0x56a478
jmp 0x56a30c
jmp 0x56a3e2
jmp 0x56a73f
jmp 0x56a209
jmp 0x56a4b0
jmp 0x56a2ca
jmp 0x56aa65
jmp 0x56ab27
jmp 0x56abf5
jmp 0x56aca3
jmp 0x56aad3
jmp 0x56abc7
jmp 0x56a5b2
jmp 0x56a9de
jmp 0x56a908
jmp 0x56a578
jmp 0x56aa6e
jmp 0x56a859
jmp 0x56a966
jmp 0x56a56a
jmp 0x56a512
jmp 0x56aa34
jmp 0x56a92b
jmp 0x56aabb
jmp 0x56ac31
jmp 0x56a3d9
jmp 0x56a1cd
Function at 0x575f8a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57c8e0]
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.00573a9f
mov dword [ebp - 0x14], eax
cmp dword [0x57e2a8], edi
jne 0x57607b
push 0x800
push edi
push 0x402ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x576008
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x57615b
push 0x402ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x57615b
push 0x402af0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x57615b
push eax
call ebx
push 0x402afc
push esi
mov dword [0x57e2a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402b0c
push esi
mov dword [0x57e2ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402b20
push esi
mov dword [0x57e2b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x57e2b8], eax
test eax, eax
je 0x576078
push 0x402b3c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x57e2b4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5760a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x576093
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5760b5
push 4
pop eax
jmp 0x57615d
cmp dword [ebp - 0x14], edi
je 0x5760b5
push dword [0x57e2a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x57609a
mov eax, dword [0x57e2b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x576113
cmp dword [0x57e2b8], esi
je 0x576113
push eax
call ebx
push dword [0x57e2b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x576113
test eax, eax
je 0x576113
call ecx
test eax, eax
je 0x576108
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 0x576108
test byte [ebp - 8], 1
jne 0x576113
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x576143
mov eax, dword [0x57e2ac]
cmp eax, esi
je 0x576140
push eax
call ebx
test eax, eax
je 0x576140
call eax
mov edi, eax
test edi, edi
je 0x576140
mov eax, dword [0x57e2b0]
cmp eax, esi
je 0x576140
push eax
call ebx
test eax, eax
je 0x576140
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x57e2a8]
call ebx
test eax, eax
je 0x57615b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x57615d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056fbbe
leave
ret
Function at 0x405486
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
push 0x40889c
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jle 0x4054f6
call fcn.00403ced
mov ecx, eax
push ecx
push 0x40869c
call sub.kernel32.dll_lstrcpyA
push str.binCfg.link
push 0x40869c
call sub.kernel32.dll_lstrcatA
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
push 0x40869c
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0x40889c
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
popal
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x10a96c37
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x71ba5655
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x44927aa1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6d5a3a82
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x74
push 0
push 0x424da8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x424dac], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x424da8], eax
mov eax, str.English
mov dword [0x424dbc], eax
call fcn.004194b0
call fcn.004190f4
call fcn.00418c3f
call fcn.00417e55
call fcn.00417887
call fcn.00417150
call fcn.004167bd
call fcn.0040e497
call fcn.0040dfc0
call fcn.0040dbb0
call fcn.0040bcec
call fcn.0040b590
call fcn.0040aaaf
call fcn.0040a9af
call fcn.0040a67e
call fcn.004088f7
call fcn.00404890
call fcn.0040475b
call fcn.0040456d
call fcn.00404478
call fcn.004042d4
push 0xffffdf
call sub.GDI32.dll_CreateSolidBrush
mov dword [0x424db4], eax
mov dword [0x424ddc], 0
push 0x424dec
push 0x41c02c
push 8
push 9
push 4
call fcn.0041911d
push 0x424df4
push 0x41c02c
push 8
push 4
push 4
call fcn.0041911d
push 0x424dfc
push 0x41c02c
push 8
push 0x33
push 4
call fcn.0041911d
push 0x424e04
push 0x41c02c
push 8
push 2
push 4
call fcn.0041911d
mov ebp, 0x41c034
mov ebx, ebp
add ebx, 0xfffff000
mov dword [0x424dc4], ebx
mov ebx, dword [0x424dc4]
add ebx, 0x2a1f
mov dword [0x424dd0], ebx
mov ebx, dword [0x424dc4]
add ebx, 0x1770
mov dword [0x424de4], ebx
push 0x40
call fcn.0040e020
mov dword [0x424dd4], eax
push 0x424e0c
push 0
push 0x15
push 7
push 4
call fcn.0041911d
push 0x424e14
push 0
push 0x15
push 1
push 4
call fcn.0041911d
call fcn.00402f5c
call fcn.0040233d
call fcn.00402955
call fcn.00408a8d
mov dword [0x424dd8], eax
push dword [0x424dd8]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x401241
call fcn.004179a1
mov dword [0x424dcc], eax
call fcn.004179b0
mov dword [0x424db0], eax
mov ebx, dword [0x424dcc]
cmp ebx, 0x13
jne 0x401214
call fcn.00401d44
jmp 0x40123f
mov ebx, dword [0x424dcc]
cmp ebx, 0x14
jne 0x401232
push dword [0x4254a8]
call fcn.0040317f
pop dword [0x4254a8]
jmp 0x40123f
mov ebx, dword [0x424dcc]
cmp ebx, 0x15
jne 0x40123f
jmp 0x4012b8
jmp 0x4012b2
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x401285
call fcn.004179bf
mov ebx, eax
cmp ebx, 1
jne 0x401283
mov edx, dword [0x4254a8]
push edx
push edx
push dword [0x4254a8]
push 0x12
call fcn.00404936
mov edx, dword [0x423648]
add dword [esp], edx
call fcn.00419079
pop dword [0x4254a8]
jmp 0x4012b2
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x4012b2
call fcn.004179ce
mov dword [0x424dc0], eax
mov ebx, dword [0x424dc0]
and ebx, ebx
jne 0x4012b2
push 0
call fcn.0040885a
add esp, 4
jmp 0x4012b8
pop eax
jmp 0x4011d4
push 0
call 0x4012d7
call fcn.00419500
push dword [0x424da8]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00404292
call fcn.0040474f
call fcn.0040483a
call fcn.004088d4
call fcn.0040a671
call fcn.0040a9a3
call fcn.0040dbd0
call fcn.0041684b
call fcn.00416952
call fcn.00417140
call fcn.00417869
call fcn.0041841a
call fcn.00418c2e
call fcn.0040dfb0
ret
Function at 0x40434f
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4043e7
push edi
push 0x4254b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x424e24]
test edi, edi
je 0x4043bb
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4043b4
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x424e24
call fcn.00418bbf
pop ecx
pop ecx
jmp 0x4043b6
mov edi, dword [edi]
test edi, edi
jne 0x40438b
pop ebx
mov eax, dword [0x42364c]
mov esi, eax
inc eax
push 0x10
push 0x424e24
mov dword [0x42364c], eax
call fcn.00418bff
pop ecx
pop ecx
push 0x4254b0
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4043ef
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00404303
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x4254b0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x424e24]
jmp 0x404420
cmp dword [esi + 0xc], edi
je 0x404426
mov esi, dword [esi]
test esi, esi
jne 0x404419
jmp 0x40443e
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x424e24
call fcn.00418bbf
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x404936
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x425520]
call fcn.00418484
mov ebx, eax
test ebx, ebx
je 0x40499a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40495f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40499a
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00419740
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00419810
pop edi
pop esi
pop ebx
ret 8

Function at 0x404d58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x404d72
inc esi
push 2
call edi
test bx, ax
je 0x404d7e
or esi, 2
push 4
call edi
test bx, ax
je 0x404d8a
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40536c
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4053a4
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x405489
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x405489
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4054b7
test ebp, ebp
jle 0x4054b7
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4054b7
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x405480
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x40542a
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x40543f
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4054b7
cmp dword [edi + 0x10], ebx
je 0x4054a3
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4054b7
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [esp + 0x10], 0
je 0x4054c7
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4054cf
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00407d60
push eax
call fcn.0040894f
push dword [0x424efc]
mov dword [esp + 0x24], eax
call fcn.00418658
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x405543
inc ebx
push 0x12
call esi
test di, ax
je 0x40554f
or ebx, 2
push 0x11
call esi
test di, ax
je 0x40555b
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00404d58
push 0x4055b0
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.00417a4a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x409675
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x409708
push 9
call esi
test al, al
jns 0x409708
push 0x11
call esi
test al, al
js 0x409708
push 0x10
call esi
test al, al
js 0x409708
push 0x12
call esi
test al, al
js 0x409708
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4096ea
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x409708
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x409708
xor eax, eax
jmp 0x409789
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x409730
push 0x11
call esi
test al, al
js 0x409728
push 0x10
call esi
test al, al
js 0x409728
push 0x12
call esi
test al, al
jns 0x409730
push 1
push edi
call fcn.00409791
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x409746
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x409786
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x409786
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x409786
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x409786
lea eax, [esi - 1]
push eax
push dword [0x425530]
call fcn.00418484
test eax, eax
je 0x409786
mov eax, dword [eax + 8]
jmp 0x409788
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a67e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x42538c], eax
test eax, eax
je 0x40a6ac
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x425388], eax
lea eax, [ebp - 0x114]
mov dword [0x425390], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a70e
cmp dword [ebp - 0x104], 1
jne 0x40a6e3
and dword [0x425390], 0
jmp 0x40a726
cmp dword [ebp - 0x104], 2
jne 0x40a70e
cmp dword [ebp - 0x110], 5
jb 0x40a6da
jne 0x40a70e
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x425390]
mov dword [0x425390], eax
jmp 0x40a713
mov eax, dword [0x425390]
test eax, eax
je 0x40a726
call fcn.0040a230
neg eax
sbb eax, eax
and dword [0x425390], eax
mov esp, ebp
pop ebp
ret
Function at 0x40bc80
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40bcb2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bcad
cmp dword [esp + 0xc], esi
je 0x40bcc9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x41439c
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x414452
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x414432
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x41440d
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x414447
add edi, dword [esp + 0x14]
jmp 0x41444b
add edi, dword [esp + 0x24]
test edx, edx
jne 0x4143eb
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x41475d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x414837
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x41480d
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x4147d5
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x414824
add edi, ecx
jmp 0x414828
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x4147ab
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x414e57
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x414f0c
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x414eed
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x414ec8
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x414f02
add edx, dword [esp + 0x14]
jmp 0x414f06
add edx, dword [esp + 0x24]
test esi, esi
jne 0x414ea6
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24