joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56c2e0
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64ff18
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
mov edx, eax
or edx, ecx
je 0x56c326
mov ebp, dword [edi + 0x68]
mov ebx, dword [edi + 0x6c]
mov esi, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
sub eax, ebp
sbb ecx, ebx
sub eax, esi
sbb ecx, edx
mov ebp, eax
mov dword [esp + 0x38], ecx
jmp 0x56c333
mov ebp, 0x2da0
mov dword [esp + 0x38], 0
mov ecx, dword [edi + 0xb0]
push 0
push 0
lea eax, [esp + 0x34]
mov edx, dword [ecx + 0x30]
push 0
push eax
push edx
call fcn.0060a943
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x56c376
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56c37a
mov ecx, 1
jmp 0x56c37c
mov eax, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0xffffffff
or ebx, 0xffffffff
test ecx, ecx
je 0x56c3aa
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x56c3dd
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
jmp 0x56c3dd
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x56c3dd
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
imul esi, dword [esp + 0x1c]
xor ebx, ebx
mov edx, dword [esp + 0x38]
push 0
push 0xa
push edx
push ebp
call fcn.0060bae0
add eax, ebp
mov ebp, dword [esp + 0x38]
adc edx, ebp
cmp ebx, edx
jg 0x56c47e
jl 0x56c402
cmp esi, eax
ja 0x56c47e
and esi, ebx
cmp esi, 0xffffffff
je 0x56c47e
mov eax, dword [0x6f7b78]
mov dword [esp + 0x10], eax
mov edx, dword [0x6fdf30]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x50], 0
call fcn.0061fae1
mov ecx, dword [esp + 0x1c]
push 0x50030
push 0x6c9094
push ecx
push 0
call fcn.00457010
add esp, 0x1c
mov ecx, edi
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
call fcn.00567a50
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00622d8a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x56d3b0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
push str.shell32.dll
xor edi, edi
call fcn.0044abc0
mov ebp, dword [esp + 0x18]
mov esi, eax
add esp, 4
test esi, esi
je 0x56d40a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x56d3fe
push edi
call dword [0x6fc3fc]
push ebp
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x56d3f8
mov edi, 1
call dword [0x6fc400]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop ebx
jne 0x56d45b
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x56d45b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push ebp
push eax
push eax
push 0x6cdec0
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x56d450
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x56e650
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 0xff
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x56e668
jmp dword [ecx*4 + 0x56e6f4]
mov al, 0x41
ret 4
mov al, 0x42
ret 4
mov al, 0x43
ret 4
mov al, 0x44
ret 4
mov al, 0x45
ret 4
mov al, 0x46
ret 4
mov al, 0x47
ret 4
mov al, 0x48
ret 4
mov al, 0x49
ret 4
mov al, 0x4a
ret 4
mov al, 0x4b
ret 4
mov al, 0x4c
ret 4
mov al, 0x4d
ret 4
mov al, 0x4e
ret 4
mov al, 0x4f
ret 4
mov al, 0x50
ret 4
mov al, 0x51
ret 4
mov al, 0x52
ret 4
mov al, 0x53
ret 4
mov al, 0x54
ret 4
mov al, 0x55
ret 4
mov al, 0x56
ret 4
mov al, 0x57
ret 4
mov al, 0x58
ret 4
mov al, 0x59
ret 4
mov al, 0x5a
ret 4
Function at 0x56ee90
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x56fe30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi + 4], 0
lea eax, [edi + 4]
je 0x56fec6
mov cl, byte [edi + 0x418]
test cl, cl
je 0x56fec6
mov ecx, dword [edi + 0x41c]
xor esi, esi
cmp ecx, 0xffffffff
jne 0x56fe95
push esi
push esi
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x56fec6
lea eax, [esp + 0xc]
push 2
push eax
push 0
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
mov ebx, esi
jne 0x56fe9b
mov ebx, dword [edi + 0x41c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x56fec6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x56fed0
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
jne 0x56feff
push 0
push 0
push 4
push 0
push 7
lea eax, [esi + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x56ffe8
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x56ff35
test ebx, ebx
jne 0x56ff35
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56ff58
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.0060c730
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x56ff5d
jg 0x56ff58
cmp eax, 0x4c4b40
jbe 0x56ff5d
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0xc], 0
pop ebx
je 0x56ffd2
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x56ffe8
lea ecx, [esp + 8]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0056fe30
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
lea eax, [esp + 8]
push 2
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x56fed3
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
jne 0x56feff
push 0
push 0
push 4
push 0
push 7
lea eax, [esi + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x56ffe8
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x56ff35
test ebx, ebx
jne 0x56ff35
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56ff58
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.0060c730
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x56ff5d
jg 0x56ff58
cmp eax, 0x4c4b40
jbe 0x56ff5d
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0xc], 0
pop ebx
je 0x56ffd2
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x56ffe8
lea ecx, [esp + 8]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0056fe30
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
lea eax, [esp + 8]
push 2
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x56fff0
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x41c], 0xffffffff
je 0x570104
lea eax, [esp + 0x14]
push eax
call fcn.0060b5c4
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x57002b
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x420], ecx
pop esi
add esp, 0x18
ret
lea edx, [eax + 5]
mov eax, dword [esp + 0x14]
cmp edx, eax
jge 0x570104
mov ecx, dword [esi + 0x41c]
mov dword [esi + 0x420], eax
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x57006d
test ebx, ebx
jne 0x57006d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x570090
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0060c730
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x570095
jg 0x570090
cmp eax, 0x4c4b40
jbe 0x570095
mov ebp, 1
test ebp, ebp
pop ebp
mov dword [esp + 0x10], 0
pop ebx
je 0x570104
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x41c], eax
je 0x570104
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0056fe30
pop edi
pop esi
add esp, 0x18
ret

Function at 0x570140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x5701a8
lea eax, [esp + 8]
push edi
push eax
call fcn.0060b5c4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esp, 4
and ecx, 0xffff
lea eax, [esp + 0x18]
push ecx
push edx
push str.Time:__ld._ld_n
push eax
call fcn.0060a593
add esp, 0x10
lea ecx, [esp + 8]
lea edi, [esp + 0x18]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x41c]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x50
ret

Function at 0x570390
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x5703df
push esi
push esi
push 4
push esi
push 3
lea eax, [edi + 4]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x570408
lea ecx, [esp + 8]
push 2
push ecx
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x5703df
mov edi, esi
jmp 0x5703e5
mov edi, dword [edi + 0x41c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x570408
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 8
ret 8
Function at 0x5704d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00570460
mov eax, dword [esp + 0x24]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x57051d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x570639
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
lea esi, [edi + 8]
mov ecx, edi
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00570aa0
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x570551
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
cdq
cmp edx, ecx
jl 0x570551
jg 0x57054d
cmp eax, dword [esi]
jbe 0x570551
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx]
mov ecx, dword [esi]
cdq
sub ecx, eax
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
sbb eax, edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x57059d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x57059d
mov ecx, edi
call fcn.00570460
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x5705af
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [edi + 0x10]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x570617
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x570617
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x14]
push 2
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x5705a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x5705a3
mov ecx, edi
call fcn.00570460
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.00570460
test esi, esi
je 0x570636
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x570760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
sub eax, 4
push ebp
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [edi + 0x10]
sbb ecx, ebp
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x5707ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5708b8
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x570949
cmp dword [esp + 0x34], 4
jne 0x570949
lea ecx, [esp + 0x1c]
push ecx
call fcn.005bc8c0
add esp, 4
cmp eax, ebp
jbe 0x570949
mov ecx, 0xfffffffc
xor edx, edx
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
mov edx, dword [esi]
add edx, ecx
mov dword [esi], edx
mov ecx, dword [esi + 4]
adc ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp eax, ebp
jl 0x570949
jg 0x570825
cmp ecx, ebp
jbe 0x570949
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
push ebp
push edx
push ecx
push eax
mov dword [esp + 0x24], ecx
call ebx
cmp eax, 0xffffffff
jne 0x57084b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5708b8
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x570875
cmp dword [esp + 0x34], 0xc
jne 0x570949
mov al, byte [esp + 0x2c]
test al, al
mov al, byte [esp + 0x1c]
je 0x57088a
cmp al, 8
je 0x5708a2
jmp 0x570779
cmp al, 9
jne 0x570779
mov cl, byte [esp + 0x27]
and cl, 0xf0
cmp cl, 0x10
jne 0x570779
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x5708cb
jmp 0x570779
mov ecx, edi
call fcn.00570460
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov ax, word [esp + 0x20]
mov cl, byte [esp + 0x22]
xor edx, edx
mov byte [esp + 0x2c], 0
mov word [esp + 0x2d], dx
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], dl
mov byte [esp + 0x2f], cl
mov edx, dword [esp + 0x2c]
push edx
call fcn.006010b2
movsx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x38]
push 2
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x30], ebp
mov dword [edx], eax
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x57093d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x57093d
mov ecx, edi
call fcn.00570460
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
Function at 0x570960
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [eax], 0
mov edx, dword [esi + 0x10]
push 0
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x5709bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
je 0x5709bc
mov ecx, esi
call fcn.00570460
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push 0
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5709f6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x5709f6
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
lea edx, [esp + 0x18]
adc ecx, ebx
add eax, 4
push 0
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi + 0x10]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x570a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x570a40
mov ecx, esi
call fcn.00570460
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18

Function at 0x570a60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x570a6d
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x570aa0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x10]
push esi
cmp eax, 0xffffffff
jne 0x570ab1
xor eax, eax
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x570af0
mov eax, dword [esi + 4]
test eax, eax
jne 0x570af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x570af0
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.0060c730
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x5712c0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x571377
push edi
mov edi, dword [esi + 0x28]
test edi, edi
je 0x5712e7
push edi
push ebx
mov ecx, esi
call fcn.00571380
mov edi, dword [edi]
test edi, edi
jne 0x5712d8
mov edx, dword [esi + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
push 1
push eax
push str.f_templ
push ebx
call edi
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.f_tfc
push ebx
mov dword [esp + 0x28], eax
call edi
mov cl, byte [esi + 0xc]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
push 0
push str.f_uf
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
lea ecx, [esi + 0x18]
push 8
push ecx
push 0
push 0
push str.f_td
push ebx
call edi
mov eax, dword [esi + 0x3c]
xor edx, edx
test eax, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.f_uu
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x571380
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x57146e
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x44]
push edx
lea eax, [esp + 0x14]
push 0x6e9ebc
push eax
mov dword [esp + 0x4c], ecx
call fcn.0060a593
add esp, 0xc
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push 0x18
push ecx
push 0
push 0
push edx
push ebx
call ebp
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x571423
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x10]
push eax
push str.fn_d
push ecx
call fcn.0060a593
mov edx, dword [esi + 0x48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
lea edx, [esp + 0x1c]
push eax
push edx
push ebx
call ebp
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, eax
or edx, ecx
je 0x57146e
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x14]
push str.fl_d
push eax
mov dword [esp + 0x30], ecx
call fcn.0060a593
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push 0x10
push ecx
push 0
push 0
push edx
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8