joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaa3250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xab7808
push 0xaa7288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xaa3329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xaa3329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00aa61d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xaa3329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xaa3329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xaa332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00aa3351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xaa3d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaa3d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xaa3d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaa3d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xaa3d94
push eax
push esi
call fcn.00aa620b
add esp, 8
pop esi
ret 0x10

Function at 0xaa3da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaa3e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xaa3e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xabc320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aa5dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xaa3dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xaa3e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaa3ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xaa3eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xabc320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aa5dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xaa3eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xaa3e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xaa4000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xaa4131
push esi
call fcn.00aa7145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a96080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xaa4131
push 0
push ebp
call fcn.00a963a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a96260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xaa408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a962f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xaa4121
push 0xabc918
push edi
call fcn.00aa53f0
push eax
push ebx
push esi
call fcn.00aa3f60
push 0xabc8f8
push edi
call fcn.00aa53f0
push eax
push ebx
push esi
call fcn.00aa3f60
push 0xabc8d8
push edi
call fcn.00aa53f0
push eax
push ebx
push esi
call fcn.00aa3f60
push 0xabc8c0
push edi
call fcn.00aa53f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00aa3f60
push 0xabc8a0
push edi
call fcn.00aa53f0
push eax
push ebx
push esi
call fcn.00aa3f60
push 0xabc888
push edi
call fcn.00aa53f0
push eax
push ebx
push esi
call fcn.00aa3f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xaa51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00aa5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00aa5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00aa5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00aa5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xaa5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xaa5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xab787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xaa5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xaa5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x40109d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push 0x104
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push ebx
call fcn.004013e2
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x4010e6
push 0xffffffffffffffff
push dword [ebx + 0x18]
mov esi, 0x47bd30
push 1
call fcn.0040fa56
jmp 0x401137
lea eax, [ebp - 2]
push eax
mov al, byte [0x4679c4]
lea esi, [ebx + 0x24]
push edi
mov ecx, 0x47bd30
call fcn.0040fee1
test al, al
jne 0x401110
mov dword [0x4679dc], 1
jmp 0x40126b
mov al, byte [0x47bd30]
mov byte [ebx + 0x14], al
mov al, byte [0x47bd31]
mov byte [ebp - 1], al
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
mov esi, 0x47bd30
call fcn.0040feaf
push dword [edi]
lea eax, [ebx + 0x24]
mov dword [ebp - 8], eax
push eax
mov esi, 0x479e08
mov eax, esi
call fcn.0041fea4
test eax, eax
je 0x401180
mov edi, 0x47bd30
call fcn.0040fbfe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4679dc], 1
jmp 0x401278
cmp byte [ebp - 1], 1
jne 0x40123e
cmp byte [0x479bbd], 1
jne 0x40123e
call fcn.0041629f
test al, al
jne 0x40123e
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x401214
mov edi, 0x45c5b4
push edi
lea esi, [ebp - 0x14]
call fcn.00416bfe
push dword [ebp - 8]
or eax, 0xffffffff
mov ecx, esi
call fcn.00416ee1
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00416ee1
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x14]
call fcn.00449078
pop ecx
jmp 0x401261
push 1
lea eax, [ebp - 0x220]
push eax
push dword [0x47bcf8]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401261
call fcn.0040127d
call fcn.00401371
cmp byte [ebx + 0x14], 0
jne 0x401258
mov ebx, 0x47a6a8
call fcn.004128c6
push 1
mov ecx, esi
call fcn.004200f5
mov edi, 0x47bd30
call fcn.0040fbfe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401db3
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esi]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x401dc3
xor al, al
jmp 0x401e4f
push ebx
push edi
push 1
push eax
push esi
call fcn.00403204
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401e10
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x401e32
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
push esi
call fcn.00403204
pop edi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x402398
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x4023ab
xor al, al
jmp 0x402435
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0xb0
push eax
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4023ce
xor al, al
jmp 0x402434
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
je 0x402431
lea eax, [edi + edi + 0x202]
push eax
call fcn.00449170
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x402428
mov eax, dword [ebp - 8]
cmp eax, edi
mov esi, dword [ebp - 4]
je 0x40240e
and word [esi + eax*2], 0
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*2]
push eax
push dword [ebp + 8]
call fcn.00416d00
push esi
call fcn.00449078
pop ecx
mov al, 1
jmp 0x402433
push dword [ebp - 4]
call fcn.00449078
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402ea9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402ee1
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402eda
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402ff2
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x402f20
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
jne 0x402f1d
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402f92
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.004493b8
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.00449383
add esp, 0x10
test eax, eax
jne 0x402f8d
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.004493ce
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044925f
add esp, 0x18
test eax, eax
jne 0x402f8d
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402ff1
inc dword [ebp - 4]
jmp 0x402f95
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402fc7
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x402f86
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402fe6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402fe3
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402fe3
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402f86
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x4030fc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x403127
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x403142
push 1
jmp 0x403129
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x403204
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x40321c
push dword [esp + 8]
call fcn.004031de
test al, al
jne 0x403238
push 1
jmp 0x40321e
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret 0xc
Function at 0x40adfc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 8], esi
je 0x40af04
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ae9f
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x45aea8
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x40aea6
xor eax, eax
jmp 0x40af30
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x40aedb
cmp dword [eax], esi
jne 0x40aedb
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40aee3
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40af07
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x40af18
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f71a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.0044c070
push ebx
xor ebx, ebx
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x45cd00
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45ccfc
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00449170
pop ecx
mov dword [esi + 0x3c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00449da6
push edi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00449f01
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00449f3e
push 0x20a
call fcn.00449170
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.00449154
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x45d0a0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f930
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f927
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov cx, word [eax]
cmp cx, bx
mov word [ebp - 0x10], cx
mov word [ebp - 0xe], bx
je 0x40f89f
cmp cx, 0x3b
je 0x40f89f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044912a
pop ecx
pop ecx
jmp 0x40f91b
lea eax, [ebp - 0x21c]
push eax
call fcn.004493b8
test eax, eax
pop ecx
je 0x40f8db
lea eax, [ebp - 0x21c]
push eax
call fcn.004493b8
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x40f8db
lea eax, [ebp - 0x21c]
push 0x45d09c
push eax
call fcn.0044912a
pop ecx
pop ecx
push 0x20a
call fcn.00449170
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
push edi
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.004497d7
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40f927
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
jmp 0x40f875
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x410c44
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410c5b
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410d21
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x410ced
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebp
mov dword [0x47e7a4], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410ccd
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x47e7a4]
cmp ecx, eax
mov dword [0x47e7a0], eax
je 0x410cc3
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x47e7a0]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410d1f
cmp dword [esp + 0xc], eax
jne 0x410d1f
cmp dword [esp + 0x10], eax
jne 0x410d1f
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x248], eax
jmp 0x410d1f
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410d15
push edi
push dword [0x47e7a0]
push ebp
call esi
mov ecx, dword [0x47e7a4]
mov eax, dword [0x47e7a0]
cmp ecx, eax
je 0x410d15
push edi
push eax
push ecx
call esi
push edi
push dword [0x47e7a4]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

Function at 0x410d8d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x410def
push ebx
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
call fcn.00410d27
mov edi, dword [esi + 4]
push esi
call fcn.00411e91
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
mov eax, esi
push 2
pop ebx
call fcn.00410d27
mov edi, dword [esi]
push esi
call fcn.00411e91
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x410df3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x410e16
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410e91
jmp 0x410e4f
mov eax, ebx
call fcn.00410f35
push dword [esi + 0x244]
call fcn.004113cc
cmp dword [esp + 0x10], 0
je 0x410e44
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.004117fb
dec ebx
jne 0x410e37
pop edi
push dword [esi + 0x244]
call fcn.004115e2
pop esi
pop ebx
ret 8