joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4648c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0x57
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x77
mov byte [ebp - 0x21], 0x36
mov byte [ebp - 0x20], 0x34
mov byte [ebp - 0x1f], 0x52
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x57
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x77
mov byte [ebp - 0x16], 0x36
mov byte [ebp - 0x15], 0x34
mov byte [ebp - 0x14], 0x46
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x52
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x63
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0
lea eax, [ebp - 0x24]
push eax
push 0x1e
push 0x5a34f0
call fcn.00415e10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret

Function at 0x465650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0x57
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x77
mov byte [ebp - 0x21], 0x36
mov byte [ebp - 0x20], 0x34
mov byte [ebp - 0x1f], 0x44
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x73
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], 0x62
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x57
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x77
mov byte [ebp - 0x15], 0x36
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0
lea eax, [ebp - 0x24]
push eax
push 0x1f
push 0x5a34c8
call fcn.00415e10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret
Function at 0x466db0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b968
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x59a530]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ecx + 0x5a3138]
test edx, edx
je 0x466e1e
push 0x5a3138
mov ecx, dword [ebp + 8]
call fcn.0041e4a0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041ebc0
mov eax, dword [ebp + 8]
jmp 0x466e87
push 0
push 0x1a
push 0x5a3138
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp + 0xc]
call fcn.00427be0
push eax
push 0x5a3138
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5a3138
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466e5f
push 0x5a3138
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5a3138
mov ecx, dword [ebp + 8]
call fcn.0041e4a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041ebc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x467080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00526d90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00466ea0
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret

Function at 0x467120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00526d90
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x467184
cmp dword [ebp - 0x114], 6
jb 0x467184
mov dword [ebp - 0x11c], 1
jmp 0x46718e
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret
Function at 0x467270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x58eaf0
push 0x5282d0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffbd0
mov eax, dword [0x59a530]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.00526d90
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x42d], cl
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x42d]
call fcn.00464cd0
push eax
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x434]
push ecx
push 0x20219
push 0
lea edx, [ebp - 0x42c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x46732e
jmp 0x4673ca
mov dword [ebp - 0x440], 0
push 0x210
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.00526d90
add esp, 0xc
mov dword [ebp - 0x43c], 0x210
xor ecx, ecx
mov byte [ebp - 0x42e], cl
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0
lea ecx, [ebp - 0x42e]
call fcn.00466450
push eax
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x4673a1
jmp 0x4673ca
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jg 0x4673b5
jmp 0x4673ca
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.004673d8
jmp 0x4673ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x467410
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x58eb10
push 0x5282d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffcc
mov eax, dword [0x59a530]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x467479
jmp 0x4674c8
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x467497
jmp 0x4674c8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4674c2
jmp 0x4674c8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xfffffffe
call fcn.004674d6
jmp 0x4674f7
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret 4
Function at 0x467520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.004e6570
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
push 0x44
push 0
lea eax, [ebp - 0x1064]
push eax
call fcn.00526d90
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x1064]
push ecx
call fcn.00526d90
add esp, 0xc
mov dword [ebp - 0x1064], 0x44
lea edx, [ebp - 0x1064]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x1038], 1
xor eax, eax
mov word [ebp - 0x1034], ax
xor ecx, ecx
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1010], ecx
xor edx, edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x1014], edx
mov dword [ebp - 0x1010], edx
cmp dword [ebp + 0xc], 0
je 0x467647
mov dword [ebp - 0x1020], 0x800
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.00526d90
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x1005], cl
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1005]
call fcn.00466180
push eax
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00464380
add esp, 0x10
lea edx, [ebp - 0x101c]
push edx
lea eax, [ebp - 0x1064]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1004]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x100c], eax
jmp 0x467673
lea edx, [ebp - 0x101c]
push edx
lea eax, [ebp - 0x1064]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x467696
mov edx, dword [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret

Function at 0x4676b0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
xor eax, eax
mov byte [ebp - 1], al
lea ecx, [ebp - 1]
call fcn.00465750
push eax
call fcn.00466ea0
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00466c80
lea ecx, [ebp - 8]
call fcn.00408670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x467742
push 0x3c
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00526d90
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
lea ecx, [ebp - 8]
call fcn.00408670
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
call fcn.00408670
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0x440
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x467742
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
call fcn.004083d0
mov eax, dword [ebp - 0xc]
jmp 0x467754
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.004083d0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4679e0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x146c
call fcn.004e6570
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1458
push 0
lea eax, [ebp - 0x145c]
push eax
call fcn.00526d90
add esp, 0xc
push 0xa2c
lea ecx, [ebp - 0x145c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x145c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov byte [ebp - 0x145e], al
lea ecx, [ebp - 0x145e]
call fcn.00465970
push eax
lea ecx, [ebp - 0x145c]
push ecx
lea edx, [ebp - 0x145c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x145d]
call fcn.004643b0
xor ecx, ecx
mov byte [ebp - 0x145f], cl
push 0x55cd38
lea ecx, [ebp - 0x145f]
call fcn.00465ab0
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
lea edx, [ebp - 0x145c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x467abe
xor eax, eax
mov byte [ebp - 0x1460], al
push 0x55cd3c
lea ecx, [ebp - 0x1460]
call fcn.00464870
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
mov dword [ebp - 0x146c], 0
mov cl, byte [ebp + 0xc]
mov byte [ebp - 0x1461], cl
push 0
push 1
push 1
push 0
lea edx, [ebp - 0x146c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408670
push eax
lea eax, [ebp - 0x145c]
push eax
movzx ecx, byte [ebp - 0x1461]
push ecx
call fcn.0045eb70
test eax, eax
jne 0x467b58
push str._n__tWinMain:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov byte [ebp - 0x1462], dl
push 0x55cd88
lea ecx, [ebp - 0x1462]
call fcn.004660a0
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
xor eax, eax
mov byte [ebp - 0x1463], al
push 0x55cd8c
lea ecx, [ebp - 0x1463]
call fcn.00465c40
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
xor eax, eax
jmp 0x467ba5
xor ecx, ecx
mov byte [ebp - 0x1464], cl
push 0x55cd90
lea ecx, [ebp - 0x1464]
call fcn.00465820
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
xor edx, edx
mov byte [ebp - 0x1465], dl
push 0x55cd94
lea ecx, [ebp - 0x1465]
call fcn.00464d90
push eax
lea ecx, [ebp - 0x145d]
call fcn.00464b50
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret
Function at 0x46bca0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bc73
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x46bd45
cmp word [esi], di
je 0x46bd45
test eax, eax
je 0x46bd01
cmp word [eax], di
je 0x46bd01
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x46bd45
jmp 0x46bd40
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00526d90
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x46bd45
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
cmp dword [ebp + 0x34], 0
je 0x46bdc0
lea esi, [ebx + 0x38]
push esi
mov dword [ebp - 0x42c], esi
call fcn.0046a21c
add esp, 4
test eax, eax
je 0x46bd6a
push eax
call fcn.0046a5b2
add esp, 4
mov byte [ebp - 0x428], 1
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x46bde0
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
push esi
mov byte [ebp - 4], 2
call fcn.0046a241
add esp, 4
test eax, eax
je 0x46bda8
push eax
call fcn.0046a5b2
add esp, 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x46bdc0
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6500
mov esp, ebp
pop ebp
ret 0x30
call fcn.00469cdb
int3
Function at 0x46cd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x59a530]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x5a4408], 0
push esi
jne 0x46ce57
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
jb 0x46cd7b
mov eax, dword [eax]
push edi
push 0x20219
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x818]
call fcn.00435b60
mov edi, dword [ebp - 0x818]
test eax, eax
jne 0x46ce4b
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x55e518
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ce4b
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x46cddf
cmp eax, 2
jne 0x46ce4b
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x46cdfc
test al, 1
jne 0x46ce4b
shr eax, 1
cmp word [ebp + eax*2 - 0x806], 0
je 0x46ce05
jmp 0x46ce4b
xor eax, eax
mov word [ebp - 0x804], ax
mov ecx, 0x5a4408
lea esi, [ebp - 0x804]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x46ce3e
movzx eax, word [esi + ecx]
test ax, ax
je 0x46ce3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x46ce20
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x46ce56
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x5a4408
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x46ceab
mov ecx, 0x5a4408
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x46ce9e
movzx eax, word [esi + ecx]
test ax, ax
je 0x46ce9e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x46ce80
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 0x5a4408
xor ecx, ebp
pop esi
call fcn.004e6500
mov esp, ebp
pop ebp
ret
Function at 0x473200
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x473225
or esi, 1
push 1
call edi
test ax, ax
jns 0x473231
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x47323d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x473249
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x478a00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478a45
cmp byte [ebp + 8], 0
je 0x478a39
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x488540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
movzx eax, word [edi + 0xc]
sub eax, 0x41
je 0x4885a2
sub eax, 2
je 0x488583
sub eax, 0x15
jne 0x4885f2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4885f2
push 0
push edi
push dword [ebp + 0xc]
push str.cutkey
jmp 0x4885e7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4885f2
push 0
push edi
push dword [ebp + 0xc]
push str.copykey
jmp 0x4885e7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4885f2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 2
push eax
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push 0x102b
mov dword [ebp - 0x30], 2
push dword [eax + 0x558]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
push dword [ebp + 0xc]
push str.selectallkey
push dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
call fcn.00476760
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4890e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.0047cca0
push dword [ebx + 0x558]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48912e
mov ecx, dword [ebx + 0x55c]
mov eax, 5
push edi
xor edi, edi
cmp byte [ebp + 8], 0
cmovne edi, eax
push edi
call fcn.004702f0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebx + 0x558]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
pop ebp
ret 4

Function at 0x48c6c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x594], 0
je 0x48c72d
cmp dword [ebp + 8], 0x100
jne 0x48c71d
cmp word [ebp + 0xc], 0xd
jne 0x48c71d
cmp byte [esi + 0x59a], 0
je 0x48c6fe
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x48c71d
cmp byte [esi + 0x59b], 0
jne 0x48c71d
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x48c716
push 0
push 0
push 0
push str.return
push esi
call fcn.00476760
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x594]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x48d670
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x5a36d8
push 0x34
call fcn.004e6d15
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x48d6e9
mov dword [esi], 2
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
jmp 0x48d6eb
xor esi, esi
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x48d6f8
mov edi, dword [edi]
xor ebx, ebx
test edi, edi
je 0x48d76f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d76f
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x48d76f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x48d76f
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x48d76f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x48d76f
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.0048cff0
mov ebx, eax
test ebx, ebx
jne 0x48d79d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48d784
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48d7a3
push eax
call edi
mov dword [esi + 8], 0
jmp 0x48d7a3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x48d7b5
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
test ebx, ebx
pop ebx
jne 0x48d7d4
mov ecx, esi
call fcn.0048ccb0
push 0x34
push esi
call fcn.004e624a
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x492ba0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x5a36d8
cmp al, 6
jb 0x492bdd
push 0x18
call fcn.004e6d15
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x492c19
mov ecx, eax
call fcn.00492c30
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.004e6d15
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x492c19
mov dword [eax], vtable.CGDIPlusImageImpl.0
mov dword [eax + 4], 6
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret