joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416af0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov ebx, edx
call fcn.00416c90
mov eax, ebx
call fcn.004354e0
mov esi, eax
add esi, 0x104
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp esi, 0x7fffffff
mov edi, eax
mov dword [esp + 0x10], edi
ja 0x416b5d
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.00402840
push 0x4a436c
mov eax, edi
call fcn.00430470
add esp, 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x416c5a
jmp 0x416b90
test dword [esp + 0x20], 0x10
jne 0x416c3f
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
add edi, 0x120
push ecx
mov ebx, edi
call fcn.00433b80
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, SysReAllocString
lea eax, [esp + 0x4c]
xor edx, edx
cmp word [eax], 0
je 0x416bd6
add eax, 2
sub ecx, 1
jne 0x416bc6
jmp 0x416bde
test ecx, ecx
jne 0x416c78
mov edx, 0x80070057
xor eax, eax
xor ecx, ecx
test edx, edx
setl cl
mov edx, 2
sub ecx, 1
and ecx, eax
add ecx, 1
mov esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp esi, 0x7fffffff
mov ebx, eax
ja 0x416c28
lea eax, [esp + 0x4c]
mov edx, esi
mov ecx, ebx
call fcn.00402840
mov eax, dword [esp + 0x1c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0045b0ea
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416b90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0045505b
mov ecx, dword [esp + 0x278]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a105
mov esp, ebp
pop ebp
ret
mov eax, SysReAllocString
sub eax, ecx
jmp 0x416be5
Function at 0x41a2bb
Capabilities:
Create thread
Get disk size
Resume thread

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [esp + 0x240]
mov ebx, dword [esp + 0x244]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
push edi
mov edi, dword [esp + 0x240]
mov dword [esi + 0x54], ebp
neg ecx
or ecx, eax
push ecx
call fcn.00455056
lea ecx, [ebp*4]
push ecx
push ebx
push eax
mov dword [esi + 0x58], eax
call fcn.00482520
xor ebp, ebp
add esp, 0x10
cmp edi, ebp
je 0x41a323
cmp dword [edi + 0x20], ebp
je 0x41a323
push 0x4af
mov ecx, edi
call fcn.0045da70
cmp eax, ebp
je 0x41a323
cmp dword [eax + 0x20], ebp
je 0x41a323
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x60]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
push 0x4af
push edi
push eax
push 0x50000000
mov ecx, esi
call edx
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x41a488
push 0x104
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x41a3a4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x3ff
adc eax, ebp
shrd edx, eax, 0xa
shr eax, 0xa
mov edi, edx
add edi, 0x3ff
adc eax, ebp
shrd edi, eax, 0xa
shr eax, 0xa
mov ebx, dword [esi + 0x54]
xor eax, eax
cmp ebx, ebp
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebp
jle 0x41a3c5
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
add dword [esi + 0x60], edx
add eax, 1
add ecx, 4
cmp eax, ebx
jl 0x41a3b6
mov ecx, dword [esi + 0x60]
cmp edi, ecx
mov dword [esi + 0x64], 0x64
jae 0x41a415
mov eax, edi
imul eax, eax, 0x64
xor edx, edx
div ecx
xor ecx, ecx
cmp ebx, ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], eax
jle 0x41a415
mov edi, dword [esi + 0x58]
jmp 0x41a3f0
mov edx, dword [edi + ecx*4]
imul edx, dword [esi + 0x64]
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [edi + ecx*4], edx
mov edi, dword [esi + 0x58]
mov eax, dword [edi + ecx*4]
add dword [esi + 0x60], eax
add ecx, 1
cmp ecx, dword [esi + 0x54]
jl 0x41a3f0
cmp dword [esi + 0x60], ebp
jbe 0x41a42e
movzx ecx, word [esi + 0x60]
mov edx, dword [esi + 0x20]
shl ecx, 0x10
push ecx
push ebp
push 0x401
push edx
jmp 0x41a454
mov edi, dword [esi + 0x20]
mov ecx, esi
call fcn.0045db0b
or eax, 8
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x20]
push 0xa0000
push ebp
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x1c]
push ecx
push 4
push esi
push 0x41a4b0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
mov dword [esi + 0x68], eax
je 0x41a484
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x41a488
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047a105
add esp, 0x22c
ret 0x10
Function at 0x4220c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x492cf3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push 0x4c35b0
mov dword [esi], vtable.ATL::CImage.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x4c35c8], 1
push 0x4c35b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
push ecx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.CBackImage.0
mov dword [esi + 0x30], eax
call fcn.00404740
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call fcn.00404740
call fcn.0045525d
cmp eax, ebx
jne 0x422176
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
xor ecx, ecx
cmp dword [esp + 0x2c], ebx
mov dword [esi + 0x3c], eax
sete cl
mov eax, esi
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x14

Function at 0x422ab0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422b2a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push esi
call ebx
push 0
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call fcn.00455056
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov eax, ebx
je 0x422b24
mov dword [ebp], edi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x422b40
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x422b8d
cmp eax, 0x80090016
jne 0x422b9d
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push esi
lea ecx, [esp + 0x18]
push ecx
call edi
mov esi, eax
test esi, esi
je 0x422b9f
test ebx, ebx
mov eax, esi
je 0x422b9f
mov edx, dword [esp + 8]
pop edi
mov dword [ebx], edx
pop esi
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x422bb0
Capabilities:
Encrypt data using rc4 via winapi

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push eax
xor ebp, ebp
push ecx
lea ebx, [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00422c40
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
mov esi, eax
call ebx
cmp esi, ebp
je 0x422c2d
mov ebp, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x800000
push ebp
push 0x6801
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov esi, eax
call ebx
test esi, esi
je 0x422c22
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422c0b
mov dword [eax], ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x422c2d
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ebp, ebp
je 0x422c2d
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x422c40
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
test esi, esi
je 0x422c9d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
call edi
test esi, esi
je 0x422c9d
test ebx, ebx
mov eax, esi
je 0x422c9f
mov edx, dword [esp + 8]
pop edi
mov dword [ebx], edx
pop esi
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x422d30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea ebx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.00422b40
test eax, eax
je 0x422e12
push ebp
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
call fcn.00422bb0
mov ebp, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x422de9
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], esi
call fcn.00422ab0
mov edi, eax
add esp, 4
test edi, edi
je 0x422de9
mov ebx, dword [esp + 0x10]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00455056
push ebx
mov esi, eax
push 0
push esi
call fcn.0047c3b0
mov eax, dword [esp + 0x20]
push eax
push edi
push esi
call fcn.00482520
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 1
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x422de0
mov edx, dword [esp + 0x10]
mov dword [eax], edx
push edi
call fcn.0045505b
add esp, 4
test ebp, ebp
je 0x422df4
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x18]
test eax, eax
pop edi
pop ebp
je 0x422e05
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x424d80
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 4], 0
push esi
push edi
mov ebx, eax
mov esi, 1
jne 0x424e0a
mov ecx, ebp
call fcn.00424e20
mov esi, eax
test esi, esi
je 0x424e0a
mov eax, dword [ebx]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x424dcd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x4a19dc
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x424dfa
mov dword [ebp + 4], edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4262e0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x492c60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push str.GetKozukiServiceStatus
push str.CKozukiServerRequest
call fcn.0042af10
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 8
push 0x10
mov ebp, 5
call esi
test ax, ax
jge 0x426363
push 0x11
call esi
test ax, ax
jge 0x426363
push str.GetKozukiServiceStatus
push str.CKozukiServerRequest
mov esi, str.Server_is_opened_with_keyboard_key.
call fcn.0042b0b0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42637d
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4263af
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 1
lea ecx, [esp + 0x1c]
push str.c_ld
push ecx
mov byte [esp + 0x30], 1
call fcn.004045e0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
push edi
push eax
call fcn.00426850
add esp, 0x18
test eax, eax
je 0x426464
push 0x4a19ec
lea eax, [esp + 0x18]
call fcn.00427970
mov ebx, eax
mov eax, 0x4a19ec
call fcn.004279d0
push 0x4a6ad0
lea eax, [esp + 0x18]
call fcn.00427970
mov ebx, eax
mov eax, 0x4a6ad0
call fcn.004279d0
xor esi, esi
cmp dword [str.Open], esi
je 0x426464
mov eax, 0x49fe20
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0047a268
add esp, 8
test eax, eax
je 0x42645d
add esi, 1
cmp dword [esi*8 + 0x49fe20], 0
lea eax, [esi*8 + 0x49fe20]
jne 0x426433
jmp 0x426464
mov ebp, dword [esi*8 + 0x49fe24]
push ebp
push str.GetKozukiServiceStatus
push str.CKozukiServerRequest
call fcn.0042b190
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42649c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4264c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x429090
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
mov ebx, ecx
test ebx, ebx
push esi
push edi
je 0x429267
call fcn.00428ca0
test eax, eax
je 0x429267
mov ecx, dword [0x4c36e0]
cmp dword [ecx + 8], 0
mov eax, 1
jne 0x429269
mov ecx, SysReAllocString
mov eax, ebx
jmp 0x4290e0
cmp word [eax], 0
je 0x4291f3
add eax, 2
sub ecx, 1
jne 0x4290e0
xor eax, eax
lea esi, [eax*4 + 0x414]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
mov ebp, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 8
cmp esi, 0x7fffffff
mov edi, eax
ja 0x429145
mov eax, ebx
mov edx, esi
mov ecx, ebp
call fcn.00402840
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4a7158
push ebp
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4a7168
push ebp
push edi
call ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x429248
mov dword [esp + 0x10], 0
jmp 0x429190
mov ecx, dword [esp + 0x18]
shr ecx, 4
not ecx
test cl, 1
je 0x429229
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x429229
lea eax, [esp + 0x44]
push eax
push ebp
push edi
call ebx
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x4a7170
push esi
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x429207
mov esi, dword [esp + 0x10]
mov ecx, dword [0x4c36e0]
push 1
push edi
push esi
call fcn.00461e2a
add esi, 1
mov dword [esp + 0x10], esi
jmp 0x429229
test ecx, ecx
je 0x4290f2
mov eax, SysReAllocString
sub eax, ecx
jmp 0x4290f4
push 0x4a7178
push esi
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x429229
mov ecx, dword [0x4c36e0]
mov edx, dword [ecx + 8]
push edi
push edx
call fcn.00461d8c
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x429190
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.0045505b
push edi
call fcn.0045505b
mov ecx, dword [0x4c36e0]
xor eax, eax
add esp, 8
cmp dword [ecx + 8], eax
setg al
jmp 0x429269
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047a105
add esp, 0x264
ret
Function at 0x42aa30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493710
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00466047
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0042aaf0
mov esi, eax
test esi, esi
je 0x42aac5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42aac5
add eax, 8
je 0x42aac5
push eax
lea ecx, [esp + 0x34]
call fcn.004234c0
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x2c], 1
call fcn.00405560
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42aac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0046605e
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x42acf0
Capabilities:
Create directory
Create process on windows
Get common file path
Log keystrokes via polling
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x68]
mov dword [esi], eax
call fcn.0045ed7b
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
mov dword [ecx + 0x68], 0
call esi
test ax, ax
jge 0x42ae1f
push 0x11
call esi
test ax, ax
jge 0x42ae1f
push 1
push 0x23
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42ae1f
push str.Epson
lea eax, [esp + 0xc]
call fcn.00430470
add esp, 4
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4a7520
lea eax, [esp + 0xc]
call fcn.00430470
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42ae1f
push 0
lea edx, [esp + 8]
push edx
push 2
push 0x4a19dc
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0045ed7b
mov esi, dword [eax + 4]
lea eax, [esp + 8]
push eax
call fcn.0047b346
add esp, 4
push 0
push 0x24
push str.Do_you_want_to_open_the_folder_
mov dword [esi + 0x68], eax
call fcn.0045d96d
cmp eax, 6
jne 0x42ae1f
push edi
lea edi, [esp + 0xc]
call fcn.00430330
push 7
push 0
push 0
mov ecx, edi
push ecx
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov ecx, dword [esp + 0x418]
pop esi
xor ecx, esp
call fcn.0047a105
add esp, 0x418
ret
Function at 0x42b910
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
call fcn.0045ed7b
mov eax, dword [eax + 4]
cmp dword [eax + 0x68], 0
je 0x42ba6c
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x68]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42ba6c
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42b991
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push 0x4a19ec
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2c]
push edx
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str._04d__02d__02d__02d:_02d:_02d__03d_____s_s
push edx
call fcn.004045e0
add esp, 0x2c
push 2
push 0
push 0
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x42ba2e
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00404510
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebx + ebx]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ba6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret