joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2238
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d227a
call fcn.004e78e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d227a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d2271
xor eax, eax
jmp 0x4d2282
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d2288
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d49c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004e78e1
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d49f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004d4a08
pop edi
pop esi
pop ebx
ret 8

Function at 0x4da028
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4fa958
call fcn.004a920c
push ecx
push ecx
push esi
push 0x10
call fcn.004d333d
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4da075
mov ecx, esi
call fcn.004d50dc
mov eax, dword [0x530a90]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004d3954
jmp 0x4da077
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x51ffd8
push eax
mov dword [ebp - 0x10], esi
call fcn.004a96d0
pop esi

Function at 0x4e5a23
Capabilities:
Create http request

Disassembly:
mov eax, 0x4fa6d0
call fcn.004a920c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4e5a50
call fcn.004e78e1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4e5a75
push eax
push dword [esi + 4]
call fcn.004e6701
jmp 0x4e5a81
push esi
push eax
mov ecx, 0x5397c0
call fcn.004e5a92
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4e5bf2
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4fa70b
call fcn.004a920c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004d68de
mov eax, dword [0x530a90]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5397c0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004e5a92
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004d3954
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a2283
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004d3904
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004d37cb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4e6cae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004e78e1
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4e6ceb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e6ceb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4e6cef
xor eax, eax
jmp 0x4e6d6d
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004d333d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4e6d27
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4e6d11
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004e6e5e
push ebx
mov edi, eax
call fcn.004d3366
test edi, edi
pop ecx
je 0x4e6d69
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004e6c27
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004e6d72
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x408068
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.00410c20
push ebx
push esi
xor ebx, ebx
test byte [0x416a8c], 1
push edi
jne 0x40809b
or dword [0x416a8c], 1
push 0x410cdf
mov dword [0x416a88], ebx
call fcn.00410904
pop ecx
push 0x1fe
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call sub.msvcrt.dll_memset
mov esi, 0x10fe
push esi
lea eax, [ebp - 0x1623]
push ebx
push eax
mov byte [ebp - 0x1624], bl
call sub.msvcrt.dll_memset
push 0x21fc
lea eax, [ebp - 0x3822]
push ebx
push eax
mov word [ebp - 0x3824], bx
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x1624]
push 0x413090
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x3824]
push eax
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x1624]
push eax
push ebx
push ebx
call esi
push 0xff
lea eax, [ebp - 0x524]
push eax
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov eax, dword [0x416a78]
cmp eax, ebx
jne 0x40814a
push str.NetRemoteTOD
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a78], eax
je 0x408159
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x408280
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x3c
sub ecx, dword [eax + 0x18]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, ecx, 0x3c
lea eax, [ecx + eax + 0x43]
cmp eax, ebx
jge 0x408185
add eax, 0x15180
jmp 0x408190
mov ecx, 0x15180
cmp eax, ecx
jl 0x408190
sub eax, ecx
imul eax, eax, 0x3e8
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3824]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
je 0x40822a
push 0x104
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
push 0x207
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.004028de
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.004021c8
mov eax, esi
push str.admin__
push eax
call sub.msvcrt.dll_strcat
add esp, 0x2c
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [0x416a74]
cmp eax, ebx
jne 0x408246
push str.NetScheduleJobAdd
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a74], eax
je 0x40825b
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x40825e
or edi, 0xffffffff
mov eax, dword [0x416a7c]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x40827d
push str.NetApiBufferFree
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a7c], eax
je 0x408280
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402c48
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 0x402c85
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 0x402ca5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004045a8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40339c
Capabilities:
Query or enumerate registry value

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

Function at 0x404130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x404191
cmp word [0x46621c], 0xd7b2
jne 0x404159
cmp dword [0x466224], 0
jbe 0x404159
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x4041b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x4041ad
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042ec
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.00402a48
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x466049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f8c
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 0x405ff2
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.004045a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ff9
lea eax, [ebp - 0x10]
call fcn.00404338
ret

Function at 0x4087e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047f8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4087fd
test al, 0x10
jne 0x408801
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b338
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 0x40b371
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404428
jmp 0x40b37a
mov eax, ebx
mov edx, esi
call fcn.0040438c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8a4
mov eax, dword [0x46594c]
cmp byte [eax], 0
je 0x40bab8
mov eax, dword [0x465760]
call fcn.00402dcc
call fcn.00402bd4
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.00408b28
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 0x40bb00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465710]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466664]
call fcn.004053f8
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 0x40c35c
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 0x40c432
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043d0
lea eax, [ebp - 8]
call fcn.00404848
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c41c
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c415
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.004047f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c3ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c444
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c3ff
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 0x40c41c
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c439
lea eax, [ebp - 8]
call fcn.00404338
ret

Function at 0x40ca04
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 0x40ca68
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.004045a8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408464
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6f
lea eax, [ebp - 0xc]
call fcn.00404338
ret

Function at 0x419fd4
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.00419e2c
dec esi
jne 0x419ff6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41b138
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466888
cmp dword [edi], 0
jne 0x41b1b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4643ec
mov ecx, 2
call fcn.00402ce0
mov edx, 0x41b110
lea eax, [esi + 5]
call fcn.0041b130
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b130
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 0x41b189
mov dword [0x466884], 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 0x41c658
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 0x41c65e
ret

Function at 0x41eadc
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 0x41eb2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41eb14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41eb04
jmp 0x41eb2d
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 0x41eb15
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4298f4
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 0x429840
call sub.user32.dll_EnumWindows
ret

Function at 0x429a14
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 0x429a91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429474
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 0x429a39
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429074
cmp dword [ebp - 4], 0
je 0x429a7b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004047f8
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 0x429a98
lea eax, [ebp - 4]
call fcn.00404338
ret

Function at 0x42c734
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 [0x466b58], 0
je 0x42c883
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4658ec]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42c883
mov eax, dword [0x466b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x466b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42c852
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x466b58]
call fcn.00414200
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42c84a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42c84a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42c84a
mov eax, dword [ebp - 0x14]
call fcn.00435298
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42c84a
push ebp
call fcn.0042c6f0
pop ecx
test al, al
jne 0x42c84a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42c806
mov eax, dword [ebp - 0x14]
call fcn.00433dc8
dec eax
jle 0x42c84a
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.00403730
cmp byte [ebp - 1], 0
je 0x42c84a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42c84a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x466b5c]
call fcn.0042bebc
inc edi
dec ebx
jne 0x42c799
mov eax, dword [0x466b5c]
cmp dword [eax + 8], 0
jle 0x42c86a
mov eax, dword [0x466b5c]
call fcn.0042bf4c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42c883
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042c558
pop ecx
test al, al
jne 0x42c883
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 0x42fe1c
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 0x42fe68
mov eax, esi
call fcn.004452cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42fe68
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42fe68
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 0x42ffa7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42fea8
cmp eax, 0x108
ja 0x42fea8
mov eax, esi
call fcn.004452cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ff9e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42ffa7
jmp 0x42ff9e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42ff87
cmp eax, 0x20a
ja 0x42ff87
test byte [esi + 0x50], 0x80
jne 0x42feda
sub eax, 0x203
je 0x42fed7
sub eax, 3
je 0x42fed7
sub eax, 3
jne 0x42feda
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42feee
dec eax
je 0x42ff03
dec eax
je 0x42ff20
dec eax
je 0x42ff03
jmp 0x42ff27
mov ecx, ebx
mov eax, dword [0x4658ec]
mov eax, dword [eax]
mov edx, esi
call fcn.0044eb94
jmp 0x42ff9e
cmp byte [esi + 0x5d], 1
jne 0x42ff19
mov eax, esi
mov si, 0xffed
call fcn.00403730
jmp 0x42ffa7
or word [esi + 0x54], 1
jmp 0x42ff9e
and word [esi + 0x54], 0xfffe
jmp 0x42ff9e
mov eax, dword [0x466b14]
cmp byte [eax + 0x20], 0
je 0x42ff9e
mov eax, dword [0x466b14]
cmp dword [eax + 0x1c], 0
je 0x42ff9e
mov eax, dword [ebx]
mov edx, dword [0x466b14]
cmp eax, dword [edx + 0x1c]
jne 0x42ff9e
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.00445210
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.00403730
jmp 0x42ffa7
cmp eax, 0xb00b
jne 0x42ff9e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042e784
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