joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xb0
push eax
lea ecx, [ebp - 4]
call fcn.004057a0
lea ecx, [ebp - 4]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42bbf1
mov ecx, dword [ebp - 8]
and ecx, 0x4800
je 0x42bbf1
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 4]
call fcn.00417fc0
mov eax, dword [ebp - 0xc]
jmp 0x42bc03
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 4]
call fcn.00417fc0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42e1a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baa18
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042e380
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0042e3a0
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0042e3c0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.0042e3e0
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.0042e400
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
call fcn.0042e420
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0042e440
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.0042e460
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0042e480
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.0042e4a0
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.0042e4c0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call fcn.00418790
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CFilterCoder.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], vtable.CFilterCoder.1.0
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], vtable.CFilterCoder.2.0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], vtable.CFilterCoder.3.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], vtable.CFilterCoder.4.0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], vtable.CFilterCoder.5.0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], vtable.CFilterCoder.6.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], vtable.CFilterCoder.7.0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x20], vtable.CFilterCoder.8.0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], vtable.CFilterCoder.9.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], vtable.CFilterCoder.10.0
mov ecx, dword [ebp - 0x14]
add ecx, 0x34
call fcn.00418790
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.00418790
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x60
call fcn.00418790
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x64
call fcn.00418790
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0x68
call fcn.00418790
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x6c
call fcn.00418790
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0x70
call fcn.00418790
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call fcn.00418790
mov byte [ebp - 4], 7
push 0x20000
call fcn.004373d0
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x30], 0
jne 0x42e362
mov dword [ebp - 0x10], 1
push 0x4d8010
lea ecx, [ebp - 0x10]
push ecx
call fcn.004a4e66
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42e4e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba998
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CFilterCoder.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CFilterCoder.1.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], vtable.CFilterCoder.2.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], vtable.CFilterCoder.3.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], vtable.CFilterCoder.4.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], vtable.CFilterCoder.5.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], vtable.CFilterCoder.6.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], vtable.CFilterCoder.7.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], vtable.CFilterCoder.8.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], vtable.CFilterCoder.9.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], vtable.CFilterCoder.10.0
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
push eax
call fcn.00437400
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.0042fa10
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.0042fa10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.0042fa10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.0042fa10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.0042fa10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0042fa10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0042fa10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0042fa10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4371a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4371b8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x43720b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x4371d9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x4371fc
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x4371d0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x4e8e60], eax
jmp 0x4371af
jmp 0x437216
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x43724e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x4e8a60]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x4e8e60]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x4e8e60], edx
jmp 0x43720d
mov dword [0x4e719c], fcn.00437270
call fcn.00437580
test eax, eax
jne 0x43726b
mov dword [0x4e719c], 0x437380
mov esp, ebp
pop ebp
ret

Function at 0x4379c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00437990
add esp, 4
mov dword [ebp - 4], 0
jmp 0x437a02
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x437a55
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x437a23
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x437a46
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
sub edx, 1
not edx
and edx, 0xedb88320
xor ecx, edx
mov dword [ebp - 8], ecx
jmp 0x437a1a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x70], edx
jmp 0x4379f9
mov esp, ebp
pop ebp
ret

