joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40594c
Capabilities:
Get geographical location

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 0x405a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40594c
xor eax, eax
push ebp
push 0x405945
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405688
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 0x40592a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405aac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40592a
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 0x40594c
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 0x405a66
cmp byte [ebp - 0xd], 0
jne 0x405993
cmp byte [ebp - 0x12], 0
je 0x405a66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4059ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4059bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4059ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4059f8
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
salc
mov eax, 0xf08bffff
test esi, esi
jne 0x405a66
cmp byte [ebp - 0xd], 0
je 0x405a66
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 0x405a66
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 0x407e84
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x407f0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 9]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
and al, byte [ebp + 0x10]
je 0x407ef1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00408438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f13
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x407f88
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408142
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404824
cmp eax, 2
jl 0x40810f
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x408158
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, dword [ebp - 0x154]
call fcn.00404a24
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4080d6
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004047d4
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404870
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004047d4
test byte [ebp - 0x150], 0x10
je 0x40808e
mov eax, dword [ebp - 0x10]
mov edx, 0x408164
call fcn.00404970
je 0x4080be
mov eax, dword [ebp - 0x10]
mov edx, 0x408170
call fcn.00404970
je 0x4080be
lea eax, [ebp - 0x15c]
mov ecx, 0x40817c
mov edx, dword [ebp - 0xc]
call fcn.00404870
mov eax, dword [ebp - 0x15c]
call fcn.00407f88
jmp 0x4080be
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4080be
push 0x20
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40800d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x40810f
push 0x20
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408149
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404588
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x408180
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4081cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081d3
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x4082dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408408
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00407a50
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 4]
call fcn.004045fc
xor edx, edx
mov eax, 2
call fcn.00407544
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00407564
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x4083d3
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004047d4
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00407a50
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
call fcn.00404970
jne 0x4083bc
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00407584
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x408364
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40840f
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x408e18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x408eb0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xfa
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.004047d4
mov edx, dword [ebp - 8]
mov eax, 0x408ec8
call fcn.00404b68
test eax, eax
jne 0x408e95
mov edx, dword [ebp - 8]
mov eax, 0x408ed8
call fcn.00404b68
test eax, eax
jne 0x408e95
mov edx, dword [ebp - 8]
mov eax, 0x408eec
call fcn.00404b68
test eax, eax
jne 0x408e95
xor eax, eax
jmp 0x408e97
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eb7
lea eax, [ebp - 8]
call fcn.00404564
ret

Function at 0x408efc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408f5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x19]
mov ecx, 0x11
call fcn.004047d4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004079e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f64
lea eax, [ebp - 0x20]
call fcn.00404564
ret

Function at 0x408f68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408fe8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.004047d4
lea eax, [ebp - 0x110]
mov edx, 0x408ffc
call fcn.0040482c
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 4]
push ebp
cld

Function at 0x409148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a14
mov eax, dword [ebp - 0xc]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4091ee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x4686c8
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4686cc], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x4686cc], eax
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404588
ret
Function at 0x4093d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a14
mov eax, dword [ebp - 0xc]
call fcn.00404a14
xor eax, eax
push ebp
push 0x409479
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4686c8
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x4686cc], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4686cc], eax
cmp dword [0x4686cc], 0
sete byte [ebp - 0xd]
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409480
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404588
ret

Function at 0x40952c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a14
mov eax, dword [ebp - 0xc]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4095bf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x40956c
lea eax, [ebp - 0xc]
mov edx, 0x4095d8
call fcn.004045fc
mov eax, dword [ebp - 0xc]
call fcn.00404824
push eax
lea eax, [ebp - 0xc]
call fcn.00404a7c
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4686cc], eax
cmp dword [0x4686cc], 0
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095c6
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404588
ret

Function at 0x4095dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x409643
push dword fs:[eax]
invalid
invalid

Function at 0x409654
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a14
mov eax, dword [ebp - 0xc]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4096ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4686c8
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4686cc], eax
mov eax, dword [ebp - 0xc]
call fcn.00404a24
push eax
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [0x4686cc], eax
cmp dword [0x4686cc], 0
sete byte [ebp - 0xd]
mov eax, dword [0x4686c8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096f5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404588
ret
Function at 0x40eff8
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 0x40f0ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045fc
lea eax, [ebp - 8]
call fcn.00404a74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f0b8
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f0b1
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.00404a24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f09b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f0e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f09b
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 0x40f0b8
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0d5
lea eax, [ebp - 8]
call fcn.00404564
ret

Function at 0x40f54c
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 0x40f5b0
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.004047d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b3f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5b7
lea eax, [ebp - 0xc]
call fcn.00404564
ret

Function at 0x41d68c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x468d28
cmp dword [edi], 0
jne 0x41d708
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x468d24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x466520
mov ecx, 2
call fcn.0040291c
mov edx, 0x41d664
lea eax, [esi + 5]
call fcn.0041d684
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d684
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 0x41d6dd
mov dword [0x468d24], 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 0x41e91c
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 0x41e922
ret
Function at 0x420d64
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 0x420db5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420d9c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420d8c
jmp 0x420db5
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 0x420d9d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4222b4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0
je 0x4222f1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0
je 0x422909
add byte [eax], al
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x20], 0
je 0x422909
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0
jne 0x422314
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x422909
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x422909
mov eax, dword [ebp - 4]
call fcn.00421e70
xor eax, eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 4], 0
je 0x422343
lea eax, [ebp - 0x88]
push eax
push 0x54
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetObjectA
cmp eax, 0x18
jge 0x422343
call fcn.00420768
push 0
call sub.user32.dll_GetDC
call fcn.0042087c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_CreateCompatibleDC
call fcn.0042087c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x422902
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x28
jae 0x4223d8
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 0x10]
mov edx, dword [ebp + 0xc]
push ebp
or al, 0x66
or eax, dword [edx + 0x12]
mov eax, 0x42c
call fcn.00402714
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x42260c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 0x28
mov eax, dword [ebp + 0xc]
mov word [eax + 0x24], 1
mov eax, dword [ebp + 0xc]
cmp word [eax + 0x26], 0
jne 0x422433
push 0xc

Function at 0x42a2cc
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 0x42a218
call sub.user32.dll_EnumWindows
ret
Function at 0x42a3ec
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 0x42a469
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429e4c
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42a411
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429a4c
cmp dword [ebp - 4], 0
je 0x42a453
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a24
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 0x42a470
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x42d10c
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 [0x468ff4], 0
je 0x42d25b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46726c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42d25b
mov eax, dword [0x468ff8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x468ff4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42d22a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x468ff4]
call fcn.00416c5c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42d222
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42d222
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42d222
mov eax, dword [ebp - 0x14]
call fcn.00435c70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42d222
push ebp
call fcn.0042d0c8
pop ecx
test al, al
jne 0x42d222
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d1de
mov eax, dword [ebp - 0x14]
call fcn.004347a0
dec eax
jle 0x42d222
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.004039ac
cmp byte [ebp - 1], 0
je 0x42d222
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42d222
mov edx, dword [ebp - 0x14]
mov eax, dword [0x468ff8]
call fcn.0042c894
inc edi
dec ebx
jne 0x42d171
mov eax, dword [0x468ff8]
cmp dword [eax + 8], 0
jle 0x42d242
mov eax, dword [0x468ff8]
call fcn.0042c924
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42d25b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042cf30
pop ecx
test al, al
jne 0x42d25b
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