joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5019d555
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
test ax, ax
jge 0x5019d56c
push 2
pop ebx
jmp 0x5019d56e
xor ebx, ebx
push 0x11
call esi
test ax, ax
jge 0x5019d57c
push 4
pop edi
jmp 0x5019d57e
xor edi, edi
push 0x12
call esi
xor ecx, ecx
test ax, ax
setl cl
or ecx, edi
pop edi
or ecx, ebx
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x5019d65f
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x430
mov eax, dword [esp + 0x434]
and byte [esp + 3], 0
and dword [esp + 8], 0
mov dword [0x5028fe58], eax
lea eax, [esp + 8]
push eax
call fcn.50272bbe
test eax, eax
jl 0x5019d82c
mov ecx, dword [0x5029a8bc]
test ecx, ecx
jne 0x5019d6b5
push 1
call fcn.501b5274
test eax, eax
jl 0x5019d6a7
mov byte [esp + 3], 1
mov ecx, dword [0x5029a8bc]
test ecx, ecx
je 0x5019d82c
call fcn.50272bbe
test eax, eax
jl 0x5019d80f
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, 0x80070000
lea ecx, [esp + 0x20]
call fcn.500a785c
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
call fcn.50272bbe
mov esi, eax
test esi, esi
jl 0x5019d7e5
lea ecx, [esp + 0x20]
call fcn.50272bbe
mov ebp, eax
push ebp
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5019d712
test al, 0x10
jne 0x5019d737
push 0
push ebp
call dword [sym.imp.vsansi.dll_CreateDirectoryW]
test eax, eax
jne 0x5019d737
call edi
test eax, eax
jg 0x5019d72b
call edi
mov esi, eax
jmp 0x5019d737
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x5019d7e5
lea ecx, [esp + 0x20]
call fcn.500a70fc
mov ebp, eax
push ebp
call dword [sym.imp.vsansi.dll_DeleteFileW]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebp
call dword [sym.imp.vsansi.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5019d78a
call edi
test eax, eax
jg 0x5019d77c
call edi
mov esi, eax
jmp 0x5019d7e1
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
jmp 0x5019d7e1
mov ecx, dword [0x5029a8bc]
and dword [esp + 0x1c], 0
push ebp
add ecx, 8
call fcn.50272bbe
test eax, eax
jne 0x5019d7a9
mov esi, 0x80004005
jmp 0x5019d7da
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x5019d7da
call edi
test eax, eax
jg 0x5019d7ce
call edi
mov esi, eax
jmp 0x5019d7da
call edi
mov esi, eax
and esi, 0xffff
or esi, ebx
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
jge 0x5019d802
cmp dword [esp + 0x14], 0
jne 0x5019d802
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 1
call fcn.501b7afc
jmp 0x5019d6d6
lea ecx, [esp + 0x20]
call fcn.501b7afc
pop edi
pop esi
pop ebp
pop ebx
cmp byte [esp + 3], 0
je 0x5019d82c
mov ecx, dword [0x5029a8bc]
call fcn.501abbcd
mov eax, dword [0x5029a8bc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x438]
mov dword [0x5028fe58], eax
add esp, 0x430
ret 0x10
Function at 0x501a7a85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, 0x5029aeb4
jmp fcn.5012f1f8

Function at 0x501a8738
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1b0
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
push esi
push edi
mov edi, dword [ebp + 0x7c]
xor eax, eax
push edi
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], eax
call ebx
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
mov dword [ebp + 0x7c], eax
push 0x21
lea eax, [ebp - 0x13c]
push eax
push edi
call fcn.50272bbe
or ecx, 0xffffffff
cmp eax, ecx
jne 0x501a8826
mov eax, dword [ebp - 0x13c]
dec eax
dec eax
je 0x501a87f9
dec eax
je 0x501a87b5
sub eax, 0x1d
jne 0x501a8824
cmp dword [ebp + 0x70], 9
ja 0x501a8824
mov al, byte [ebp + 0x70]
mov ecx, dword [ebp + 0x7c]
and dword [ebp + 0x6c], 0
add al, 0x30
inc dword [ebp + 0x70]
mov byte [ecx + edi - 1], al
jmp 0x501a8766
cmp dword [ebp + 0x68], 0
jne 0x501a8824
push 0x90
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0x5000ae28
lea eax, [ebp - 0x34]
push eax
call esi
push 0x5001ebf4
lea eax, [ebp - 0x34]
push eax
call esi
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp - 0x34]
call ebx
and dword [ebp + 0x6c], 0
mov dword [ebp + 0x68], 1
jmp 0x501a8763
cmp dword [ebp + 0x6c], 0
jne 0x501a8824
push 0x1000
lea eax, [ebp - 0x13c]
push eax
push edi
mov dword [ebp + 0x6c], 1
call fcn.50272bbe
push eax
call dword [sym.imp.kernel32.dll__lclose]
jmp 0x501a8766
mov eax, ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x501a88b1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0x118
lea eax, [ebp - 0x13c]
push eax
push 0x5001ec48
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
neg eax
sbb eax, eax
neg eax
mov dword [0x5029aedc], eax
je 0x501a892f
lea eax, [ebp - 0x13c]
push eax
call fcn.501a8738
cmp eax, 0xffffffff
mov dword [0x5029aeec], eax
jne 0x501a88fd
and dword [0x5029aedc], 0
leave
ret
push 2
push 0
push eax
call dword [sym.imp.kernel32.dll__llseek]
push 0x5001ec40
push 0x5001ec38
lea eax, [ebp - 0x1c]
push 0x5001ec28
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0xf
call fcn.50272bbe
leave
ret
Function at 0x501ac16d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x28c
push esi
xor esi, esi
cmp dword [ebp + 0x7c], esi
jne 0x501ac18a
mov eax, 0x80004003
jmp 0x501ac2b0
mov eax, dword [0x5028e4e0]
cmp eax, esi
mov dword [ebp + 0x68], eax
jne 0x501ac1a0
mov eax, 0x8000ffff
jmp 0x501ac2b0
push edi
push 0x18
pop ecx
xor eax, eax
mov word [ebp - 0xc], si
lea edi, [ebp - 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x32
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x501ac1ce
mov eax, 0x80004005
jmp 0x501ac2af
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5001ee18
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x7c], esi
call fcn.50272bbe
cmp eax, esi
je 0x501ac201
jle 0x501ac2af
and eax, 0xffff
or eax, 0x80070000
jmp 0x501ac2af
push ebx
push esi
push esi
push esi
xor eax, eax
push esi
mov ecx, 0x82
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.vsansi.dll_RegEnumValueW]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], esi
mov word [ebp - 0x218], si
mov dword [ebp + 0x70], 0x105
call edi
mov ebx, 0x103
jmp 0x501ac2a0
cmp eax, esi
jne 0x501ac278
cmp word [ebp - 0x218], si
je 0x501ac278
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x501ac278
mov ecx, dword [ebp + 0x68]
push 0x50029e94
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.500862f4
inc dword [ebp + 0x6c]
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x6c]
mov word [ebp - 0x218], si
push dword [ebp + 0x7c]
mov dword [ebp + 0x70], 0x105
call edi
cmp eax, ebx
jne 0x501ac244
push dword [ebp + 0x7c]
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop ebx
pop edi
pop esi
add ebp, 0x74
leave
ret 4

Function at 0x501b59df
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [esp + 0x10]
mov esi, eax
inc esi
push esi
push 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
test eax, eax
je 0x501b5a17
push esi
push dword [edi]
push dword [esp + 0x14]
call dword [sym.imp.vsansi.dll_GetWindowTextW]
inc eax
xor ecx, ecx
cmp esi, eax
setle cl
mov eax, ecx
pop edi
pop esi
ret 8
Function at 0x501b6782
Capabilities:
Create process on windows

Disassembly:
push dword [0x5029b404]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x501b67c6
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x5029b404]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x5029b404]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x501b67d3
push 9
push dword [0x5029b404]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
push 5
push 0x5001f204
call dword [sym.imp.kernel32.dll_WinExec]
ret

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

Disassembly:
cmp dword [0x5029b43c], 0
push esi
jne 0x501b8173
push 0x5001f4ac
push 0
push 2
call dword [sym.imp.kernel32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x501b8173
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
sub eax, dword [0x5029b43c]
cmp eax, 0x1d4c0
jbe 0x501b8195
call dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
call esi
mov dword [0x5029b43c], eax
pop esi
ret

Function at 0x501ccc59
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 3
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_KillTimer]
add esi, 0x138
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x501ccc8d
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.501a9f99
pop esi
ret

Function at 0x501d1eb3
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.50272bbe
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x501d1ef4
mov eax, dword [eax + 4]
test eax, eax
je 0x501d1ef4
push edi
lea edi, [eax - 1]
test edi, edi
jl 0x501d1ef3
mov ecx, dword [esi + 0xa0]
push edi
call fcn.502583d6
mov eax, dword [eax]
test eax, eax
je 0x501d1ef0
mov ecx, dword [eax]
lea edx, [esi + 4]
push edx
push eax
call dword [ecx + 0x1c]
dec edi
jns 0x501d1ed4
pop edi
mov ecx, esi
pop esi
jmp fcn.501ce399
Function at 0x501d423b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
push ebx
push esi
push edi
lea eax, [ebp + 0x64]
push eax
push 0x50020b60
push 0x50020b74
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x74], ebx
call fcn.50272bbe
cmp eax, ebx
mov edi, 0xffff
mov esi, 0x80070000
jne 0x501d4350
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x6c], ebx
push ebx
jmp 0x501d432e
inc dword [ebp + 0x6c]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x64]
call fcn.50272bbe
cmp eax, ebx
jne 0x501d4316
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.5003ec5e
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x58
call sub.MSVCR70.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x501d42d7
mov ecx, eax
call fcn.501dac06
mov ebx, eax
push dword [ebp + 0x70]
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.50272bbe
test eax, eax
jl 0x501d42fa
mov ecx, dword [ebp + 0x68]
push ebx
add ecx, 0xd0
call fcn.5025873f
jmp 0x501d430a
test ebx, ebx
mov dword [ebp + 0x74], eax
je 0x501d430a
push 1
mov ecx, ebx
call fcn.501cbc74
push dword [ebp + 0x70]
call sub.ADVAPI32.dll_RegCloseKey
xor ebx, ebx
jmp 0x501d431f
jle 0x501d431c
and eax, edi
or eax, esi
mov dword [ebp + 0x74], eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x6c]
push dword [ebp + 0x64]
mov dword [ebp + 0x60], 0x27
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x501d4290
push dword [ebp + 0x64]
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x501d4359
jle 0x501d4356
and eax, edi
or eax, esi
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x5c]
push eax
push 0x50020b74
push SysAllocStringLen
call fcn.50272bbe
cmp eax, ebx
jne 0x501d4405
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0x50020b68
push dword [ebp + 0x5c]
mov dword [ebp + 0x70], 0x27
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x501d43da
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.5003ec5e
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
cmp dword [ebp + 0x70], 0x27
jne 0x501d43e3
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x4c]
push eax
call fcn.501cdc2e
cmp eax, 0xffffffff
je 0x501d43e3
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x4c]
push eax
call fcn.501d3d3f
jmp 0x501d43e3
jle 0x501d43e0
and eax, edi
or eax, esi
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x68]
push dword [ebp + 0x5c]
mov ecx, dword [eax + 0xec]
call fcn.50272bbe
cmp eax, ebx
jge 0x501d43fb
mov dword [ebp + 0x74], eax
push dword [ebp + 0x5c]
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x501d440e
jle 0x501d440b
and eax, edi
or eax, esi
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x501f02b8
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
or dword [esi + 0xa4], 1
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov ecx, esi
call fcn.501ed413
cmp dword [0x5029f6c0], ebx
je 0x501f0305
push 4
mov ecx, esi
call fcn.50272bbe
mov eax, dword [0x5029f6c0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
mov edx, dword [esi + 0x22c]
push dword [edx + 8]
push dword [esi + 0xf8]
push eax
call dword [ecx + 0x1c]
push edi
mov edi, dword [esi + 0x2e8]
cmp byte [edi + 0x30], bl
je 0x501f0324
push ebx
mov ecx, edi
call fcn.501e4698
push eax
mov ecx, edi
call fcn.501e468b
push eax
jmp 0x501f032f
cmp byte [edi + 0x32], bl
je 0x501f0336
mov edi, dword [edi + 0xc]
push ebx
push edi
push edi
mov ecx, esi
call fcn.50272bbe
mov ecx, dword [esi + 0x2e8]
call fcn.50272bbe
lea eax, [esi + 0x3ac]
push eax
lea ecx, [esi + 4]
call fcn.501ee237
mov eax, dword [esi + 0xf0]
cmp eax, ebx
pop edi
je 0x501f0364
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push eax
call dword [ecx + 0x10]
push ebx
mov ecx, esi
call fcn.501ef791
call fcn.500fba84
test al, al
je 0x501f0388
push ebx
push 0xfffffffffffffffc
push dword [esi + 0xf8]
push 0x8005
call fcn.500fba47
pop esi
pop ebx
pop ecx
ret

Function at 0x501f02ba
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
or dword [esi + 0xa4], 1
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov ecx, esi
call fcn.501ed413
cmp dword [0x5029f6c0], ebx
je 0x501f0305
push 4
mov ecx, esi
call fcn.50272bbe
mov eax, dword [0x5029f6c0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
mov edx, dword [esi + 0x22c]
push dword [edx + 8]
push dword [esi + 0xf8]
push eax
call dword [ecx + 0x1c]
push edi
mov edi, dword [esi + 0x2e8]
cmp byte [edi + 0x30], bl
je 0x501f0324
push ebx
mov ecx, edi
call fcn.501e4698
push eax
mov ecx, edi
call fcn.501e468b
push eax
jmp 0x501f032f
cmp byte [edi + 0x32], bl
je 0x501f0336
mov edi, dword [edi + 0xc]
push ebx
push edi
push edi
mov ecx, esi
call fcn.50272bbe
mov ecx, dword [esi + 0x2e8]
call fcn.50272bbe
lea eax, [esi + 0x3ac]
push eax
lea ecx, [esi + 4]
call fcn.501ee237
mov eax, dword [esi + 0xf0]
cmp eax, ebx
pop edi
je 0x501f0364
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push eax
call dword [ecx + 0x10]
push ebx
mov ecx, esi
call fcn.501ef791
call fcn.500fba84
test al, al
je 0x501f0388
push ebx
push 0xfffffffffffffffc
push dword [esi + 0xf8]
push 0x8005
call fcn.500fba47
pop esi
pop ebx
pop ecx
ret
Function at 0x501f4601
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
xor esi, esi
call edi
test ax, ax
jl 0x501f461b
push 2
call edi
call dword [sym.imp.kernel32.dll_GetTickCount]
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x18]
jne 0x501f46d0
push 1
push 0x20a
push 0x200
push 0
push edi
call ebx
test eax, eax
jne 0x501f4673
push 1
push 0x108
push ebp
push eax
push edi
call ebx
test eax, eax
je 0x501f46b3
mov eax, dword [edi + 4]
cmp eax, 0x202
je 0x501f46d0
cmp eax, 0x205
je 0x501f46d0
cmp eax, 0x201
je 0x501f46d0
cmp eax, 0x204
je 0x501f46d0
cmp eax, ebp
jne 0x501f469c
cmp dword [edi + 8], 0x1b
je 0x501f46d0
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PtInRect]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5028b53c]
jbe 0x501f46c8
xor esi, esi
inc esi
test esi, esi
je 0x501f463e
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x50236167
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0xc], 0
mov eax, 0x500083b0
jne 0x50236178
mov eax, 0x5000b524
push 2
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x5025ade9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push dword [esp + 0x14]
call dword [sym.imp.vsansi.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
jne 0x5025ae04
xor al, al
jmp 0x5025ae3d
movzx eax, word [edi + 4]
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x5025ae34
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x5025ae34
push edi
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
call fcn.50272bbe
pop ecx
mov bl, al
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, bl
pop esi
pop ebx
ret

Function at 0x5026091a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.50260903
and byte [esi + 0xc], 0
mov eax, 0x50000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x50260974
cmp dword [ebp - 0x18], 5
jb 0x5026098c
jmp 0x50260988
cmp dword [ebp - 0xc], 1
jne 0x5026098c
cmp dword [ebp - 0x18], 4
ja 0x50260988
jne 0x5026098c
cmp dword [ebp - 0x14], 0
jbe 0x5026098c
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x50289160
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x50262e8e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 4], 0x100
push edi
jne 0x50262f0d
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
jge 0x50262f0d
mov eax, dword [esi + 8]
cmp eax, 9
je 0x50262ec8
cmp eax, 0x20
jbe 0x50262f0d
cmp eax, 0x22
ja 0x50262f0d
xor ecx, ecx
cmp eax, 0x21
sete cl
jmp 0x50262ed4
push 0x10
call edi
xor ecx, ecx
test ax, ax
setl cl
mov esi, dword [esp + 0xc]
push 0
push 0
push 0x130b
push dword [esi + 0x3c]
mov edi, ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
je 0x50262ef9
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ecx - 1]
jmp 0x50262efa
inc eax
xor edx, edx
div dword [esi + 0x1c]
push 0
push edx
push esi
call fcn.50262930
xor eax, eax
inc eax
jmp 0x50262f37
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
mov eax, dword [esp + 0xc]
push esi
push dword [eax]
je 0x50262f28
call dword [sym.imp.vsansi.dll_IsDialogMessageW]
jmp 0x50262f2e
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
pop edi
pop esi
ret 8

Function at 0x50272bbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x50272bcd
pop dword [ebp - 0x48]
mov eax, 0x50272bcd
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x75e0e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4295
xor edx, edx
add edx, eax
mov ebx, 0xb34d4402
sub ebx, 0x631dd402
add ebx, dword [ebp - 0x48]
mov esi, 0x269ef1b
add esi, 0x3a88fd24
add dword [ebp - 0x24], ecx
mov edi, dword [ebx]
sub dword [ebp - 0x40], 0xe06d3f8
xor edi, esi
sub dword [ebp - 0xc], 0x8a1a8a2e
mov dword [edx], edi
sub dword [ebp - 0x30], 0x1edfe99c
add edx, 4
add ebx, 4
loop 0x50272c1e
add eax, 0xfd27
mov ebx, eax
add eax, 0x40865d7b
add eax, 0xbf79a28a
mov ecx, 0x50000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x5027cf8f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
call fcn.50272bbe
mov esi, eax
test esi, esi
mov ebx, 0x8007000e
je 0x5027cfee
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5027cfdc
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x5027cfcf
push esi
push dword [0x5029fc94]
xor ebx, ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x5027cfd4
mov ebx, 0x800a0074
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x5027cfe1
mov ebx, 0x800a0075
test ebx, ebx
jge 0x5027cff9
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
xor esi, esi
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push ebx
call fcn.5026722a
xor eax, eax
pop edi
test esi, esi
pop esi
setne al
pop ebx
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40a61a
pop dword [ebp - 0x44]
mov eax, 0x40a61a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa32fce22
add dword [ebp - 0x54], 0xab227729
mov dword [ebp - 0x50], 0xacd40b4b
add dword [ebp - 0x50], 0x855f40fa
mov dword [ebp - 0x4c], 0xbcc8a84d
sub dword [ebp - 0x4c], 0x707c641f
mov dword [ebp - 0x48], 0xb829173c
sub dword [ebp - 0x48], 0xb829173c
lea eax, [ebp - 0x54]
push eax
mov eax, 0xc6b7bce7
sub eax, 0xc676ec93
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe42e4936
add dword [ebp - 0x54], 0x90442020
mov dword [ebp - 0x50], 0x9241c2f2
sub dword [ebp - 0x50], 0x50d5617d
mov dword [ebp - 0x4c], 0xf472bd19
sub dword [ebp - 0x4c], 0x910350ad
mov dword [ebp - 0x48], 0xb0dab28e
sub dword [ebp - 0x48], 0xb0dab28e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x38ec4
push 0
call eax
mov ecx, 0x4436
mov esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x44]
mov ebx, 0x1bf8a76c
sub ebx, 0x414da883
sub dword [ebp - 0xc], ebx
mov edi, dword [edx]
xor dword [ebp - 0x18], 0x883a7927
add edi, ebx
add dword [ebp - 0x10], 0xeba798dd
mov dword [esi], edi
add esi, 0x496a622c
sub esi, 0x496a6228
add edx, 0xb03b93e6
sub edx, 0xb03b93e2
loop 0x40a726
add eax, 0x209ded1a
sub eax, 0x209ce96f
mov ebx, eax
add eax, 0xa87df019
sub eax, 0xa87df014
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret