joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e0d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d89e8
push eax
mov dword fs:[0], esp
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
add edi, 0x14
mov dword [esp + 0x1c], 0
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x45e1b4
lea esi, [esp + 0x1c]
call fcn.0045d8c0
mov dword [esp + 0x14], 0
mov esi, dword [eax]
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x45e13e
mov ecx, 0x104
mov eax, edi
call fcn.00403c30
mov eax, dword [edi]
push esi
push 0x104
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
test edx, edx
jne 0x45e18e
xor eax, eax
jmp 0x45e1a4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e193
sub eax, esi
sar eax, 1
js 0x45e1da
cmp eax, dword [edx - 8]
jg 0x45e1da
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov eax, dword [edi]
sub eax, 0x10
call fcn.00403c80
mov ecx, dword [esp + 0xc]
add eax, 0x10
pop edi
mov dword [ebp], eax
pop esi
mov eax, ebp
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 4
push 0x80070057
call fcn.00401020
int3

Function at 0x45ea40
Capabilities:
Read .ini file

Disassembly:
push ecx
mov ecx, edi
call fcn.0045dfc0
test eax, eax
jne 0x45ea53
mov eax, 0x60
pop ecx
ret
cmp dword [edi + 8], 0xffffffff
jne 0x45ea9c
push esi
lea esi, [esp + 4]
call fcn.0045d8c0
mov eax, dword [eax]
push eax
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x45ea9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 8]
pop ecx
ret
Function at 0x45f390
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp byte [esi + 0xd], 0
je 0x45f3e7
and byte [esi + 0x14], 1
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x45f3bf
or byte [esi + 0x14], 4
test eax, 0x20000000
mov cl, byte [esi + 0x14]
jne 0x45f3bf
or cl, 2
mov byte [esi + 0x14], cl
test byte [esi + 0x14], 2
je 0x45f3db
push esi
mov ecx, edi
call fcn.0045f3f0
mov eax, dword [esi + 8]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret

Function at 0x45fcc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
test byte [esi + 0x14], 2
je 0x45fd19
lea eax, [esp]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
sub ecx, eax
je 0x45fd09
mov edx, dword [esp + 8]
mov ecx, dword [esp]
sub edx, ecx
je 0x45fd09
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub ecx, edx
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add esp, 0x14
ret
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
add esp, 0x14
ret

Function at 0x45fd20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x1c], 1
push ebp
mov ebp, dword [esp + 0x24]
jne 0x45fd49
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
mov dword [esi + 0x18], ebp
pop ebp
add esp, 0x18
ret 8
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0xc]
je 0x45fdba
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
je 0x45fdba
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x45fdb0
or byte [esi + 0x14], 4
mov al, byte [esi + 0x14]
test al, 2
jne 0x45fda7
or al, 2
push esi
mov ecx, edi
mov byte [esi + 0x14], al
call fcn.0045f3f0
mov ecx, dword [esi + 8]
push 8
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x18], ebp
pop ebp
add esp, 0x18
ret 8
cmp dword [esi + 0x18], ebp
je 0x45fdb0
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], ebp
pop ebp
add esp, 0x18
ret 8
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
pop ebp
add esp, 0x18
ret 8
Function at 0x4604f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push edi
xor ebx, ebx
push 0x4e33a9
xor edi, edi
mov eax, esi
mov dword [esp + 0x1c], ebx
call fcn.00403d70
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push str._d._s
lea edi, [esp + 0x20]
mov dword [esp + 0x30], ebx
call fcn.00404190
add esp, 0xc
test byte [0x509c14], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jne 0x460585
or dword [0x509c14], 1
push 0x4db270
mov dword [0x509c30], ebx
mov dword [0x509c34], ebx
call fcn.0049f796
add esp, 4
mov ecx, dword [0x509c34]
cmp ecx, ebx
mov ebp, dword [esp + 0x14]
je 0x46063b
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call edx
cmp eax, ebx
je 0x46063b
cmp dword [esp + 0x10], ebx
je 0x46063b
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x46063b
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or eax, edx
jge 0x4605e7
mov eax, esi
call fcn.00404050
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
je 0x46063b
mov ecx, dword [esp + 0x10]
push edi
push ecx
push eax
call fcn.004a49a0
mov eax, dword [esp + 0x18]
add eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x460620
mov eax, dword [esi]
cmp eax, ebx
jne 0x460612
xor eax, eax
jmp 0x460624
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x460615
sub eax, edx
cmp eax, ebx
jl 0x460677
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x460677
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], bl
mov dword [esp + 0x18], 1
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46065f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push 0x80070057
call fcn.00401020
int3
Function at 0x460690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
push edi
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4606b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4606ab
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x4606ab
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x4606f8
mov ecx, edi
mov eax, esi
call fcn.00404050
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x460709
push ebx
push ecx
push eax
call fcn.004a49a0
add esp, 0xc
mov eax, edi
call fcn.00411150
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x460730
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d7270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x507fec]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x507fec
mov dword [esp + 0x14], ebx
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x30], ebx
lea eax, [edi + 0xc]
jne 0x46077b
mov eax, edi
lea edi, [esp + 0x10]
call fcn.00403880
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4608bc
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x2c]
push eax
push ecx
push ebp
push str._s_d._s
lea edi, [esp + 0x40]
call fcn.00404190
mov edx, dword [esp + 0x40]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x460898
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
je 0x46088d
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x2c], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [ebp + 0xa]
sub eax, ecx
or eax, edx
jge 0x460826
mov eax, esi
call fcn.00404050
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x30]
push ecx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x46087f
cmp dword [esp + 0x2c], ebp
jne 0x46087f
mov eax, ebp
call fcn.00411150
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.00403580
lea ecx, [esp + 0x10]
call fcn.00403580
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x4608f9
mov dword [eax - 0xc], ebx
mov edx, dword [esi]
mov byte [edx], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4608bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4608e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00401020
int3
Function at 0x462a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d7c61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
push edi
mov ecx, 0x507fec
call edx
mov ecx, dword [esp + 0x40]
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x18], 1
call fcn.004034e0
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x20]
add esi, 0x10
push eax
lea ebx, [esp + 0x48]
call fcn.0040e4b0
mov ebp, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462af2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
mov ebx, dword [esi + 4]
je 0x462afd
cmp ebp, esi
je 0x462b02
call fcn.004a089d
cmp edi, ebx
je 0x462bed
lea esi, [esp + 0x1c]
call fcn.00462c10
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.fonts_
mov dword [esp + 0x3c], 1
call fcn.0040fdc0
add esp, 8
mov ebx, eax
test ebp, ebp
mov byte [esp + 0x34], 2
jne 0x462b3e
call fcn.004a089d
cmp edi, dword [ebp + 4]
jne 0x462b48
call fcn.004a089d
add edi, 0x10
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.0040c2e0
add esp, 8
mov byte [esp + 0x34], 3
mov edi, dword [esp + 0x40]
call fcn.00403880
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462bb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 0xc

Function at 0x462c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
xor eax, eax
push 0x20e
push eax
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004a4620
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea ecx, [esp + 8]
call fcn.004034e0
mov eax, esi
add esp, 0x214
ret
Function at 0x462e40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d932e
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
call fcn.00463010
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea edi, [esi + 0x3c0]
mov dword [edi], vtable.IShadowPaintHook.0
mov dword [esi], vtable.KLiteMsgbox.0
mov dword [edi], vtable.KLiteMsgbox.1.0
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
lea ebp, [esi + 0x3dc]
call edx
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x18], 1
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi + 0x3e0], eax
mov byte [esp + 0x18], 2
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi + 0x3e4], eax
mov byte [esp + 0x18], 3
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi + 0x3e8], eax
mov byte [esp + 0x18], 4
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi + 0x3ec], eax
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov eax, dword [esp + 0x30]
mov byte [esp + 0x18], 5
mov dword [esi + 0x35c], ebx
mov dword [esi + 0x3a8], edi
mov dword [esi + 0x398], 0x1c
mov dword [esi + 0x3c8], ebx
mov dword [esi + 0x3d4], eax
mov dword [esi + 0x3d8], ebx
je 0x462f6b
mov eax, ecx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x462f50
sub eax, edi
sar eax, 1
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00403b90
xor ebx, ebx
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x462f9f
mov eax, edx
lea edi, [eax + 2]
jmp 0x462f80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462f80
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esi + 0x3e8]
call fcn.00403b90
xor ebx, ebx
mov edx, dword [esp + 0x28]
cmp edx, ebx
je 0x462fcf
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462fb0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esi + 0x3ec]
call fcn.00403b90
xor ebx, ebx
test byte [esp + 0x30], 0x10
je 0x462fe9
mov eax, 1
mov dword [esi + 0x3d0], eax
mov dword [esi + 0x3cc], eax
jmp 0x462ff5
mov dword [esi + 0x3cc], ebx
mov dword [esi + 0x3d0], ebx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x14
Function at 0x465080
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ebp, ebp
cmp dword [ebx + 0x300], ebp
mov dword [esp + 0x10], ebp
je 0x4650aa
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebx + 0x300], ebp
mov edi, dword [ebx + 0x2f4]
cmp edi, ebp
je 0x46519b
call fcn.0048c010
mov esi, eax
test esi, esi
mov edi, 1
je 0x465146
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 2
push 0
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
test eax, eax
je 0x4650e9
push edi
push ebx
call fcn.00464b10
mov ecx, dword [ebx + 0x2f4]
cmp ecx, dword [ebx + 0x2f0]
jne 0x465146
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x30]
mov ecx, dword [esp + 0x2c]
shl edx, 0x10
or edx, eax
push edx
push ecx
push 0x202
mov ecx, esi
call fcn.0048c330
mov eax, dword [esi + 0x40]
test eax, eax
je 0x465139
cmp word [eax], bp
je 0x465139
push edi
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x465146
mov eax, dword [esi + 0x10]
test eax, eax
je 0x465146
mov dword [esp + 0x10], edi
mov ebp, eax
cmp dword [esp + 0x10], 0
mov dword [ebx + 0x2f4], 0
je 0x46519b
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 8]
mov ecx, esi
mov dword [esp + 0x20], ebp
call eax
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc

Function at 0x465e60
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x465ec0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x465eb6
cmp edi, 0x1b
jne 0x465e9e
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x3bc], 0
ret
cmp edi, 0xd
jne 0x465eb6
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x3bc], 0
ret
Function at 0x467560
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, eax
cmp edi, esi
mov dword [esp + 0x10], esi
jne 0x46758f
mov eax, dword [0x509be4]
cmp eax, esi
je 0x467583
mov edi, dword [eax + 4]
cmp edi, esi
jne 0x46758f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x4675b4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x4675b4
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4675b4
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x1c]
push ecx
mov eax, esp
push edi
mov dword [ebx + 0x3b8], esi
push ebx
mov dword [eax], esi
call fcn.004676f0
mov ebp, eax
cmp ebp, esi
jne 0x4675e5
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [0x509be4]
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x4675fc
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [eax + 4], ebp
mov eax, edi
call fcn.00468550
cmp dword [ebx + 0x3ac], esi
je 0x46766e
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov ebx, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, ebx
je 0x467655
push 1
push esi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, ebx
je 0x46766a
push 0
push esi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, dword [esp + 0x1c]
mov esi, ebx
call fcn.00468690
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0x97
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esi + 0x3b8], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x10], 0
je 0x4676c2
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x4676c2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x4676c2
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x509be4]
test eax, eax
je 0x4676d2
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4687c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x4687ec
mov ecx, esi
mov eax, edi
call fcn.00403c30
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
mov ecx, eax
jne 0x46881f
mov ecx, dword [edi]
test ecx, ecx
je 0x468823
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x468810
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x468837
mov edx, dword [edi]
cmp ecx, dword [edx - 8]
jg 0x468837
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov word [edx + ecx*2], 0
pop esi
ret
push 0x80070057
call fcn.00401020
int3

Function at 0x46c080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d877e
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esp + 0x10], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [esp + 0x10], 2
mov dword [esi + 0x70], edi
call fcn.0046f9b0
mov ecx, dword [esp + 8]
mov dword [esi + 0x78], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x78]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x78]
mov dword [eax], eax
mov eax, dword [esi + 0x78]
mov dword [eax + 8], eax
mov dword [esi + 0x7c], edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4