joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442e60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ae1b8]
sub esp, 0x148
push ebx
push esi
call fcn.00414da0
test edi, edi
je 0x442fce
cmp byte [edi], 0
je 0x442fce
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x442ec0
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x442f2b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x442f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x443002
mov edx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.00477bd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x442f33
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x442f5b
push 2
push esi
call fcn.0048940e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x442f5b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x442f72
sub edx, 2
jne 0x442f88
push edx
push 0x100000
jmp 0x442f79
push 0
push 0x400
push eax
push ecx
call fcn.00496670
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aea7c]
mov eax, dword [0x4aa988]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
mov dword [eax + 0x30], 0
call fcn.00477bd0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ae1b8]
call fcn.00401130
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4aa988]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x443002
mov ecx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.00477bd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8bd
push 0
push 0x49cf30
call fcn.0042f7e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44fd80
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44fd87
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44fdaf
dec eax
je 0x44fda1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44fdbc
cmp bl, 3
jne 0x44fdc3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44fde9
cmp dword [0x4ae3a8], 0
je 0x44fdd9
movzx ecx, bl
mov al, byte [ecx + 0x4ae298]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4ae3a4], 0
je 0x44fe18
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00413630
test al, al
je 0x44fe0b
push 1
call fcn.00413430
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ae298]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x450360
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4503a1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4503a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x4503bc
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x4503c2
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4b0310], 1
mov ebx, eax
jne 0x4503f2
or dword [0x4b0310], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b030c], eax
jmp 0x4503f7
mov eax, dword [0x4b030c]
test ebx, ebx
jne 0x4504f4
test eax, eax
je 0x4504f4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x4504f4
cmp byte [esp + 0x11c], 0
je 0x450469
push 0x5c
push edi
call fcn.0048a253
add esp, 8
test eax, eax
je 0x4504f4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x450440
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00488ab0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x4504ad
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0048a18f
add esp, 0xc
test eax, eax
jne 0x4504ad
cmp byte [esi + edi], 0x5c
je 0x4504cf
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x450475
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00488ab0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x4536d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x453784
cmp byte [eax], bl
je 0x453784
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453706
sub eax, edx
cmp eax, ebx
je 0x453720
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x453720
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453727
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042f880
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4aa988]
test byte [edx + 0xe0], 1
jne 0x4537b0
mov eax, dword [0x4aea7c]
push 1
push ebx
push 0xffffffffffffffff
push 0x49cf30
push eax
call fcn.00477bd0
pop ebx
add esp, 0x12c
ret
push 0x49b8bd
push ebx
push 0x49cf30
mov ecx, esi
call fcn.0042f7e0
pop ebx
add esp, 0x12c
ret
Function at 0x4537d0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ae1b8]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00414da0
test edi, edi
je 0x453948
cmp byte [edi], 0
je 0x453948
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x453869
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45384a
mov ecx, dword [0x4aea7c]
push 1
push esi
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.00477bd0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b8bd
push 0
push 0x49cf30
mov ecx, ebp
call fcn.0042f7e0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.004882a7
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45391d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49de7c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45391d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.00474a60
push ebx
call fcn.00487ee8
mov eax, dword [0x4aea7c]
mov edx, dword [0x4aa988]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
mov dword [edx + 0x30], 0
call fcn.00477bd0
mov edx, dword [0x4ae1b8]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00477bd0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4aa988]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00487ee8
add esp, 4
push ebp
call fcn.004321e0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4aa988]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45397f
mov edx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.00477bd0
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b8bd
push 0
push 0x49cf30
mov ecx, ebp
call fcn.0042f7e0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x453c30
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [eax], bl
jne 0x453c47
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x453c64
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453c81
sub eax, edx
cmp eax, ebx
je 0x453c9b
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x453c9b
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x453c3d
test al, 0x10
je 0x453c3d
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453cb6
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x4541c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4541e1
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4541db
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x454240
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45429f
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45429f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45429f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x4543d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x550
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
push 0
mov eax, ebx
call fcn.004748f0
add esp, 0x10
test eax, eax
je 0x45443c
mov eax, ebx
call fcn.0040edf0
test al, al
je 0x45442f
push 0x10
push 0
push ebx
call fcn.00489f2e
add esp, 0xc
mov ebp, eax
jmp 0x45443e
push ebx
call fcn.00489461
add esp, 4
mov ebp, eax
jmp 0x45443e
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x4544f0
test ebp, ebp
je 0x454460
cmp ebp, dword [esp + 0x18]
je 0x454503
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x354]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0048ab36
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x454496
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4544a7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ebx
push ecx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x454516
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x454452
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x550
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x550
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x550
ret
Function at 0x4658a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x4658b0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x4658c0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x4658dc
test eax, eax
je 0x4658ef
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x465930
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x465a86
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x465976
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x46596d
cmp byte [eax + esi + 4], 6
je 0x46596d
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.00465b30
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x465949
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x4659ab
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x4659f4
cmp dword [esp + 0x10], 1
jne 0x4659e3
cmp ebx, 1
jle 0x4659e3
cmp ebp, 0xffffffff
jne 0x4659be
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.00487b62
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00477bd0
cmp esi, dword [edi + 0x10]
je 0x465a73
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 4], 6
jne 0x465a5c
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x465a13
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x465a47
test ebp, ebp
je 0x465a34
or ebp, 0xffffffff
jmp 0x465a36
mov ebp, ebx
test esi, esi
je 0x465a5c
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
jmp 0x465a56
test esi, esi
je 0x465a5c
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push esi
call fcn.00477bd0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x46598f
cmp byte [esp + 0x44], 0
je 0x465a86
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x4684c0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov al, byte [esi]
xor cl, cl
mov byte [esp + 7], cl
test al, al
je 0x4684f7
cmp al, 0x21
je 0x4684e8
cmp al, 0x2b
je 0x4684e3
cmp al, 0x5e
jne 0x4684f3
or cl, 2
jmp 0x4684eb
or cl, 1
jmp 0x4684eb
or cl, 4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4684d2
mov byte [esp + 7], cl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413d30
add esp, 0xc
mov byte [esp + 8], al
test al, al
jne 0x46851d
xor eax, eax
pop esi
add esp, 8
ret
push ebx
xor ebx, ebx
mov eax, esi
call fcn.00413c80
movzx eax, ax
test ax, ax
jne 0x468541
mov eax, dword [esp + 0xc]
push eax
xor bl, bl
call fcn.00414290
add esp, 4
movzx eax, ax
pop ebx
test eax, 0x100
je 0x46854e
or byte [esp + 7], 8
movzx eax, byte [esp + 7]
movzx ecx, byte [esp + 8]
shl eax, 8
or eax, ecx
pop esi
add esp, 8
ret
Function at 0x469b10
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], CreateStatusWindowA
cmp eax, 8
ja case.0x469b31.12
jmp dword [eax*4 + 0x469c30]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x469bde
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x469bde
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x469bde
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x469bde
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x469bde
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x469bde
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x469bf8
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x469c0a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x46a1b0
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x46a1ca
cmp al, 9
jne 0x46a1cd
inc esi
jmp 0x46a1c0
mov cl, byte [esi]
test cl, cl
jne 0x46a1d9
pop esi
xor al, al
pop ebp
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x46a1f3
movzx eax, cl
mov word [ebp + 2], ax
pop esi
mov byte [ebp], 0
mov al, 1
pop ebp
pop ecx
ret
push ebx
push edi
push 0x2b
push eax
mov byte [ebp], 1
mov byte [esp + 0x1b], 0
call fcn.00488ec1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46a2af
lea eax, [ebx - 1]
cmp eax, esi
jbe 0x46a231
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x46a22c
cmp cl, 9
jne 0x46a231
dec eax
cmp eax, esi
ja 0x46a220
sub eax, esi
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.0048828d
add esp, 0xc
test eax, eax
jne 0x46a250
or byte [esp + 0x13], 1
jmp 0x46a282
push edi
push 0x49bd88
push esi
call fcn.0048828d
add esp, 0xc
test eax, eax
jne 0x46a26a
or byte [esp + 0x13], 4
jmp 0x46a282
push edi
push str.Shift
push esi
call fcn.0048828d
add esp, 0xc
test eax, eax
jne 0x46a2e1
or byte [esp + 0x13], 0x10
lea esi, [ebx + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x46a28f
cmp al, 9
jne 0x46a292
inc esi
jmp 0x46a285
cmp byte [esi], 0
je 0x46a2e1
lea ecx, [esi + 1]
push 0x2b
push ecx
call fcn.00488ec1
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x46a213
cmp byte [esi + 1], 0
jne 0x46a2e9
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, byte [esi]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edi, [esp + 0x1b]
mov bl, al
call fcn.00413e10
movzx eax, al
add esp, 8
mov word [ebp + 2], ax
jmp 0x46a307
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413d30
movzx ecx, al
add esp, 0xc
mov word [ebp + 2], cx
mov al, byte [esp + 0x13]
test al, 1
je 0x46a313
or byte [ebp], 8
test al, 4
je 0x46a31b
or byte [ebp], 0x10
test al, 0x10
je 0x46a323
or byte [ebp], 4
cmp word [ebp + 2], 0
pop edi
pop ebx
pop esi
setne al
pop ebp
pop ecx
ret
Function at 0x46fe70
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4984a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [ebx + 4]
push edi
xor ebp, ebp
mov edx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 4], edi
mov dword [esp + 0x2c], ebp
cmp ecx, ebp
jle 0x46ffa4
mov edi, edi
cmp eax, dword [esp + 0x3c]
jl 0x46ff0f
mov eax, dword [0x4aa988]
mov ecx, 0x3a
mov esi, 0x4acf30
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebp
mov dword [0x4af858], ebp
mov dword [0x4af85c], ebp
cmp dword [0x4ae41c], ebp
je 0x46ff0b
mov eax, dword [0x4ababc]
cmp eax, ebp
je 0x46feff
mov eax, dword [eax]
cmp eax, ebp
jne 0x46ff04
mov eax, 0x49b8bd
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x3c]
push eax
push str.call
push ecx
xor eax, eax
call fcn.0046ce30
add esp, 0x10
test eax, eax
je 0x46ff5f
cmp dword [esp + 0xc], ebp
jne 0x46ff80
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x46fec0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 4], ecx
jmp 0x46ffa7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 3
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov dword [edx + 4], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret 0xc