joyce8/EMBER2024-capa huggingface dataset:
Function at 0x268ce2c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x268ce2ea
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x268ce37e
dec eax
je 0x268ce369
dec eax
je 0x268ce349
dec eax
jne 0x268ce399
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x268ce399
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x268ce399
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x268ce399
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x268ce302
pop edi
pop esi
leave
ret
Function at 0x268d0895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor eax, eax
push esi
inc eax
call fcn.268e6b73
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x268d08c0
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x268d08b8
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x268d0971
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x220]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x268d08f1
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x268d096e
mov ecx, dword [ebx + 8]
push edi
push 3
pop eax
call fcn.268e6b73
mov esi, dword [ebx + 8]
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 8]
push 0
call fcn.268e72f2
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.268e6efc
push dword [ebx + 0x230]
mov esi, dword [ebx + 8]
push str._IXStream__Access__x_
call fcn.268e6efc
mov edx, dword [ebx + 8]
lea esi, [ebx + 0x234]
push dword [esi]
mov ecx, edi
push 0x6d68
call fcn.268e6d35
mov eax, dword [ebx + 8]
add esp, 0x18
push dword [esi]
push 1
call fcn.268e6fa1
pop edi
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x268d0977
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov ecx, dword [ebx + 8]
inc edi
mov eax, edi
call fcn.268e6b73
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x268d09a0
mov dword [ebp - 8], edi
lea esi, [ebp - 0x10]
jmp 0x268d09a3
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [ebx + 0x218]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x268d0a08
cmp dword [ebp - 4], 0
jne 0x268d0a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x268d09e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x268d0a10
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
ja 0x268d09c5
lea eax, [ebx + 0x220]
mov dword [esi], edi
add dword [eax], edi
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x268d0a38
cmp dword [ebp - 8], 0
je 0x268d0aca
cmp edi, dword [ebp + 0xc]
je 0x268d0aca
mov ecx, dword [ebx + 8]
push 3
pop eax
call fcn.268e6b73
mov esi, dword [ebx + 8]
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
xor esi, esi
cmp dword [ebp - 4], esi
je 0x268d0a5d
xor eax, eax
jmp 0x268d0a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [ebx + 8]
call fcn.268e72f2
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.268e6efc
push dword [ebp - 8]
mov esi, dword [ebx + 8]
push str._IXStream__bExact__d_
call fcn.268e6efc
push dword [ebp - 0xc]
mov esi, dword [ebx + 8]
push dword [ebp + 0xc]
push str._IXStream__A_lire__u___lu__u_
call fcn.268e6efc
mov edx, dword [ebx + 8]
lea esi, [ebx + 0x234]
push dword [esi]
mov ecx, edi
push 0x6d63
call fcn.268e6d35
mov eax, dword [ebx + 8]
add esp, 0x24
push dword [esi]
push 1
call fcn.268e6fa1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x268d1915
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x14], eax
call edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0xc]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1981
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push ebx
push 0x6ddb
mov ecx, edi
mov edx, esi
call fcn.268e6d1d
pop ecx
pop ecx
push ebx
push 1
mov eax, esi
call fcn.268e6fa1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x268d198b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call esi
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x268d1a09
call esi
cmp eax, 5
jne 0x268d1a09
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 4]
call fcn.268d1f9f
test eax, eax
pop ecx
je 0x268d1a05
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
call fcn.268d2026
test eax, eax
pop ecx
pop ecx
je 0x268d1a05
mov eax, dword [ebp + 0xc]
call fcn.268d1915
jmp 0x268d1a49
xor eax, eax
jmp 0x268d1a49
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1a46
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 8]
mov ecx, edi
push 0x6ddb
mov edx, esi
call fcn.268e6d1d
pop ecx
pop ecx
push dword [ebp + 8]
mov eax, esi
push 1
call fcn.268e6fa1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x268d1a4e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1ad2
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
mov edx, esi
push 0x6ddc
call fcn.268e6d1d
add esp, 0xc
push dword [ebp + 0xc]
mov eax, esi
push 1
call fcn.268e6fa1
push dword [ebp + 8]
mov eax, esi
push 2
call fcn.268e6fa1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x268d1ada
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push 0
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1b60
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
mov edx, esi
push 0x6ddd
call fcn.268e6d1d
add esp, 0xc
push dword [ebp + 0xc]
mov eax, esi
push 1
call fcn.268e6fa1
push dword [ebp + 8]
mov eax, esi
push 2
call fcn.268e6fa1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x268d1b88
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp word [esi], ax
je 0x268d1d13
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push 0x105
mov eax, esi
lea ebx, [ebp - 0x220]
call fcn.268dfa74
mov esi, ebx
call fcn.268d1dba
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [ebp - 0x21e]
push 0x5c
push eax
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x268d1c89
lea eax, [ebp - 0x220]
cmp ebx, eax
jbe 0x268d1c09
cmp word [ebx - 2], 0x3a
je 0x268d1c79
lea eax, [ebp - 0x21e]
cmp ebx, eax
jne 0x268d1c85
cmp word [ebp - 0x220], 0x5c
jne 0x268d1c85
push 0x5c
add ebx, 2
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x268d1cbd
push 0x5c
add eax, 2
push eax
jmp 0x268d1c7f
and word [ebx], 0
lea eax, [ebp - 0x220]
push eax
xor eax, eax
call fcn.268d1b68
test eax, eax
pop ecx
jne 0x268d1c74
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x268d1c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x268d1d16
mov word [ebx], 0x5c
add ebx, 2
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x268d1c37
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x268d1cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x268d1cbd
push dword [ebp + 8]
xor eax, eax
call fcn.268d1f74
test eax, eax
pop ecx
je 0x268d1cbd
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1d0e
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 8]
mov ecx, edi
push 0x6dde
mov edx, esi
call fcn.268e6d1d
pop ecx
pop ecx
push dword [ebp + 8]
mov eax, esi
push 1
call fcn.268e6fa1
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x220]
mov dword [ebp + 8], eax
jmp 0x268d1cbd

Function at 0x268d1d21
Capabilities:
Delete directory

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x14], eax
call edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0xc]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d1d8d
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push ebx
push 0x6ddf
mov ecx, edi
mov edx, esi
call fcn.268e6d1d
pop ecx
pop ecx
push ebx
push 1
mov eax, esi
call fcn.268e6fa1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x268d1f9f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d201a
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 8]
mov ecx, edi
push dword [ebx]
mov edx, esi
push 0x6de2
call fcn.268e6d1d
add esp, 0xc
push dword [ebp + 8]
mov eax, esi
push 1
call fcn.268e6fa1
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
setne al
pop esi
leave
ret

Function at 0x268d2026
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d209e
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 8]
mov ecx, edi
push dword [ebp + 0xc]
mov edx, esi
push 0x6de2
call fcn.268e6d1d
add esp, 0xc
push dword [ebp + 8]
mov eax, esi
push 1
call fcn.268e6fa1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x268d20a6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [esi + 8], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi], 0xffffffff
jne 0x268d213e
call ebx
cmp eax, 2
je 0x268d210c
call ebx
cmp eax, 0x12
je 0x268d210c
xor eax, eax
jmp 0x268d210f
xor eax, eax
inc eax
mov esi, dword [ebp + 0x10]
push eax
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d213a
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push 0x6de7
mov ecx, edi
mov edx, esi
call fcn.268e6d1d
pop ecx
xor eax, eax
jmp 0x268d216a
lea edi, [ebp - 0x254]
call fcn.268d22c5
test eax, eax
jne 0x268d215a
push dword [ebp + 0x10]
push esi
call fcn.268d216f
pop ecx
pop ecx
jmp 0x268d216a
lea eax, [ebp - 0x254]
mov edi, esi
call fcn.268d2fb0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x268d2425
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x268d24b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x268d24b6
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 4
jne 0x268d24b6
cmp dword [ebp - 0x114], ebx
jne 0x268d24b6
cmp dword [ebp - 0x10c], 2
jne 0x268d24b6
mov dword [ebp - 4], 0x64
push dword [ebp + 8]
dec dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x268d24b6
cmp dword [ebp - 4], 0
jne 0x268d249a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
setne al
mov ebx, eax
push ebx
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d2506
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
mov edx, esi
push 0x6de6
call fcn.268e6d1d
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x268d258a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x268d25ac
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x268d25b8
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x268d25e3
push edi
push edi
push edi
lea eax, [ebp - 0x230]
call fcn.268634ed
add esp, 0xc
lea esi, [ebp - 0x230]
call fcn.268d1d97
mov eax, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x268d2627
cmp ebx, edi
je 0x268d2616
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
cmp esi, edi
je 0x268d2679
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x268d2679
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x268d2679
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x268d2679
cmp ebx, edi
mov eax, dword [ebp - 0x20]
je 0x268d2668
mov ecx, eax
imul ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
cmp esi, edi
je 0x268d2679
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, esi
call fcn.268d16d2
test eax, eax
pop ecx
je 0x268d26ce
push 1
mov edi, 0x268f3f58
call fcn.268e6a53
push dword [ebp + 8]
mov ecx, edi
push 0x6dea
mov edx, esi
call fcn.268e6d1d
pop ecx
pop ecx
push dword [ebp + 8]
mov eax, esi
push 1
call fcn.268e6fa1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret
Function at 0x268d5c3a
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x268eb8b4
call fcn.268eb4dc
mov eax, 0x1230
call fcn.268eb500
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x268d5ce4
cmp dword [edi + 0x10], esi
je 0x268d5d77
cmp dword [ebp + 8], esi
je 0x268d5d77
lea eax, [ebp + 0xc]
push eax
push 0x400
lea eax, [ebp - 0x123c]
push eax
call dword [edi + 4]
cmp eax, esi
je 0x268d5d7f
mov eax, dword [ebp + 0xc]
shr eax, 2
xor ebx, ebx
cmp eax, esi
mov dword [edi + 0x18], eax
jle 0x268d5cdc
lea eax, [edi + 0x1c]
mov dword [ebp + 8], eax
push 0x1220
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x268d5cc7
mov ecx, dword [ebp + ebx*4 - 0x123c]
push esi
mov edx, edi
mov esi, eax
call fcn.268d5d9b
xor esi, esi
jmp 0x268d5cc9
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 4
inc ebx
mov dword [ecx], eax
cmp ebx, dword [edi + 0x18]
jl 0x268d5c9d
mov dword [edi + 0x14], esi
jmp 0x268d5d77
cmp dword [ebp + 8], esi
je 0x268d5d77
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, esi
je 0x268d5d7f
lea eax, [ebp - 0x23c]
push eax
push ebx
mov dword [ebp - 0x23c], 0x22c
mov dword [edi + 0x18], esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, esi
je 0x268d5d70
push 0x1220
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
cmp eax, esi
je 0x268d5d4f
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
mov edx, edi
mov esi, eax
call fcn.268d5d9b
xor esi, esi
jmp 0x268d5d51
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x18]
mov dword [edi + ecx*4 + 0x1c], eax
inc dword [edi + 0x18]
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x268d5d1d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x18]
jne 0x268d5d83
xor eax, eax
jmp 0x268d5d8b
mov eax, dword [edi + ecx*4 + 0x1c]
inc ecx
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x268e59e1
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esi], 0x534350
push edi
push 0x14
pop eax
mov dword [ebx + 0x1c], eax
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 8], eax
mov al, byte [0x2692b028]
and word [ebx + 0x18], 0
mov byte [ebx + 0x14], al
mov word [ebx + 0x16], 0x12
mov al, byte [ebx + 0x16]
mov byte [esi + 0xe], al
mov ax, word [ebx + 0x18]
mov word [esi + 0xc], ax
mov al, byte [ebx + 0x14]
mov byte [esi + 0xf], al
mov ax, word [ebx + 0x20]
mov word [esi + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [ebp + 8]
mov word [ebx + 0x22], ax
push 0
mov word [esi + 0x12], ax
push dword [edi + 4]
mov ecx, ebx
push dword [edi]
call fcn.268e7cbb
test eax, eax
je 0x268e5b10
lea eax, [ebp + 0xc]
push eax
push 0x14
push esi
mov ecx, ebx
call fcn.268e7cab
test eax, eax
je 0x268e5b10
cmp dword [ebp + 0xc], 0x14
je 0x268e5b14
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
mov ecx, eax
xor eax, eax
inc eax
call fcn.268e6b73
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x7c]
mov edi, 0x268f3f58
mov esi, eax
call fcn.268e6a53
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
push 3
mov ecx, eax
pop eax
call fcn.268e6b73
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
mov esi, eax
push 0
xor eax, eax
call fcn.268e72f2
push dword [ebp + 0xc]
mov eax, dword [ebx]
push 0x14
push str._IXStream__A_ecrire__u___ecrit__u_
mov ecx, ebx
call dword [eax + 0x7c]
mov esi, eax
call fcn.268e6efc
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0x64]
push eax
mov eax, dword [ebx]
push 0x6d69
mov ecx, ebx
call dword [eax + 0x7c]
mov ecx, edi
mov edx, eax
call fcn.268e6d35
mov eax, dword [ebx]
pop ecx
pop ecx
mov ecx, ebx
call dword [eax + 0x64]
push eax
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x7c]
call fcn.268e6fa1
xor eax, eax
jmp 0x268e5b1e
add dword [edi], 0x14
adc dword [edi + 4], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8