joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a6b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov ebx, esi
mov dword [ebp - 0x26c], esi
call fcn.100158f0
test eax, eax
jne 0x10001a9b
xor eax, eax
jmp 0x10001c5e
call fcn.10015b40
cmp dword [0x1003400c], 0
jne 0x10001b65
lea ecx, [ebp - 0x268]
call fcn.1000452a
mov esi, eax
test esi, esi
je 0x10001c1c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x10033210
mov ebx, str.files.ini
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x268]
push eax
call edi
lea eax, [esi + eax + 0xa]
push eax
call fcn.10017ff4
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x1003400c], eax
mov esi, ecx
test esi, esi
je 0x10001c1c
lea ecx, [ebp - 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x1003400c]
call edi
push ebx
push dword [0x1003400c]
mov dword [0x10034010], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx esi, ax
push esi
mov ebx, str.access
mov edi, str.General
call fcn.10003057
pop ecx
push dword [0x1003400c]
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp esi, eax
sete cl
mov esi, ecx
test esi, esi
je 0x10001c1c
push 0x64
lea edi, [ebp - 0x70]
mov esi, str.ReadingFanatic_6xEI:Installer:Shared01
call fcn.10003b1e
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
je 0x10001c1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], edi
mov byte [ebp - 0x274], 1
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
push edi
lea eax, [ebp - 0x27c]
call section..text
pop ecx
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x18], eax
xor ecx, ecx
cmp eax, edi
setne cl
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 0x270], ecx
cmp esi, edi
je 0x10001c1c
push dword [0x1003400c]
mov ebx, str.refCount
push edi
push ebx
mov edi, str.General
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [ebp - 0x270], 0
je 0x10001c0e
call fcn.10002117
xor eax, eax
inc dword [0x10034014]
inc eax
push eax
call fcn.10003057
pop ecx
mov eax, dword [ebp - 0x26c]
call fcn.10015b90
test esi, esi
jne 0x10001c3b
mov esi, dword [ebp - 0x26c]
call fcn.10015b30
jmp 0x10001a94
call fcn.1000117e
test eax, eax
jne 0x10001c54
push dword [ebp - 0x26c]
call fcn.10001c82
jmp 0x10001a94
mov ecx, dword [0x10034018]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a76
leave
ret
Function at 0x10001d09
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [0x1003400c]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], eax
test ecx, ecx
je 0x10001e52
mov eax, dword [0x10034010]
lea edx, [eax + 0x14]
cmp edx, 0x12b
jge 0x10001e52
cmp dword [esi + 0x18], 0
je 0x10001e52
push ebx
push edi
inc eax
push eax
push ecx
lea eax, [ebp - 0x164]
push eax
mov byte [ebp - 0x164], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x10034010]
mov edi, 0x12a
lea ebx, [ebp + eax - 0x164]
sub edi, eax
call fcn.10015b40
push dword [0x1003400c]
push edi
push ebx
push 0x10026ab8
push dword [ebp - 0x168]
push str.Index
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0
je 0x10001e27
lea esi, [ebp - 0x164]
call fcn.10004100
test eax, eax
je 0x10001e12
push dword [0x1003400c]
mov esi, str.count
push 0
push esi
mov edi, 0x10026950
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x38]
push 0x10026a64
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [0x1003400c]
lea eax, [ebp - 0x38]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x170]
inc eax
push eax
mov ebx, esi
call fcn.10003057
pop ecx
push dword [0x1003400c]
push 0
push dword [ebp - 0x168]
push str.Index
jmp 0x10001e3a
push dword [0x1003400c]
push 0
push dword [ebp - 0x168]
push str.Session
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x16c]
call fcn.10015b90
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x10001e54
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10017a76
leave
ret 4
Function at 0x10002117
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x1003400c]
mov edi, str.count
push 0
push edi
push 0x10026950
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x4c], eax
test eax, eax
jle 0x1000227e
mov eax, dword [0x10034010]
add eax, 0x14
push 0x10033210
push eax
call fcn.10017ff4
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x48], esi
test esi, esi
je 0x10002182
push dword [0x1003400c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x10034010]
add eax, esi
mov dword [ebp - 0x50], eax
and dword [ebp - 0x44], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push 0x10026a64
push eax
call esi
add esp, 0xc
push dword [0x1003400c]
lea eax, [ebp - 0x18]
push 0x13
push eax
push 0x10026ab8
lea eax, [ebp - 0x40]
push eax
push 0x10026950
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ebx, [ebp - 0x18]
call fcn.100022b3
push eax
lea eax, [ebp - 0x2c]
push str.Reuse____s
push eax
call esi
add esp, 0xc
push dword [0x1003400c]
lea eax, [ebp - 0x2c]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp byte [ebp - 0x18], 0
mov ebx, eax
je 0x1000224c
cmp ebx, 5
jl 0x10002213
cmp dword [ebp - 0x48], 0
je 0x10002213
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000224c
push ebx
lea eax, [ebp - 0x40]
push 0x10026a64
push eax
call esi
add esp, 0xc
push dword [0x1003400c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc ebx
push ebx
mov ebx, edi
lea edi, [ebp - 0x2c]
call fcn.10003057
pop ecx
mov edi, str.count
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x4c]
jl 0x1000218d
push dword [ebp - 0x48]
call fcn.10017a6b
pop ecx
push dword [0x1003400c]
mov esi, 0x10026a78
push esi
push 0x10026950
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop ebx
jmp 0x10002283
mov esi, 0x10026a78
push dword [0x1003400c]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push esi
push str.Session
call edi
push dword [0x1003400c]
push esi
push str.Requested
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10017a76
leave
ret
Function at 0x10002a94
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
lea ebx, [edi + 8]
push ebx
call esi
test eax, eax
je 0x10002b09
push 0x1c
lea eax, [ebp - 0x3c]
push eax
add edi, 0x17
push edi
call esi
test eax, eax
je 0x10002b09
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push 0x40
pop edi
inc eax
cmp dword [ebp - 0xc], edi
je 0x10002aeb
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10002b18
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], ecx
je 0x10002b18
cmp dword [ebp - 0x28], edi
je 0x10002b18
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x30]
push ecx
call esi
jmp 0x10002b18
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002f1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x20219
xor ebx, ebx
push ebx
push str.SoftwareReadingFanatic_6xEI
push SysReAllocString
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002f73
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push ebx
push ebx
push str.WriteableHKCU
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10003027
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10003052
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003052
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x10003349
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20219
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000336e
xor eax, eax
jmp 0x10003392
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret
Function at 0x100033b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
or edi, 0xffffffff
lea eax, [ebp - 4]
cmp dword [ebp + 0xc], ebx
je 0x1000343b
push ebx
push eax
push dword [ebp + 0xc]
push 0x20219
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyA]
test eax, eax
je 0x100033e6
xor eax, eax
jmp 0x100034a8
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueA]
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10003430
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x1c]
jge 0x10003430
inc dword [ebp + 0xc]
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
je 0x10003430
mov eax, dword [ebp + 0x18]
mov byte [eax], bl
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
jmp 0x100034a1
push eax
push 0x20219
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100033df
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10003498
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x1c]
jge 0x10003498
inc dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
je 0x10003498
mov eax, dword [ebp + 0x18]
mov byte [eax], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000364f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x100036ee
lea ecx, [ebp + 0xc]
cmp edi, esi
jne 0x100036a4
push esi
push ecx
push dword [ebp + 0xc]
push 0x2021f
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyA]
cmp eax, esi
je 0x1000368a
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x10003772
push 1
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegDeleteUSValueA]
cmp eax, esi
je 0x1000369f
cmp eax, 2
jne 0x100036e0
xor esi, esi
inc esi
jmp 0x100036e0
push 2
push ecx
push dword [ebp + 0xc]
push 0x2021f
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegCreateUSKeyA]
test eax, eax
je 0x100036c1
xor eax, eax
jmp 0x10003772
push 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegWriteUSValueA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
jmp 0x10003770
cmp edi, esi
jne 0x10003726
lea ecx, [ebp + 0xc]
push ecx
push 0x2021f
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x1000367b
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x10003721
cmp eax, 2
jne 0x10003767
xor esi, esi
inc esi
jmp 0x10003767
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push esi
push 0x2021f
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100036ba
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x10003aab
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.1000380d
add esp, 0x1c
test eax, eax
je 0x10003b1a
push ebx
mov ebx, dword [ebp - 0xc]
push esi
test ebx, ebx
je 0x10003ae6
cmp byte [ebx], 0
jne 0x10003afd
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
jmp 0x10003b0b
push dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.1000363a
pop ecx
mov esi, eax
push dword [ebp - 0x10]
call fcn.10017a6b
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
xor eax, eax
leave
ret
Function at 0x10003d07
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, ebx
je 0x10003d81
push edi
push 0x10033210
push esi
call fcn.10017ff4
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x10003d79
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x10003d79
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10026c48
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x10003d79
cmp dword [ebp - 4], ebx
je 0x10003d79
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc ebx
push edi
call fcn.10017a6b
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10004100
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [esi]
push eax
call fcn.100180dc
pop ecx
test eax, eax
je 0x10004163
cmp byte [esi + 1], 0x3a
jne 0x10004163
cmp byte [esi + 2], 0x5c
jne 0x10004163
push 4
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x1000414b
cmp eax, 4
jne 0x10004163
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10004163
and eax, 0x10
cmp al, 0x10
je 0x10004163
xor eax, eax
inc eax
jmp 0x10004165
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a76
leave
ret

Function at 0x10004171
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x10004186
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000421e
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x10004217
cmp dword [ebp - 4], edi
jne 0x10004217
mov eax, dword [ebp + 0x10]
add eax, esi
push 0x10033210
push eax
call fcn.10017ff4
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10004217
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000420e
cmp dword [ebp - 8], esi
jne 0x1000420e
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10004202
mov dword [eax], ebx
jmp 0x10004209
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x10004225
push dword [ebp - 0xc]
call fcn.10017a6b
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004b17
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1002f060]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push edi
mov dword [esp + 4], eax
call fcn.10015e60
cmp dword [eax], 0
je 0x10004b9f
cmp dword [eax + 0x10], 2
jne 0x10004b9f
cmp dword [eax + 4], 5
jb 0x10004b9f
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10004b9f
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10004b9f
push 0x40
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1001a2a0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x40
call edi
test eax, eax
je 0x10004b9f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x10004bca
push 0x20
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1001a2a0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x10]
shr eax, 0x14
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.10017a76
mov esp, ebp
pop ebp
ret

Function at 0x100052e7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000faa4
test eax, eax
je 0x10005316
call fcn.1000faae
test eax, eax
jne 0x10005316
mov eax, 0x80040201
jmp 0x1000541b
push esi
push edi
call fcn.1000faa4
xor edi, edi
test eax, eax
jne 0x100053ec
push str.rundll32
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x127]
push eax
push dword [0x100331b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100053ec
push esi
lea eax, [ebp - 0x127]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
dec eax
cmp eax, 0x102
ja 0x100053ec
push str._Monitor
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40
lea eax, [ebp - 0x180]
push edi
push eax
mov dword [ebp - 0x184], 0x44
call fcn.1001a2a0
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100053ec
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x13c], edi
je 0x100053dc
push dword [ebp - 0x13c]
call esi
cmp dword [ebp - 0x140], edi
je 0x100053ec
push dword [ebp - 0x140]
call esi
call fcn.100089b1
mov esi, eax
cmp esi, edi
jl 0x10005409
mov edx, dword [0x100331b4]
push 0x10027894
call fcn.10008840
mov esi, eax
call fcn.1000b7fa
test eax, eax
mov eax, 0x80040201
je 0x10005419
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a76
leave
ret
Function at 0x100057ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
test eax, eax
je 0x100057ff
add eax, 0xffffff8c
jmp 0x10005801
xor eax, eax
mov eax, dword [eax + 0x10]
and dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x10005823
and dword [ebp + 8], eax
mov eax, 0x80004005
jmp 0x10005831
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x10027f90
push eax
call dword [ecx]
test eax, eax
js 0x10005878
cmp dword [ebp + 8], 0
je 0x10005875
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor edi, edi
call esi
test ax, ax
jns 0x1000584d
inc edi
push 0x11
call esi
test ax, ax
jns 0x10005859
add edi, 2
push 0x12
call esi
test ax, ax
jns 0x10005865
add edi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x10005878
xor eax, eax
inc eax
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 8]
setne cl
mov esi, ecx
test eax, eax
je 0x1000588e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1000a391
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebx + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [ebx]
xor esi, esi
lea edi, [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.1000a34a
mov edi, eax
cmp edi, esi
je 0x1000a3ff
cmp dword [ebp - 0x118], esi
je 0x1000a3f8
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1000a499
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000a427
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
call fcn.1000a391
mov dword [ebp - 0x124], eax
cmp eax, esi
jne 0x1000a4aa
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], 0x100
call edi
test eax, eax
je 0x1000a407
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], esi
je 0x1000a472
push dword [ebp - 0x118]
call edi
mov dword [ebp - 0x118], esi
push dword [ebp - 0x120]
mov eax, ebx
mov dword [ebp - 0x114], esi
call fcn.1000a55f
mov ebx, eax
cmp dword [ebp - 0x118], esi
je 0x1000a497
push dword [ebp - 0x118]
call edi
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a76
leave
ret 4
cmp dword [ebp - 0x118], esi
je 0x1000a4be
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
jmp 0x1000a499