joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x56fb58
call fcn.00529900
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.0055f23b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x54b57e
call fcn.0055f23b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x54b58c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x54b59a
or eax, 0xffffffff
jmp 0x54b686
mov ecx, esi
call fcn.0054b4bb
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00548926
push edi
call fcn.00548375
and dword [ebp - 0x1c], 0
test edi, edi
je 0x54b5d4
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x54b5d4
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.005488da
push edi
call fcn.00548375
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0054b257
xor ebx, ebx
cmp eax, ebx
je 0x54b64d
test byte [esi + 0x24], 0x10
je 0x54b618
push 4
mov ecx, esi
pop ebx
call fcn.0054ba5d
test ah, 1
je 0x54b60e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0054abd9
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x54b64d
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0054bbc6
jmp 0x54b64d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x54b65f
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x54b675
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x54b675
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0054b4f2
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x54db3a
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54db62
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054d36b
pop esi
ret 4
Function at 0x54de0f
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x570d4c
call fcn.00529900
sub esp, 0x168
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x174]
push eax
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x54df34
test byte [ebp - 0x16a], 1
je 0x54df34
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x57fdd8
push ebx
push 0x57fdc8
call fcn.0054dbe6
test eax, eax
jl 0x54df34
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x57fdb8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x54df2b
cmp edi, ebx
jne 0x54dea0
xor eax, eax
jmp 0x54dec1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0052d740
mov eax, esp
push esi
push edi
push eax
call fcn.0054c9f5
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x54df22
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x54dedb
xor eax, eax
jmp 0x54dede
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
push 2
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
jl 0x54df22
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054dbd8
push 1
pop eax
jmp 0x54df42
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054dbd8
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x180]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x551ccc
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x551ce4
push 0
jmp 0x551ce7
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x551cf5
pop esi
ret
push 1
pop eax
pop esi
ret
Function at 0x55211a
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x5709f8
call fcn.00529900
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0054c42a
test byte [ebp + 0xd], 0x10
je 0x5521eb
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0054ee4c
test eax, eax
je 0x5521eb
lea ecx, [ebp - 0x10]
call fcn.0054c354
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0054e032
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x55218a
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x5521df
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.0054c88f
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x57f9c4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0054c8de
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x5522a8
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0054d861
test eax, eax
je 0x5522a8
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0054c5e7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x552259
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0054eefe
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x5522a3
push dword [ebp + 0xc]
call fcn.0054c307
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x55229c
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0054c343
pop ecx
push 1
pop eax
jmp 0x5522bf
mov ecx, edi
call fcn.0054c42a
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054d861
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x552ee4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x552f01
cmp dword [0x5b6f7c], edi
jne 0x553053
cmp word [0x5b6f88], di
mov dword [0x5b6f7c], 1
jne 0x552f33
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x5b6f84], eax
mov word [0x5b6f88], cx
cmp word [0x5b6f88], 2
jne 0x552f6f
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x552f6f
mov ecx, dword [0x5b6f84]
cmp ecx, edi
je 0x552f6f
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5b6f80], eax
jmp 0x553058
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0052a930
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x5b6f80], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x553053
cmp dword [ebp - 0x8c], 1
je 0x552fc3
cmp dword [ebp - 0x8c], 2
jne 0x553053
cmp dword [ebp - 0x98], 4
jae 0x553032
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x553053
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x553027
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0052e6e0
add esp, 0xc
mov dword [0x5b6f80], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x553053
cmp dword [ebp - 0x8c], 2
jne 0x553053
cmp dword [ebp - 0x98], 4
jb 0x553053
push edi
push 0x5b6f80
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x5b6f80]
pop edi
leave
ret

Function at 0x553960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x5539a4
push dword [ebp + 8]
call fcn.0055f40f
mov esi, eax
test esi, esi
je 0x5539cf
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x5539cf
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x5937d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x55452f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.00548d06
test eax, eax
jne 0x554720
mov edi, dword [ebx + 4]
mov ecx, esi
call fcn.0052321c
test byte [esi + 0x64], 0x20
mov dword [ebp - 0xc], eax
jne 0x554572
cmp edi, 0x201
je 0x554572
cmp edi, 0x202
jne 0x5546d6
cmp edi, 0x200
jb 0x554582
cmp edi, 0x209
jbe 0x55459a
cmp edi, 0xa0
jb 0x5546d6
cmp edi, 0xa9
ja 0x5546d6
call fcn.0055ef59
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0052a930
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [eax + 0x6c]
cmp dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 8], eax
je 0x5545f5
push dword [ebp - 0x1c]
call fcn.00529d90
pop ecx
mov eax, 0x201
cmp edi, eax
jne 0x55460d
test byte [ebp - 0x39], 0x80
je 0x55460d
mov dword [ebp - 4], 1
jmp 0x554611
and dword [ebp - 4], 0
cmp edi, eax
je 0x55462e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x55462e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x55469d
cmp dword [ebp - 4], 0
jne 0x55469d
cmp edi, 0x202
jne 0x55465a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xc8
push 0xe001
jmp 0x554685
test byte [esi + 0x60], 8
jne 0x55468e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x55468e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x5546ca
push 0x12c
push 0xe000
mov ecx, esi
call fcn.005542fe
jmp 0x5546ca
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xe4]
jmp 0x5546ca
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5546b0
cmp dword [ebp - 4], 0
je 0x5546ca
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.00549af4
test eax, eax
je 0x5546eb
cmp dword [eax + 0x50], 0
je 0x5546eb
xor eax, eax
jmp 0x554719
cmp dword [ebp - 0xc], 0
je 0x554711
mov edi, dword [ebp - 0xc]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x554720
mov ecx, edi
call fcn.00549987
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x5546f1
push ebx
mov ecx, esi
call fcn.0054aba9
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x554719
Function at 0x55f0c2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x56fce2
call fcn.00529900
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00547c52
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00547c52
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00546fb6
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x54c2eb
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x560ae8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x560b16
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x560bb8
cmp dword [esp + 0x10], 0
je 0x560bb8
test esi, esi
jne 0x560b52
push 0x10
call fcn.00560905
test eax, eax
je 0x560b2b
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x560b2d
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.005608a7
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x560b6a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x560b7a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x560b86
call fcn.00546b67
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.0052a930
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8
Function at 0x560bed
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x560c40
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x560c23
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x560c23
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x560c3a
and dword [ebp - 4], 0
jmp 0x560c3a
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x560c33
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x560c04
cmp dword [ebp - 4], 0
je 0x560c7f
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x14]
call fcn.005608ba
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x560c75
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x56111e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0052c020
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x56119a
mov edi, Ordinal_3
and byte [eax], 0
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x56119a
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x105
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x561177
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x56119a
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.0052e190
pop ecx
test eax, eax
pop ecx
jne 0x561145
push esi
call fcn.00529d90
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x56aa38
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x56aa60
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x56aa71
push 2
call edi
test ax, ax
jge 0x56aa71
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00548375
cmp dword [esi + 0x30], ebx
jne 0x56ab4b
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00548375
cmp eax, dword [esp + 0x34]
jne 0x56ab4b
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x56aae7
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x56ab2c
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x56ab4b
cmp eax, 0x205
je 0x56ab4b
cmp eax, 0x201
je 0x56ab4b
cmp eax, 0x204
je 0x56ab4b
cmp eax, ebx
jne 0x56ab12
cmp dword [esp + 0x1c], 0x1b
je 0x56ab4b
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5b6cb8]
jbe 0x56ab41
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x56aaa4
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x56b1e7
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x571424
call fcn.00529900
sub esp, 0x118
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0054c354
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0054c354
and dword [ebp - 0x14], 0
mov ebx, Ordinal_3
cmp dword [ebp + 0x18], ebx
mov byte [ebp - 4], 1
jne 0x56b230
lea eax, [ebp - 0x14]
push eax
push str.CLSID
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
mov esi, dword [eax]
test esi, esi
je 0x56b2ef
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 8], 4
cmp dword [ebp + 0x18], ebx
jne 0x56b25c
cmp byte [esi], 0
je 0x56b2dc
push esi
call edi
push dword [ebp + 0x10]
lea eax, [eax + esi + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push esi
push eax
call fcn.00553aaf
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00553aaf
cmp dword [ebp + 0x18], ebx
mov eax, dword [ebp - 0x10]
jne 0x56b296
cmp dword [eax - 8], 0
je 0x56b2dc
cmp dword [ebp + 0x14], 0
jne 0x56b2bf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100
push ecx
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x56b2dc
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push esi
call edi
push eax
push esi
push 1
push dword [ebp - 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x56b2eb
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x56b24a
jmp 0x56b2ef
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x56b2fe
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0054c49f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x403600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x403629
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40363f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403636
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403672
nop
cmp esi, ecx
jae 0x403636
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403660
cmp esi, ecx
jae 0x403636
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret