joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f480
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f6088
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.0045f2b0
add esp, 4
test eax, eax
jne 0x45f4b7
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x45f50f
mov eax, dword [0x532934]
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.Cannot_delete_file__s
push ecx
mov dword [esp + 0x18], 0
call fcn.004d383a
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x45f600
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f60b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.0045f2b0
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x45f687
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x45f687
mov eax, dword [0x532934]
push edi
mov dword [esp + 0x20], eax
push esi
lea ecx, [esp + 0x24]
push str.Unable_to_create_directory___s_
push ecx
mov dword [esp + 0x24], 0
call fcn.004d383a
mov edi, dword [esp + 0x2c]
add esp, 0xc
push 0
push 0
call ebx
push eax
push edi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004da87c
pop edi
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test al, 0x10
jne 0x45f6dc
mov edx, dword [0x532934]
mov dword [esp + 8], edx
push esi
lea eax, [esp + 0xc]
push str.Unable_to_create_directory___s_
push eax
mov dword [esp + 0x20], 1
call fcn.004d383a
mov esi, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
call ebx
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45f7e0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push 0x45f6f0
push esi
call fcn.0045f830
add esp, 0xc
test eax, eax
jne 0x45f7fe
pop esi
ret
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.0045f0f0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004da87c
mov eax, esi
pop esi
ret
Function at 0x45fa00
Capabilities:
Access peb ldr_data
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4f6128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_SetLastError]
push edi
push 0
call esi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0045f0f0
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.0045f0f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x34], 1
call fcn.004c2d39
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
add esp, 0x18
test eax, eax
je 0x45fb0a
mov edi, dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0xc]
push eax
call fcn.0045f2b0
add esp, 4
test eax, eax
jne 0x45fa8d
call ebp
test eax, eax
je 0x45fab3
call ebp
test eax, eax
jne 0x45fb0a
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0045f380
add esp, 4
test eax, eax
je 0x45fb0a
push 0
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
je 0x45fb0a
push 0x52468c
lea ecx, [esp + 0x10]
call fcn.004d3896
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0045f210
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.004da9b5
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.004da87c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.004c2d39
add esp, 8
test eax, eax
jne 0x45fa76
call ebp
mov esi, eax
lea ecx, [esp + 0x10]
neg esi
sbb esi, esi
mov byte [esp + 0x1c], 0
neg esi
call fcn.004da87c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45fb50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f6158
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fbdf
mov eax, dword [0x532934]
mov dword [esp + 0x2c], eax
push ebx
lea ecx, [esp + 0x30]
push str.Unable_to_open_file___s_
push ecx
mov dword [esp + 0x30], 0
call fcn.004d383a
mov ebp, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
call edi
push eax
push ebp
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004da87c
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x45fc54
call edi
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [0x532934]
mov dword [esp + 0x2c], eax
push ebx
lea ecx, [esp + 0x30]
push str.Unable_to_determine_size_of_file___s_
push ecx
mov dword [esp + 0x30], 1
call fcn.004d383a
mov edx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x18], edx
push 0
push 0
call edi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call fcn.004da87c
mov eax, 0xcccccccd
mul ebp
shr edx, 3
lea ecx, [edx + ebp + 0xa]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00464590
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
mov dword [esp + 0x20], 0
call fcn.00464560
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x45fcec
call edi
push esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [0x532934]
mov dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x14]
push str.Unable_to_read_from_file___s_
push ecx
mov dword [esp + 0x30], 2
call fcn.004d383a
mov ebx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
call edi
push eax
push ebx
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004da87c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push edx
call fcn.00464590
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x45fd20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f6190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x24]
push edi
push eax
call fcn.0045f210
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
push ecx
call fcn.0045f530
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x45fdcd
mov edx, dword [0x532934]
mov dword [esp + 0x30], edx
push edi
lea eax, [esp + 0x34]
push str.Cannot_open_file___s_
push eax
mov byte [esp + 0x28], 1
call fcn.004d383a
mov esi, dword [esp + 0x3c]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call fcn.004da87c
jmp 0x45fede
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45fe4f
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, ebx
jne 0x45fe4f
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
call ebp
push esi
mov ebx, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov ecx, dword [0x532934]
mov dword [esp + 0x30], ecx
push edi
lea edx, [esp + 0x34]
push str.Cannot_set_file_pointer_to_the_end_of_file___s_
push edx
mov byte [esp + 0x28], 2
call fcn.004d383a
mov esi, dword [esp + 0x3c]
add esp, 0xc
push 0
push 0
call ebp
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call fcn.004da87c
mov dword [esp + 0x1c], 0xffffffff
jmp 0x45fee2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x45fed0
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
call ebx
push esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [0x532934]
mov dword [esp + 0x2c], eax
push edi
lea ecx, [esp + 0x30]
push str.Cannot_write_to_file___s_
push ecx
mov byte [esp + 0x28], 3
call fcn.004d383a
mov esi, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
call ebx
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.004da87c
mov dword [esp + 0x1c], 0xffffffff
jmp 0x45fee2
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
call fcn.004da87c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4606d0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x38]
push edi
push str.KERNEL32.DLL
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460759
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x460752
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
call eax
mov ebx, eax
test ebx, ebx
je 0x460742
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [eax + 4], ecx
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x28
ret
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
imul edi, ecx
mov edx, dword [esp + 0x20]
imul edi, edx
mov dword [esi], edi
mov dword [esi + 4], 0
mov esi, dword [esp + 0x2c]
pop edi
imul esi, ecx
imul esi, edx
mov ecx, dword [esp + 0x34]
mov dword [ecx], esi
mov dword [ecx + 4], 0
pop esi
add esp, 0x28
ret
Function at 0x461090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0xc], ebx
jne 0x4610fc
mov esi, dword [esp + 0x30]
mov al, byte [esp + 0x30]
mov edi, str.The_operation_completed_successfully.
or ecx, 0xffffffff
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.The_operation_completed_successfully.
mov ecx, esi
call fcn.004053a0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebp
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1100
mov dword [esp + 0x54], ebx
call dword [sym.imp.kernel32.dll_FormatMessageA]
mov dl, byte [esp + 0x34]
push ebx
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x18], dl
call fcn.00403b70
cmp esi, ebx
mov dword [esp + 0x2c], ebx
jne 0x46117d
mov edi, str.Unknown_error.
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x4611be
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Unknown_error.
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], bl
jmp 0x4611be
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403be0
test al, al
je 0x4611be
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov esi, dword [esp + 0x34]
mov dl, byte [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4fdbfc]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004051a0
mov ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x461226
mov al, byte [ecx - 1]
cmp al, bl
je 0x46121c
cmp al, 0xff
je 0x46121c
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.004dae3e
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4613f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x461405
xor eax, eax
pop esi
ret
test al, 1
je 0x461419
and al, 0xfe
push eax
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x461419
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x461420
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f6248
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
xor ebx, ebx
test byte [esi + 0x1c], 1
je 0x46145b
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x461452
mov eax, 0x4fdc00
push eax
call fcn.004613f0
add esp, 4
cmp dword [esi], ebx
jne 0x461483
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x46146b
mov esi, 0x4fdc00
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [0x4fdbfc]
mov cl, byte [esi + 4]
lea eax, [esi + 4]
push edx
mov byte [esp + 0xc], cl
push ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004051a0
lea eax, [esp + 8]
mov dword [esp + 0x20], ebx
push eax
call fcn.00460890
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
jne 0x4614c9
mov eax, 0x4fdc00
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp ecx, ebx
je 0x461507
mov al, byte [ecx - 1]
cmp al, bl
je 0x4614fd
cmp al, 0xff
je 0x4614fd
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec ecx
push ecx
call fcn.004dae3e
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x461710
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
test eax, eax
push esi
jne 0x461723
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46174b
xor eax, eax
pop esi
add esp, 0x20
ret
xor ecx, ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x16], ecx
push edx
mov dword [esp + 0x1e], ecx
mov word [esp + 0x18], 0
mov dword [esp + 0x22], ecx
mov word [esp + 0x26], cx
call fcn.004c37b5
mov cx, word [eax]
add esp, 4
mov word [esp + 0x20], cx
mov dx, word [eax + 4]
mov word [esp + 0x1e], dx
mov cx, word [eax + 8]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xc]
mov word [esp + 0x1a], dx
mov cx, word [eax + 0x10]
inc cx
mov word [esp + 0x16], cx
mov dx, word [eax + 0x14]
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
add dx, 0x76c
push eax
push ecx
mov word [esp + 0x1c], dx
call dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFileTime]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x4617f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push 1
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x461875
cmp eax, 0x1f
jne 0x46185e
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str.openas
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], str.Unknown
call dword [sym.imp.shell32.dll_ShellExecuteEx]
pop edi
pop esi
add esp, 0x3c
ret
mov edx, dword [esp + 0x48]
push 0x30
push 0x524a54
push str.File_cannot_be_opened
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
pop esi
add esp, 0x3c
ret
Function at 0x4640d0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov cl, byte [esp + 0x18]
xor ebx, ebx
xor eax, eax
xor ebp, ebp
test cl, 2
je 0x4640fb
test cl, 8
mov ebx, 0x40000000
mov eax, 2
je 0x4640fb
mov eax, 3
test cl, 1
je 0x46410a
mov ebx, 0x80000000
mov eax, 3
mov cl, byte [esp + 0x1c]
test cl, 1
je 0x464118
mov ebp, 1
test cl, 2
je 0x464120
or ebp, 2
mov esi, dword [esp + 0x14]
push edx
push 0x80
push eax
push edx
push ebp
push ebx
push esi
mov dword [edi + 0x10], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp ebx, 0x80000000
mov dword [edi + 4], eax
jne 0x46415a
cmp eax, 0xffffffff
je 0x46415a
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [edi + 0x14], eax
mov ebx, dword [edi + 4]
or ecx, 0xffffffff
xor eax, eax
cmp ebx, ecx
sete al
test eax, eax
mov dword [edi + 0x10], eax
jne 0x464203
lea ebp, [edi + 0x18]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x464188
call fcn.004d1833
mov ecx, dword [ebp + 4]
xor edx, edx
cmp ecx, edx
je 0x4641b5
mov al, byte [ecx - 1]
test al, al
je 0x4641b5
cmp al, 0xff
je 0x4641b5
cmp ebx, edx
jne 0x4641de
dec al
pop edi
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop esi
pop ebp
pop ebx
ret 0xc
cmp ebx, edx
jne 0x4641c9
push 1
mov ecx, ebp
call fcn.00403b70
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4641d5
cmp eax, ebx
jae 0x4641e6
push 1
mov ecx, ebp
call fcn.00403b70
push ebx
mov ecx, ebp
call fcn.00403d00
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x464350
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x14]
xor edi, edi
lea eax, [esp + 8]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x46438f
mov dword [esi + 0x10], 1
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x4643a7
mov dword [esi + 0xc], 1
mov dword [esi + 8], eax
pop edi
pop esi
pop ecx
ret 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi + 0x14]
xor ecx, ecx
cmp eax, edx
mov eax, dword [esp + 8]
sete cl
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
pop edi
pop esi
pop ecx
ret 8

