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

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x47b7f8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x405d3c
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x47b848
push 0x103
push eax
call fcn.00408a04
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x405d33
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x47b858
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x405d2a
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.004498b0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x47b868
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x405d2a
cmp dword [ebp - 0x70], edi
jne 0x405d1a
mov esi, 0x47b878
push esi
call fcn.00449820
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0044a72b
add esp, 0x10
test eax, eax
jne 0x405cf4
mov dword [ebp - 0x6c], ebx
jmp 0x405d2a
cmp dword [ebp - 0x70], edi
jne 0x405d1a
push esi
call fcn.00449820
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0044a72b
add esp, 0x10
test eax, eax
je 0x405d1a
mov dword [ebp - 0x6c], 2
jmp 0x405d2a
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449453
add ebp, 0xa4
leave
ret
Function at 0x406011
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x48
mov eax, 0x46d7d8
call fcn.00451810
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
call fcn.00406245
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x406041
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4060ec
push 1
lea edi, [ebp - 0x2c]
call fcn.00406245
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.004066fc
test al, al
pop ecx
jne 0x4060bf
mov eax, edi
push eax
call fcn.004066fc
test al, al
pop ecx
je 0x4060bf
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x406093
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40609f
lea eax, [ebp - 0x28]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4060bf
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4060b8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4060cb
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00407246
cmp edi, 0xffffffff
je 0x40611f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x406118
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406118
cmp dword [ebp - 0x50], esi
jne 0x406118
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00407246
mov al, byte [ebp - 0x49]
call fcn.00451893
ret 4
Function at 0x406139
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x46d7d8
call fcn.00451810
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
call fcn.00406245
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x406169
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4061bd
push 1
lea edi, [ebp - 0x2c]
call fcn.00406245
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x40619c
lea eax, [ebp - 0x28]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00407246
cmp edi, 0xffffffff
je 0x4061e3
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x10
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4061dc
cmp dword [ebp - 0x50], 0x10
jne 0x4061dc
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00407246
mov al, byte [ebp - 0x49]
call fcn.00451893
ret 4

Function at 0x406245
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x46d79d
call fcn.00451810
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.004498b0
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406316
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
call fcn.00406866
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.00407bc7
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00407246
cmp byte [ebp + 8], bl
je 0x4062ee
push 0x47b884
jmp 0x4062f3
push 0x47b8ac
push edi
call fcn.004068bb
mov ecx, edi
call fcn.0040631e
test al, al
jne 0x40630b
mov ecx, edi
call fcn.004063ec
push 0x47b8d0
push edi
call fcn.004068bb
mov eax, edi
call fcn.00451893
ret
Function at 0x409d1e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x409e3b
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x409d8c
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x409e3b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x409dff
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00409d1e
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x409e5e
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x409dc4
cmp dword [ebp - 0x210], esi
je 0x409e25
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x409e4b
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449453
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x409e6e
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x409e4d

Function at 0x409ea5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004498b0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x409ef9
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x409f07
cmp dword [ebp - 0x7c], 6
jne 0x409f07
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x409f09
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00449453
add ebp, 0xa0
leave
ret
Function at 0x409f1f
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test byte [0x492c48], 1
mov dword [ebp - 0x214], esi
jne 0x409f6b
mov eax, dword [0x491934]
or dword [0x492c48], 1
mov ecx, 0x491934
call dword [eax + 0xc]
add eax, 0x10
push 0x46edca
mov dword [0x492c30], eax
call fcn.00449676
pop ecx
mov eax, dword [0x492c30]
cmp dword [eax - 0xc], esi
jne 0x409fef
push edi
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.004498b0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x492c30
push edi
call fcn.004015d4
mov eax, dword [0x492c30]
cmp dword [eax - 0xc], esi
jle 0x409fee
call fcn.00409e76
push 0x47baa0
push edi
call fcn.00401a06
push dword [0x492c30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409fee
push esi
push dword [0x492c30]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, dword [0x492c30]
add eax, 0xfffffff0
call fcn.00401667
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.00449453
leave
ret
Function at 0x40db1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40db32
push 0x80004005
call fcn.004019ae
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40db39
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x413767
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0x1f4], 0
je 0x413857
mov dword [esp + 0x10], 1
mov esi, dword [ebx + 0x1f4]
mov ecx, dword [esi + 8]
add esi, 4
test ecx, ecx
je 0x413857
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x10]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x413857
call fcn.004141ba
mov esi, dword [ebx + 0x1f4]
add esi, 4
xor edi, edi
mov dword [esp + 0x14], eax
call fcn.004141ba
mov ecx, dword [esp + 0x14]
push dword [ecx]
push dword [eax]
call fcn.00412f72
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41384e
push 0x28
call fcn.0044adbc
test eax, eax
pop ecx
je 0x413804
call fcn.004291c6
mov esi, eax
jmp 0x413806
xor esi, esi
test esi, esi
mov dword [esp + 0x14], esi
je 0x413846
push dword [ebx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
push edi
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
mov ecx, esi
call dword [eax + 0x1c]
lea esi, [ebx + 0x1e4]
lea ebx, [esp + 0x14]
call fcn.004141d9
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
inc dword [esp + 0x10]
jmp 0x413799
push 0x34
call fcn.0044adbc
test eax, eax
pop ecx
je 0x41386c
mov edi, eax
call fcn.00429923
jmp 0x41386e
xor eax, eax
test eax, eax
mov dword [ebx + 0x78], eax
je 0x4138c8
push dword [ebx + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
xor esi, esi
inc esi
push esi
push 0x480b50
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
push esi
push 0
push 0
push 9
push 0x4802e0
call dword [eax + 0x3c]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ecx]
push esi
mov eax, 0x494949
push eax
push eax
call dword [edx + 0x40]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xd8
push 0xf
call dword [eax + 0x1c]
push 0x30
call fcn.0044adbc
mov esi, eax
test esi, esi
pop ecx
je 0x4138f1
call fcn.0042900e
xor eax, eax
mov dword [esi], vtable.CVirProgress.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
jmp 0x4138f3
xor esi, esi
test esi, esi
mov dword [ebx + 0x7c], esi
je 0x41393b
push dword [ebx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
push 1
push 0xc5
push 0xc4
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xbd
push 0xf
call dword [eax + 0x1c]
mov ebx, dword [ebx + 0x7c]
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414c21
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.RT_RCDATA
xor esi, esi
push 0x69
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x414c56
xor eax, eax
jmp 0x414ca2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x414c52
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x414c52
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x414c9f
push esi
push 0x80
push 2
push esi
push 1
push 0x10000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414cb0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449453
leave
ret
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414ccf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x414ca1
xor esi, esi
inc esi
jmp 0x414cc4
Function at 0x414d9d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.00466ae0
mov eax, dword [0x48e600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xf9c
lea eax, [ebp - 0x1204]
push ebx
push eax
mov dword [ebp - 0x1208], ebx
call fcn.004498b0
add esp, 0xc
push 0x206
lea eax, [ebp - 0x256]
push ebx
push eax
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x258], bx
call fcn.004498b0
add esp, 0xc
push 0x40
lea eax, [ebp - 0x4e]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x50], bx
call fcn.004498b0
xor eax, eax
add esp, 0xc
cmp eax, str.071132e14ea664c6eaedb1417e589b86
je 0x414f2f
lea eax, [ebp - 0x260]
push eax
push 0xfa0
lea eax, [ebp - 0x1208]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x414f2f
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x414f2f
shr eax, 2
mov dword [ebp - 0x268], eax
mov eax, ebx
mov dword [ebp - 0x264], eax
je 0x414f2f
push dword [ebp + eax*4 - 0x1208]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x414f16
push 0x208
lea eax, [ebp - 0x258]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
call fcn.004498b0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push 4
lea eax, [ebp - 0x25c]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x414f0f
push 0x104
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x414f0f
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x258]
push eax
call fcn.0044943d
pop ecx
push eax
lea esi, [ebp - 0x50]
lea ecx, [ebp - 0x258]
call fcn.004474f0
test al, al
pop ecx
je 0x414f0f
push str.071132e14ea664c6eaedb1417e589b86
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414f40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x264]
inc eax
cmp eax, dword [ebp - 0x268]
mov dword [ebp - 0x264], eax
jb 0x414e61
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449453
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x414f31
Function at 0x415495
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push 0xe8
mov eax, 0x46e3d4
call fcn.00451810
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov dword [0x492880], 0x7e6
mov byte [0x49286c], 0xc8
mov dword [ebp - 0x80], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x47bae0
lea eax, [ebp - 0xbc]
call fcn.00406866
push eax
xor ebx, ebx
push 0x480c40
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], ebx
call fcn.00406866
push eax
push 0x480c44
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.00406866
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x84], esp
push esi
mov byte [ebp - 4], 2
call fcn.00406866
lea ecx, [ebp - 0x78]
call fcn.0040a3c3
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.00407246
push ebx
push edi
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.00407246
push ebx
push edi
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.00407246
push 0x480c4c
lea eax, [ebp - 0xa0]
call fcn.00406866
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.004180df
push ebx
push edi
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00407246
cmp dword [ebp - 0x80], edi
mov ecx, dword [ebp - 0x7c]
jne 0x4155ad
mov byte [0x4927a5], bl
xor eax, eax
jmp 0x4155b6
mov byte [0x4927a5], 1
mov eax, edi
call fcn.0041529e
call fcn.00414d9d
dec eax
neg eax
sbb al, al
push ebx
inc al
push ebx
mov byte [0x4927a7], al
mov eax, dword [ebp - 0x7c]
push 0xd60
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0040a4cd
call fcn.00451893
ret 4
Function at 0x41575c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
push ebx
push edi
xor eax, eax
and dword [ebp - 0x10], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00449a70
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 8]
mov ebx, 0x3ec
sub eax, ebx
je 0x4157ce
sub eax, 3
je 0x4157c3
dec eax
dec eax
jne 0x41584c
mov ecx, esi
call fcn.004173d0
jmp 0x41584c
push 0
mov edi, esi
call fcn.00416256
jmp 0x41584c
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x41581b
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
je 0x41581b
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x415827
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp dword [esi + 0xf8], 0
je 0x41584c
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
mov eax, esi
je 0x415847
call fcn.00416ff8
jmp 0x41584c
call fcn.00416f92
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret 8
Function at 0x416ea1
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x2c
mov eax, 0x46e6f8
call fcn.004517a7
lea ecx, [ebp - 0x14]
call fcn.00414cd4
lea ecx, [ebp - 0x10]
push 0x480e00
push ecx
xor esi, esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.004039c1
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401996
push dword [ebp - 0x10]
call fcn.00414c21
cmp eax, esi
pop ecx
jne 0x416f08
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416f08
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401996
mov eax, esi
call fcn.0045187f
ret
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
call fcn.00406866
mov byte [ebp - 4], 3
call fcn.0046afb0
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.0046b1c0
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00407246
cmp byte [0x4927a7], bl
mov esi, dword [0x492878]
setne al
mov byte [0x49288a], al
call fcn.0046afb0
push 0x49286c
mov dword [eax], 0x7e6
mov dword [eax + 4], ebx
mov dword [eax + 0x10], esi
call fcn.0046afb0
mov edi, eax
call fcn.0041820e
cmp dword [ebp - 0x18], ebx
je 0x416f81
call fcn.0046afb0
mov edi, eax
call fcn.0046b150
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
jmp 0x416ef5