joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017cd97
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101e6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call fcn.10056bf0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x820]
mov dword [ebx], vtable.CArkUnZip.1.0
lea esi, [ebx + 0x85c]
mov dword [ebx + 4], vtable.CArkUnZip.0
mov dword [ebx + 0x818], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov word [edi + 0x30], 0
push 0x20
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1015144f
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebx + 0x868], 0
mov dword [ebx + 0x86c], 0
mov dword [ebx + 0x870], 0
mov dword [ebx + 0x874], 0
mov dword [ebx + 0x864], 0
mov ecx, dword [ebx + 0x730]
lea eax, [ebx + 0x30]
mov dword [ebx + 0x884], eax
lea eax, [ebx + 0xc]
mov dword [ebx + 0x878], 0
mov dword [ebx + 0x87c], 0
mov dword [ebx + 0x880], 0
mov dword [ebx + 0x888], eax
mov dword [ebx + 0x88c], edi
mov dword [ebx + 0x890], ecx
mov byte [ebp - 4], 3
push 0x24
mov dword [ebx + 0x894], 0
mov dword [ebx + 0x898], 0
call fcn.1015144f
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx + 0x894], eax
mov byte [ebx + 0x89c], 0
mov byte [ebp - 4], 4
mov ecx, ebx
mov dword [ebx + 0x878], ebx
call fcn.10057120
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10026700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d010
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101e6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10026743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x2c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002675d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x28]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10026777
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x24]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10026791
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100267ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100267c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100267df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x14]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100267f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x10]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10026813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0xc]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002682d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 8]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10026845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100343f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d7d9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101e6040]
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 dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 0x730]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], esi
mov edx, dword [eax + 0x78]
mov ecx, dword [eax + 0x7c]
mov eax, edx
or eax, ecx
je 0x100344a2
cmp ecx, ebx
ja 0x100344a2
jb 0x10034443
cmp edx, dword [ebp + 8]
jae 0x100344a2
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x1b48]
mov dword [esi + 0x74c], 0xa0000085
test edx, edx
je 0x1003446f
mov ecx, dword [edx]
lea eax, [esi + 0x754]
push eax
push 0
push edi
push 0xa0000085
push edx
call dword [ecx + 0x14]
cmp byte [esi + 0x734], 0
je 0x10034482
mov dword [esi + 0x748], 1
xor eax, eax
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.10151433
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0
cmp dword [esi + 0x878], 0
jne 0x1003456e
push 0xb0d0
call fcn.1015144f
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
push 0xb0d0
push 0
push edi
mov byte [ebp - 4], 1
call fcn.10152e30
add esp, 0xc
lea eax, [esi + 0x818]
mov ecx, edi
push eax
call fcn.100b98f0
mov byte [ebp - 4], 0
mov dword [esi + 0x878], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x24]
mov edi, 1
mov edx, dword [esi + 0x878]
cmp ecx, edi
mov eax, 0x40
mov dword [ebp - 0x40], edx
cmovl ecx, edi
cmp ecx, eax
push 0x338
cmovg ecx, eax
mov eax, 8
cmp ecx, eax
cmovb eax, ecx
mov dword [edx + 0x1c], eax
call fcn.1015144f
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
push 0x338
push 0
push eax
mov byte [ebp - 4], 2
call fcn.10152e30
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push dword [eax + 0x1c]
call fcn.1010f3d0
mov ecx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x14], ecx
jmp 0x10034573
mov edi, 1
push dword [ebp + 0x10]
mov ecx, dword [esi + 0x878]
push ebx
push dword [ebp + 8]
call fcn.100b9ee0
mov eax, edi
jmp 0x10034484
Function at 0x10038630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov eax, dword [ebx]
mov esi, dword [esp + 0x58]
push edi
push 0
mov edi, ecx
mov dword [esp + 0x30], ebx
push 0x30
push esi
mov ecx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], ebp
call dword [eax + 0x18]
test eax, eax
jne 0x10038691
mov dword [edi + 0x74c], 0xa0000003
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10151433
add esp, 0x44
ret 0x10
mov eax, dword [esi + 0x1d]
mov dword [edi + 0x84c], eax
movzx eax, byte [esi + 4]
mov dword [edi + 0x85c], eax
mov ecx, dword [esi + 0x27]
test ecx, ecx
je 0x10038797
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x20]
mov ecx, ebx
call eax
cmp eax, dword [esi + 0x27]
jne 0x100386c6
test edx, edx
je 0x100386d0
mov dword [edi + 0x74c], 0xa0000003
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push 0
push 0x18
push ecx
mov ecx, ebx
call dword [eax + 0x18]
test eax, eax
je 0x10038670
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 0xdea58cb6
mov eax, 1
xor ebp, ebp
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, 2
mov edi, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, 3
mov ebx, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, 5
mov esi, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x20], eax
nop word [eax + eax]
mov eax, ebp
lea edx, [esp + 0x34]
and eax, 3
add edx, ebp
add ebp, 6
mov cl, byte [esp + eax + 0x10]
lea eax, [edx + edi]
and eax, 3
xor byte [edx], cl
xor byte [edx + 4], cl
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 1], al
lea eax, [edx + ebx]
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 2], al
lea eax, [edx + esi]
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 3], al
mov eax, dword [esp + 0x20]
add eax, edx
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 5], al
cmp ebp, 0x18
jl 0x10038730
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esi + 0x23]
test ecx, ecx
je 0x100387f1
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x20]
mov ecx, ebx
call eax
cmp eax, dword [esi + 0x23]
jne 0x100387b5
test edx, edx
je 0x100387bf
mov dword [edi + 0x74c], 0xa0000003
mov eax, dword [ebp]
or eax, dword [ebp + 4]
jne 0x100387d4
mov eax, dword [esi + 0x2b]
mov dword [ebp], eax
mov dword [ebp + 4], 0
movzx eax, byte [esi + 0x21]
mov ecx, edi
push ebp
push dword [esi + 0x19]
push eax
push dword [esp + 0x6c]
push ebx
call fcn.10038830
test eax, eax
je 0x1003867a
cmp dword [esi + 0x27], 0
jne 0x10038807
cmp dword [esi + 0x23], 0
jne 0x10038807
mov dword [edi + 0x858], 1
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x44
ret 0x10
Function at 0x10042a80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, edx
mov edi, esi
shr edi, 2
test edi, edi
je 0x10042aba
movzx eax, byte [ecx + 1]
dec edi
movzx edx, byte [ecx]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ecx, 4
or edx, eax
xor ebx, edx
test edi, edi
jg 0x10042a92
and esi, 3
xor edx, edx
sub esi, 1
je 0x10042ade
sub esi, 1
je 0x10042ad5
sub esi, 1
jne 0x10042ae3
movzx edx, byte [ecx]
shl edx, 0x10
inc ecx
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
inc ecx
movzx ecx, byte [ecx]
or edx, ecx
pop edi
xor edx, ebx
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10047af0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
mov dword [esi], 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.10152e30
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x10059fe0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov edx, ecx
test ebp, ebp
je 0x1005a066
push ebx
xor ebx, ebx
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
cmp dword [esp + 0x10], ebx
jle 0x1005a065
push esi
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov esi, 0x34567890
nop dword [eax]
movzx ecx, byte [ebx + ebp]
inc ebx
mov ebp, dword [edx + 0xc]
xor ecx, eax
movzx ecx, cl
shr eax, 8
xor eax, dword [ebp + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [edx], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [edx + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x14]
mov dword [edx + 8], esi
cmp ebx, dword [esp + 0x18]
jl 0x1005a020
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1005a070
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
movq xmm0, qword [eax]
mov esi, ecx
mov eax, dword [eax + 8]
xor ebp, ebp
push edi
movq qword [esp + 0x14], xmm0
mov edx, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], eax
movzx ecx, dx
movzx eax, cx
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor cl, byte [esp + ebp + 0x14]
movzx eax, cl
xor eax, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xc]
movzx eax, al
shr ebx, 8
xor ebx, dword [ecx + eax*4]
movzx eax, bl
add eax, edi
mov dword [esi], ebx
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [esi + 4], edi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov byte [esp + ebp + 0x14], cl
inc ebp
movzx eax, dx
mov dword [esi + 8], edx
mov ecx, eax
cmp ebp, 0xb
jl 0x1005a0a6
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor cl, byte [esp + ebp + 0x14]
mov ebp, dword [esi + 0xc]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [ebp + eax*4]
movzx eax, bl
add eax, edi
mov dword [esi], ebx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ebp + eax*4]
xor eax, eax
mov dword [esi + 8], edx
cmp cl, byte [esp + 0x30]
jne 0x1005a169
mov ecx, dword [esp + 0x10]
cmp cl, byte [esp + 0x2c]
setne al
mov dword [esi + 0x10], eax
mov eax, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret 0xc
Function at 0x1005b0a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x6d0]
test eax, eax
je 0x1005b2a1
cmp eax, 1
je 0x1005b1ed
cmp eax, 5
je 0x1005b1ed
cmp eax, 2
je 0x1005b1bc
cmp eax, 3
je 0x1005b1bc
cmp eax, 4
je 0x1005b1bc
cmp eax, 6
je 0x1005b1bc
cmp eax, 7
je 0x1005b1bc
cmp eax, 0x106
je 0x1005b2a1
cmp eax, 0x107
je 0x1005b2a1
cmp eax, 0x108
je 0x1005b2a1
cmp eax, 8
je 0x1005b131
cmp eax, 9
jne 0x1005b2a1
cmp dword [edi + 0x4d8], 0
jne 0x1005b14e
mov eax, ebx
and eax, 0xf
or eax, 0
je 0x1005b14e
mov dword [edi + 0x4d8], 1
mov eax, dword [edi + 0x4e0]
cdq
cmp edx, ebp
ja 0x1005b182
jb 0x1005b15f
cmp eax, ebx
jae 0x1005b182
push ebx
push dword [edi + 0x4dc]
call fcn.1015fb7c
add esp, 8
test eax, eax
je 0x1005b2a1
mov dword [edi + 0x4dc], eax
mov dword [edi + 0x4e0], ebx
mov esi, dword [esp + 0x1c]
push ebx
push esi
push dword [edi + 0x4dc]
call fcn.101528b0
mov edx, dword [edi + 0x4dc]
lea eax, [edi + 0x1c4]
push eax
lea eax, [edi + 0x4c8]
mov ecx, esi
push eax
push ebx
call fcn.1012d360
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x1c]
add edi, 0x4fc
mov edx, ebx
lea eax, [edi + 0x114]
push eax
call fcn.1012acb0
mov ecx, dword [esp + 0x20]
mov edx, ebx
push edi
call fcn.100eaf00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x4e8]
mov ecx, dword [edi + 0x4ec]
mov esi, dword [edi + 0x4f0]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x4f4]
mov dword [esp + 0x10], eax
mov eax, ebx
or eax, ebp
je 0x1005b28f
mov edi, ecx
nop dword [eax]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x1c]
shr ecx, 8
xor cl, byte [eax]
movzx eax, cl
xor eax, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
shr edx, 8
xor edx, dword [ecx + eax*4]
movzx eax, dl
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
add ebx, 0xffffffff
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
adc ebp, 0xffffffff
mov byte [eax], cl
inc eax
mov dword [esp + 0x1c], eax
mov eax, ebx
or eax, ebp
jne 0x1005b220
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x4e8], edx
mov dword [edi + 0x4ec], ecx
mov dword [edi + 0x4f0], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x1005f0d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dl, byte [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
call fcn.10001a30
mov esi, eax
test esi, esi
jne 0x1005f120
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10151433
add esp, 0x24
ret 0x18
mov eax, dword [edi + 0x140]
cmp dword [eax + 0x24], 0
je 0x1005f1be
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f135
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x1005f1be
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
push esi
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bc60
lea ecx, [esp + 0x24]
call fcn.10009b90
mov ebx, dword [esp + 0x24]
add esp, 0xc
push ebx
call fcn.101565d5
add esp, 4
test eax, eax
je 0x1005f1a5
push esi
mov esi, eax
call fcn.10154f5a
add esp, 4
test ebx, ebx
je 0x1005f1ba
cmp ebx, dword [0x101c5980]
je 0x1005f1ba
push ebx
call fcn.10154f5a
add esp, 4
mov ebx, dword [esp + 0x10]
cmp dword [edi + 0xc], 0xffffffff
je 0x1005f1cd
push 0
mov ecx, edi
call fcn.1005f410
test ebx, ebx
je 0x1005f1e1
push 0xffffffffffffffff
push esi
push dword [esp + 0x50]
push ebx
call fcn.101611d8
add esp, 0x10
mov ebx, dword [esp + 0x14]
mov ecx, esi
push ebp
mov edx, ebx
call fcn.1006d0c0
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1005f22b
mov edx, dword [edi + 0x140]
mov ecx, esi
push ebp
mov edx, dword [edx + 0x24]
call fcn.1000a720
add esp, 4
test eax, eax
je 0x1005f227
push ebp
mov edx, ebx
mov ecx, esi
call fcn.1006d0c0
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1005f22b
xor edi, edi
jmp 0x1005f27f
push esi
call fcn.101565d5
add esp, 4
mov dword [edi + 0x14], eax
test esi, esi
je 0x1005f27a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x1005f27a
cmp word [esi + 2], 0x3a
jne 0x1005f27a
cmp word [esi + 4], 0x5c
jne 0x1005f27a
mov ax, word [esi]
mov word [esp + 0x24], ax
xor eax, eax
mov word [esp + 0x2a], ax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0x38], eax
mov edi, 1
test esi, esi
je 0x1005f28c
push esi
call fcn.10154f5a
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x24
ret 0x18
Function at 0x1005f410
Capabilities:
Clear file content
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
push edi
mov edi, dword [0x101c5980]
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], 0
test eax, eax
je 0x1005f463
push eax
lea ecx, [esp + 0x1c]
call fcn.1000bc60
push dword [esi + 0x14]
call fcn.10154f5a
mov edi, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
cmp ecx, 0xffffffff
jne 0x1005f483
mov ebx, 1
jmp 0x1005f5c3
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x1005f498
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x1005f4cc
push 0
push eax
lea edx, [esi + 0x3c]
call fcn.10022040
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1005f4c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x1005f4cc
mov dword [esi + 0x13c], 0
xor ebx, ebx
mov ecx, esi
test eax, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
setne bl
call fcn.1005f8f0
mov ecx, dword [esi + 0x148]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14c]
test eax, eax
jl 0x1005f51e
jg 0x1005f4fb
test ecx, ecx
je 0x1005f51e
cmp edx, eax
jg 0x1005f51e
jl 0x1005f507
cmp dword [esp + 0x14], ecx
jae 0x1005f51e
cmp dword [esp + 0xc], 0
je 0x1005f51e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005f51e
xor ebx, ebx
mov dword [esi + 0x14c], 0xffffffff
mov dword [esi + 0x148], 0xffffffff
cmp dword [esi + 0xc], 0xffffffff
je 0x1005f592
lea eax, [esi + 0x18]
test eax, eax
je 0x1005f582
xor edx, edx
mov dword [esp + 0x10], 0
cmp dword [esi + 0x24], edx
lea ecx, [esi + 0x20]
cmove ecx, edx
cmp dword [esi + 0x1c], 0
mov edx, eax
cmove edx, dword [esp + 0x10]
cmp dword [eax + 0x14], 0
je 0x1005f568
add eax, 0x10
jmp 0x1005f56a
xor eax, eax
test ecx, ecx
jne 0x1005f576
test edx, edx
jne 0x1005f576
test eax, eax
je 0x1005f582
push edx
push eax
push ecx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x18], xmm0
movq qword [esi + 0x28], xmm0
je 0x1005f5b9
cmp dword [esp + 0x1c], 0
je 0x1005f5b9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x144], 0
test edi, edi
je 0x1005f5d8
cmp edi, dword [0x101c5980]
je 0x1005f5d8
push edi
call fcn.10154f5a
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 4
Function at 0x1005f760
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x1005f804
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push dword [esi + 0x14]
call ebx
cmp eax, 1
je 0x1005f83a
mov ecx, esi
call fcn.1005f8f0
push dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x1005f7d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x1005f7fb
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1005f80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
push 0
mov ecx, esi
call fcn.1005f410
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esp + 0x10]
mov ecx, esi
push dword [esp + 0x18]
call fcn.1005f6b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1005f82e
push eax
call fcn.10154f5a
add esp, 4
push edi
call fcn.101565d5
add esp, 4
mov dword [esi + 0x14], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005f850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1005f89e
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x3c]
push 0
push eax
call fcn.10022040
add esp, 8
test eax, eax
jne 0x1005f894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
jmp 0x1005f89e
mov dword [esi + 0x13c], 0
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1005f8ce
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005f8ce
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
pop esi
xor ecx, esp
or edx, eax
call fcn.10151433
mov esp, ebp
pop ebp
ret