joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b788
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffec
cmp esi, 1
jne 0x47b7a6
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx]
call fcn.0047b578
pop ecx
cmp esi, 1
je 0x47b7b0
cmp esi, 2
jne 0x47b81e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov dword [ebx], eax
cmp dword [ebx], 0x27
je 0x47b7c2
cmp dword [ebx], 0x22
jne 0x47b81e

Function at 0x47c190
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x4a04e0
mov eax, ebx
mov edx, 8
test al, 1
je 0x47c1ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x47c1ae
shr eax, 1
dec edx
jne 0x47c19f
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x47c198
pop ebx
ret

Function at 0x47d6a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, dword [esp]
inc eax
cmp eax, 5
jge 0x47d6bd
xor eax, eax
jmp 0x47d745
mov cl, byte [esi]
and cl, 0xff
and ecx, 0xff
mov eax, ecx
mov ebx, 9
cdq
idiv ebx
mov dword [esp + 4], edx
mov eax, ecx
mov ecx, 9
cdq
idiv ecx
mov ecx, eax
mov eax, ecx
mov ebx, 5
cdq
idiv ebx
mov dword [esp + 8], edx
mov eax, ecx
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov ecx, eax
shl ecx, 3
lea edx, [eax + 1]
mov dl, byte [esi + edx]
and dl, 0xff
and edx, 0xff
shl edx, cl
add ebx, edx
inc eax
cmp eax, 4
jne 0x47d702
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.0047d1b0
test al, al
jne 0x47d73c
xor eax, eax
jmp 0x47d745
mov edx, ebx
mov eax, edi
call fcn.0047d160
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x47eddc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov ebp, edx
mov edi, eax
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x47ee2e
push 0
push 0
push 0
mov eax, edi
call fcn.00440418
push eax
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
mov eax, esp
call fcn.0047e8ac
push 0xa
call sub.kernel32.dll_Sleep_2
call sub.kernel32.dll_GetTickCount
mov ebx, eax
cmp esi, ebx
jle 0x47ee28
call sub.kernel32.dll_GetTickCount
mov esi, eax
sub ebx, esi
cmp ebp, ebx
jl 0x47ee3f
mov edx, 0xfffffdf3
mov eax, edi
call fcn.0046d518
cmp eax, 4
jb 0x47edf0
mov edx, 0xfffffdf3
mov eax, edi
call fcn.0046d518
cmp eax, 4
sete al
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482c2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482d04
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a099c], 0
jne 0x482ce8
lea eax, [ebp - 4]
mov edx, 0x482d1c
call fcn.00405074
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040548c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x482ce8
mov eax, ebx
call fcn.00402a58
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x482ce1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x482ccb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x482d2c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x482ccb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a099c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482ce8
mov eax, dword [ebp - 0xc]
call fcn.00402a78
ret
mov ebx, dword [0x4a099c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482d0b
lea eax, [ebp - 4]
call fcn.00404fdc
ret

Function at 0x483474
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4834ac]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x48348a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x483499
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4834a8
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4849a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x49c1b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4849c6
push 0
mov eax, dword [0x49c1b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x487708
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040548c
push eax
call sub.kernel32.dll_GetFileAttributesA_1
pop ebx
ret

Function at 0x48771c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040548c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x48773e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x487874
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
mov eax, dword [0x49c2c4]
mov eax, dword [eax]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4878b6
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
jmp 0x48790f
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x4878f2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x49c19c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4878f2
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [0x49c1e0]
mov eax, dword [eax]
call eax
push ebx
call sub.kernel32.dll_CloseHandle_2
mov ax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4046bf
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x499f44]
mov dword [0x49a054], eax
mov edx, dword [0x499f58]
call fcn.00410b20
push eax
call fcn.00410bd0
push 0x49a058
call fcn.00410b40
push dword [0x49a058]
call fcn.00408340
mov ebx, eax
inc ebx
mov dword [0x49a05c], ebx
push dword [0x49a054]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x49a060], eax
cmp dword [0x49a060], 0
je 0x404843
push 4
push 0x1000
push dword [0x49a05c]
push 0
push dword [0x49a060]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x49a064], eax
cmp dword [0x49a064], 0
je 0x404838
push 0x49a068
push dword [0x49a05c]
push dword [0x49a058]
push dword [0x49a064]
push dword [0x49a060]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x49a068]
cmp ebx, dword [0x49a05c]
jl 0x40481c
push str.Kernel32.dll
push 0
call fcn.0040a9b5
and eax, eax
je 0x40481c
push 0x44a647
push 0
call fcn.0040a9f2
mov dword [0x49a06c], eax
push 0
call fcn.0040a8e7
cmp dword [0x49a06c], 0
je 0x40481c
push 0
push 0
push dword [0x49a064]
push dword [0x49a06c]
push 0
push 0
push dword [0x49a060]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x49a070], eax
cmp dword [0x49a070], 0
je 0x40481c
push 0xffffffff
push dword [0x49a070]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x499efc
push dword [0x49a070]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x49a05c]
push dword [0x49a064]
push dword [0x49a060]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x49a060]
call sub.KERNEL32.dll_CloseHandle
push dword [0x499f58]
call fcn.0040de01
mov dword [0x499efc], eax
ret
Function at 0x404854
Capabilities:
Enumerate process modules

Disassembly:
lea ebp, [0x49a380]
mov dword [ebp], 0x224
mov dword [0x499f60], 0
push dword [0x499f44]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x49a074], eax
cmp dword [0x49a074], 0
je 0x404a45
push 0x49a380
push dword [0x49a074]
call sub.KERNEL32.dll_Module32First
and eax, eax
je 0x404a38
call fcn.00410b20
push eax
push eax
push dword [0x499f58]
call fcn.00408370
call fcn.00410c30
call fcn.00410b20
push eax
push eax
call fcn.00410b20
push eax
push eax
lea ebp, [0x49a380]
lea eax, [ebp + 0x20]
push eax
call fcn.0040a7f0
call fcn.00410c72
add dword [esp], edx
call fcn.00408370
call fcn.00410cf0
mov edx, eax
call fcn.00410cf0
mov ecx, eax
call fcn.00410cc0
je 0x4049a8
lea ebp, [0x49a380]
mov eax, dword [ebp + 0x14]
mov dword [0x499f60], eax
call fcn.00410b20
push eax
mov edx, dword [0x499f78]
call fcn.00410b20
push eax
call fcn.00410bd0
mov edx, str.Copy.dll
call fcn.00410bd0
call fcn.00410c72
add dword [esp], edx
call fcn.0040de01
call fcn.00410c90
mov dword [0x499efc], eax
push 0x12c
call fcn.0040a699
call fcn.00410b20
push eax
mov edx, dword [0x499f78]
call fcn.00410b20
push eax
call fcn.00410bd0
mov edx, str.Copy.dll
call fcn.00410bd0
call fcn.00410c30
call fcn.00410b20
push eax
push eax
lea eax, [ebp + 0x120]
push eax
call fcn.0040a7f0
call fcn.00410c72
add dword [esp], edx
call fcn.00410c72
add dword [esp + 4], edx
call fcn.0040de13
call fcn.00410c90
mov dword [0x499efc], eax
push 0x49a380
push dword [0x49a074]
call sub.KERNEL32.dll_Module32Next
mov dword [0x499efc], eax
cmp dword [0x499efc], 0
je 0x404a2a
call fcn.00410b20
push eax
push eax
push dword [0x499f58]
call fcn.00408370
call fcn.00410c30
call fcn.00410b20
push eax
push eax
call fcn.00410b20
push eax
push eax
lea ebp, [0x49a380]
lea eax, [ebp + 0x20]
push eax
call fcn.0040a7f0
call fcn.00410c72
add dword [esp], edx
call fcn.00408370
call fcn.00410cf0
mov edx, eax
call fcn.00410cf0
mov ecx, eax
call fcn.00410cc0
je 0x404a2a
lea ebp, [0x49a380]
mov eax, dword [ebp + 0x14]
mov dword [0x499f60], eax
mov ebx, dword [0x499efc]
and ebx, ebx
jne 0x4049a8
push dword [0x49a074]
call sub.KERNEL32.dll_CloseHandle
jmp 0x404a54
push str.CreateToolhelp32Snapshot____failed_
push str.Error
call fcn.0040a045
ret
Function at 0x406f92
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x406fae
mov dword [esp], 1
jmp 0x406fbe
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x406ff0
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x406fe0
mov dword [esp], 1
jmp 0x406ff0
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x407022
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407012
mov dword [esp], 1
jmp 0x407022
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x407051
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407044
mov dword [esp], 1
jmp 0x407051
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x407077
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x407077
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x40709d
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40709d
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x4070c3
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4070c3
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4070d0
xor edx, edx
mov eax, 1
jmp 0x4070d0
add esp, 4
pop ebx
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4094e0
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x409496
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.00409f45
mov ebx, eax
cmp ebx, edi
je 0x4094d5
push dword [ebp + 8]
push dword [0x49a61c]
call fcn.004103c3
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.00409ee8
push eax
push ebx
call fcn.00409ece
push eax
call fcn.00409b29
cmp eax, edi
mov dword [esi], eax
je 0x40948e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x4094d5
push ebx
call fcn.00409ef5
jmp 0x4094d5
push ebx
push edi
push dword [0x499eec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x4094d5
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.00409b13
push esi
push edi
push dword [0x499eec]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40961d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x49a61c]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.0041045a
mov esi, eax
cmp esi, ebx
je 0x409798
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x4096cd
push dword [ebp + 8]
call fcn.00409c46
jmp 0x409660
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x409658
push dword [esi + 0x14]
call fcn.00409f1e
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.004094fa
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40956f
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4096a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x4096b3
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00409cdc
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x409798
test byte [ebp + 0xc], 1
je 0x4096d6
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x409760
push esi
call fcn.004097b2
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00410a60
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x49a630]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x409798
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x409746
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00409c76
jmp 0x409752
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x409798
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x409781
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00409cdc
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x409798
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a0be
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40a0d6
push dword [esp + 4]
push 0x40a057
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40a113
push esi
mov esi, dword [0x49a65c]
test esi, esi
je 0x40a112
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40a10a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x49a65c
call fcn.00410a8d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40a0e3
pop edi
pop ebx
pop esi
ret 4
Function at 0x40da00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x40da8b
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x40da7d
push 0x11
call esi
test al, al
js 0x40da7d
push 0x10
call esi
test al, al
js 0x40da7d
push 0x12
call esi
test al, al
js 0x40da7d
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40da7d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x40daab
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40daab
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x40daab
dec eax
push eax
push dword [0x49abf8]
call fcn.0041045a
mov eax, dword [eax + 8]
jmp 0x40daad
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40de13
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x40de32
cmp dword [esp + 8], eax
je 0x40de32
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40de34
xor eax, eax
ret 8

