joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
push esi
xor esi, esi
push esi
push 0x10
lea eax, [esp + 0xc]
push 0x401400
push eax
mov dword [esp + 0x14], esi
call sub.USER32.dll_DdeInitializeA
cmp eax, esi
jne 0x4013ee
mov ecx, dword [str.ACDPhotoEnhancerLite]
mov edx, dword [esp + 4]
push ebx
push ebp
push edi
push 0x3ec
push ecx
push edx
call sub.USER32.dll_DdeCreateStringHandleA
mov ebp, eax
mov eax, dword [esp + 0x10]
push 0x3ec
push str.System
push eax
mov dword [esp + 0x24], ebp
call sub.USER32.dll_DdeCreateStringHandleA
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push 0
push ebx
push ebp
push ecx
call sub.USER32.dll_DdeConnect
mov edi, eax
test edi, edi
jne 0x4012e2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4012c0
mov edx, dword [esp + 0x10]
push edx
call sub.USER32.dll_DdeGetLastError
test edi, edi
mov ebx, eax
je 0x4013c5
lea eax, [esp + 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x134]
lea edx, [esp + 0x1c]
push ecx
push str._setdir__s__
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x1c]
push 0
push 0x3e8
push 0x4050
push 0
push 0
push edi
push eax
call ebx
inc eax
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.USER32.dll_DdeClientTransaction
push eax
call sub.USER32.dll_DdeFreeDataHandle
mov ebp, dword [esp + 0x240]
push ebp
call ebx
add eax, 0x14
push eax
call fcn.00447e47
add esp, 4
mov esi, eax
push str._cmd_line_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
push 0x4680dc
push esi
call ebp
push 0
push 0x3e8
push 0x4050
push 0
push 0
push edi
push esi
call ebx
inc eax
push eax
push esi
call sub.USER32.dll_DdeClientTransaction
mov edx, dword [esp + 0x10]
push edx
call sub.USER32.dll_DdeGetLastError
push esi
mov ebx, eax
call fcn.00447e70
add esp, 4
push edi
call sub.USER32.dll_DdeDisconnect
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ebp
push eax
call sub.USER32.dll_DdeFreeStringHandle
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [esp + 0x10]
push eax
call sub.USER32.dll_DdeUninitialize
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x22c
ret
Function at 0x40e560
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x458dee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CFrameWnd.virtual_0
mov dword [esi + 0xbc], 0x45d200
mov cl, byte [esi + 0x694]
lea eax, [esi + 0x694]
test cl, cl
mov dword [esp + 0x1c], 9
je 0x40e5b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esi + 0x614]
test edi, edi
je 0x40e5ca
mov ecx, edi
call fcn.00427510
push edi
call fcn.00447e70
add esp, 4
mov ecx, dword [esi + 0x618]
test ecx, ecx
je 0x40e5da
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x658]
push eax
call fcn.00447e70
mov eax, dword [esi + 0x688]
add esp, 4
test eax, eax
je 0x40e5fa
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x68c]
push eax
call fcn.00447e70
mov eax, dword [esi + 0x648]
add esp, 4
test eax, eax
mov byte [esp + 0x1c], 8
mov dword [esi + 0x638], 0x45d300
je 0x40e65e
mov eax, dword [esi + 0x640]
xor edi, edi
test eax, eax
jle 0x40e65e
cmp edi, eax
jge 0x40e653
test edi, edi
jl 0x40e653
mov ecx, dword [esi + 0x63c]
mov ebx, dword [ecx + edi*4]
test ebx, ebx
je 0x40e653
mov ecx, ebx
call fcn.0040e2b0
push ebx
call fcn.00447e70
add esp, 4
mov eax, dword [esi + 0x640]
inc edi
cmp edi, eax
jl 0x40e632
mov eax, dword [esi + 0x63c]
push eax
call fcn.00447e70
mov eax, dword [esi + 0x62c]
add esp, 4
test eax, eax
mov byte [esp + 0x1c], 7
mov dword [esi + 0x61c], 0x45d300
je 0x40e6c2
mov eax, dword [esi + 0x624]
xor edi, edi
test eax, eax
jle 0x40e6c2
cmp edi, eax
jge 0x40e6b7
test edi, edi
jl 0x40e6b7
mov edx, dword [esi + 0x620]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x40e6b7
mov ecx, ebx
call fcn.0040e2b0
push ebx
call fcn.00447e70
add esp, 4
mov eax, dword [esi + 0x624]
inc edi
cmp edi, eax
jl 0x40e696
mov eax, dword [esi + 0x620]
push eax
call fcn.00447e70
add esp, 4
lea ecx, [esi + 0x3a0]
mov byte [esp + 0x1c], 6
call fcn.00401f70
lea ecx, [esi + 0x364]
mov byte [esp + 0x1c], 5
call fcn.004469e7
lea ecx, [esi + 0x2ec]
mov byte [esp + 0x1c], 4
call fcn.0044fddf
lea ecx, [esi + 0x220]
mov byte [esp + 0x1c], 3
call fcn.004360f0
lea ecx, [esi + 0x1a4]
mov byte [esp + 0x1c], 2
call fcn.00456f52
lea ecx, [esi + 0xf0]
mov byte [esp + 0x1c], 1
call fcn.004215e0
lea ecx, [esi + 0xe8]
mov dword [esp + 0x10], ecx
mov dword [ecx], vtable.CMenu.0
mov byte [esp + 0x1c], 0xa
call fcn.0044d2de
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004535ef
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x415070
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4592be
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [esp + 0x124]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov esi, ecx
jne 0x4150a8
mov eax, 0xfffffff9
jmp 0x41521f
cmp dword [esi + 0xc], ebx
je 0x4150b7
mov eax, 0xfffffffa
jmp 0x41521f
lea edi, [esi + 4]
push ebp
mov dword [esi + 8], ebx
mov dword [esi + 0x24], ebx
mov dword [edi], 0xffffffff
mov dword [esi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push edi
mov edi, dword [esp + 0x12c]
mov dword [esi + 0x2c], ecx
push edi
mov ecx, 0x46dba8
call fcn.004205c0
cmp eax, ebx
mov dword [esi], eax
jne 0x4150fc
or eax, 0xffffffff
jmp 0x41521f
lea ebx, [esi + 0x30]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41514d
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
lea edi, [esi + 0xc]
lea ecx, [esi + 0x1c]
push edi
lea edx, [esi + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push 1
call fcn.0041d2b0
test eax, eax
je 0x41521d
cmp eax, 0xfffffffc
je 0x41521d
mov dword [esi + 8], eax
mov dword [edi], 0
mov eax, 0xfffffffb
jmp 0x41521f
mov dl, byte [0x46dd5c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.0043795a
add esp, 8
test eax, eax
je 0x41518b
mov byte [eax], 0
jmp 0x41519b
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esi + 0x134]
lea eax, [esp + 0x14]
push edi
push 0
push 0x46916c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x128]
push 0x78
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edi
call fcn.00447e47
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x120], 0
je 0x4151e8
push ebx
mov ecx, eax
call fcn.00412f20
jmp 0x4151ea
xor eax, eax
mov ecx, eax
mov dword [esp + 0x120], 0xffffffff
mov dword [esi + 0x238], eax
call fcn.00414310
test eax, eax
je 0x415114
mov edx, dword [esi + 0x238]
mov eax, dword [edx + 0x54]
mov dword [esi + 8], eax
mov eax, 0xfffffffc
jmp 0x41521f
xor eax, eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x4155f0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov al, byte [esi + 0x30]
test al, al
jne 0x415609
mov eax, 0xfffffffa
pop esi
add esp, 0xc
ret 8
mov eax, dword [esi + 0x2c]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
test eax, eax
mov dword [esp + 0x10], 0
jne 0x415678
mov ecx, dword [esi + 0x238]
test ecx, ecx
je 0x415678
call fcn.004143a0
cmp dword [esi + 0x24], eax
jge 0x415654
push ebp
push ebx
mov ecx, esi
call fcn.004152e0
test eax, eax
jne 0x415654
mov ecx, dword [esi + 0x238]
call fcn.004143a0
cmp dword [esi + 0x24], eax
jl 0x415637
mov edi, dword [esi + 0x238]
test edi, edi
je 0x41566e
mov ecx, edi
call fcn.004130a0
push edi
call fcn.00447e70
add esp, 4
mov dword [esi + 0x238], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4156aa
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
mov ecx, dword [esi]
push eax
mov dword [esp + 0x20], ebp
call fcn.0041d5f0
test eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
je 0x4156aa
mov dword [esp + 0x10], 0xfffffffb
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4156e0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4156d3
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esi + 0x134]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4156e0
lea eax, [esi + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
mov byte [esi + 0x30], 0
mov byte [esi + 0x134], 0
pop ebx
pop esi
add esp, 0xc
ret 8
Function at 0x415700
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
xor edi, edi
test eax, eax
je 0x41580d
mov esi, dword [esp + 0x34]
test esi, esi
je 0x41580d
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41580d
push ebx
push esi
lea eax, [esp + 0x14]
push str._s__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push edx
lea eax, [esp + 0x18]
push edi
push eax
push ecx
call esi
test eax, eax
jne 0x4157bb
mov edx, dword [esp + 0x30]
push edx
call fcn.00447e47
add esp, 4
mov edi, eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push edi
push ecx
lea edx, [esp + 0x18]
push 0
push edx
push eax
call esi
test eax, eax
jne 0x4157b0
mov ecx, dword [edi]
mov eax, dword [esp + 0x30]
cmp ecx, eax
je 0x4157bb
push edi
call fcn.00447e70
add esp, 4
xor edi, edi
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41580d
push 0
push ebx
mov ecx, 0x46dba8
call fcn.004205c0
test eax, eax
je 0x415862
lea ecx, [esp + 0x34]
push 0
push ecx
push ebx
mov ecx, eax
mov dword [esp + 0x40], 0
call fcn.0041cc50
mov eax, dword [esp + 0x34]
test eax, eax
je 0x415862
cmp eax, dword [edi]
je 0x415862
push edi
call fcn.00447e70
add esp, 4
xor edi, edi
push 0
push ebx
mov ecx, 0x46dba8
call fcn.004205c0
mov esi, eax
test esi, esi
je 0x415862
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x415862
lea edx, [esp + 0x30]
push 0
push edx
push ebx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0041cc50
mov eax, dword [esp + 0x30]
test eax, eax
je 0x415862
push eax
call fcn.00447e47
add esp, 4
mov edi, eax
lea eax, [esp + 0x30]
mov ecx, esi
push edi
push eax
push ebx
call fcn.0041cc50
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x415870
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push ebx
push edi
je 0x41590d
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x41590d
mov edi, dword [esp + 0x38]
test edi, edi
je 0x41590d
lea ecx, [esp + 0x30]
push esi
lea edx, [esp + 0x30]
push ecx
push edx
push 0
push 0x20006
push 0
push 0x46dd5c
push 0
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4158ff
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push ebx
push str._s__08x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi]
mov edx, dword [esp + 0x40]
add esp, 0x10
lea ecx, [esp + 0xc]
push eax
push edi
push 3
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop edi
sete al
pop ebx
add esp, 0x20
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x41f190
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x450
push ebx
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, ecx
and esi, 0xfffffffd
lea ecx, [esp + 0x254]
mov eax, dword [edi + 0xb0]
push ecx
push 0x104
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x46dd64
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str..APL
lea edx, [esp + 0x35c]
push 0x46dd64
push edx
call fcn.00434120
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x358]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f254
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x154]
push edx
push 0x46dd64
push eax
call fcn.00434120
add esp, 0xc
lea ecx, [esp + 0x154]
push ecx
push esi
mov ecx, edi
call fcn.0041f280
lea edx, [esp + 0x14]
push edx
push ebx
call ebp
test eax, eax
jne 0x41f208
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebp
mov esi, dword [edi + 0xb0]
mov ecx, edi
call fcn.0041f030
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
sub eax, ecx
pop ebx
add esp, 0x450
ret 4
Function at 0x420b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
and ebx, 0xfffffffd
push esi
test bl, 1
push edi
mov esi, ecx
je 0x420b60
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x420b60
cmp edi, eax
jge 0x420b4a
test edi, edi
jl 0x420b4a
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
jmp 0x420b4c
xor ecx, ecx
mov eax, dword [esi + 0xc8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x420b3e
test bl, 0x10
je 0x420b94
mov eax, dword [esi + 0x24]
xor edi, edi
test eax, eax
jle 0x420b94
cmp edi, eax
jge 0x420b7e
test edi, edi
jl 0x420b7e
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + edi*4]
jmp 0x420b80
xor ecx, ecx
mov eax, dword [esi + 0xcc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 0x24]
inc edi
cmp edi, eax
jl 0x420b72
test bl, 2
je 0x420bc8
mov eax, dword [esi + 0x40]
xor edi, edi
test eax, eax
jle 0x420bc8
cmp edi, eax
jge 0x420bb2
test edi, edi
jl 0x420bb2
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + edi*4]
jmp 0x420bb4
xor ecx, ecx
mov eax, dword [esi + 0xd0]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 0x40]
inc edi
cmp edi, eax
jl 0x420ba6
test bl, 4
je 0x420bfc
mov eax, dword [esi + 0x5c]
xor edi, edi
test eax, eax
jle 0x420bfc
cmp edi, eax
jge 0x420be6
test edi, edi
jl 0x420be6
mov ecx, dword [esi + 0x58]
mov ecx, dword [ecx + edi*4]
jmp 0x420be8
xor ecx, ecx
mov eax, dword [esi + 0xd4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 0x5c]
inc edi
cmp edi, eax
jl 0x420bda
test bl, 8
je 0x420c30
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
jle 0x420c30
cmp edi, eax
jge 0x420c1a
test edi, edi
jl 0x420c1a
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + edi*4]
jmp 0x420c1c
xor ecx, ecx
mov eax, dword [esi + 0xd8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x420c0e
pop edi
pop esi
pop ebx
ret 4
Function at 0x421770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459a6c
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov edi, ecx
push ebx
call fcn.00423170
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x421956
lea ecx, [esp + 0x20]
call fcn.00423710
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ebp
call fcn.0044e637
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
call fcn.00423790
mov esi, ebx
and esi, 0xffff
call fcn.00423340
mov ebx, eax
cmp ebx, ebp
je 0x421945
push 0xf1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x421945
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x421945
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 4]
mov dx, word [ebx + 2]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004233b0
mov eax, dword [edi + 0x9c]
lea ecx, [edi + 0x9c]
cmp eax, ebp
jne 0x42188b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 4
push 4
lea ecx, [esp + 0x30]
call fcn.004233b0
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.004233f0
mov ecx, dword [eax]
push 0xa
mov dword [edi + 0xa4], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x20]
push ebp
push 1
push eax
push ecx
lea ecx, [edi + 0x38]
mov dword [edi + 0xa8], edx
call fcn.00446b23
jmp 0x4218a2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00423350
test eax, eax
jne 0x421945
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.004239c0
push 0xf
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.004239d0
cmp word [ebx + 6], 0
jbe 0x421917
lea edx, [ebx + 8]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
xor esi, esi
mov si, word [eax]
test esi, esi
jbe 0x421901
push esi
mov ecx, edi
call fcn.00423190
test eax, eax
jge 0x421901
mov ecx, dword [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x14], ecx
push eax
push esi
lea ecx, [edi + 0x40]
call fcn.004232d0
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 2
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [ebx + 6]
cmp ebp, ecx
jl 0x4218d3
mov edx, dword [esp + 0x60]
lea ecx, [edi + 0x24]
push edx
call fcn.00423210
lea ecx, [esp + 0x20]
call fcn.0044e664
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.00423750
mov eax, 1
jmp 0x421958
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.00423750
xor eax, eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x422d80
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x40
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, ecx
push 9
mov ecx, edi
call fcn.0044c68f
test eax, eax
jle 0x422da2
pop edi
xor eax, eax
pop esi
add esp, 0x40
ret 8
mov eax, dword [esp + 0x50]
push ebx
push ebp
push eax
mov ecx, esi
xor ebx, ebx
call fcn.00423250
mov esi, eax
test esi, esi
je 0x422e6e
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebx, ebx
mov eax, 0x469990
jne 0x422dd0
mov eax, 0x469994
push eax
mov ecx, edi
call fcn.0044c5bc
test byte [esi], 0x10
je 0x422de9
push str.Alt
mov ecx, edi
call fcn.0044c5bc
test byte [esi], 8
je 0x422dfa
push str.Ctrl
mov ecx, edi
call fcn.0044c5bc
test byte [esi], 4
je 0x422e0b
push str.Shift
mov ecx, edi
call fcn.0044c5bc
test byte [esi], 1
je 0x422e3a
xor ecx, ecx
push 0
mov cx, word [esi + 2]
push ecx
call ebp
lea edx, [esp + 0x10]
push 0x40
shl eax, 0x10
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0044c5bc
jmp 0x422e45
mov cl, byte [esi + 2]
push ecx
mov ecx, edi
call fcn.0044c5e3
mov ax, word [esi + 4]
mov ebx, 1
test ax, ax
je 0x422e6e
and eax, 0xffff
lea edx, [eax*4]
sub edx, eax
neg edx
lea esi, [esi + edx*2]
test esi, esi
jne 0x422dc2
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x40
ret 8

Function at 0x422fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459b74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
lea ecx, [esp + 4]
call fcn.00423950
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x68], esi
call fcn.00423970
push esi
push esi
push esi
lea ecx, [esp + 0x10]
call fcn.00423990
lea ecx, [esp + 0xc]
call fcn.0044b681
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 1
call fcn.0044b799
lea ecx, [esp + 0x34]
call fcn.004231d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 8
push ecx
push 0x400
push esi
lea ecx, [esp + 0x10]
call fcn.004235b0
push eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 4]
call fcn.0044d2de
lea ecx, [esp + 4]
mov dword [esp + 0x68], 0xffffffff
call fcn.00412b70
mov ecx, dword [esp + 0x60]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x68
ret
Function at 0x433f70
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433f9f
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x433fb3
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x433fd1
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x4344b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.00438b40
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push esi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00439007
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [esp + 8]
push 0x469148
push eax
call esi
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x434518
pop esi
add esp, 0x1004
ret
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edx
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x1004
ret

Function at 0x4348a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00438b40
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
lea edx, [esp + 4]
push ecx
push edx
call fcn.00439007
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

Function at 0x434920
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x419
push esi
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x41d
push esi
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov dword [esp + 8], eax
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop esi
add esp, 0x18
ret