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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push dword [ebp + 0xc]
mov ecx, esi
mov edi, edx
call fcn.00405f8f
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push dword [edi]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d7af
xor al, al
jmp 0x40d804
cmp dword [ebp - 4], 1
je 0x40d7bb
cmp dword [ebp - 4], 2
jne 0x40d7ab
mov eax, dword [ebp - 8]
mov ecx, esi
shr eax, 1
push eax
call fcn.00401ad3
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40d7da
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401c45
lea eax, [ebp - 8]
push eax
push dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push dword [edi]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d7ab
mov edx, dword [ebp - 8]
mov ecx, esi
shr edx, 1
dec edx
push edx
call fcn.0040606c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410053
Capabilities:
Set current directory

Disassembly:
sub esp, 0x228
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0xc]
cmp dword [ebx], 0
jne 0x4100f1
mov esi, 0x4513e8
lea edi, [esp + 0x10]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4513d8
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00415b54
cmp eax, 0xb
jl 0x4100ab
mov esi, 0x4513e8
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4513f8
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
call fcn.00415d27
test al, al
je 0x4100c7
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
lea eax, [esp + 0x24]
push eax
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4100e6
xor al, al
jmp 0x410118
mov eax, dword [ecx]
push ebp
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x4100e2
mov eax, dword [ebx]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x23c]
movzx ecx, cl
push ecx
mov esi, dword [edx]
push edx
call dword [esi + 0x10]
mov ecx, dword [ebx]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 4

Function at 0x41149f
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebp
push edi
push ecx
push ecx
push 0x20006
push ecx
push ecx
push edx
xor ebp, ebp
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.0041144e
test eax, eax
jne 0x41150c
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x20], edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push 4
push ebp
push str.iexplore.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x10]
call fcn.00411434
lea ecx, [esp + 0x10]
call fcn.00411434
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x41156e
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push 4
pop eax
mov dword [esp + 0x10], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ebp, str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
lea eax, [esp + 0xc]
mov ebx, SysReAllocStringLen
push eax
lea eax, [edi + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push str.IECompatVersionHigh
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 4
pop eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x18]
push eax
push str.IECompatVersionLow
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [edi + 4]
push 7
pop eax
cmp edx, eax
jle 0x4115ec
mov ecx, dword [edi + 0x218]
cmp ecx, eax
jl 0x4115e7
cmp ecx, edx
jg 0x4115e7
mov eax, ecx
jmp 0x4115ee
cmp ecx, 0xffffffff
jne 0x4115ee
mov eax, edx
mov dword [edi + 0x218], eax
call fcn.0040f6da
mov ecx, edi
call fcn.004116dd
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
pop ecx
ret
Function at 0x412e32
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor bl, bl
mov ebp, ecx
mov dword [esp + 0x10], ebx
cmp dword [edi + 4], 0x100
jne 0x412ecc
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
sets bl
call esi
test ax, ax
push 0x12
sets bh
call esi
mov esi, edi
test ax, ax
push 7
pop ecx
lea edi, [esp + 0x14]
sets dl
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 8]
test bl, bl
je 0x412f46
test bh, bh
je 0x412eaa
test dl, dl
jne 0x412ec8
cmp eax, 9
je 0x412ea3
cmp eax, 0x2e
je 0x412ea3
cmp eax, 0x54
jne 0x412ec8
mov bl, 1
jmp 0x412fb5
test dl, dl
jne 0x412ec8
cmp eax, 0x4c
jg 0x412f23
je 0x412ea3
sub eax, 9
je 0x412ea3
sub eax, 0x27
je 0x412ea3
sub eax, 0x14
je 0x412ea3
dec eax
dec eax
je 0x412ea3
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x54]
and dword [esp + 0x34], 0
test ecx, ecx
je 0x412f17
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
push 0x453408
push ecx
call dword [eax]
mov ecx, dword [esp + 0x34]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x412f17
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x14]
mov ecx, dword [esp + 0x34]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test ecx, ecx
je 0x412f17
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 4
cmp eax, 0x4f
je 0x412ea3
cmp eax, 0x53
je 0x412ea3
cmp eax, 0x57
je 0x412ea3
cmp eax, 0x74
jmp 0x412ea1
test bh, bh
jne 0x412ec8
test dl, dl
je 0x412f6b
sub eax, 0x25
je 0x412ea3
dec eax
dec eax
je 0x412ea3
sub eax, 0x4c
jmp 0x412ea1
cmp eax, 8
je 0x412f81
cmp eax, 0x74
je 0x412ea3
cmp eax, 0x7b
jmp 0x412ea1
mov edx, dword [ebp + 0x54]
lea ecx, [esp + 0x34]
call fcn.004162c5
mov esi, dword [esp + 0x34]
test esi, esi
je 0x412fa6
mov ecx, esi
call fcn.00416635
mov ecx, dword [esi]
mov bl, al
push esi
call dword [ecx + 8]
jmp 0x412fa8
xor bl, bl
test bl, bl
sete bl
test bl, bl
je 0x412ecc
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x45313c
push 0x28
push dword [ebp + 0xcc]
call fcn.004122c8
add esp, 0x14
push eax
call fcn.00413dd4
jmp 0x412f17
Function at 0x413395
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 8]
mov edx, dword [edi + 0x54]
call fcn.004162c5
mov esi, dword [ebp - 8]
test esi, esi
je 0x41343e
push ebx
xor ebx, ebx
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x28]
mov eax, dword [ebp - 8]
test eax, eax
je 0x413406
mov dword [ebp - 4], ebx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 4], ebx
je 0x4133f0
push 0x4531c8
lea ecx, [ebp - 4]
call fcn.00412666
test al, al
jne 0x4133f0
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
test eax, eax
je 0x413406
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
test bl, bl
pop ebx
jne 0x41343e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
movzx eax, al
push eax
push 0x45320c
push 0x23
push dword [edi + 0xcc]
call fcn.004122c8
add esp, 0xc
push eax
call fcn.00413dd4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413deb
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xdc]
xor ebp, ebp
mov dword [esi + 0xdc], ebp
mov ebx, eax
test ecx, ecx
je 0x413e13
push ecx
call fcn.00408766
mov dword [esi + 0xdc], ebp
mov dword [esi + 0xe0], 0xe
cmp ebp, ebp
jne 0x413e73
push 1
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x413e94
mov eax, dword [esp + 0x10]
cmp eax, 0x113
je 0x413e5e
test eax, eax
je 0x413e5e
cmp eax, 0x400
je 0x413e5e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x413eab
cmp eax, 0x12
jne 0x413eab
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xe0], ebp
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0xdc], ebp
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x1c
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x9c40
jae 0x413e73
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xdc], ebp
je 0x413e27
jmp 0x413e73
Function at 0x41580b
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov esi, ecx
push 0x28
mov dword [esp + 0x14], ebp
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x415833
push 0xa
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x415835
mov ebx, ebp
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esp + 0x2c], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
lea eax, [esp + 0x10]
cmove eax, ecx
mov dword [ebx], esi
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], ebp
mov dword [ebx + 0x14], ebp
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ebp
test eax, eax
je 0x415873
mov dword [ebx + 0x24], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 4
push ebx
push 0x415508
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41589c
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4158e6
push ebp
push ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebx + 0x14], edi
mov ecx, dword [esp + 0x14]
push edi
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
je 0x4158e6
push dword [esp + 0x2c]
push 0x44da18
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x14

