joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7f8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40e81b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e82c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e83b
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40e848
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040571c
test eax, eax
je 0x40e875
test esi, esi
je 0x40e875
cmp word [esi], 0
je 0x40e875
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40e88c
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e8a5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e8a5
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40e90f
mov dword [ebx + 4], edi
test esi, esi
je 0x40e8da
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00410520
jmp 0x40e8e3
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e8f6
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040fd48
jmp 0x40e905
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.00410300
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e9f4
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40eb00
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40ec23
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40eb3b
dec eax
je 0x40eb25
dec eax
je 0x40eb31
jmp 0x40eb3b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40eb3b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40eb8d
xor ebp, ebp
cmp esi, ebp
jle 0x40eba9
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40eb60
mov ecx, esi
sub ecx, ebp
jmp 0x40eb65
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40eba9
add ebp, 0x4000
cmp esi, ebp
jg 0x40eb47
jmp 0x40eba9
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40ec1f
cmp byte [edi + 0x14], 0
je 0x40ec1f
cmp dword [edi + 0xc], 0
jne 0x40ec1f
lea edx, [edi + 0x17]
mov eax, 0x41b998
call fcn.0040cc84
test al, al
je 0x40ec09
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40eb3b
cmp dword [esp + 4], 0
jbe 0x40eb3b
mov eax, edi
call fcn.0040ee48
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040ed90
jmp 0x40eb3b
lea ecx, [edi + 0x17]
mov eax, 0x41b998
xor edx, edx
call fcn.0040cc6c
jmp 0x40ec1f
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ed10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40ed37
cmp esi, 0x4e20
jle 0x40ed2d
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40ed88
mov eax, ebx
call fcn.0040f050
test al, al
je 0x40ed6f
cmp esi, 0x4e20
jle 0x40ed6f
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040ed10
jmp 0x40ed8b
cmp dword [ebx + 0xc], 1
jne 0x40ed83
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40ed83
xor eax, eax
jmp 0x40ed8b
or eax, 0xffffffff
jmp 0x40ed8b
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp byte [0x41577c], 0
jne 0x4102a9
call fcn.0040fee4
mov dword [0x415778], eax
inc byte [0x41577c]
call fcn.0040fee4
sub eax, dword [0x415778]
cmp eax, 0x64
jle 0x4102e5
cmp dword [0x416188], 0
je 0x4102e0
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040ce20
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040ce18
call fcn.00402c70
ret
Function at 0x4028f8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402935
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402955
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404218
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40304c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x475020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030c4
xor eax, eax
push ebp
push 0x4030bd
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 0x403100
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 0x4030c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x475020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x475020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403da8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x477048], 0
je 0x403e09
cmp word [0x47721c], 0xd7b2
jne 0x403dd1
cmp dword [0x477224], 0
jbe 0x403dd1
mov eax, 0x477218
call dword [0x477234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475030], 0
jne 0x403e25
push 0
push 0x475064
push 0x47506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f5c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x477049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f24
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405238
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 0xf0019
push 0
push 0x405468
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405468
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405484
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405344
xor eax, eax
push ebp
push 0x40533d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405080
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405322
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405322
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405344
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40545e
cmp byte [ebp - 0xd], 0
jne 0x40538b
cmp byte [ebp - 0x12], 0
je 0x40545e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4053b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40545e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053f0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40545e
cmp byte [ebp - 0xd], 0
je 0x40545e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40545e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x405b30
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 0x405b96
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.00404218
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c10
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b9d
lea eax, [ebp - 0x10]
call fcn.00403fa8
ret

Function at 0x40ac20
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 0x40ac59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404098
jmp 0x40ac62
mov eax, ebx
mov edx, esi
call fcn.00403ffc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b314
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b18c
mov eax, dword [0x476a8c]
cmp byte [eax], 0
je 0x40b390
mov eax, dword [0x4768a0]
call fcn.00402a7c
call fcn.0040284c
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.00408494
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 0x40b3d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x476850]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x477664]
call fcn.00405044
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 0x40bc2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bd02
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404040
lea eax, [ebp - 8]
call fcn.004044b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404468
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bcec
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bce5
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 - 8]
call fcn.00404468
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bccf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bd14
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bccf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcec
mov eax, dword [ebp - 0x10]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd09
lea eax, [ebp - 8]
call fcn.00403fa8
ret

Function at 0x40c20c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c270
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404218
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c277
lea eax, [ebp - 0xc]
call fcn.00403fa8
ret

Function at 0x4197d4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00419600
dec esi
jne 0x4197f6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41a938
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x477888
cmp dword [edi], 0
jne 0x41a9b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x477884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475408
mov ecx, 2
call fcn.00402990
mov edx, 0x41a910
lea eax, [esi + 5]
call fcn.0041a930
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a930
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 0x41a989
mov dword [0x477884], 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 0x41bf30
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 0x41bf36
ret

Function at 0x41e3f0
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 0x41e441
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e428
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e418
jmp 0x41e441
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 0x41e429
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bc8c
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 0x42bbd8
call sub.user32.dll_EnumWindows
ret

Function at 0x42bdac
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 0x42be29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042b80c
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 0x42bdd1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b40c
cmp dword [ebp - 4], 0
je 0x42be13
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404468
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 0x42be30
lea eax, [ebp - 4]
call fcn.00403fa8
ret

Function at 0x42ec7c
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 [0x477b58], 0
je 0x42edcb
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x476a2c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42edcb
mov eax, dword [0x477b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x477b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42ed9a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x477b58]
call fcn.004139d4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ed92
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ed92
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ed92
mov eax, dword [ebp - 0x14]
call fcn.004378f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ed92
push ebp
call fcn.0042ec38
pop ecx
test al, al
jne 0x42ed92
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ed4e
mov eax, dword [ebp - 0x14]
call fcn.00436428
dec eax
jle 0x42ed92
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.004033d0
cmp byte [ebp - 1], 0
je 0x42ed92
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ed92
mov edx, dword [ebp - 0x14]
mov eax, dword [0x477b5c]
call fcn.0042e404
inc edi
dec ebx
jne 0x42ece1
mov eax, dword [0x477b5c]
cmp dword [eax + 8], 0
jle 0x42edb2
mov eax, dword [0x477b5c]
call fcn.0042e494
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42edcb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042eaa0
pop ecx
test al, al
jne 0x42edcb
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 0x432390
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 0x4323dc
mov eax, esi
call fcn.00447a58
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4323dc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4323dc
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 0x43251b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43241c
cmp eax, 0x108
ja 0x43241c
mov eax, esi
call fcn.00447a58
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x432512
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43251b
jmp 0x432512
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4324fb
cmp eax, 0x20a
ja 0x4324fb
test byte [esi + 0x50], 0x80
jne 0x43244e
sub eax, 0x203
je 0x43244b
sub eax, 3
je 0x43244b
sub eax, 3
jne 0x43244e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x432462
dec eax
je 0x432477
dec eax
je 0x432494
dec eax
je 0x432477
jmp 0x43249b
mov ecx, ebx
mov eax, dword [0x476a2c]
mov eax, dword [eax]
mov edx, esi
call fcn.004512ac
jmp 0x432512
cmp byte [esi + 0x5d], 1
jne 0x43248d
mov eax, esi
mov si, 0xffed
call fcn.004033d0
jmp 0x43251b
or word [esi + 0x54], 1
jmp 0x432512
and word [esi + 0x54], 0xfffe
jmp 0x432512
mov eax, dword [0x477b14]
cmp byte [eax + 0x20], 0
je 0x432512
mov eax, dword [0x477b14]
cmp dword [eax + 0x1c], 0
je 0x432512
mov eax, dword [ebx]
mov edx, dword [0x477b14]
cmp eax, dword [edx + 0x1c]
jne 0x432512
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.0044799c
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.004033d0
jmp 0x43251b
cmp eax, 0xb00b
jne 0x432512
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430ccc
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