joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055080
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x100dc008]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push eax
push 0x28
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 0
push eax
push 0
push 0
push 0x24050
push edi
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10055113
cmp dword [esp + 0x14], 0
je 0x10055113
cmp dword [esp + 0x54], 0x800
jne 0x100551b8
mov eax, dword [esp + 0x58]
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x18
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x2404c
push edi
movaps xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100551b8
cmp dword [esp + 0x14], 0
je 0x100551b8
cmp dword [esp + 0x34], 0x800
jne 0x100551b8
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 8
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x7405c
push edi
movq qword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100551b8
cmp dword [esp + 0x14], 0
je 0x100551b8
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x7c]
mov eax, 0xe003200c
pop edi
pop esi
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
Function at 0x100552a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9d18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov si, word [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
push 0x100d6358
push eax
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0
mov word [ebp - 0x24], si
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x1005530d
mov eax, 0xe003200c
jmp 0x100553dd
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x38], ax
mov word [ebp - 0x26], ax
movzx eax, si
push eax
lea eax, [ebp - 0x38]
push str.._c:
push eax
movups xmmword [ebp - 0x36], xmm0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x10055365
call fcn.10015440
jmp 0x100553bf
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x48], xmm0
call fcn.10055080
mov esi, eax
test esi, esi
js 0x100553c1
cmp esi, 1
je 0x100553c1
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
mov esi, eax
test esi, esi
js 0x100553c1
cmp esi, 1
je 0x100553c1
mov eax, dword [ebp + 0xc]
test ax, ax
je 0x100553b6
push eax
push edi
call fcn.100551d0
mov esi, eax
test esi, esi
js 0x100553c1
cmp esi, 1
je 0x100553c1
push dword [ebp - 0x3c]
push edi
call fcn.10055400
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x100553d4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10055400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9d67
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
test ebx, ebx
je 0x1005544a
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1008b230
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
add esp, 0xc
push 0x104
push ecx
push ebx
call dword [eax + 0x54]
mov esi, eax
test esi, esi
js 0x10055619
cmp esi, 1
je 0x10055619
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x100554c5
call fcn.10015440
mov esi, eax
jmp 0x100555f9
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x234], xmm0
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100554f7
call fcn.10015440
mov esi, eax
jmp 0x100555f9
push 0x100dd790
push 0x80000
call fcn.1007bfcf
mov edi, eax
add esp, 8
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movlpd qword [ebp - 0x22c], xmm0
nop word [eax + eax]
push 0x80000
push 0
push edi
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push 0
push eax
push 0x80000
push edi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100555d3
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push dword [ebp - 0x224]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100555d3
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
add dword [ebp - 0x22c], eax
push ecx
adc dword [ebp - 0x228], 0
mov eax, dword [ebx]
push ebx
call dword [eax + 0x3c]
mov esi, eax
test esi, esi
js 0x100555da
cmp esi, 1
je 0x100555da
cmp dword [ebp - 0x21c], 0x80000
mov esi, dword [ebp - 0x220]
je 0x10055530
xor esi, esi
jmp 0x100555da
call fcn.10015440
mov esi, eax
mov byte [ebp - 4], 3
test edi, edi
je 0x100555f5
push edi
call fcn.1007bfd8
add esp, 4
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 0xffffffff
je 0x1005560f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c6c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1005c6cb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1005c6e0
Function at 0x1005dba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
inc dword [esi + 0x10]
cmp dword [esi + 8], 0
mov edx, dword [esi + 0x10]
jne 0x1005dce6
mov eax, dword [esi + 0x18]
test eax, eax
js 0x1005dc14
cmp eax, 1
je 0x1005dc14
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1005dc28
cmp dword [esi + 0x14], edx
mov edx, 0x800
sbb eax, eax
and eax, 4
mov eax, dword [eax + esi + 0x10]
mul edx
mov dword [ebp - 0xb08], edx
lea edx, [ebp - 0xb0c]
mov dword [ebp - 0xb0c], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x3c]
test eax, eax
je 0x1005dc28
mov dword [esi + 0x18], 0x80004004
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
push edi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1008b230
mov eax, dword [esi]
lea ecx, [ebp - 0xb08]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov dword [ebp - 0xb08], 0
push 0
push ecx
push dword [eax + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call edi
test eax, eax
jne 0x1005dc75
call fcn.10015440
mov dword [esi + 0x18], eax
push 0
lea eax, [ebp - 0xb08]
mov dword [ebp - 0xb08], 0
push eax
push 0x800
push ebx
push dword [esi + 4]
call edi
test eax, eax
jne 0x1005dc9f
call fcn.10015440
mov dword [esi + 0x18], eax
push 0xa00
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.1008b230
mov eax, dword [esi]
lea ecx, [ebp - 0xb08]
add esp, 0xc
mov dword [ebp - 0xb08], 0
push 0
push ecx
push dword [eax + 0x10]
lea eax, [ebp - 0xb04]
push eax
push dword [esi + 4]
call edi
pop edi
test eax, eax
jne 0x1005dce6
call fcn.10015440
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4

Function at 0x1005e940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a96c0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100dc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x214]
test eax, eax
je 0x1005e982
push eax
call fcn.1007bfd8
add esp, 4
mov dword [esi + 0x214], 0
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
je 0x1005e9a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
mov dword [esi + 0x210], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
test eax, eax
je 0x1005e9bd
push eax
call fcn.1007bfd8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005e9e0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp eax, 0xa00000
jbe 0x1005ea16
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, 4
mov dword [esi + 0x218], ecx
xor ecx, ecx
mov dword [esi + 0x21c], eax
mul edx
push 0x100dd790
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007bfcf
mov ecx, eax
add esp, 8
mov dword [esi + 0x214], ecx
test ecx, ecx
jne 0x1005ea65
mov eax, 0x8007000e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x21c]
shl eax, 2
push eax
push 0xff
push ecx
call fcn.1008b230
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008b230
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1005eae4
cmp eax, 0x104
ja 0x1005eae4
push str.WMCache_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1005eafa
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005eafa
call fcn.10015440
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
push edi
lea edi, [esi + 8]
push edi
push 0
push 0x100b6f40
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1005eb3b
push 0
push 0x20000000
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1005eb52
call fcn.10015440
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
Function at 0x10061ed0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x214]
mov esi, ecx
push 0
push eax
call fcn.1008b230
lea edi, [esi + 0x78]
push 0x5c
push edi
call fcn.1008b0dd
add esp, 0x14
test eax, eax
jne 0x10061f23
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
sub eax, esi
sub eax, 0x78
sar eax, 1
inc eax
push eax
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10061f6d
call fcn.10015440
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x4c]
add eax, dword [ebp + 8]
cmp dword [ebp - 0x218], 0
jb 0x10061f9a
ja 0x10061f86
cmp dword [ebp - 0x21c], eax
jbe 0x10061f9a
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, 0x80070070
pop edi
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
Function at 0x10064980
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa27e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x28], 8
lea eax, [esi + 0x14]
jb 0x100649b8
mov eax, dword [eax]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x100649eb
call fcn.10015440
mov esi, eax
jmp 0x10064b46
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10064a0e
call fcn.10015440
mov esi, eax
jmp 0x10064b46
cmp dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
jl 0x10064a2a
jg 0x10064a20
cmp eax, 0x100000
jbe 0x10064a2a
mov esi, 0x80004005
jmp 0x10064b46
add eax, 0x200
push 0x100dd790
push eax
call fcn.1007bfcf
mov ebx, eax
add esp, 8
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x10064a54
mov esi, 0x8007000e
jmp 0x10064b2a
mov eax, dword [ebp - 0x3c]
add eax, 0x200
push eax
push 0
push ebx
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x3c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10064a90
call fcn.10015440
mov esi, eax
jmp 0x10064b2a
cmp dword [ebp - 0x30], 0
jne 0x10064aa0
mov esi, 0x80004005
jmp 0x10064b2a
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10017a20
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10064cc0
mov esi, eax
test esi, esi
js 0x10064b1e
cmp esi, 1
je 0x10064b1e
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10064aec
call fcn.10015440
mov esi, eax
jmp 0x10064b1e
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10064b1c
call fcn.10015440
mov esi, eax
jmp 0x10064b1e
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10017ba0
mov byte [ebp - 4], 3
test ebx, ebx
je 0x10064b42
push ebx
call fcn.1007bfd8
add esp, 4
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x10064b59
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [ebp - 0x34], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
Function at 0x10065450
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x100655ab
cmp word [edi], 0
je 0x100655ab
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100655ab
mov ecx, dword [ebp + 0x1c]
cmp ecx, 5
je 0x1006548c
cmp ecx, 6
jne 0x100655ab
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], ecx
push 0
jne 0x10065515
push 0x20000000
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
lea ecx, [esi + 0xc]
mov dword [esi + 8], eax
mov dword [ebx], 0
mov dword [esi + 0x28], 0
call fcn.100168d0
cmp dword [esi + 8], 0xffffffff
jne 0x10065539
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10065513
cmp eax, 0x20
je 0x10065513
cmp eax, 0xa7
je 0x10065513
cmp eax, 0x21
je 0x10065513
cmp eax, 0x13
je 0x10065513
test eax, eax
jle 0x100655b0
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x28], 1
mov dword [ebx], 1
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x1006554f
call fcn.10015440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10065541
push 0
push 0x200
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100a8300
or eax, edx
je 0x1006558a
mov eax, 0xe003300c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [esi + 0x24], 5
jne 0x100655a0
mov ecx, esi
call fcn.100655c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10069570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
or eax, 0xffffffff
nop dword [eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx edx, cl
xor eax, dword [edx*4 + 0x100caa98]
sub esi, 1
jne 0x10069580
pop edi
not eax
pop esi
ret

Function at 0x10069700
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x500], 0
jne 0x1006976c
push 0
push 1
push 0
push 0
lea edi, [esi + 0x50c]
mov dword [esi + 0x510], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1006974d
push 8
push 1
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1006974d
mov dword [esi + 0x510], eax
mov ecx, esi
call fcn.10069920
mov ecx, esi
call fcn.10069c40
mov ecx, esi
call fcn.10069920
mov dword [esi + 0x500], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10069ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
nop dword [eax]
xorps xmm0, xmm0
lea eax, [ebp - 0x118]
movlpd qword [ebp - 0x110], xmm0
mov edx, 0x280
movlpd qword [ebp - 0x118], xmm0
mov ecx, edi
movups xmm0, xmmword [0x100cb118]
push eax
movups xmmword [ebp - 0x108], xmm0
movups xmm0, xmmword [0x100cb128]
movups xmmword [ebp - 0xf8], xmm0
movups xmm0, xmmword [0x100cb138]
movups xmmword [ebp - 0xe8], xmm0
movups xmm0, xmmword [0x100cb148]
movups xmmword [ebp - 0xd8], xmm0
call fcn.1006c840
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x48]
call fcn.1006c950
add esp, 4
lea edx, [edi + esi]
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [ebp + eax - 0x48]
xor byte [edx + eax], cl
movzx ecx, byte [ebp + eax - 0x47]
xor byte [edx + eax + 1], cl
movzx ecx, byte [ebp + eax - 0x46]
xor byte [edx + eax + 2], cl
movzx ecx, byte [ebp + eax - 0x45]
xor byte [edx + eax + 3], cl
add eax, 4
cmp eax, 0x40
jl 0x10069f80
add esi, 0x40
cmp esi, 0x280
jl 0x10069f00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
Function at 0x1006a4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x100dc008]
xor eax, esp
mov dword [esp + 0x120], eax
mov al, byte [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, dword [ebp + 0x14]
push 0x40
mov dword [esp + 0x10], 0
mov byte [esp + 0x13], al
lea eax, [esp + 0xac]
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
call fcn.1008bac0
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, ebx
mov dword [esp + 0xec], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xb0]
push 0x44
push eax
call fcn.10069fd0
movups xmm0, xmmword [esp + 0x28]
mov esi, edi
lea eax, [esp + 0x70]
add esp, 0x10
mov ebx, 0x3e7
movups xmmword [edi], xmm0
sub esi, eax
movups xmm0, xmmword [esp + 0x28]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x48]
movups xmmword [edi + 0x30], xmm0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.10069fd0
lea edx, [esp + 0x28]
add esp, 0x10
lea ecx, [edi + 0x3f]
xor eax, eax
cmp edx, ecx
ja 0x1006a599
lea edx, [esp + 0x57]
cmp edx, edi
jae 0x1006a5b0
lea edx, [esp + 0x9f]
cmp edi, edx
ja 0x1006a5c9
lea edx, [esp + 0x60]
cmp ecx, edx
jb 0x1006a5c9
nop dword [eax]
lea ecx, [esp + 0x60]
add ecx, eax
lea edx, [esi + ecx]
mov cl, byte [ecx]
xor byte [edx], cl
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x40
jl 0x1006a5b0
jmp 0x1006a60d
lea edx, [esp + 0x18]
sub edx, edi
nop
movups xmm2, xmmword [esp + eax + 0x70]
lea ecx, [esp + 0x60]
add ecx, eax
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [esi + ecx]
movups xmmword [esp + eax + 0x18], xmm1
pxor xmm0, xmm1
movaps xmm1, xmm2
movups xmmword [esi + ecx], xmm0
lea ecx, [edi + 0x10]
add ecx, eax
add eax, 0x20
movups xmm0, xmmword [ecx]
movups xmmword [edx + ecx], xmm2
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
cmp eax, 0x40
jl 0x1006a5d0
sub ebx, 1
jne 0x1006a567
lea eax, [esp + 0x18]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x1006a623
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1006a630
lea eax, [esp + 0x60]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
nop dword [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x1006a650
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1006a660
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret