joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1039318
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
cmp dword [esp + 0xc], ebp
jne 0x1039328
xor eax, eax
jmp 0x103938c
push edi
push esi
push 0x1d9
push 0x1007790
push 0x40
push 0x14
call fcn.0102bb5a
mov edi, eax
cmp edi, ebp
jne 0x1039347
xor esi, esi
jmp 0x1039380
push 1
push edi
call dword [0x100101c]
mov esi, eax
cmp esi, ebp
je 0x1039380
push ebp
push ebp
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, ebp
je 0x1039380
push edi
push 4
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor ecx, ecx
cmp eax, ebp
sete cl
mov dword [ebx + 0x40], eax
mov esi, ecx
push ebp
push ebp
push edi
call fcn.0102bdaf
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret 4

Function at 0x103947d
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10394cc
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 4]
test edi, edi
je 0x10394cc
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10394cc
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10394cc
push ecx
push edx
push dword [eax + 8]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ecx, ecx
mov dword [esi + 0x40], eax
test eax, eax
sete cl
mov edi, ecx
test edi, edi
je 0x10394c8
mov ecx, esi
call fcn.010390d6
mov eax, edi
jmp 0x10394ce
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x1039bf0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
je 0x1039cb7
cmp byte [ecx], al
je 0x1039cb7
and byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea edi, [esi + 4]
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.01037cb7
mov ebx, 0x1001f84
mov ecx, edi
push ebx
call fcn.01037dec
push dword [ebp + 8]
mov ecx, edi
call fcn.01037dec
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call fcn.0103e720
test eax, eax
mov dword [esi + 0x24], eax
je 0x1039cb7
push 0x522
push 0x1007790
push 0x40
push eax
call fcn.0102bb5a
test eax, eax
mov dword [esi + 0x20], eax
je 0x1039cb7
push eax
push dword [esi + 0x24]
push 0
push dword [esi + 8]
call fcn.0103e71a
test eax, eax
jne 0x1039ca6
mov ecx, esi
call fcn.01039cbe
jmp 0x1039cb7
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x28]
push eax
push ebx
push dword [esi + 0x20]
call fcn.0103e714
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1039de1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
push edi
mov esi, ecx
jne 0x1039df9
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov dword [esi + 4], eax
cmp eax, edi
je 0x1039ebd
lea ecx, [ebp - 0x1c]
call fcn.01037a1e
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp eax, edi
jne 0x1039e1d
mov eax, 0x10015b4
push eax
lea eax, [ebp - 0x1c]
push 0x1003364
push eax
call fcn.010383ab
add esp, 0xc
lea eax, [ebp + 0xc]
push edi
push edi
push eax
push 0x409
push dword [esi + 4]
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0xc], edi
je 0x1039e90
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.01037dec
mov eax, dword [ebp - 0x10]
cmp eax, 2
jb 0x1039e87
mov ecx, dword [ebp - 0x18]
push 0x1003360
lea eax, [eax + ecx - 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
test eax, eax
jne 0x1039e87
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffffe
push eax
call fcn.01037dcf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RtlUnwind]
push dword [esi + 4]
lea eax, [ebp - 0x1c]
push 0x1003354
push eax
call fcn.01038351
add esp, 0xc
push dword [ebp - 0x18]
push 0xff
push esi
call fcn.01039fe8
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.01037a70
xor eax, eax
cmp dword [esi + 4], edi
pop edi
pop esi
sete al
leave
ret 8

Function at 0x1039ecb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp eax, 0xffffffff
mov edi, ecx
jne 0x1039ee1
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov dword [edi + 4], eax
cmp eax, ebx
je 0x1039f5d
push ebx
lea ecx, [ebp + 0xc]
push ebx
push ecx
push 0x409
push eax
push ebx
push 0x1100
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0xc], ebx
mov esi, dword [ebp + 8]
je 0x1039f4c
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01037cb7
mov eax, dword [esi + 0xc]
cmp eax, 2
jb 0x1039f43
mov ecx, dword [esi + 4]
push 0x1003360
lea eax, [ecx + eax - 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
test eax, eax
jne 0x1039f43
mov eax, dword [esi + 0xc]
mov ecx, esi
dec eax
dec eax
push eax
call fcn.01037dcf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RtlUnwind]
push dword [edi + 4]
push 0x1003354
push esi
call fcn.01038351
add esp, 0xc
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop esi
sete al
pop ebx
pop ebp
ret 8
Function at 0x103a08a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, dword [0x10012b0]
push edi
xor edi, edi
push 1
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
call esi
test eax, eax
je 0x103a106
lea eax, [ebp - 0x1c]
push eax
call dword [0x10012b4]
lea eax, [ebp - 0x1c]
push eax
call dword [0x10012b8]
cmp dword [ebp - 0x18], 0x12
jne 0x103a0fb
lea ecx, [ebp - 0x38]
call fcn.01037a1e
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push eax
lea eax, [ebp - 0x38]
push 0x100788c
push eax
call fcn.010383ab
add esp, 0x10
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileType]
lea ecx, [ebp - 0x38]
call fcn.01037a70
push 1
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
jmp 0x103a0a3
pop edi
pop esi
leave
ret

Function at 0x103ad04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.01037a1e
mov edi, dword [ebp + 8]
push 2
xor ebx, ebx
push 0x10075cc
push edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 1
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
test eax, eax
jne 0x103ad44
add edi, 2
push edi
lea ecx, [ebp - 0x1c]
call fcn.01037cb7
mov edi, dword [0x10011c8]
push 0x5c
push dword [ebp - 0x18]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x103adaa
lea eax, [ebp - 0x120]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea eax, [ebp - 0x120]
push 0x5c
push eax
call edi
pop ecx
cmp eax, ebx
pop ecx
je 0x103ad87
mov byte [eax + 1], bl
cmp byte [ebp - 0x120], bl
je 0x103adaa
push 1
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.01037f68
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x1c]
push eax
call fcn.01037eb1
mov eax, dword [ebp - 0x10]
mov ebx, 0x10078f0
push 0x4c
push ebx
inc eax
push 0x40
push eax
call fcn.0102bb5a
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
push eax
call edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x53
push ebx
inc eax
push 0x40
push eax
call fcn.0102bb5a
push dword [ebp + 0xc]
mov dword [esi + 0xc], eax
push eax
call edi
lea ecx, [ebp - 0x1c]
call fcn.01037a70
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x103ae1d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [ebp - 0x14]
push dword [esi + 8]
push 0x10
push eax
push 0x10015b4
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x103ae51
push dword [ebp + 8]
mov ecx, esi
call fcn.0103af4d
cmp dword [ebp + 0xc], 8
je 0x103ae6b
cmp dword [ebp + 0xc], 0x10
je 0x103ae64
mov eax, 0x1003874
jmp 0x103ae70
mov eax, 0x1007928
jmp 0x103ae70
mov eax, 0x1007924
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [0x10011fc]
add esp, 0xc
test eax, eax
jne 0x103ae89
and dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x103ae91
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
push dword [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x10015b4
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x103aecb
push dword [ebp + 8]
mov ecx, esi
call fcn.0103af4d
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x103af95
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ecx + 8]
lea eax, [ebp - 0x108]
push 0x105
push eax
push 0x10015b4
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 4

Function at 0x103b035
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
push 1
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
pop ecx
mov dword [esi + 0x20], eax
push edi
push edi
mov eax, 0x3e8
push ecx
push edi
mov dword [esi + 4], edi
mov dword [esi + 0xbc], ecx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0x19000
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x74], 0xea60
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x2c], eax
call ebx
cmp dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
je 0x103b0fb
cmp eax, edi
jne 0x103b102
mov dword [esi + 4], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [esi + 0x34]
push eax
call edi
add esi, 0x4c
push esi
call edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x103b11a
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x103b131
push eax
call edi
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x103b13b
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esi + 0x34]
push eax
call edi
lea eax, [esi + 0x4c]
push eax
call edi
push ebx
push ebx
push dword [esi + 0x64]
call fcn.0102bdaf
mov ecx, dword [esi + 0xa4]
lea edi, [esi + 0xa4]
cmp ecx, ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
je 0x103b176
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xa0]
add esi, 0xa0
cmp ecx, ebx
mov dword [edi], ebx
je 0x103b18e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x103b6ec
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x34]
xor edi, edi
lea ebx, [esi + 0xe0]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0x108]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0xe4]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0x10c]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0xec]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0x114]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0xf4]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov dword [ebx], edi
lea ebx, [esi + 0x11c]
push edi
push edi
push dword [ebx]
call fcn.0102bdaf
mov ecx, dword [esi + 0x12c]
mov dword [ebx], edi
lea ebx, [esi + 0x12c]
cmp ecx, edi
je 0x103b797
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x100]
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebx], edi
lea ebx, [esi + 0x100]
cmp eax, edi
je 0x103b7b4
push eax
call ebp
mov dword [ebx], edi
mov eax, dword [esi + 0x128]
add esi, 0x128
cmp eax, edi
je 0x103b7c9
push eax
call ebp
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40868c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086a5
test al, 0x10
jne 0x4086a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409720
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 0x409759
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x409762
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409e14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409c8c
mov eax, dword [0x46574c]
cmp byte [eax], 0
je 0x409e7c
mov eax, dword [0x4655a0]
call fcn.00402c5c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408958
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x409ec4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409eb2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465560]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466714]
call fcn.00405950
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 0x40aa14
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 0x40aa78
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.0040449c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408480
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa7f
lea eax, [ebp - 0xc]
call fcn.00404234
ret
Function at 0x41c61c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466a20
cmp dword [edi], 0
jne 0x41c698
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4644bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c5f4
lea eax, [esi + 5]
call fcn.0041c614
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c614
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 0x41c66d
mov dword [0x466a1c], 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 0x41db34
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 0x41db3a
ret

Function at 0x41ff90
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 0x41ffe1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ffc8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ffb8
jmp 0x41ffe1
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 0x41ffc9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429ef4
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 0x429e40
call sub.user32.dll_EnumWindows
ret

Function at 0x42a018
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 0x42a095
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429a64
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 0x42a03d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004296bc
cmp dword [ebp - 4], 0
je 0x42a07f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046e4
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 0x42a09c
lea eax, [ebp - 4]
call fcn.00404234
ret

Function at 0x42cd74
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 [0x466ba8], 0
je 0x42cec3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4656f4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42cec3
mov eax, dword [0x466bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x466ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42ce92
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x466ba8]
call fcn.00413c98
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ce8a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ce8a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ce8a
mov eax, dword [ebp - 0x14]
call fcn.004357a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ce8a
push ebp
call fcn.0042cd30
pop ecx
test al, al
jne 0x42ce8a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ce46
mov eax, dword [ebp - 0x14]
call fcn.00434338
dec eax
jle 0x42ce8a
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.004036c4
cmp byte [ebp - 1], 0
je 0x42ce8a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ce8a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x466bac]
call fcn.0042c4f8
inc edi
dec ebx
jne 0x42cdd9
mov eax, dword [0x466bac]
cmp dword [eax + 8], 0
jle 0x42ceaa
mov eax, dword [0x466bac]
call fcn.0042c588
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42cec3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042cb98
pop ecx
test al, al
jne 0x42cec3
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 0x430470
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 0x4304bc
mov eax, esi
call fcn.00445d28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4304bc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4304bc
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 0x430600
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4304fc
cmp eax, 0x108
ja 0x4304fc
mov eax, esi
call fcn.00445d28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4305f7
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x430600
jmp 0x4305f7
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4305de
cmp eax, 0x20a
ja 0x4305de
test byte [esi + 0x50], 0x80
jne 0x43052e
sub eax, 0x203
je 0x43052b
sub eax, 3
je 0x43052b
sub eax, 3
jne 0x43052e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x430542
dec eax
je 0x430557
dec eax
je 0x430577
dec eax
je 0x430557
jmp 0x43057e
mov ecx, ebx
mov eax, dword [0x4656f4]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f35c
jmp 0x4305f7
cmp byte [esi + 0x5d], 1
jne 0x43056d
mov eax, esi
mov si, 0xffed
call fcn.004036c4
jmp 0x430600
or word [esi + 0x54], 1
jmp 0x4305f7
and word [esi + 0x54], 0xfffe
jmp 0x4305f7
mov eax, dword [0x466b64]
cmp byte [eax + 0x20], 0
je 0x4305f7
mov eax, dword [0x466b64]
cmp dword [eax + 0x1c], 0
je 0x4305f7
mov eax, dword [ebx]
mov edx, dword [0x466b64]
cmp eax, dword [edx + 0x1c]
jne 0x4305f7
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.00445c6c
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.004036c4
jmp 0x430600
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x4305f7
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042edac
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