joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455f10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x664], 0
je 0x455fc1
cmp dword [ebp + 8], 0x100
jne 0x455f8d
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xd
jne 0x455f8d
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x66a]
test eax, eax
je 0x455f66
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x455f8d
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x66b]
test eax, eax
jne 0x455f8d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x455f89
push 0
push 0
push 0
push str.return
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x455fc6
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x664]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x455fc6
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4565a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x4565cc
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x4565d1
jmp 0x4566ef
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x45662c
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x45660f
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x45661b
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x4565e6
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x4566ba
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004aa018
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x456683
jmp 0x456688
call fcn.00497791
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x20c], dx
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004565a0
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.004ac3b0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.004ac37f
add esp, 8
push 0
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret
Function at 0x45c0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x45c10f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45c105
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x45c169
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x45c12f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049afe0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x45c400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45c410
xor eax, eax
jmp 0x45c5ad
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x45c56e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ca0b8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ca0b8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4ca0b8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ca0b8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ca0b8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4ca0b8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ca0b8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4ca0b8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x45c419
cmp dword [ebp + 0x10], 0
je 0x45c5a7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4ca0b8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x45c574
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x48f0d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
jne 0x48f0f5
xor eax, eax
jmp 0x48f18d
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x48f105
xor eax, eax
jmp 0x48f18d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004980b0
mov dword [ebp - 0x14], esp
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x48f135
xor eax, eax
jmp 0x48f18d
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
add ecx, 0x1c4
call fcn.0043e1f0
push 0
push 0
push 0
push str.textchanged
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x499f60
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.004981d0
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ReadFirstPhysicalDriveInNTWithZeroRights_Enter._n
mov esi, ecx
call fcn.00410df0
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x30f8], ebx
push ebx
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0049754e
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x30fc], edi
cmp edi, 0xffffffff
je 0x49a178
push 0x2710
lea eax, [ebp - 0x2fe4]
push 0
push eax
call fcn.0049b560
add esp, 0xc
mov dword [ebp - 0x2fe8], 0
lea eax, [ebp - 0x2fe8]
mov dword [ebp - 0x2fec], 0
mov dword [ebp - 0x2ff4], 0
mov dword [ebp - 0x2ff0], 0
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2fe4]
push eax
push 0xc
lea eax, [ebp - 0x2ff4]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49a16b
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.0049b560
push 0x3e8
lea eax, [ebp - 0x8d4]
push 0
push eax
call fcn.0049b560
mov eax, dword [ebp - 0x2fcc]
lea ecx, [ebp - 0x2fe4]
add esp, 0x18
add eax, ecx
mov ecx, esi
push eax
call fcn.0049a510
push eax
lea eax, [ebp - 0x4ec]
push 0x3e8
push eax
call fcn.004b0d40
mov eax, dword [ebp - 0x2fd4]
lea ecx, [ebp - 0x2fe4]
add esp, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.0049a510
push eax
lea eax, [ebp - 0x8d4]
push 0x3e8
push eax
call fcn.004b0d40
lea ecx, [ebp - 0x4ec]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a0d0
sub ecx, edx
lea eax, [ebp - 0x4ec]
push ecx
push eax
mov ecx, esi
call fcn.00402a10
cmp dword [esi + 0x14], 0x10
mov ebx, esi
jb 0x49a0f2
mov ebx, dword [esi]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x49a132
push 0x100
lea eax, [ebp - 0x30f4]
push 0
push eax
call fcn.0049b560
lea edx, [edi + ebx]
mov byte [ebp - 0x30d4], 1
add esp, 0xc
mov eax, ebx
cmp ebx, edx
jae 0x49a132
nop
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x30f4], 0
je 0x49a174
inc eax
cmp eax, edx
jb 0x49a120
or eax, 0xffffffff
cmp edi, eax
mov edx, esi
cmovb eax, edi
cmp dword [esi + 0x14], 0x10
jb 0x49a144
mov edx, dword [esi]
sub edi, eax
add eax, edx
mov dword [esi + 0x10], edi
lea ecx, [edi + 1]
push ecx
push eax
push edx
call fcn.0049afe0
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x49a1b1
mov ebx, dword [ebp - 0x30f8]
mov edi, dword [ebp - 0x30fc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49a18e
sub eax, ebx
jmp 0x49a135
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push str._hDevice___d__Error___d___n
call fcn.00410df0
add esp, 0xc
inc ebx
mov dword [ebp - 0x30f8], ebx
cmp ebx, 0x10
jl 0x499f91
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret
Function at 0x4b352b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2ee4
push 0x4d2edc
push str.FlsAlloc
push 0x1e
call fcn.004b33b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b355f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c5588]
call esi
jmp 0x4b3565
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b35a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2ef4
push 0x4d2eec
push str.FlsGetValue
push 0x20
call fcn.004b33b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b35e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c5588]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b500b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x505ac8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b504b
cmp byte [ebx], 0xa
jne 0x4b504b
or byte [eax + edi + 0x28], 4
jmp 0x4b5050
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b514e
mov al, byte [edx]
cmp al, 0x1a
je 0x4b5130
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b507f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b50a4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b50ae
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b5061
jmp 0x4b514e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b512b
cmp dword [ebp - 0xc], 0
je 0x4b512b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x505ac8]
test byte [eax + edi + 0x28], 0x48
je 0x4b5105
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b50f0
mov byte [esi], dl
jmp 0x4b5101
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x505ac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b514e
cmp byte [ebp - 1], 0xa
jne 0x4b5114
cmp esi, ebx
jne 0x4b5114
mov byte [esi], 0xa
jmp 0x4b514d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bd553
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b514e
mov byte [esi], 0xd
jmp 0x4b514d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x505ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b514a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b514e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b5157
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x505ac8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b519a
cmp word [esi], dx
jne 0x4b519a
or byte [edi + eax + 0x28], 4
jmp 0x4b519f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b52f2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b52d2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b51e1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b5217
cmp eax, edx
jae 0x4b5223
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b51b9
jmp 0x4b52f2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b52ce
cmp dword [ebp - 0x14], 0
je 0x4b52ce
mov eax, dword [ebx*4 + 0x505ac8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b52a6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b526f
mov word [esi], cx
jmp 0x4b52a2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x505ac8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x505ac8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x505ac8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b52f2
pop ebx
cmp word [ebp - 4], bx
jne 0x4b52b7
cmp esi, dword [ebp + 0xc]
jne 0x4b52b7
mov word [esi], bx
jmp 0x4b52ef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bd553
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b52f2
push 0xd
jmp 0x4b52eb
mov ecx, dword [ebx*4 + 0x505ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b52e9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b52f2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b5b13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5984

Function at 0x4b7d77
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b7dc2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b7f16
test al, al
jne 0x4b7dbc
sub edx, 2
cmp edx, edi
jne 0x4b7da2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b7de4
lea eax, [edi + 2]
cmp edx, eax
je 0x4b7de4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b7cc3
add esp, 0x10
jmp 0x4b7ede
push esi
lea ecx, [ebp - 0x255]
call fcn.004b7f16
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b7e27
push dword [ebp - 0x25c]
jmp 0x4b7dd4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b7e64
cmp word [ebp - 0x226], 0
je 0x4b7e85
cmp word [ebp - 0x226], ax
jne 0x4b7e64
cmp word [ebp - 0x224], 0
je 0x4b7e85
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b7cc3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b7ed1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b7e3e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b7eb9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b7ede
push 0x4b7af3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004beb20
add esp, 0x10
jmp 0x4b7eae
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
leave
ret
Function at 0x4bf785
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bf701
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bf8fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bf8fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bf8ac
jg 0x4bf7de
test eax, eax
je 0x4bf8a2
push 1
push 0x1000
call fcn.004b2a0c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bf804
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4bf899
push 0x8000
push ebx
call fcn.004aed0e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bf830
jg 0x4bf82b
cmp ecx, 0x1000
jb 0x4bf830
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b42f6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bf875
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bf82b
jl 0x4bf85c
test ecx, ecx
jne 0x4bf81d
push dword [ebp - 0xc]
push ebx
call fcn.004aed0e
push esi
call fcn.004b17e3
add esp, 0xc
xor edi, edi
jmp 0x4bf90e
cmp byte [edi + 0x24], 0
je 0x4bf88c
cmp dword [edi + 0x20], 5
jne 0x4bf88c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bf897
mov edi, dword [edi + 0x18]
jmp 0x4bf899
xor edi, edi
push esi
call fcn.004b17e3
pop ecx
jmp 0x4bf90e
test ecx, ecx
jg 0x4bf86e
jl 0x4bf8ac
test eax, eax
jae 0x4bf86e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bd553
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bf8cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bf86e
jmp 0x4bf906
push ebx
call fcn.004b8da7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bf86e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4bf90e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bf90b
mov edi, dword [edi + 0x18]
jmp 0x4bf90e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bd553
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402110
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e01c]
jne 0x40211a
repz ret
jmp fcn.004028a0