Function at 0x415ac2
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
push 4
pop edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
lea eax, [esp + 0x14]
mov ebp, str.UseSWRender
push eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebp
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x415b2a
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x415b46
cmp dword [esp + 0xc], edi
jne 0x415b36
cmp dword [esp + 0x10], ebx
jmp 0x415b43
cmp dword [esp + 0xc], 1
jne 0x415b46
cmp word [esp + 0x10], 0x30
setne bl
xor eax, eax
test bl, bl
pop edi
pop ebp
sete al
pop ebx
add esp, 0x10
ret
Function at 0x415b54
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword [0x45f118]
sub esp, 0x210
push edi
mov edi, ecx
test eax, eax
jns 0x415c18
push ebp
push esi
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.mshtml.dll
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
call fcn.00402dbb
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
pop ecx
push ebp
push 0x26
push eax
push ebp
shr esi, 0x10
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x415c0e
push str.internet_exploreriexplore.exe
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test edi, edi
je 0x415be8
lea eax, [esp + 0x14]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.00401617
test esi, esi
jne 0x415c0e
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ebp
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
call fcn.00402dbb
mov esi, dword [esp + 0x10]
pop ecx
shr esi, 0x10
mov dword [0x45f118], esi
mov eax, esi
pop esi
pop ebp
pop edi
add esp, 0x210
ret

