joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d0a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc4], ecx
push eax
push 0x80
push edx
call fcn.0043aa50
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edi, dword [ebp - 0x14]
xor eax, 0x36363636
mov esi, dword [ebp - 0x10]
xor ebx, 0x5c5c5c5c
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x80], eax
mov eax, edi
xor eax, 0x36363636
mov dword [ebp - 0x6c], 0x36363636
mov dword [ebp - 0x7c], eax
xor edi, 0x5c5c5c5c
mov eax, esi
mov dword [ebp - 0x68], 0x36363636
xor eax, 0x36363636
mov dword [ebp - 0x64], 0x36363636
mov dword [ebp - 0x78], eax
xor esi, 0x5c5c5c5c
mov eax, edx
mov dword [ebp - 0x60], 0x36363636
xor eax, 0x36363636
mov dword [ebp - 0x5c], 0x36363636
mov dword [ebp - 0x74], eax
xor edx, 0x5c5c5c5c
mov eax, ecx
mov dword [ebp - 0x58], 0x36363636
xor eax, 0x36363636
mov dword [ebp - 0x54], 0x36363636
mov dword [ebp - 0x70], eax
xor ecx, 0x5c5c5c5c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], 0x36363636
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x4c], 0x36363636
push 0x40
push eax
mov dword [ebp - 0x48], 0x36363636
mov dword [ebp - 0x44], 0x36363636
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0x5c5c5c5c
mov dword [ebp - 0xa8], 0x5c5c5c5c
mov dword [ebp - 0xa4], 0x5c5c5c5c
mov dword [ebp - 0xa0], 0x5c5c5c5c
mov dword [ebp - 0x9c], 0x5c5c5c5c
mov dword [ebp - 0x98], 0x5c5c5c5c
mov dword [ebp - 0x94], 0x5c5c5c5c
mov dword [ebp - 0x90], 0x5c5c5c5c
mov dword [ebp - 0x8c], 0x5c5c5c5c
mov dword [ebp - 0x88], 0x5c5c5c5c
mov dword [ebp - 0x84], 0x5c5c5c5c
call fcn.0043aa50
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc0]
push 0x40
push eax
call fcn.0043aa50
push dword [ebp - 0xc4]
lea eax, [ebp - 0x40]
push 0x100
push eax
call fcn.00433590
add esp, 0x30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret

Function at 0x42d4a0
Capabilities:
Write file on windows

Disassembly:
cmp dword [ecx + 0x19c], 0
push ebx
mov ebx, dword [ecx + 0x90]
je 0x42d4f2
cmp dword [ecx + 0x198], 0
je 0x42d4f2
mov eax, dword [ecx + 0x170]
push esi
push edi
mov edi, dword [ecx + 0x19c]
mov ecx, ebx
mov esi, dword [eax + 0x7c]
push str.Passwords
call fcn.00427230
push esi
push eax
mov ecx, ebx
call fcn.00427330
push edi
push eax
mov ecx, ebx
call fcn.004273d0
pop edi
pop esi
mov ecx, ebx
pop ebx
jmp fcn.00426e90
xor eax, eax
pop ebx
ret
Function at 0x42d560
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
mov ebx, ecx
cmp eax, 2
jb 0x42d63f
mov ecx, dword [ebp + 0x10]
lea esi, [eax - 1]
mov edx, dword [ebp + 0x14]
xor eax, eax
and esi, ecx
and eax, edx
or esi, eax
jne 0x42d63f
sub ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
sbb edx, dword [ebp + 0xc]
xor eax, eax
cmp eax, edx
jne 0x42d633
push eax
push eax
push eax
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x42d624
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0xc]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebx + 8], edx
test edx, edx
je 0x42d60c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
add ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, ecx
sub eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], ecx
sub ecx, edx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42db60
Capabilities:
Get process image filename

Disassembly:
push edi
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42dbf2
push esi
push 0x10000
push 8
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42dbe6
push 0x8000
push esi
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ecx, eax
test ecx, ecx
je 0x42dbe6
lea eax, [ecx + 0xf]
cmp eax, 0x8000
jae 0x42dbe6
cmp word [esi], 0x5c
jne 0x42dbe6
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x1c]
push esi
push eax
call fcn.004c97a0
movups xmm0, xmmword [str..GlobalRoot]
add esp, 0xc
movups xmmword [esi], xmm0
movq xmm0, qword [0x548e88]
movq qword [esi + 0x10], xmm0
mov eax, dword [0x548e90]
mov dword [esi + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x42f580
Capabilities:
Get file attributes
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x54aa40
push 0x4cab40
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x551764]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov dword [0x576b48], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x576b44], eax
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x12c]
shl eax, 8
or eax, dword [ebp - 0x128]
mov dword [0x576b50], eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x13c]
mov dword [0x576b40], eax
call fcn.0042b080
mov byte [0x576ade], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, 0x576b38
xor ecx, ecx
call fcn.0042a440
call fcn.00429c40
mov byte [0x576adf], al
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.wine_get_unix_file_name
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
test eax, eax
je 0x42f679
push str._private
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [0x576b4c], ecx
push 0x350
push 8
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42f7a3
push 0x10000
call fcn.004c71b1
mov dword [edi + 0xac], eax
push 0x10000
call fcn.004c71b1
add esp, 8
mov dword [edi + 0xb0], eax
cmp dword [edi + 0xac], 0
je 0x42f790
test eax, eax
je 0x42f790
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x174]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x88]
push eax
push 0x533b70
push 0x17
push 0
push 0x4e56d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, edi
call fcn.0042f000
test eax, eax
je 0x42f790
mov dword [edi + 0x1b0], SysStringLen
mov dword [edi + 0x1ac], SysStringLen
mov dword [edi + 0x1b4], SysStringLen
mov dword [edi + 0x1b8], SysStringLen
mov dword [edi + 0x340], 0xffffffff
lea ecx, [edi + 0x20c]
call fcn.00428680
call fcn.00425d40
mov dword [edi + 0x2a4], eax
call fcn.004d03d3
mov esi, eax
call fcn.004d03d9
push dword [esi]
mov edx, dword [eax]
mov ecx, edi
call fcn.00425e10
add esp, 4
test eax, eax
jne 0x42f790
mov ecx, edi
test dword [edi + 0x208], 0xc00
je 0x42f78b
call fcn.0042f4c0
jmp 0x42f790
call fcn.0042f450
mov esi, dword [edi + 0x33c]
mov dword [ebp - 0x134], esi
mov ecx, edi
call fcn.0042f170
mov dword [ebp - 4], 0xfffffffe
jmp 0x42f7ca
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42fac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea ebx, [eax + edx*2]
mov eax, dword [edi + 0x3c]
sub eax, edx
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fb34
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push str.Wallpaper
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42fb34
cmp dword [ebp - 8], 1
jne 0x42fb34
mov esi, dword [ebp - 0xc]
jmp 0x42fb3b
xor eax, eax
xor esi, esi
mov word [ebx], ax
mov edx, dword [ebp + 8]
shr esi, 1
lea eax, [esi*2 + 2]
mov word [edx + 2], ax
add eax, 0xfffffffe
mov word [edx], ax
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea eax, [eax + ecx*2]
mov dword [edx + 4], eax
lea eax, [esi + 1]
add dword [edi + 0x40], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430330
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x34
lea eax, [ebp - 0x450]
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x458], ebx
mov edi, ecx
call fcn.004ca440
add esp, 0xc
test ebx, ebx
je 0x430403
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x430403
lea eax, [ebp - 0x214]
mov dword [ebp - 0x454], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x214]
push eax
push str._sFakeFile__u.tmp
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00407130
add esp, 0x14
lea eax, [ebp - 0x41c]
push 0
push 0x4000000
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43049c
push 0
lea eax, [ebp - 0x454]
push eax
push ebx
push dword [ebp - 0x458]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43042f
push 0
push 0
push 3
push 0
push 1
push 0x81
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43049c
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [ebp - 0x44c]
lea edx, [edi + 0x220]
mov dword [edi + 0x250], eax
mov ecx, esi
mov eax, dword [ebp - 0x448]
mov dword [edi + 0x254], eax
mov eax, dword [ebp - 0x444]
mov dword [edi + 0x258], eax
mov eax, dword [ebp - 0x440]
mov dword [edi + 0x25c], eax
mov eax, dword [ebp - 0x43c]
mov dword [edi + 0x260], eax
mov eax, dword [ebp - 0x438]
mov dword [edi + 0x264], eax
mov eax, dword [ebp - 0x450]
mov dword [edi + 0x298], eax
mov dword [edi + 0x288], esi
call fcn.0042ac30
mov dword [edi + 0x28c], eax
cmp dword [edi + 0x28c], 0
je 0x4304b8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret
Function at 0x430ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x11c], edx
push esi
push edi
mov dword [ebp - 0x118], ebx
mov eax, dword [ebx + 0x234]
push eax
push 3
push 0x1401
push dword [ebx + 0x24c]
mov dword [ebx + 0x234], 3
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x114]
push 0x100
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004ca440
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebx + 0x204], eax
test eax, eax
je 0x430bc1
push 0x20
push 8
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x430c76
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x110], esi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x4308d0
push 0
push 0
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
je 0x430c4e
mov dword [ebp + edi*4 - 0x10c], eax
inc edi
cmp edi, dword [ebx + 0x204]
jb 0x430b45
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x10c]
push eax
push dword [ebx + 0x204]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x430beb
call esi
mov ebx, eax
test ebx, ebx
jne 0x430bfa
mov ebx, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
mov ecx, ebx
call fcn.004309c0
mov ebx, eax
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x114]
cmp esi, eax
je 0x430c3b
nop word [eax + eax]
mov edi, esi
mov esi, dword [esi]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x430c22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x114]
cmp esi, eax
jne 0x430c10
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
test ebx, ebx
jne 0x430bfa
mov ebx, dword [ebp - 0x118]
jmp 0x430bc1
mov ebx, 8
jmp 0x430bfa
Function at 0x430fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1080
call fcn.004c79c0
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
push 0
push 0
push dword [esi + 0x288]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1078]
push eax
call fcn.00439820
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x107c]
add esp, 4
mov dword [ebp - 0x107c], 0
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [esi + 0x288]
call edi
mov eax, dword [ebp - 0x107c]
test eax, eax
je 0x43109b
push eax
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1078]
push eax
call fcn.00439880
add esp, 0xc
mov dword [ebp - 0x107c], 0
lea eax, [ebp - 0x107c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [esi + 0x288]
call edi
mov eax, dword [ebp - 0x107c]
test eax, eax
jne 0x431053
lea eax, [ebp - 0x1078]
push eax
lea eax, [esi + 0x268]
push eax
call fcn.00439540
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004c715a
mov esp, ebp
pop ebp
ret

Function at 0x431220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0
mov esi, edx
mov dword [ebp - 0xc], eax
push edi
cmp dword [eax + 0x58], 0
mov ecx, dword [esi + 0x288]
mov dword [ebp - 4], ecx
je 0x4312e8
mov eax, dword [esi + 0x230]
xor edi, edi
or eax, dword [esi + 0x234]
jne 0x43126c
cmp dword [esi + 0x29c], edi
jne 0x43126c
mov dword [esi + 0x29c], 0x1000
push dword [esi + 0x29c]
push 8
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4312df
push 0
push 0
push dword [esi + 0x234]
push dword [esi + 0x230]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4312d0
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 0x29c]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4312d0
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push ebx
push esi
push eax
mov eax, dword [eax + 0x58]
call eax
add esp, 0x10
mov edi, eax
push ebx
push 0
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431300
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, edx
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
xor edi, edi
push dword [eax + 0x2a0]
mov dword [ebp - 0x40], 0
push 8
push dword [0x576b44]
movups xmmword [ebp - 0x3c], xmm0
call esi
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push dword [eax + 0x2a0]
push 8
push dword [0x576b44]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x4314cb
test ecx, ecx
je 0x4314cb
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
mov edx, dword [eax + 0x2a0]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp + 0x20]
ja 0x431462
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0xc]
jb 0x431396
cmp ebx, esi
jae 0x43145f
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x24c], ecx
mov ecx, edx
mov dword [eax + 0x248], ebx
xor eax, eax
add ecx, ebx
adc eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x20]
jb 0x4313d0
ja 0x4313c5
cmp ecx, esi
jb 0x4313d0
mov edx, esi
mov byte [ebp - 0x20], 1
sub edx, ebx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push edx
push dword [ebp - 4]
push dword [eax + 0x288]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x43145c
cmp byte [ebp + 0x24], 0
je 0x43142b
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
mov eax, dword [eax + 0x74]
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x43145c
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
jmp 0x43142e
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x288]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43148f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x431496
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
je 0x431477
push ecx
push 0
push dword [0x576b44]
call esi
test ebx, ebx
je 0x431486
push ebx
push 0
push dword [0x576b44]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], esi
jne 0x4314c4
xor edi, edi
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
adc dword [ebp - 0x1c], 0
add ebx, eax
mov eax, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 0x20]
ja 0x43145c
mov esi, dword [ebp + 0x1c]
jb 0x4314b9
cmp ebx, esi
jae 0x43145c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
jmp 0x4313a2
mov edi, 0x70
jmp 0x43145c
mov edi, 8
jmp 0x431462
Function at 0x431640
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov esi, edx
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x431667
push esi
push ebx
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x4317e9
mov eax, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 1
push 0x10000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x288], eax
cmp eax, 0xffffffff
je 0x4317ce
mov ecx, esi
call fcn.0042c4b0
cmp dword [ebx + 0x74], 0
je 0x4316b1
push dword [ebp + 8]
mov edx, esi
mov ecx, ebx
call fcn.004314e0
add esp, 4
mov edi, eax
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x4316d0
mov eax, dword [ebp + 8]
push dword [eax + 0x288]
push dword [esi + 0x288]
push esi
push ebx
call ecx
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x43178e
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x431744
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x431744
mov eax, dword [esi + 0x240]
add eax, dword [esi + 0x238]
mov ecx, dword [esi + 0x244]
adc ecx, dword [esi + 0x23c]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x2a4]
shl ecx, 5
mov dword [ebp - 4], ecx
cmp dword [ecx + esi + 0x10], eax
mov ecx, dword [ebx + 0x34]
jne 0x431744
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp dword [eax + esi + 0x14], edx
mov edx, dword [ebx + 0x38]
jne 0x431744
mov eax, dword [ebp + 8]
push edx
push ecx
lea edx, [esi + 0x228]
mov ecx, dword [eax + 0x288]
call fcn.0042d9d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x43178e
mov eax, dword [esi + 0x228]
cmp eax, dword [esi + 0x220]
jne 0x431760
mov eax, dword [esi + 0x22c]
cmp eax, dword [esi + 0x224]
je 0x43178e
mov eax, dword [ebp + 8]
push 0
push 0
push dword [esi + 0x22c]
push dword [esi + 0x228]
push dword [eax + 0x288]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp + 8]
push dword [eax + 0x288]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebx + 0x94], 0
je 0x4317a6
mov ecx, esi
call fcn.00430fe0
mov ecx, dword [ebp + 8]
call fcn.00430fe0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x288]
test ecx, ecx
je 0x4317c2
cmp ecx, 0xffffffff
je 0x4317c2
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax + 0x288], 0xffffffff
jmp 0x4317d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4317e7
push edi
push esi
push ebx
call eax
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431aa8
Capabilities:
Delete file

Disassembly:
cmp byte [ebp - 0x79], 0
jne 0x431ab2
test esi, esi
je 0x431aba
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x431ac7
push edi
call fcn.004c716b
add esp, 4
ret