Function at 0x466b40
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 2
push 0
push esi
call dword [sym.imp.user32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.user32.dll_keybd_event]
pop esi
ret 4
Function at 0x467190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f667f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x532934]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push eax
push eax
lea edx, [esp + 0x10]
push str._span_tabindex0_classhyperlink_onclick_javascript:location__https:__rpc__s__onkeydown_javascript:if_window.event.keyCode__13__location__https:__rpc__s___s__span_
push edx
mov dword [esp + 0x28], 1
call fcn.004d383a
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.004da5f1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004da87c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x467fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.user32.dll_GetKeyState]
push edi
push 0x10
call esi
mov di, ax
push 0x11
and edi, 0xffff8000
neg di
sbb edi, edi
and edi, 0xfffffffc
add edi, 4
call esi
and eax, 0xffff8000
push 0x12
neg ax
sbb eax, eax
and al, 0xfe
add eax, 2
or edi, eax
call esi
and eax, 0xffff8000
neg ax
sbb eax, eax
inc eax
or edi, eax
mov ax, di
pop edi
pop esi
ret

Function at 0x4682e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ecx, ebp
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
shr ecx, 2
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [edx + ecx*4]
cmp edx, ebx
je 0x468318
mov ecx, dword [edi]
add edx, 4
xor ecx, dword [esi]
add edi, 4
add esi, 4
mov dword [edx - 4], ecx
or eax, ecx
cmp edx, ebx
jne 0x468302
and ebp, 3
mov ecx, ebp
mov ebx, ecx
dec ecx
test ebx, ebx
je 0x468345
sub edi, esi
lea ebx, [ecx + 1]
mov cl, byte [edi + esi]
xor cl, byte [esi]
inc esi
mov byte [esp + 0x14], cl
mov byte [edx], cl
mov ecx, dword [esp + 0x14]
inc edx
and ecx, 0xff
or eax, ecx
dec ebx
jne 0x468329
pop edi
pop esi
pop ebp
pop ebx
ret