Function at 0x415cc9
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor ecx, ecx
call fcn.00415b54
cmp eax, 0xb
jl 0x415d21
call fcn.00406399
cmp dword [eax], 7
jl 0x415d21
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.edgehtml.dll
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d21
mov al, 1
jmp 0x415d23
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x415d27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push str.CLSID_sInProcServer32
push 0x104
push eax
call fcn.0040203a
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
push edi
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x415db2
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x415db2
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417571
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0x1c
lea eax, [ebp - 0x1c]
mov edi, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x18]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4175d2
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4175d2
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
jne 0x4175d2
mov edx, dword [ecx + esi + 0xd8]
lea eax, [edx + esi]
cmp edi, eax
jb 0x4175d2
mov eax, dword [ecx + esi + 0xdc]
add eax, edx
add eax, esi
cmp edi, eax
jae 0x4175d2
mov al, 1
jmp 0x4175d4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417668
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
movzx eax, si
mov ebp, 0x10000
push edi
test eax, eax
je 0x4176ec
sub esi, eax
add esi, ebp
jmp 0x4176ec
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x417699
mov esi, 0x80010000
jmp 0x4176ec
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4176f0
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x20], ebp
jne 0x4176d9
cmp ecx, ebp
jb 0x4176d9
push 0x40
push 0x3000
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4176f2
jmp 0x417681
mov esi, dword [esp + 0x10]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4176ec
mov eax, ebp
sub eax, ecx
add esi, eax
cmp esi, ebx
jb 0x417685
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4176fa
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
lea esi, [edx - 0x10000]
mov ebx, ecx
movzx eax, si
push edi
test eax, eax
je 0x417712
sub esi, eax
cmp esi, ebx
jbe 0x417786
mov ebp, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x41772f
mov esi, 0x4fff0000
jmp 0x417782
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417786
cmp dword [esp + 0x20], ebp
jne 0x41776f
cmp dword [esp + 0x1c], ebp
jb 0x41776f
push 0x40
push 0x3000
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x417788
sub esi, ebp
jmp 0x417782
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x417782
sub esi, eax
cmp esi, ebx
ja 0x41771b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x417790
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x45f340]
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x45f34c]
test edx, edx
jne 0x4177d9
test eax, eax
je 0x4177ec
mov edx, eax
mov dword [0x45f340], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4177ec
cmp ecx, ebx
jb 0x4177ec
cmp ecx, edi
jbe 0x4178d2
mov edx, eax
test eax, eax
jmp 0x41780e
test edx, edx
je 0x417809
mov eax, dword [edx + 8]
test eax, eax
je 0x417809
cmp eax, ebx
jb 0x417809
cmp eax, edi
jbe 0x4178d2
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x45f340], edx
jne 0x4177f2
movzx eax, si
mov ebp, 0x40000000
sub esi, eax
cmp esi, ebp
jbe 0x417839
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.004176fa
mov edx, eax
test edx, edx
jne 0x41789a
cmp esi, ebp
jae 0x41784e
lea ecx, [esi + 0x40000000]
mov edx, edi
call fcn.00417668
mov edx, eax
test edx, edx
jne 0x41789a
cmp esi, ebp
jbe 0x417867
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.00417668
mov edx, eax
test edx, edx
jne 0x41789a
cmp esi, ebp
jae 0x41787c
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.004176fa
mov edx, eax
test edx, edx
jne 0x41789a
mov edx, esi
mov ecx, ebx
call fcn.004176fa
mov edx, eax
test edx, edx
jne 0x41789a
mov edx, edi
mov ecx, esi
call fcn.00417668
mov edx, eax
test edx, edx
je 0x4178f7
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x45f34c]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x45f340], edx
mov dword [0x45f34c], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x4178c4
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x4178f7
cmp esi, edi
ja 0x4178f7
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4178f9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x417923
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov ecx, dword [0x45f34c]
push esi
mov esi, 0x45f34c
test ecx, ecx
je 0x417988
push edi
cmp dword [ecx], 0x52727464
jne 0x41797e
lea edi, [ecx + 0x10000]
xor eax, eax
lea edx, [ecx + 0x88]
cmp dword [edx], 0
je 0x417957
cmp dword [edx], ecx
jb 0x41797e
cmp dword [edx], edi
jae 0x41797e
inc eax
add edx, 0x48
cmp eax, 0x38d
jb 0x41794a
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [0x45f340], 0
jmp 0x417981
lea esi, [ecx + 4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x417934
pop edi
pop esi
ret
Function at 0x41f017
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2c0
and dword [esp + 8], 0
lea eax, [esp + 0xc]
push ebp
push esi
push edi
push 0x2b0
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
mov ebp, 0x2b4
push 0x4100
push ebp
push eax
push 0x80
push dword [esi]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
call esi
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x41f07c
push 0x110
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0x44f6f4
call esi
mov edx, dword [esp + 0x14]
and dword [edi], 0
test edx, edx
je 0x41f0a7
lea ecx, [esp + 0x10]
call fcn.00419bfd
push eax
mov ecx, edi
call fcn.0041988c
lea ecx, [esp + 0x10]
call fcn.00419953
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x2c0
ret

Function at 0x42010d
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi + 0x90]
call fcn.0041ee71
mov edx, 0x454b5c
mov ecx, dword [eax]
call fcn.0041efd8
mov ecx, dword [esp + 0x10]
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0040169b
inc bl
je 0x42015f
mov ecx, dword [esp + 0x24]
push 0x454c2c
call fcn.004025b6
mov eax, dword [esp + 0x24]
jmp 0x420227
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0041ee71
push ecx
push 0x454c28
lea ecx, [esp + 0x18]
call fcn.0040533a
cmp eax, 0xffffffff
je 0x4201b3
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040af65
push eax
lea ecx, [esp + 0x14]
call fcn.00405f8f
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040169b
lea eax, [esp + 0x18]
push eax
push edi
push edi
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push dword [esp + 0x1c]
call fcn.0041f0b3
pop ecx
pop ecx
push str.iRYO
lea ecx, [esp + 0x14]
call fcn.004025b6
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push dword [esi - 0xc]
push esi
call fcn.00401a0b
mov ebx, dword [esp + 0x10]
lea ecx, [ebx - 0x10]
call fcn.00402a75
mov ebp, dword [esp + 0x24]
lea ecx, [ebx - 0x10]
add eax, 0x10
mov dword [ebp], eax
call fcn.0040169b
lea ecx, [esi - 0x10]
call fcn.0040169b
lea ecx, [edi - 0x10]
call fcn.0040169b
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x422115
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, ecx
xor esi, esi
test bl, 8
push 2
pop eax
cmovne esi, eax
test bl, 4
je 0x42212c
or esi, 1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42213c
or esi, 4
test bl, 1
je 0x422144
or esi, 8
test bl, 0x10
je 0x42214c
or esi, 0x10
test bl, 2
je 0x422154
or esi, 0x20
mov eax, esi
pop esi
pop ebx
ret