Function at 0x40de37
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x40df48
cmp byte [eax], 0
je 0x40df48
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x40de91
cmp eax, 3
jne 0x40dece
cmp byte [ebp - 0x107], 0x3a
jne 0x40dece
cmp eax, 2
jne 0x40deb2
lea eax, [ebp - 0x108]
push 0x444288
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x40df48
jmp 0x40df42
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x40deca
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40df1a
test byte [ebp - 0x248], 0x10
je 0x40defd
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x40df11
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40df48
cmp byte [ebp - 0x108], 0x5c
jne 0x40df48
cmp byte [ebp - 0x107], 0x5c
jne 0x40df48
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40df48
test al, 0x10
je 0x40df48
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x40df60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40df95
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40e1b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x40e209
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40e208
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49ac10]
push eax
push ecx
call fcn.0041045a
test eax, eax
je 0x40e204
cmp dword [eax + 4], 0
je 0x40e1f2
push esi
push edi
push eax
call fcn.0040e570
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x40e210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00410f30
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x49ac10]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0041045a
mov ebx, eax
test ebx, ebx
je 0x40e32e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40e26e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040e670
mov dword [esp + 0x14], eax
jmp 0x40e285
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x40e297
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x40e2c1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00410f30
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40e32d
cmp dword [esp + 0x14], 0
je 0x40e2d8
cmp al, 0xd
je 0x40e2d8
cmp al, 0xa
jne 0x40e250
sub ebp, 1
cmp al, 0xd
jne 0x40e32d
cmp dword [ebx + 4], 0
je 0x40e2f4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040e670
jmp 0x40e30b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40e32d
cmp dword [ebx + 4], 0
je 0x40e31e
add dword [ebx + 0xc], 1
jmp 0x40e32d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00410fd0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8