Function at 0x43e270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 0x10]
or eax, 0x100
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x10]
shr edx, 7
and edx, 1
push edx
mov eax, dword [ebp + 0x14]
and eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
add eax, ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*2]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e170
add esp, 0xc
mov edx, dword [ebp + 0x10]
shl edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x14]
xor eax, dword [ebp + 0x10]
not eax
and eax, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x10000
jb 0x43e286
mov esp, ebp
pop ebp
ret
Function at 0x43e390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
shl edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x43e3a6
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x43e3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x100
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
shr eax, 8
add edx, eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp + 0xc]
shr eax, 7
and eax, 1
neg eax
and eax, 0x7ff
xor edx, eax
sar edx, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, dword [ecx + edx*4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor edx, dword [ebp + 0xc]
not edx
and edx, dword [ebp - 8]
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x43e40f
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x43e7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
xor edx, 0x7ff
sar edx, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
sar eax, 4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
xor ecx, 0x7ff
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x43e81b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 8
jae 0x43e85c
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jb 0x43e82e
jmp 0x43e8eb
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 3
mov edx, dword [ebp + 0xc]
shl edx, 3
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2 + 4]
push ecx
call fcn.0043e550
add esp, 0x10
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x43e812
jmp 0x43e867
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x10
jae 0x43e8ab
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x43e877
jmp 0x43e8eb
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
sub edx, 8
push edx
push 3
mov eax, dword [ebp + 0xc]
shl eax, 3
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2 + 0x104]
push edx
call fcn.0043e550
add esp, 0x10
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + ecx*4], eax
jmp 0x43e85e
jmp 0x43e8b6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x43e8eb
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
sub eax, 0x10
push eax
push 8
mov ecx, dword [ebp + 8]
add ecx, 0x204
push ecx
call fcn.0043e550
add esp, 0x10
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x43e8ad
mov esp, ebp
pop ebp
ret

Function at 0x4429c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.004a273f
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00442940
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x45bb60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0210
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xcc]
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0xc8]
push eax
lea ecx, [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x38
call fcn.004683f0
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.004683f0
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.00447cc0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
jmp 0x45bc1d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x45bc3e
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x1c]
call fcn.0045b580
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
call fcn.0045b690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x460ebc
jmp 0x460ee2
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jne 0x460ed2
jmp 0x460edb
mov edx, 1
test edx, edx
jne 0x460e97
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x460ef0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bead8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405a00
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x460f96
mov edx, dword [ebp - 0x18]
and edx, 0x10
je 0x460f6a
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x1c]
jmp 0x461084
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x460f96
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x20]
jmp 0x461084
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46106b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46106b
lea edx, [ebp - 0x14]
push edx
call fcn.00401f50
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00405df0
movzx eax, al
test eax, eax
je 0x460ff9
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x24]
jmp 0x461084
lea ecx, [ebp - 0x14]
call fcn.004683f0
push eax
call fcn.00460ef0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46102e
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x28]
jmp 0x461084
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46106b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46106b
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x2c]
jmp 0x461084
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4610a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4610f9
jmp 0x46115a
mov word [ebp - 0x228], 0
push 0x208
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push str.Path:_s__PartSize__d
lea eax, [ebp - 0x228]
push eax
call fcn.004a1af3
add esp, 0x10
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
jne 0x46114a
jmp 0x461153
mov eax, 1
test eax, eax
jne 0x4610d4
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret
Function at 0x467520
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x467539
mov al, 1
jmp 0x46753b
xor al, al
pop ebp
ret

Function at 0x467540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00467520
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x46755c
xor al, al
jmp 0x467570
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46756e
mov al, 1
jmp 0x467570
xor al, al
pop ebp
ret

Function at 0x467580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x105
mov ecx, dword [ebp + 8]
call fcn.00443880
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004676b0
cmp dword [ebp - 4], 0
jbe 0x4675c2
cmp dword [ebp - 4], 0x104
ja 0x4675c2
mov dword [ebp - 8], 1
jmp 0x4675c9
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x467820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.004511e0
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x467960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4e3830]
jbe 0x46797d
mov ecx, dword [0x4e3830]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004511e0
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468910
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd628
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], 0
push 0x4c81e8
lea ecx, [ebp - 0x10]
call fcn.0041fb40
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0
push 0x4c81ec
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x468a3a
mov dword [ebp - 0x428], 0
push 0xc
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0049d120
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0x400
push 0
lea ecx, [ebp - 0x424]
push ecx
call fcn.0049d120
add esp, 0xc
push 0
lea edx, [ebp - 0x428]
push edx
push 0x400
lea eax, [ebp - 0x424]
push eax
push 0xc
lea ecx, [ebp - 0x24]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x468a30
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ecx + 0x10]
lea eax, [ebp + edx - 0x424]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
movsx edx, byte [ecx]
push edx
call fcn.004a2bba
add esp, 4
test eax, eax
je 0x468a30
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041fd40
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041ec00
mov eax, dword [ebp - 0x434]
or eax, 1
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret