joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f73c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a15f0]
jne 0x41f746
repz ret
jmp fcn.004246b8

Function at 0x426744
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a1d68]
je 0x42675f
inc edi
cmp edi, 0x17
jb 0x426750
cmp edi, 0x17
jae 0x4268df
push ebp
push 3
call fcn.0042d55d
cmp eax, 1
pop ecx
je 0x4268ab
push 3
call fcn.0042d55d
test eax, eax
pop ecx
jne 0x426793
cmp dword [0x4a1468], 1
je 0x4268ab
cmp ebx, 0xfc
je 0x4268de
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a6148
push ebp
call fcn.0042117f
add esp, 0xc
test eax, eax
je 0x4267c9
push esi
push esi
push esi
push esi
push esi
call fcn.00425868
add esp, 0x14
push 0x104
mov esi, 0x4a6161
push esi
push 0
mov byte [0x4a6265], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42680d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042117f
add esp, 0xc
test eax, eax
je 0x42680d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00425868
add esp, 0x14
push esi
call fcn.00421260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x426852
push esi
call fcn.00421260
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a645c
push 0x482d3c
sub ecx, eax
push ecx
push eax
call fcn.0042300f
add esp, 0x14
test eax, eax
je 0x426852
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00425868
add esp, 0x14
jmp 0x426854
xor esi, esi
push 0x482d38
push ebx
push ebp
call fcn.00421581
add esp, 0xc
test eax, eax
je 0x426874
push esi
push esi
push esi
push esi
push esi
call fcn.00425868
add esp, 0x14
push dword [edi*8 + 0x4a1d6c]
push ebx
push ebp
call fcn.00421581
add esp, 0xc
test eax, eax
je 0x426896
push esi
push esi
push esi
push esi
push esi
call fcn.00425868
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042d3a0
add esp, 0xc
jmp 0x4268de
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4268de
cmp ebp, 0xffffffff
je 0x4268de
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a1d6c]
push dword [esi]
call fcn.00421260
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42d3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424896
xor ebx, ebx
cmp dword [0x4a669c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42d476
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42d556
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483fc4
push edi
call esi
cmp eax, ebx
je 0x42d556
push eax
call fcn.00424828
mov dword [esp], 0x483fb4
push edi
mov dword [0x4a669c], eax
call esi
push eax
call fcn.00424828
mov dword [esp], 0x483fa0
push edi
mov dword [0x4a66a0], eax
call esi
push eax
call fcn.00424828
mov dword [0x4a66a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420c2f
test eax, eax
pop ecx
pop ecx
je 0x42d444
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425868
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42d476
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424828
cmp eax, ebx
pop ecx
mov dword [0x4a66ac], eax
je 0x42d476
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424828
pop ecx
mov dword [0x4a66a8], eax
mov eax, dword [0x4a66a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42d4fb
cmp dword [0x4a66ac], ecx
je 0x42d4fb
push eax
call fcn.0042489f
push dword [0x4a66ac]
mov esi, eax
call fcn.0042489f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42d4fb
cmp edi, ebx
je 0x42d4fb
call esi
cmp eax, ebx
je 0x42d4c8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42d4c8
test byte [ebp - 0x18], 1
jne 0x42d4fb
lea eax, [ebp - 0x10]
push eax
call fcn.00420c66
test eax, eax
pop ecx
je 0x42d4e3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425868
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42d4f2
or dword [ebp + 0x10], 0x200000
jmp 0x42d536
or dword [ebp + 0x10], 0x40000
jmp 0x42d536
mov eax, dword [0x4a66a0]
cmp eax, dword [ebp - 8]
je 0x42d536
push eax
call fcn.0042489f
cmp eax, ebx
pop ecx
je 0x42d536
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d536
mov eax, dword [0x4a66a4]
cmp eax, dword [ebp - 8]
je 0x42d536
push eax
call fcn.0042489f
cmp eax, ebx
pop ecx
je 0x42d536
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a669c]
call fcn.0042489f
cmp eax, ebx
pop ecx
je 0x42d556
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42d558
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4383c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c658
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 0x70]
push ecx
lea ecx, [esp + 0xc]
call fcn.00449840
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esi + 0x98]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], edx
call fcn.00437f10
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00449860
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 0x10

Function at 0x438920
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x34]
neg esi
push 0
sbb esi, esi
push 0x437710
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_EnumWindows]
test esi, esi
je 0x43899c
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [edi + 0x28]
lea esp, [esp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.004377e0
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43898b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x134]
push ebp
push edx
call eax
jmp 0x438993
push esi
mov ecx, edi
call fcn.004388b0
cmp dword [esp + 0x10], 0
jne 0x438950
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret 8

Function at 0x439540
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0xc]
push 0x14
push ecx
mov dword [esi], vtable.CXTPSkinManagerApiFunction.0
mov dword [esi + 8], 0
mov dword [esi + 0x44], edx
call fcn.0042117f
mov edx, dword [esp + 0x40]
push edx
lea eax, [esi + 0x20]
push 0x1e
push eax
call fcn.0042117f
add esp, 0x18
cmp dword [0x4a6b54], 0
jne 0x43959e
call fcn.004092d9
mov dword [0x4a6b54], eax
mov ecx, dword [0x4a6b50]
test ecx, ecx
jne 0x4395bd
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [0x4a6b50], ecx
mov eax, dword [esi + 0x40]
cmp eax, ecx
jbe 0x4395cf
cmp byte [eax], 0x68
jne 0x4395cf
mov edx, dword [eax + 1]
mov dword [esi + 0x40], edx
mov eax, esi
pop esi
add esp, 0x24
ret 0x14
Function at 0x4485f0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47d15e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
or ebp, 0xffffffff
cmp dword [edi + 0x3c], ebx
mov dword [esp + 0x28], ebx
je 0x448726
push 0x5c
add edi, 0x30
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00448440
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 1
call fcn.0040ec39
add esp, 0x18
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.0040558d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4486a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x448702
test al, 0x10
jne 0x448702
push 0x38
call fcn.00402320
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x28], 3
je 0x4486de
mov ecx, eax
call fcn.00446cc0
mov esi, eax
jmp 0x4486e0
xor esi, esi
push edi
mov ecx, esi
mov byte [esp + 0x2c], bl
call fcn.00447180
test eax, eax
jne 0x4487b2
cmp esi, ebx
je 0x448702
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x44871f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4487d1
push 0x5f
push 0x2e
lea ecx, [esp + 0x38]
call fcn.00448350
push 0x5f
push 0x5c
lea ecx, [esp + 0x38]
call fcn.00448350
push 0x38
call fcn.00402320
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x28], 4
je 0x448762
mov ecx, eax
call fcn.00446cc0
mov esi, eax
jmp 0x448764
xor esi, esi
mov eax, dword [edi + 0x28]
mov edi, dword [esp + 0x30]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00447220
test eax, eax
jne 0x4487b2
cmp esi, ebx
je 0x44878a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
or ebp, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x44871f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4487d1
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4487cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4487f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47d188
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.TEXTFILE
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x28]
push str.THEMES_INI
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x448859
mov esi, dword [esp + 0x1c]
push 0x47faa9
mov ecx, esi
call fcn.004034e7
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x448834
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str._File.
push eax
call fcn.00476002
mov esi, eax
add esp, 8
test esi, esi
je 0x448834
push 0x5d
push esi
call fcn.00476735
sub eax, esi
sar eax, 1
sub eax, 6
push eax
add esi, 0xc
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00448410
mov esi, dword [esp + 0x30]
push str._ini
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x34], 0
call fcn.00403dad
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x20
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4488e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x449560
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push eax
mov dword [esi], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x4494e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x4495ac
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x4495b0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x449637
mov eax, dword [esi + 0x10]
push ebx
push eax
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], edi
call ebx
test eax, eax
je 0x449625
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, edi
cmp dword [esp + 0x10], 0x103
jne 0x449624
mov eax, dword [esi + 8]
add edi, 1
cmp edi, 0xa
ja 0x44961b
push 0x64
push eax
call ebp
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x4495f0
jmp 0x449624
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x44a9c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 4]
mov esi, ecx
push eax
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [esi + 4], eax
mov dword [edi + 0x80], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x44aa13
cmp dword [esi + 0x20], 0
jne 0x44aa13
push 0
push 0
push 0x211
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
ret 4
Function at 0x44f3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47d45b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x48
call fcn.00402320
add esp, 4
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x44f429
push edi
mov ecx, eax
call fcn.0044a940
mov esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.0044edc0
mov ecx, esi
mov edi, eax
call fcn.0044a3a0
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4544f0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 0x1f4]
test bl, bl
js 0x4545c9
push esi
push edi
mov edi, ebx
and edi, 2
call fcn.00438870
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, edi
neg esi
sbb esi, esi
and esi, 3
add esi, 3
test bl, 8
jne 0x454557
test edi, edi
jne 0x45454b
and ebx, 4
or ebx, 0x10
shr ebx, 2
jmp 0x454555
and bl, 4
neg bl
sbb ebx, ebx
add ebx, 8
mov esi, ebx
cmp dword [ebp + 0x1f8], 0
mov edi, 1
je 0x45456a
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x20]
jne 0x45457c
mov edi, 3
jmp 0x4545a2
mov ebx, dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x4545a2
push 0
push 0
push 0x129
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test al, 1
jne 0x4545a2
mov edi, 4
mov ecx, ebp
call fcn.0040dedb
test eax, eax
jne 0x4545b2
mov edi, 5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push eax
call fcn.00433500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x454a70
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 0x14]
push eax
push 0
mov esi, ecx
mov ecx, dword [esi + 0x20]
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x1f8]
je 0x454af0
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
mov dword [esi + 0x1f8], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esi + 0x1f8], 0
je 0x454af0
mov eax, dword [esi + 0x20]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov ecx, esi
call fcn.00408aa6
pop esi
add esp, 0x20
ret 0xc

Function at 0x4571a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xf0]
test esi, esi
mov dword [esp + 4], ecx
je 0x45723c
mov eax, dword [esp + 0xc]
shr eax, 8
cmp al, 2
push edi
mov edi, dword [esi + 0x44]
jne 0x45723b
test edi, edi
je 0x45723b
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
push ebp
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4571e6
mov eax, dword [edi + 0x2c]
jmp 0x457207
cmp dword [esi + 4], 0
mov ecx, ebx
jne 0x4571f0
mov ecx, ebp
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x457205
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x457207
mov eax, ecx
mov edi, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.00457110
cmp dword [esp + 0x18], 0x202
pop ebp
mov dword [esi], 1
pop ebx
je 0x457232
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x45723b
push 0
mov ecx, edi
call fcn.00457080
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x459d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47dce8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push esi
push ebp
call fcn.0045e110
add esp, 8
test eax, eax
je 0x459d90
mov eax, dword [esp + 0x44]
push eax
push esi
push ebp
call fcn.004612a0
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x459e53
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x459e53
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x459e53
movzx eax, word [edi + 0xe]
mov edx, dword [esp + 0x44]
movzx esi, ax
imul esi, dword [edi + 4]
add esi, 0x1f
sar esi, 3
and esi, 0xfffffffc
imul esi, dword [edi + 8]
xor ecx, ecx
cmp ax, 0x20
sete cl
push ebx
push ebp
mov dword [esp + 0x1c], 0
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 0x28]
cmp eax, ecx
jb 0x459eed
lea ecx, [esp + 0x1c]
call fcn.0040c649
xor ebp, ebp
push ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.0040cbc5
cmp word [edi + 0xe], 0x18
jb 0x459ebb
push 0x34
call fcn.0041fda8
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x459e69
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040cc3f
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x28
push edi
push ebx
call fcn.00446490
add esp, 0xc
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [ebx + 0x14], esi
mov eax, dword [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x459eb0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x459eb0
push esi
add edi, 0x28
push edi
push eax
call fcn.00446490
add esp, 0xc
mov dword [esp + 0x14], ebp
push ebx
call fcn.0041f9d6
add esp, 4
jmp 0x459edc
push edi
call fcn.00459500
mov esi, eax
push esi
push edi
call fcn.004595b0
add esp, 0xc
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x459edc
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040cc3f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x45be90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0xe4], 0
push esi
push edi
je 0x45bea6
call fcn.0045b970
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.0045a110
xor esi, esi
lea edi, [ebx + 0xf4]
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00456a30
test eax, eax
jne 0x45bf19
add esi, 1
add edi, 0x60
cmp esi, 2
jl 0x45bed0
mov eax, dword [esp + 0x18]
cmp eax, 9
je 0x45bf10
cmp eax, 8
je 0x45bf10
cmp eax, 0x14
je 0x45bf10
cmp eax, 0x15
je 0x45bf10
mov ecx, ebx
call fcn.00408aa6
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0xc]
xor edx, edx
test ax, ax
mov eax, dword [esp + 0x10]
setl dl
push edx
push edi
push eax
push ecx
mov ecx, ebx
call fcn.004574e0
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc

Function at 0x45d170
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [esp + 0x14]
mov esi, eax
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 0x45d1a2
push esi
mov ecx, edi
call fcn.00402c85
test esi, esi
mov eax, dword [edi]
jl 0x45d1f0
cmp esi, dword [eax - 8]
jg 0x45d1f0
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [esi + ecx], 0
add esi, 1
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [edi]
test ecx, ecx
jne 0x45d1cc
xor eax, eax
jmp 0x45d1de
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x45d1d1
sub eax, esi
js 0x45d1f0
cmp eax, dword [ecx - 8]
jg 0x45d1f0
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
pop edi
pop esi
mov byte [eax + edx], 0
pop ebx
ret
push 0x80070057
call fcn.00401ad0
int3

Function at 0x45df50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45df7f
xor eax, eax
pop esi
add esp, 0x3c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe
lea edx, [esp + 0x18]
push edx
push esi
call edi
test eax, eax
je 0x45dfda
cmp dword [esp + 8], 0xe
jne 0x45dfda
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x45dfda
cmp dword [esp + 8], 0x28
jne 0x45dfda
xor edx, edx
cmp word [esp + 0x2a], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret