joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a7e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x42a7fc
cmp dword [esi + 4], 0
je 0x42a829
test byte [ebx + 0x45], 1
jne 0x42a81b
mov eax, ebx
call fcn.00429718
test eax, eax
jne 0x42a81b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42a939
mov edx, esi
mov eax, ebx
call fcn.0042a458
jmp 0x42a939
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42a932
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042c7b0
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042767c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042a7e0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042c7b0
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a939
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43c30c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43c345
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004418f0
jmp 0x43c34e
mov eax, ebx
mov edx, esi
call fcn.0044185c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43c358
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
test eax, eax
jle 0x43c379
mov al, byte [esp]
jmp 0x43c37b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44092c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x44095b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004418f0
jmp 0x440979
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004408b4
mov edi, eax
test ebx, ebx
je 0x440979
cmp dword [esi], 0
je 0x440979
dec ebx
jmp 0x440962
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x440c28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44f180]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x440cc0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x440ca0
xor eax, eax
push ebp
push 0x440c99
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 0x440cdc
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 0x440ca0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x44f180]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44f180], ax
mov esp, ebp
pop ebp
ret
Function at 0x442d14
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x442ed0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x442d75
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x442eec
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x442de7
xor eax, eax
push ebp
push 0x442de0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00442b6c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x442dc9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x442f0c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442de7
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x442ec8
cmp byte [ebp - 0xd], 0
jne 0x442e29
cmp byte [ebp - 0x12], 0
je 0x442ec8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x442e42
dec ebx
cmp byte [ebx], 0x2e
je 0x442e51
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x442e41
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x442ec8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x442e7e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x442ec8
cmp byte [ebp - 0xd], 0
je 0x442ec8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x442ec8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4432bc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4433a4
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x452fc4], 1
jae 0x443396
xor eax, eax
mov dword [0x452bd0], eax
xor eax, eax
mov dword [0x452bd8], eax
xor eax, eax
mov dword [0x452bdc], eax
mov byte [0x452be2], 2
mov byte [0x452be3], 2
mov byte [0x452be4], 3
mov word [0x452f8c], 0
mov word [0x452f9c], 1
mov word [0x452fac], 0xa
mov dword [0x452fb4], 0x80020004
mov dword [0x452f80], 0x4424a8
mov dword [0x452f84], 0x4424a0
mov dword [0x452f88], 0x4424a8
call fcn.00440bf8
test al, al
je 0x443355
call fcn.00440c28
call fcn.00440cec
mov eax, 0x452be8
mov edx, 0x4433b0
call fcn.0043e43e
mov eax, 0x452db4
mov edx, 0x4433b0
call fcn.0043e43e
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x452bc8], eax
call fcn.0043f3a4
mov dword [0x452bc4], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x452bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4433ab
ret

Function at 0x447af8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x447b5a
call fcn.00447aa8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00443e7c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00443e7c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x447bd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x450d64], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x447cb2
cmp dword [0x450d60], 0
jne 0x447cb2
cmp dword [0x450f44], 0
je 0x447c6c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004479a8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x447c52
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004479a8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x447c52
lea ebx, [ebp - 0x84]
jmp 0x447c53
inc ebx
call fcn.00447b94
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x447ced
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x450d68
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00443e7c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x450d6b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x447ced
cmp dword [0x450d60], 0
je 0x447ccc
cmp dword [0x450d60], 0xffffffff
je 0x447ced
push esi
call dword [0x450d60]
pop ecx
mov eax, dword [0x450d64]
test eax, eax
je 0x447ced
cmp dword [0x450d64], 0xffffffff
je 0x447ced
cmp byte [eax], 0
je 0x447ced
push esi
push eax
call fcn.00447af8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448484
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4538cc], 0
jne 0x448505
cmp dword [0x4538ec], 0
jne 0x4484b4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4538ec], eax
test eax, eax
jne 0x4484b4
push str.GetEnvironmentStrings_failed
call fcn.00447d04
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4538ec]
jmp 0x4484c8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00443e7c
pop ecx
mov edi, eax
test eax, eax
jne 0x4484c0
lea edi, [ebp + 1]
push edi
call fcn.004438e0
pop ecx
mov ebx, eax
mov dword [0x4538d0], ebx
test ebx, ebx
jne 0x4484f2
xor eax, eax
jmp 0x4485c8
push edi
mov edx, dword [0x4538ec]
push edx
push ebx
call fcn.00443d2c
add esp, 0xc
jmp 0x448525
xor esi, esi
mov ebx, dword [0x4538cc]
jmp 0x44851f
push eax
call fcn.00443e7c
pop ecx
test eax, eax
jne 0x44851b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44850f
lea ebx, [esi + 4]
push 4
mov dword [0x4538d4], ebx
inc ebx
push ebx
call fcn.004433bc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x448548
xor eax, eax
jmp 0x4485c8
cmp dword [0x4538cc], 0
jne 0x448579
xor esi, esi
mov ebx, dword [0x4538d0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44856a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00443e7c
pop ecx
mov edi, eax
test eax, eax
jne 0x448560
jmp 0x4485aa
xor esi, esi
mov ebx, dword [0x4538cc]
mov eax, dword [esp]
mov edi, eax
jmp 0x4485a4
push eax
call fcn.00443e7c
pop ecx
test eax, eax
je 0x448599
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44859d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x448588
mov eax, dword [0x4538cc]
test eax, eax
je 0x4485ba
push eax
call fcn.004438f0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4538cc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405e70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405ed6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040448c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ec0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405edd
lea eax, [ebp - 0x10]
call fcn.0040421c
ret

Function at 0x40afe4
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 0x40b01d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040430c
jmp 0x40b026
mov eax, ebx
mov edx, esi
call fcn.00404270
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b030
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 0x40b051
mov al, byte [esp]
jmp 0x40b053
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b6e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b550
mov eax, dword [0x4668dc]
cmp byte [eax], 0
je 0x40b764
mov eax, dword [0x466704]
call fcn.00402d34
call fcn.00402bb4
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.004087d4
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 0x40b7ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b79a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4666b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x467664]
call fcn.004052dc
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 0x41a970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x467884
cmp dword [esi], 0
jne 0x41aa16
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x467880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4653ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a948
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a968
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a968
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41a9dd
mov eax, dword [ebp - 8]
mov dword [0x467880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bf54
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 0x41bf5a
ret

Function at 0x41e420
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e471
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e458
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e448
jmp 0x41e471
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e459
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a930
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42a87c
call sub.user32.dll_EnumWindows
ret

Function at 0x42aa50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42aacd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042a4b0
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42aa75
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042a0b0
cmp dword [ebp - 4], 0
je 0x42aab7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046dc
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aad4
lea eax, [ebp - 4]
call fcn.0040421c
ret

Function at 0x42d8f4
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 - 9]
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 [0x467ae8], 0
je 0x42da43
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46687c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42da43
mov eax, dword [0x467aec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x467ae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42da12
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x467ae8]
call fcn.00413e5c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42da0a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42da0a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42da0a
mov eax, dword [ebp - 0x14]
call fcn.00436560
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42da0a
push ebp
call fcn.0042d8b0
pop ecx
test al, al
jne 0x42da0a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d9c6
mov eax, dword [ebp - 0x14]
call fcn.00435090
dec eax
jle 0x42da0a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403698
cmp byte [ebp - 1], 0
je 0x42da0a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42da0a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x467aec]
call fcn.0042d07c
inc edi
dec ebx
jne 0x42d959
mov eax, dword [0x467aec]
cmp dword [eax + 8], 0
jle 0x42da2a
mov eax, dword [0x467aec]
call fcn.0042d10c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42da43
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042d718
pop ecx
test al, al
jne 0x42da43
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 0x431028
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x431074
mov eax, esi
call fcn.00446754
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431074
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x431074
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4311b3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4310b4
cmp eax, 0x108
ja 0x4310b4
mov eax, esi
call fcn.00446754
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4311aa
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4311b3
jmp 0x4311aa
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431193
cmp eax, 0x20a
ja 0x431193
test byte [esi + 0x50], 0x80
jne 0x4310e6
sub eax, 0x203
je 0x4310e3
sub eax, 3
je 0x4310e3
sub eax, 3
jne 0x4310e6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4310fa
dec eax
je 0x43110f
dec eax
je 0x43112c
dec eax
je 0x43110f
jmp 0x431133
mov ecx, ebx
mov eax, dword [0x46687c]
mov eax, dword [eax]
mov edx, esi
call fcn.00450058
jmp 0x4311aa
cmp byte [esi + 0x5d], 1
jne 0x431125
mov eax, esi
mov si, 0xffed
call fcn.00403698
jmp 0x4311b3
or word [esi + 0x54], 1
jmp 0x4311aa
and word [esi + 0x54], 0xfffe
jmp 0x4311aa
mov eax, dword [0x467aa4]
cmp byte [eax + 0x20], 0
je 0x4311aa
mov eax, dword [0x467aa4]
cmp dword [eax + 0x1c], 0
je 0x4311aa
mov eax, dword [ebx]
mov edx, dword [0x467aa4]
cmp eax, dword [edx + 0x1c]
jne 0x4311aa
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00446698
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403698
jmp 0x4311b3
cmp eax, 0xb00b
jne 0x4311aa
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042f958
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret