joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c910
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], 0
mov dword [esi], vtable.CExtractCallbackImp.3.0
mov dword [esi + 4], vtable.CExtractCallbackImp.4.0
mov dword [esi + 8], vtable.CExtractCallbackImp.0
mov dword [esi + 0xc], vtable.CExtractCallbackImp.2.0
mov dword [esi + 0x10], vtable.CExtractCallbackImp.1.0
push 8
mov dword [esi + 0x18], 0
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
push 8
mov dword [esi + 0x28], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x34], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 3
mov word [eax], cx
mov byte [ebp - 4], 2
mov word [esi + 0x40], 1
mov dword [esi + 0x50], ecx
mov word [esi + 0x54], cx
push 8
mov dword [esi + 0x58], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x64], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 3
mov word [eax], cx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x70], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 3
mov word [eax], cx
mov byte [ebp - 4], 5
push 8
mov dword [esi + 0x7c], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 3
mov word [eax], cx
mov byte [ebp - 4], 6
mov dword [esi + 0x88], ecx
push 8
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 3
mov word [eax], cx
mov byte [ebp - 4], 7
push 8
mov dword [esi + 0x94], ecx
call fcn.00449b46
mov dword [esi + 0x94], eax
add esp, 0x24
xor ecx, ecx
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 3
mov word [eax], cx
mov eax, esi
mov word [esi + 0xa0], cx
mov byte [esi + 0xa2], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cb30
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
cmp eax, 0x400000
jbe 0x403873
mov eax, 0x400000
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push edx
push eax
push ecx
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x403894
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
je 0x40389c
xor eax, eax
jmp 0x4038d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebx + 0x58]
test edi, edi
je 0x4038bf
mov edx, dword [edi]
push eax
push dword [ebx + 0x5c]
mov esi, dword [edx]
mov ecx, esi
call dword [0x4502ac]
mov ecx, edi
call esi
jmp 0x4038d4
test eax, eax
jne 0x4038ca
mov eax, 0x80004005
jmp 0x4038d4
jle 0x4038d4
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403a20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
push dword [eax + 0x14]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403a7e
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
jle 0x403aab
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
Function at 0x403e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea esp, [esp]
mov eax, esi
cmp esi, 0x400000
jbe 0x403eaf
mov eax, 0x400000
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add edx, ecx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x403ee4
test ecx, ecx
je 0x403ee0
add edi, ecx
sub esi, ecx
jne 0x403ea0
mov al, 1
jmp 0x403ee6
xor al, al
add dword [ebx + 0x10], edx
mov ecx, dword [ebp - 0x10]
adc dword [ebx + 0x14], 0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x403ef9
mov dword [ecx], edx
test al, al
je 0x403f0f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403f2e
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0x10
jle 0x403f38
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407060
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x45c00c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xec], 0
jne 0x407096
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00449a40
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x3c], 0
mov eax, dword [edi + 0xe8]
mov dword [esp + 0x10], 0
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
je 0x40711d
cmp dword [edi + 0xe4], ebx
jb 0x40711d
ja 0x4070c2
cmp dword [edi + 0xe0], esi
jbe 0x40711d
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push 0
push ebx
push esi
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.004245a0
test al, al
je 0x407105
cmp dword [esp + 0x18], esi
jne 0x407105
cmp dword [esp + 0x1c], ebx
jne 0x407105
mov eax, dword [esp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, eax
test ecx, ecx
setne al
mov byte [edi + 0x3c], al
test ecx, ecx
jne 0x40711d
jmp 0x407109
mov byte [edi + 0x3c], 0
lea eax, [edi + 0x74]
mov ecx, edi
push eax
push str.Cannot_set_length_for_output_file
call fcn.00405520
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [edi + 0xd8], esi
push eax
mov ecx, edi
mov dword [edi + 0xdc], ebx
mov byte [edi + 0x3b], 1
call fcn.00405990
mov cl, byte [esp + 0x38]
mov dl, byte [esp + 0x39]
mov al, cl
mov bl, byte [esp + 0x3a]
or al, dl
or al, bl
je 0x407186
movzx eax, bl
lea esi, [esp + 0x30]
neg eax
sbb eax, eax
and eax, esi
push eax
movzx eax, dl
lea edx, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
push eax
movzx eax, cl
lea ecx, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [edi + 0xe8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [edi + 0xe8]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4071c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4071a8
mov dword [esi + 8], 0xffffffff
jmp 0x4071c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4071b9
mov eax, 0x80004005
jmp 0x4071c3
jle 0x4071c3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x4071ef
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x4071eb
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [edi + 0xec], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449a40
mov esp, ebp
pop ebp
ret

Function at 0x407210
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3a], 0
jne 0x40726b
cmp dword [esi + 0x98], 0
je 0x40726b
cmp byte [esi + 0x3e], 0
jne 0x40726b
cmp byte [esi + 0x31], 0
je 0x40726b
cmp byte [esi + 0xd0], 0
je 0x40726b
mov eax, dword [esi + 0xcc]
push edi
lea edi, [esi + 0x94]
test eax, 0xf0000000
je 0x407250
and eax, 0x3fff
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40726a
push edi
push str.Cannot_set_file_attribute
mov ecx, esi
call fcn.00405520
pop edi
pop esi
ret
Function at 0x408f10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d230
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
push dword [edi + 8]
add ecx, 0x98
call fcn.00408b30
test eax, eax
jne 0x408fba
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 0x98]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [eax + 4]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x408fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408f9d
mov eax, 0x80004005
jmp 0x408fba
jle 0x408fba
movzx eax, ax
or eax, 0x80070000
jmp 0x408fba
mov ecx, dword [ebp - 0x14]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
Function at 0x40c0d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d590
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xcc]
call fcn.00449b03
push dword [edi + 0xc0]
call fcn.00449b03
push dword [edi + 0x9c]
call fcn.00449b03
push dword [edi + 0x90]
call fcn.00449b03
push dword [edi + 0x30]
call fcn.00449b03
push dword [edi + 0x24]
call fcn.00449b03
push dword [edi + 0x18]
call fcn.00449b03
add esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40c15b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40c179
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [ebp - 4], 2
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40c197
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov dword [ebp - 4], 3
mov ecx, dword [edi]
test ecx, ecx
je 0x40c1b4
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4502ac]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d76c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x14], 0
mov dword [edi], vtable.COpenCallbackImp.1.0
mov dword [edi + 4], vtable.COpenCallbackImp.2.0
mov dword [edi + 8], vtable.COpenCallbackImp.4.0
mov dword [edi + 0xc], vtable.COpenCallbackImp.3.0
mov dword [edi + 0x10], vtable.COpenCallbackImp.0
mov byte [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
push 8
mov dword [edi + 0x48], 0
call fcn.00449b46
xor ecx, ecx
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [edi + 0x54], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 3
mov word [eax], cx
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov word [esi + 0x24], cx
push 8
mov dword [ebp - 0x14], esi
mov dword [esi + 0x28], ecx
call fcn.00449b46
mov dword [esi + 0x28], eax
add esp, 0xc
mov dword [esi + 0x2c], 0
xor ecx, ecx
mov dword [esi + 0x30], 3
mov word [eax], cx
mov eax, edi
mov dword [edi + 0x98], ecx
mov dword [edi + 0x9c], ecx
mov dword [edi + 0xa0], ecx
mov dword [edi + 0xa4], 0xffffffff
mov dword [edi + 0xa8], 0xffffffff
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], 0x54fffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dc6f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CBrowseDialog.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov byte [ebp - 4], 2
push 8
mov dword [esi + 0x48], 0
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x54], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 3
mov word [eax], cx
mov word [esi + 0x60], cx
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], ecx
mov byte [ebp - 4], 5
push 8
mov dword [esi + 0x74], ecx
call fcn.00449b46
xor ecx, ecx
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 3
mov word [eax], cx
mov byte [ebp - 4], 6
push 8
mov dword [esi + 0x80], ecx
call fcn.00449b46
add esp, 0x10
mov dword [esi + 0x80], eax
xor ecx, ecx
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 3
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4116b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [edi]
cmp eax, dword [esi + 8]
jne case.0x4116df.154
mov eax, dword [edi + 8]
add eax, 0x9b
cmp eax, 0x99
ja case.0x4116df.154
movzx eax, byte [eax + 0x4117e4]
jmp dword [eax*4 + 0x4117cc]
cmp byte [0x45c034], 0
je case.0x4116df.154
call fcn.00412e70
pop edi
xor al, al
pop esi
pop ebp
ret 8
cmp byte [0x45c034], 0
jne case.0x4116df.154
call fcn.00412e70
pop edi
xor al, al
pop esi
pop ebp
ret 8
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x40]
jne 0x411739
cmp byte [esi + 0x44], 0
sete al
mov byte [esi + 0x44], al
call fcn.004128e0
pop edi
xor al, al
pop esi
pop ebp
ret 8
test eax, eax
mov dword [esi + 0x40], eax
sete al
mov byte [esi + 0x44], al
call fcn.004128e0
pop edi
xor al, al
pop esi
pop ebp
ret 8
push ebx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, word [edi + 0xc]
shr eax, 0xf
mov edx, ecx
and al, 1
cmp edx, 8
je 0x41178e
cmp edx, 0x52
je 0x41177d
cmp ecx, 0x76
jne 0x41178a
mov ecx, esi
call fcn.00412c70
jmp 0x411795
test al, al
je 0x41178a
mov ecx, esi
call fcn.004128e0
jmp 0x411795
xor bl, bl
jmp 0x411797
mov ecx, esi
call fcn.00412a70
mov bl, 1
push 0
push 0
push 0x8001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret 8
push 0
push 0
push 0x8001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x413050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ded5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
push 8
call fcn.00449b46
mov edi, eax
mov dword [ebp - 0x20], 3
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
xor eax, eax
mov word [edi], ax
push dword [esi + 0xc]
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x4130f2
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040d090
lea ecx, [ebx + 1]
push ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp ebx, eax
jbe 0x4130d5
mov ebx, eax
mov edi, dword [ebp - 0x28]
xor eax, eax
mov word [edi + ebx*2], ax
cmp word [edi], ax
je 0x4130eb
inc eax
cmp word [edi + eax*2], 0
jne 0x4130e3
mov dword [ebp - 0x24], eax
test ebx, ebx
jne 0x4130f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
call fcn.00449b46
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 3
mov word [eax], cx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x54]
mov edx, edi
push eax
call fcn.004221c0
add esp, 8
test al, al
jne 0x413144
mov ecx, dword [esi + 4]
mov edx, 0x7b
push edi
call fcn.00410700
add esp, 4
jmp 0x4131fe
lea ebx, [esi + 0x74]
lea eax, [ebp - 0x1c]
cmp eax, ebx
je 0x41319c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 8]
jbe 0x413184
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push dword [ebx]
mov esi, eax
call fcn.00449b03
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebx], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esi + 0x61], 0
je 0x4131de
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4131de
mov eax, dword [ebx]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x4131de
cmp eax, 0x2f
je 0x4131de
cmp dword [ebx + 8], ecx
jne 0x4131c6
mov ecx, ebx
call fcn.00421600
mov ecx, dword [ebx + 4]
mov edx, 0x5c
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebx + 4], ecx
push 0
push 0
push 0x147
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esi + 4]
mov dword [esi + 0x64], eax
call dword [sym.imp.USER32.dll_EndDialog]
push dword [ebp - 0x1c]
call fcn.00449b03
push edi
call fcn.00449b03
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret
Function at 0x41b200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, dword [esi + 0xb4]
jne 0x41b23c
cmp dword [ecx + 8], 0xffffff65
jne 0x41b23c
movzx eax, word [ecx + 0xc]
sub eax, 0x2d
je 0x41b296
sub eax, 0x14
je 0x41b24f
sub eax, 2
je 0x41b296
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x41b23c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 2
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
mov dword [ebp - 0x20], 2
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x41b23c
mov ecx, esi
call fcn.0041b2c0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00449a40
mov esp, ebp
pop ebp
ret 8
Function at 0x422910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f030
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
je 0x422ada
cmp edi, 0x114
jae 0x4229ef
xor eax, eax
xor edi, edi
mov word [ebp - 0x14], ax
cmp word [ebp - 0x23c], ax
je 0x42299d
inc edi
cmp word [ebp + edi*2 - 0x23c], ax
jne 0x422992
cmp edi, dword [ebx + 8]
jbe 0x4229cc
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push dword [ebx]
mov esi, eax
call fcn.00449b03
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, 1
jmp 0x422adc
push 8
call fcn.00449b46
xor ecx, ecx
mov dword [ebp - 0x248], eax
add esp, 4
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x248]
push edi
call fcn.0040d090
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
jne 0x422a40
push dword [ebp - 0x248]
jmp 0x422ad2
mov esi, dword [ebp - 0x248]
xor eax, eax
mov word [esi + edi*2], ax
xor edi, edi
cmp word [esi], ax
je 0x422a5a
inc edi
cmp word [esi + edi*2], ax
jne 0x422a53
mov dword [ebp - 0x244], edi
cmp edi, ecx
jne 0x422ad1
mov eax, dword [ebp - 0x24c]
dec eax
cmp eax, ecx
jne 0x422ad1
lea eax, [ebp - 0x248]
cmp eax, ebx
je 0x422ac4
cmp edi, dword [ebx + 8]
jbe 0x422aae
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push dword [ebx]
mov esi, eax
call fcn.00449b03
mov dword [ebx], esi
add esp, 8
mov esi, dword [ebp - 0x248]
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
push esi
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call fcn.00449b03
add esp, 4
mov al, 1
jmp 0x422adc
push esi
call fcn.00449b03
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret