joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4279de
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 4]
lea edi, [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.004035ec
push dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi]
call ebp
push dword [esi + 0x38]
mov ebx, 0x80
push 0
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x38]
push 1
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push dword [edi]
call ebx
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x2c], eax
cmp dword [ecx - 8], 0
je 0x427a65
push ecx
push eax
call ebp
push 5
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x34]
push 0xf1
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x20]
push 0x3ee
push dword [edi]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x10]
push eax
call ebp
lea eax, [esi + 0x24]
push 0x3ea
push dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x10]
push eax
call ebp
push 0x3ea
push dword [edi]
call ebx
mov ecx, dword [esp + 0x14]
push 0x4bc550
mov dword [esi + 0x28], eax
call fcn.00403adc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x428394
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0040c926
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x4283ec
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x42843c
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.0040c59a
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x428433
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x428454
cmp dword [ebp - 0xc], 0
je 0x428454
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14
Function at 0x4284ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x42859d
cmp dword [0x4c1e78], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x42851e
push str.GdipCreateFromHDC
push eax
call esi
mov dword [0x4c1e78], eax
cmp dword [0x4c1e7c], edi
jne 0x428534
push str.GdipDeleteGraphics
push dword [ebx]
call esi
mov dword [0x4c1e7c], eax
cmp dword [0x4c1e80], edi
jne 0x42854a
push str.GdipDrawImageRectRectI
push dword [ebx]
call esi
mov dword [0x4c1e80], eax
cmp dword [0x4c1e84], edi
jne 0x428560
push str.GdipCreateImageAttributes
push dword [ebx]
call esi
mov dword [0x4c1e84], eax
mov eax, dword [0x4c1e88]
cmp eax, edi
jne 0x428577
push str.GdipSetImageAttributesColorMatrix
push dword [ebx]
call esi
mov dword [0x4c1e88], eax
cmp dword [0x4c1e78], edi
je 0x42859d
cmp dword [0x4c1e7c], edi
je 0x42859d
cmp dword [0x4c1e80], edi
je 0x42859d
mov ecx, dword [0x4c1e84]
cmp ecx, edi
je 0x42859d
cmp eax, edi
jne 0x4285a4
xor eax, eax
jmp 0x4286b5
cmp dword [0x4c1e8c], edi
jne 0x4285b3
push 0x4c1e8c
call ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
call dword [0x4c1e78]
fld1
mov esi, dword [ebp + 0x20]
fstp dword [ebp - 0x68]
fldz
cmp esi, edi
fstp dword [ebp - 0x64]
fldz
fstp dword [ebp - 0x60]
fldz
fstp dword [ebp - 0x5c]
fldz
fstp dword [ebp - 0x58]
fld1
fstp dword [ebp - 0x54]
fld1
fstp dword [ebp - 0x50]
fldz
fstp dword [ebp - 0x4c]
fldz
fstp dword [ebp - 0x48]
fldz
fstp dword [ebp - 0x44]
fldz
fstp dword [ebp - 0x40]
fldz
fstp dword [ebp - 0x3c]
fld1
fstp dword [ebp - 0x38]
fldz
fstp dword [ebp - 0x34]
fldz
fstp dword [ebp - 0x30]
fldz
fstp dword [ebp - 0x2c]
fldz
fstp dword [ebp - 0x28]
fldz
fstp dword [ebp - 0x24]
fld1
fstp dword [ebp - 0x20]
fldz
fstp dword [ebp - 0x1c]
fldz
fstp dword [ebp - 0x18]
fldz
fstp dword [ebp - 0x14]
fldz
fstp dword [ebp - 0x10]
fldz
fstp dword [ebp - 0xc]
fld1
fstp dword [ebp - 8]
je 0x42866b
push 0x19
lea eax, [ebp - 0x68]
pop ecx
lea edi, [ebp - 0x68]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push 1
push dword [0x4c1e8c]
rep movsd dword es:[edi], dword [esi]
call dword [0x4c1e88]
xor edi, edi
mov ecx, ebx
call fcn.00428840
mov ecx, ebx
mov esi, eax
call fcn.00428870
push edi
push edi
push dword [0x4c1e8c]
push 2
push eax
mov eax, dword [ebp + 0x18]
push esi
sub eax, dword [ebp + 0x10]
push edi
push edi
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp - 4]
call dword [0x4c1e80]
push dword [ebp - 4]
call dword [0x4c1e7c]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x428755
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004288a0
cmp dword [0x4c1eb4], 0
jne 0x428781
push str.GdipLoadImageFromStream
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4c1eb4], eax
je 0x4287bd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4287bd
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4287bd
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4287c1
xor eax, eax
jmp 0x428839
mov eax, dword [ebx + 4]
test eax, eax
je 0x4287dc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 4], 0
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebx + 4], eax
je 0x428836
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x428836
mov ecx, edi
mov edi, eax
mov eax, ecx
and dword [ebp + 0x10], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x10]
and ecx, 3
push eax
push 0
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x428836
add ebx, 0xc
push ebx
push dword [ebp + 0x10]
call dword [0x4c1eb4]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4288e4
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esi], 0x4aa24c
mov dword [esi + 0x1c], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
cmp dword [0x4c20ec], ebp
jne 0x428969
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x45
mov edx, 0x4c1fd8
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov dword [0x4c20ec], 1
mov dword [0x4c1fd8], 0x114
call ebx
cmp dword [0x4c1fdc], 5
jb 0x428969
push 0x47
mov edx, 0x4c1eb8
pop ecx
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
mov dword [0x4c1eb8], 0x11c
call ebx
mov eax, dword [0x4c1ebc]
mov dword [0x4c1fdc], eax
mov eax, dword [0x4c1ec0]
mov dword [0x4c1fe0], eax
mov dword [esi + 0xc], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4292ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4af550]
and word [ebp - 0x14], 0
push esi
push edi
mov esi, ecx
mov edi, 0x400
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00403c58
push edi
push eax
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00403cd2
cmp dword [esi + 0x3c], 0
je 0x429318
mov eax, dword [ebp - 4]
push dword [eax - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea edx, [ebp - 0x14]
mov esi, dword [esi + 0x3c]
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [esi]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
push esi
call dword [ecx + 0x2c]
mov esi, eax
jmp 0x42931a
xor esi, esi
lea ecx, [ebp - 4]
call fcn.004038fb
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x42b8cb
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x42b8e2
push 8
mov eax, esi
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x42b8dc
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42b914
lea eax, [esi + 4]
push eax
push ebx
push ebx
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x42b918
push esi
call fcn.0042b91d
pop ecx
xor al, al
jmp 0x42b91a
mov al, 1
pop esi
pop ebx
ret

Function at 0x42bbf9
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION_
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
call fcn.00403927
lea eax, [ebp - 0xc]
mov ebx, 0xf003f
push eax
push ebx
push esi
mov edi, SHChangeNotifyRegister
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42bc43
lea ecx, [ebp - 4]
call fcn.00405b3f
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], esi
je 0x42bcdf
cmp eax, esi
je 0x42bc8d
lea eax, [ebp - 0xc]
mov dword [ebp + 0xc], esi
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x42bc7c
lea ecx, [ebp - 4]
call fcn.00405b3f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x42bc8d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push ebx
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42bcb2
lea ecx, [ebp - 4]
call fcn.00405b3f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042bb95
mov eax, dword [eax]
pop ecx
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
push esi
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x2af9
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0xc]
jmp 0x42bcf9
lea eax, [ebp + 0xc]
push eax
call fcn.0042bb95
pop ecx
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp + 0xc]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.00405b3f
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42be10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
lea eax, [ebp - 0x24c]
push 0x104
push eax
push dword [0x4c69a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 8], esi
jne 0x42be63
lea eax, [ebp - 0x24c]
test eax, eax
je 0x42be53
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.004039ec
push edi
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
push eax
mov dword [ebp - 0x44], 0x3c
call fcn.004038b5
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x40], esi
call fcn.00403c58
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 1
call fcn.004038b5
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x30], eax
pop edi
je 0x42bebc
mov dword [ebp - 0x38], 0x4b0138
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp + 8]
call fcn.004038fb
lea ecx, [ebp + 0xc]
call fcn.004038fb
mov eax, esi
pop esi
leave
ret
Function at 0x42bfa2
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x10]
call fcn.0040a529
mov eax, dword [0x4bc51c]
mov ebx, 0x81
mov dword [ebp - 0x844], eax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x840]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [ebp - 0x844]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x844]
mov ecx, esp
push eax
call fcn.0040a529
lea eax, [ebp - 0x18]
push eax
call fcn.0042beed
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push str._selfdestruct.bat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a956
mov edx, dword [0x4bc51c]
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x42c]
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x228], edx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x224]
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x634]
mov dword [ebp - 0x638], edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x228]
push eax
push esi
call edi
lea eax, [ebp - 0x638]
push eax
push esi
call edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.0049cea2
pop ecx
lea eax, [ebp - 0x430]
pop ecx
push esi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x430]
lea ecx, [ebp - 8]
push eax
call fcn.0040a529
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x42c174
push dword [ebp - 0xc]
mov eax, dword [0x4af550]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 0x10]
push eax
call fcn.00403d66
add esp, 0x14
lea ecx, [ebp - 4]
push 0x4afcdc
push 0x4afcd4
call fcn.004040f7
mov eax, dword [ebp - 4]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x42c105
xor edi, edi
jmp 0x42c135
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0049c210
mov edi, esp
push esi
push esi
push ebx
and byte [edi], 0
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push esi
push ecx
push dword [eax - 8]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x638]
push esi
push eax
lea eax, [ebp - 0x228]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea esp, [ebp - 0x850]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c704
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c742
cmp dword [ebp + 0x10], esi
je 0x42c764
push esi
push str.Create_Error_
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42c764
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [eax + 0x14]
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
lea ecx, [ebp + 8]
call fcn.004038fb
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42c772
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SHChangeNotifyRegister
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x42c7ad
push ebx
push str.Error1_
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42c7ee
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 8], ebx
lea eax, [edi + 1]
lea ecx, [esi + 4]
push eax
call fcn.00403c58
lea ecx, [ebp - 8]
push ebx
push ecx
push edi
push eax
mov dword [esi], eax
push dword [ebp - 4]
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
lea ecx, [ebp + 8]
call fcn.004038fb
mov eax, ebx
pop ebx
leave
ret
Function at 0x430d72
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov esi, ecx
push 0x11
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
mov eax, dword [esp + 0x14]
setl cl
sub eax, 0x23
je 0x430e10
dec eax
je 0x430df6
dec eax
je 0x430dea
dec eax
je 0x430de2
dec eax
je 0x430dce
dec eax
je 0x430dbe
sub eax, 0x49
jne 0x430e48
push dword [esi + 4]
call fcn.0046e3d3
pop ecx
jmp 0x430e48
mov dword [edi], 1
push ebx
mov ecx, esi
call fcn.0043128d
jmp 0x430e48
cmp ecx, ebx
je 0x430e48
mov dword [edi], 1
push ebx
mov ecx, esi
call fcn.004312c2
jmp 0x430e48
push 1
pop eax
mov dword [edi], eax
push eax
jmp 0x430dc5
cmp ecx, ebx
je 0x430e48
push 1
pop eax
mov dword [edi], eax
push eax
jmp 0x430dd9
cmp ecx, ebx
je 0x430e48
push dword [esi + 0x24]
mov ecx, dword [esi + 0x38]
call fcn.0042e8bb
push esi
push eax
mov dword [edi], 1
push ebx
jmp 0x430e40
cmp ecx, ebx
je 0x430e48
mov dword [edi], 1
mov eax, dword [esi + 0x38]
push ebx
add eax, 4
push ebx
push 0x1004
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x24]
mov ecx, dword [esi + 0x38]
mov edi, eax
call fcn.0042e8bb
push esi
dec edi
push eax
push edi
mov ecx, dword [esi + 0x38]
call fcn.00430404
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x430e50
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 1
mov esi, ecx
pop ebx
push 0x10
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
movzx eax, word [ebp + 0xc]
setl cl
cmp eax, 9
je 0x430fe7
cmp eax, 0xd
je 0x430fd5
cmp eax, 0x1b
je 0x430fc0
xor ebx, ebx
lea ecx, [ebp + 0x14]
mov dword [edi], ebx
mov eax, dword [0x4af550]
mov edi, 0x400
mov dword [ebp + 0x14], eax
push edi
call fcn.00403c58
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.00403cd2
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0xc], eax
call edi
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
add dword [ebp - 0x14], 5
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x34]
push ecx
push eax
call ebx
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x430f61
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
je 0x430f79
lea eax, [ebp - 0x1c]
push eax
push ebx
call edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub edx, ecx
cmp eax, edx
jle 0x430fae
add eax, ecx
cmp eax, dword [ebp - 0x2c]
jl 0x430f92
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
sub edx, dword [ebp - 0x20]
push 1
sub eax, ecx
push edx
push eax
push dword [ebp - 0x20]
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
lea ecx, [ebp - 0xc]
call fcn.0041979e
lea ecx, [ebp + 0x14]
call fcn.004038fb
jmp 0x430ff7
push dword [esi + 4]
mov dword [esi + 0x30], ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x430ff7
test ecx, ecx
je 0x430fdc
push ebx
jmp 0x430fde
push 0
mov ecx, esi
call fcn.0043128d
jmp 0x430ff7
test ecx, ecx
je 0x430fee
push ebx
jmp 0x430ff0
push 0
mov ecx, esi
call fcn.004312c2
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4311c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4af550]
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x800
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00403c58
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00403cd2
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x38]
add eax, 4
push dword [eax]
call ebx
push dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x30], 0xffffff50
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [ebp - 0x2c], 1
call fcn.0049c975
pop ecx
test eax, eax
pop ecx
jne 0x431247
or dword [ebp - 0x24], 0xffffffff
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp - 4]
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [eax - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x38]
add eax, 4
push dword [eax]
call ebx
push dword [esi + 4]
mov ebx, eax
call edi
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0x4e
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 4]
call fcn.004038fb
pop edi
pop esi
pop ebx
leave
ret