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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593b68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.SoftwareAdobeALCID
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f12d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.004083b0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x42f1ea
inc ecx
push ecx
jmp 0x42f1df
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
push 0
push 0x5ed2bc
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f1ae
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42f1ae
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00438100
mov edi, eax
add esp, 4
test edi, edi
je 0x42f1ae
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0x5ed2bc
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f1a5
push edi
lea ecx, [ebp - 0x2c]
call fcn.00408080
push edi
call fcn.00438109
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.004083b0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42f1ea
inc eax
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00407210
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
Function at 0x4301d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00565bc0
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x2010], edx
jb 0x4301fc
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x430221
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x430257
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43029f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4302a7
call esi
mov dword [ebp - 0x2010], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x430260
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [ebp - 0x2010]
xor eax, eax
mov ecx, dword [ebp - 4]
test edx, edx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x431940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43198e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x43198b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x43198b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
mov ecx, dword [ebp + 0x1c]
setne bl
cmp ecx, 8
jb 0x4319a6
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00407210
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x18
Function at 0x432810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5945d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x612120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00434ab0
push 0x4329d0
push 0x432920
push 0x3fd
push 0xc
lea eax, [esi + 0x38]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.devtech_private::FastArray.0
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0xffffffff
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
mov dword [esi + 0x34], 0
call fcn.005653e3
mov dword [esi + 0x3014], 0
mov eax, esi
mov dword [esi + 0x3018], 0
mov dword [esi + 0x301c], 0
mov dword [esi + 0x3020], 0
mov dword [esi + 0x3024], 0
mov byte [esi + 0x3028], 1
mov dword [esi + 0x302c], 0
mov byte [esi + 0x3030], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4332b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x14]
mov esi, ecx
call fcn.00436c10
add esp, 4
test al, al
mov eax, dword [ebp + 0xc]
je 0x433328
test al, al
je 0x433328
push edi
lea ecx, [esi + 0x14]
call fcn.00434400
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.004343f0
xor esi, esi
mov dword [ebp + 0x14], eax
test edi, edi
jle 0x43331f
push ebx
mov ebx, dword [ebp + 8]
nop dword [eax]
movzx ecx, word [eax + esi*2]
mov ax, cx
shl ecx, 8
shr ax, 8
xor ax, cx
mov ecx, ebx
movzx eax, ax
push 0
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 2
push eax
call fcn.00433e50
mov eax, dword [ebp + 0x14]
inc esi
cmp esi, edi
jl 0x4332f0
pop ebx
lea eax, [edi + edi]
pop edi
pop esi
pop ebp
ret 0x10
push dword [ebp + 0x10]
lea ecx, [esi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00434420
pop esi
pop ebp
ret 0x10
Function at 0x43a764
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594845
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00565bc0
mov eax, dword [0x612120]
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 edx, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2020], edx
mov dword [ebp - 0x2028], ebx
cmp dword [ecx + 0x58], ebx
je 0x43a89b
push ebx
push eax
call fcn.0043a8ea
mov ebx, eax
test ebx, ebx
jne 0x43a7cc
push esi
jmp 0x43a8c3
call fcn.004455f1
push eax
lea ecx, [ebp - 0x2014]
call fcn.0040dcb0
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x201c]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2020]
mov dword [ebp - 0x201c], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2024], eax
test eax, eax
jne 0x43a85a
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0040dc70
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x201c]
push eax
push 0
push dword [ebp - 0x2020]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x2024], eax
call fcn.0043aa0e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2024], 0
jne 0x43a888
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00438ae8
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040d320
jmp 0x43a8ca
push esi
mov ecx, edi
call fcn.0043820c
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x43a881
test esi, esi
jne 0x43a8a4
mov esi, 0x5e83dc
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.0043820c
mov eax, edi
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.00564ee1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43d566
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x43d5ab
call fcn.0044811b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43d5ab
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43d5c7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044f4ab
mov ebx, eax
test edi, edi
je 0x43d5c5
test esi, esi
je 0x43d5c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43df23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x43dfe1
cmp dword [esi + 0x20], 0
je 0x43dfe1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43dfe1
cmp dword [ebp + 8], 0
je 0x43dfe1
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0044811b
push 0x5a6378
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x43dfb2
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43dfe1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0044ffa3
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x43dfd2
test edi, edi
je 0x43dfd2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x43dfdd
mov ecx, esi
call fcn.0043dced
mov eax, ebx
jmp 0x43dfe3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x444151
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x59e817
call fcn.00565ae4
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x74], esi
jne 0x444177
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4441cb
call fcn.004455f1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dcb0
mov ecx, dword [edi + 0x74]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], esi
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00575d8e
push eax
call fcn.0043884b
add esp, 0x14
test edi, edi
je 0x4441be
push edi
call fcn.00577ee4
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040d320
mov eax, esi
call fcn.00565aad
ret 8

Function at 0x444956
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044811b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44498d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004449ae
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444c65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x594c39
call fcn.00565b4f
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
call fcn.0044811b
xor ebx, ebx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x84], ebx
je 0x444cc4
call fcn.0044811b
push 5
push dword [esi + 0x84]
mov edi, dword [eax + 0xc]
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x444cd4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
jmp 0x444cd7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x444ce3
or eax, 0xffffffff
jmp 0x444e2b
mov ecx, esi
call fcn.0044516d
mov edi, eax
mov dword [ebp - 0x30], edi
call fcn.0043c362
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
test edi, edi
je 0x444d5b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x444d5b
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x444d5b
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00438875
mov dword [ebp - 0x18], eax
test eax, eax
je 0x444d5b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x150]
test eax, eax
je 0x444d5b
mov ecx, dword [ebp - 0x18]
call fcn.0044426e
test eax, eax
je 0x444d5b
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00443c5a
mov dword [ebp - 0x28], 1
push esi
mov dword [ebp - 4], ebx
call fcn.0043bffa
push edi
call fcn.0043d5d0
push dword [ebp - 0x20]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.00444c06
test eax, eax
jne 0x444da3
cmp dword [esi + 0x9c], ebx
jne 0x444da3
call fcn.0044811b
push edi
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0043d5d0
push dword [ebp - 0x20]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.00444c06
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x9c], ebx
jmp 0x444dd4
cmp dword [ebp - 0x28], 0
je 0x444de4
mov ecx, dword [ebp - 0x18]
push 1
call fcn.00443c5a
cmp dword [ebp - 0x2c], 0
je 0x444df3
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x444e09
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x444e09
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.00445124
cmp dword [esi + 0x84], ebx
je 0x444e28
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x68]
call fcn.00565aad
ret
Function at 0x44e35c
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x595404
call fcn.00565b18
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x264], esi
test eax, eax
jne 0x44e38a
call fcn.004465fa
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x44e385
lea eax, [ebp - 0x268]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x44e3d2
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.00575d8e
push eax
call fcn.0043884b
add esp, 0x14
push ebx
push edi
call fcn.0044e32f
xor eax, eax
jmp 0x44e4f5
cmp eax, 0x104
jb 0x44e3ef
test edi, edi
je 0x44e3cb
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.0041fb20
jmp 0x44e3cb
call fcn.004455f1
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040dcb0
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.0044dce6
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x44e4ea
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x44e45a
push ebx
push edi
call fcn.0044e32f
lea ecx, [esi - 0x10]
call fcn.0040d320
jmp 0x44e3cb
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x44e476
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x44e4ea
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44e4ea
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x44e446
cmp eax, dword [ebp - 0x264]
jbe 0x44e446
lea eax, [ebp - 0x234]
push eax
call fcn.00577ee4
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x44e4fd
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.0056d0a4
push eax
call fcn.0043884b
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.0040d320
xor eax, eax
inc eax
call fcn.00565ac2
ret 0xc
test edi, edi
je 0x44e44d
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.0041fb20
jmp 0x44e44d
Function at 0x45195c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x451976
mov edi, dword [esi + 0xc]
jmp 0x4519b6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45198f
call fcn.004470e5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4519a4
call fcn.004470e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4519b6
call fcn.004470e5
call fcn.0044811b
cmp dword [eax + 0x3c], 0
je 0x4519cb
push edi
mov ecx, ebx
call fcn.004510d1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00451b9f
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4519f4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x451a00
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4798f3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00443db0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x47992f
call fcn.00479b12
mov dword [esi + 0xc], 1
jmp 0x479934
call fcn.00479b12
cmp dword [esi], 0
je 0x47997d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x479957
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0043d61e
jmp 0x479968
push 0xff
mov ecx, esi
call fcn.0040dc70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043aa0e
jmp 0x4799a1
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4799a1
push dword [esi]
push dword [ebp - 4]
call fcn.00449e09
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x479a67
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00479b12
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x479aaf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043d61e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043aa0e
jmp 0x479aba
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00449e09
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x484fb9
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x8000
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x484feb
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x485016
cmp dword [0x619cfc], 0
jne 0x485016
lea ecx, [esi - 0x41]
cmp ecx, 0x19
jbe 0x485009
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x48500d
mov eax, esi
jmp 0x485089
push esi
call fcn.0056b7a9
pop ecx
jmp 0x485089
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00568da0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x48509b
call fcn.00439de5
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4
call fcn.004465fa
int3
Function at 0x4854e9
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x597807
call fcn.00565b4f
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
call fcn.00461177
test eax, eax
je 0x48568a
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
push ecx
lea ecx, [ebx + 4]
call fcn.00462586
test eax, eax
je 0x48552c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004455f1
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dcb0
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.0040dc70
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0043aa0e
call fcn.004455f1
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dcb0
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040dc70
mov esi, dword [ebp - 0x18]
push eax
push edi
push 0x5ae620
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043aa0e
push edi
push 0x4000100
push 2
push edi
push edi
mov edi, dword [ebp - 0x14]
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4855c4
lea ecx, [edi - 0x10]
call fcn.0040d320
lea ecx, [esi - 0x10]
jmp 0x485685
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0044d9c8
push 0
push 0x1000
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.0045250f
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [ebx + 0x20], 1
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.00452acc
and dword [ebx + 0x20], 0
lea ecx, [ebp - 0x88]
call fcn.0045261f
lea ecx, [ebp - 0x40]
call fcn.0044da7d
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 4]
call fcn.00485265
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
lea ecx, [edi - 0x10]
call fcn.0040d320
lea ecx, [esi - 0x10]
call fcn.0040d320
xor eax, eax
inc eax
jmp 0x48568c
call fcn.0040d320
xor eax, eax
call fcn.00565aad
ret 8