joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fd7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x414444
mov esi, ecx
push 0x413fe4
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp byte [esi + 0x218], 0
mov eax, str.SYSTEMCurrentControlSetControlClass
jne 0x404005
mov eax, str.SystemCurrentControlSetServicesClass
lea ecx, [ebp - 4]
xor esi, esi
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040e7
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x404047
mov dword [ebp - 0xc], 0x104
mov eax, dword [ebp - 0xc]
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc ecx
mov dword [ebp - 8], eax
push ecx
push eax
push esi
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4040dd
lea eax, [ebp - 0x14]
inc dword [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040c9
push eax
push str.Class
push dword [ebp - 0x14]
call fcn.0040de53
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4040c4
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x4040f0
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0xc]
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x40407b
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
mov ebx, 0x413fe4
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp - 0x18]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x14]
call edi
push dword [ebp - 4]
call edi
mov eax, ebx
jmp 0x4040e9
Function at 0x407019
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
and dword [eax], 0
push edi
push dword [ebp + 0xc]
call ebx
add eax, 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str..ini
push dword [ebp + 0xc]
mov edi, 0x411d78
mov dword [ebp - 4], eax
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x407110
test byte [ebp - 0x148], 0x10
jne 0x4070d3
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call esi
add esp, 0x10
lea eax, [ebp - 0x248]
push dword [ebp - 4]
push 0x100
push eax
push 0x414444
push str.Sign
push str.GENERAL
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x248]
push str.SystemReport_INI_file
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x4070e9
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x407107
jmp 0x40707d
push dword [ebp - 4]
call ebx
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d082
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x88000000
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d0dc
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
lea ecx, [ebp + 8]
push 0
push ecx
push edi
push eax
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40d1bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [ebp + 0xf], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x40d1fc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetBinaryTypeA]
test eax, eax
je 0x40d264
cmp dword [ebp + 0x10], ebx
je 0x40d1fc
cmp dword [ebp + 0x10], 6
jne 0x40d264
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x40d264
lea eax, [edi + 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d25d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x4133f8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d25d
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfeef04bd
jne 0x40d25d
mov ecx, dword [eax + 8]
mov byte [ebp + 0xf], 1
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d3f1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x414444
push dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
push dword [ebp + 8]
call fcn.0040e83a
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40d462
lea eax, [esi + 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
push esi
push dword [ebp - 8]
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d45b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040d471
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x89cf20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x719080
lea edi, [esi - 0x318080]
push edi
or ebp, 0xffffffff
jmp 0x89cf42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x89cf49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89cf38
mov eax, 1
add ebx, ebx
jne 0x89cf5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x89cf50
jne 0x89cf6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x89cf50
xor ecx, ecx
sub eax, 3
jb 0x89cf80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x89cff2
mov ebp, eax
add ebx, ebx
jne 0x89cf8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x89cf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x89cfbc
inc ecx
add ebx, ebx
jne 0x89cfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x89cf9d
jne 0x89cfb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x89cf9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x89cfdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x89cfcd
jmp 0x89cf3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x89cfdc
add edi, ecx
jmp 0x89cf3e
pop esi
mov edi, esi
mov ecx, 0x4fe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x89cffa
cmp byte [edi], 6
jne 0x89cffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x89cfff
lea edi, [esi + 0x49a000]
mov eax, dword [edi]
or eax, eax
je 0x89d06e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a37d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a3878]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x89d02c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a387c]
or eax, eax
je 0x89d068
mov dword [ebx], eax
add ebx, 4
jmp 0x89d049
call dword [esi + 0x4a3880]
popal
jmp 0x401196
Function at 0x403b3d
Capabilities:
Create thread
Inject thread

Disassembly:
push dword [0x535c18]
pop dword [0x535c98]
mov edx, dword [0x535bfc]
push dword [0x536554]
call fcn.00413870
lea ecx, [0x535be0]
pop edx
call fcn.00406000
push dword [0x535be0]
call fcn.004062e0
mov ebx, eax
inc ebx
mov dword [0x535cc8], ebx
push dword [0x535c98]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x535c94], eax
cmp dword [0x535c94], 0
je 0x403cc5
push 4
push 0x1000
push dword [0x535cc8]
push 0
push dword [0x535c94]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x535cac], eax
cmp dword [0x535cac], 0
je 0x403cba
push 0x535b8c
push dword [0x535cc8]
push dword [0x535be0]
push dword [0x535cac]
push dword [0x535c94]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x535b8c]
cmp ebx, dword [0x535cc8]
jl 0x403c9e
push str.Kernel32.dll
push 0
call fcn.00407e30
and eax, eax
je 0x403c9e
push 0x416318
push 0
call fcn.00407e80
mov dword [0x535c5c], eax
push 0
call fcn.00407db0
cmp dword [0x535c5c], 0
je 0x403c9e
push 0
push 0
push dword [0x535cac]
push dword [0x535c5c]
push 0
push 0
push dword [0x535c94]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x535c14], eax
cmp dword [0x535c14], 0
je 0x403c9e
push 0xffffffff
push dword [0x535c14]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x535cb8
push dword [0x535c14]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x535cc8]
push dword [0x535cac]
push dword [0x535c94]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x535c94]
call sub.KERNEL32.dll_CloseHandle
push dword [0x535bfc]
call fcn.00412e40
mov dword [0x535cb8], eax
ret

Function at 0x40763e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x407658
push dword [ebp + 8]
push 0x4075d0
call sub.USER32.dll_EnumWindows
jmp 0x40768f
mov edi, dword [0x533020]
jmp 0x40768b
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x407689
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x533020
call fcn.004137d0
add esp, 8
mov edi, esi
or edi, edi
jne 0x407660
pop edi
pop esi
pop ebp
ret 4
Function at 0x408fe0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x409016
push edi
call fcn.00408a14
pop ecx
cmp byte [edi + 0x40], 0
je 0x40900f
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x4090cb
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x40909a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40908f
cmp dword [edi + 8], 0
je 0x40903d
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x4090cb
cmp dword [ebp - 4], 2
je 0x40908f
cmp dword [edi + 8], 0
je 0x40902b
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x40906c
cmp eax, 1
jne 0x40902b
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x40902b
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x40902b
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x4090bf
cmp dword [edi + 0x14], 0xcc
je 0x4090bf
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.004090d0
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4090d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x409112
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x409112
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x4090fe
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40dbfa
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x40dc2b
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0041067d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.00410620
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x40dc67
push ebx
call fcn.00410680
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.0040cfd8]
mov dword [esi], eax
lea eax, [fcn.0040d117]
mov dword [esi + 4], eax
lea eax, [fcn.0040d1c6]
mov dword [esi + 8], eax
lea eax, [fcn.0040d29a]
mov dword [esi + 0xc], eax
lea eax, [0x40d37b]
mov dword [esi + 0x10], eax
lea eax, [0x40d3e8]
mov dword [esi + 0x14], eax
lea eax, [0x40d455]
mov dword [esi + 0x18], eax
lea eax, [0x40d7f3]
mov dword [esi + 0x1c], eax
lea eax, [0x40d943]
mov dword [esi + 0x20], eax
lea eax, [fcn.0040da9a]
mov dword [esi + 0x24], eax
lea eax, [0x40dbc6]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x40dcd9
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x40dd49
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x40dd49
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x40dd35
cmp al, 0x4d
jne 0x40dd3f
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push dword [0x536748]
call fcn.004135a2
mov edi, eax
or eax, eax
je 0x410fc9
mov eax, dword [edi + 4]
cmp dword [eax + 0x5c], 0
je 0x410faf
push dword [ebp + 0xc]
push edi
mov ebx, dword [edi + 4]
call dword [ebx + 0x5c]
jmp 0x410fc9
cmp dword [ebp + 0xc], 0
je 0x410fc0
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
jmp 0x410fc9
push 5
push dword [edi]
call sub.USER32.dll_ShowWindow
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x412cea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x412d83
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x412d83
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x412d83
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x412d83
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x412d83
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x412d83
xor eax, eax
jmp 0x412dae
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x412dac
dec eax
push eax
push dword [0x536750]
call fcn.004135a2
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x412dae
xor eax, eax
pop edi
leave
ret 4

Function at 0x412e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x412e7f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x413090
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5349b0]
mov edx, dword [0x5349b4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [0x536760]
call fcn.004135a2
mov dword [ebp - 0xc], eax
or eax, eax
je 0x41310a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call sub.KERNEL32.dll_GetFileSize
push 0
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x41310a
cmp dword [ecx + 0x14], 0
jne 0x41310a
mov edi, ecx
mov esi, dword [edi + 8]
sub esi, dword [edi + 0xc]
add eax, esi
adc edx, 0
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x413220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.00413a50
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x536760]
call fcn.004135a2
mov dword [ebp - 8], eax
or eax, eax
je 0x41333f
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x413278
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00413360
mov dword [ebp - 0xc], eax
jmp 0x41328e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x41329a
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x4132c1
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.00413a50
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x4132dd
cmp dword [ebp - 0xc], 0
je 0x4132dd
cmp eax, 0xd
je 0x4132dd
cmp eax, 0xa
jne 0x413258
cmp byte [ebp - 1], 0
je 0x41333f
dec edi
cmp byte [ebp - 1], 0xd
jne 0x41333f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x413303
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00413360
jmp 0x413319
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x41333f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x41332f
add eax, 0xc
inc dword [eax]
jmp 0x41333f
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.00413ac0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x413360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x413385
push edi
call fcn.00412e50
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x4133da
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x4133a8
cmp eax, 2
je 0x4133b1
cmp eax, 4
je 0x4133bc
jmp 0x4133c5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x4133d2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x4133d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x4133d2
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x413459
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x413419
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x413459
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x413440
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc