joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ce70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [0x101c5980]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.1000bc60
push str.:Zone.Identifier
lea ecx, [esp + 0x14]
call fcn.1000bb40
mov esi, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000cf74
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000cf74
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
jl 0x1000cf74
jg 0x1000cf74
cmp eax, 0xe
jb 0x1000cf74
test ecx, ecx
jg 0x1000cf74
jl 0x1000cf19
cmp eax, 0x19000
ja 0x1000cf74
mov dword [ebx + 4], eax
mov ecx, 0xffffffff
add eax, 2
cmovo eax, ecx
push eax
push 1
call fcn.1015c282
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, 1
test ecx, ecx
je 0x1000cf65
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
cdq
push edx
mov edx, ecx
mov ecx, edi
push eax
call fcn.100220f0
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000cf74
mov bl, 1
jmp 0x1000cf76
xor bl, bl
test esi, esi
je 0x1000cf8b
cmp esi, dword [0x101c5980]
je 0x1000cf8b
push esi
call fcn.10154f5a
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cfc0
Capabilities:
Bypass mark of the web
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, ecx
push ebx
push esi
push edi
cmp dword [eax], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], eax
je 0x1000d188
cmp dword [eax + 4], 0
je 0x1000d188
test edi, edi
je 0x1000d188
cmp word [edi], 0
mov esi, 1
je 0x1000d188
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
xor ecx, ecx
lea eax, [edi + eax*2]
cmp eax, edi
jb 0x1000d036
nop dword [eax + eax]
cmp word [eax], 0x2e
jne 0x1000d02b
sub esi, 1
je 0x1000d034
sub eax, 2
cmp eax, edi
jae 0x1000d020
jmp 0x1000d036
mov ecx, eax
test ecx, ecx
je 0x1000d188
mov eax, dword [0x101c5980]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.1000bc60
push 0x101c6b30
lea ecx, [esp + 0x14]
call fcn.1000bb40
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x1000d086
inc eax
push eax
push esi
call fcn.1015fd29
add esp, 8
push esi
push str..exe_.com_.msi_.scr_.bat_.cmd_.pif_.bat_.lnk_.zip_.zipx_.rar_.7z_.alz_.egg_.cab_.bh_.001_.arj_.lha_.lzh_.pma_.ace_.arc_.aes_.zpaq_.zst_.zstd_.br_.pea_.tar_.gz_.tgz_.bz_.bz2_.tbz_.tbz2_.xz_.txz_.lzma_.tlz_.lz_.uu_.uue_.xxe_.z_.jar_.war_.apk_.ipa_.xpi_.deb_.j2j_.wgt_.hv3_.isz_.i00_.msi.iso_.img_.isz_.udf_.wim_.bin_.i00_.tar_.iso_.bin_.udf_.wim_.img_.asar_.apk_.ipa_.msi_.docx_.doc_.xls_.xlsx_.ppt_.pptx_.wiz_.one_.js_.jse_.vbs_.vbe_.wsf.url_.reg_
call fcn.101535db
add esp, 8
test eax, eax
je 0x1000d173
test esi, esi
je 0x1000d0b1
cmp esi, dword [0x101c5980]
je 0x1000d0b1
push esi
call fcn.10154f5a
add esp, 4
mov eax, dword [0x101c5980]
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.1000bc60
push str.:Zone.Identifier
lea ecx, [esp + 0x14]
call fcn.1000bb40
mov edi, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000d146
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
cdq
push edx
mov edx, dword [ecx]
mov ecx, ebx
push eax
call fcn.10022040
add esp, 8
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1000d13f
cmp dword [esp + 0xc], 0
je 0x1000d13f
mov bl, 1
jmp 0x1000d148
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
test edi, edi
je 0x1000d15d
cmp edi, dword [0x101c5980]
je 0x1000d15d
push edi
call fcn.10154f5a
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x1000d188
cmp esi, dword [0x101c5980]
je 0x1000d188
push esi
call fcn.10154f5a
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d1a0
Capabilities:
Hash data with crc32

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x1000d1f8
push 0x400
call fcn.101554b7
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x1000d1bf
pop edi
ret
push ebx
xor dh, dh
push esi
mov eax, dword [edi + 8]
mov dl, 8
movzx ecx, dh
lea ebx, [ecx*4]
mov dword [ebx + eax], ecx
mov esi, dword [edi + 8]
mov ecx, dword [esi + ebx]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x1000d1e9
xor eax, 0xedb88320
mov dword [esi + ebx], eax
add dl, 0xff
jne 0x1000d1d5
add dh, 1
jne 0x1000d1c3
pop esi
pop ebx
mov eax, dword [edi + 8]
pop edi
ret

Function at 0x1000d934
Capabilities:
Get file size

Disassembly:
sub esp, 0x110
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x11c]
cmp dword [esi + 0xc], 0xffffffff
je 0x1000d94a
mov eax, dword [esi]
call dword [eax + 0x2c]
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1000d993
push 0
push 0x8000000
push 3
push 0
push 0
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1000d993
xor eax, eax
jmp 0x1000da1f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000d9ad
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x1000d9b2
or eax, 0xffffffff
or ecx, eax
push 0x100
mov dword [esi + 0x38], eax
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esi + 0x3c], ecx
call fcn.10152e30
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push dword [esp + 0x120]
push edi
call fcn.10008ae0
mov eax, dword [esi + 0x40]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x1000d9f9
push eax
call fcn.10154f5a
add esp, 4
push edi
call fcn.101565d5
mov dword [esi + 0x40], eax
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
je 0x1000da1a
push eax
call fcn.10154f5a
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.10151433
add esp, 0x110
ret 8
Function at 0x1000da40
Capabilities:
Get disk information
Get file size

Disassembly:
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
mov esi, ecx
lea ebx, [esi + 0x4c]
push edi
mov edi, dword [esp + 0x28]
cmp dword [esi + 0xc], 0xffffffff
mov eax, dword [esi + 0x50]
mov ebp, dword [eax + 0x2c]
mov dword [ebx], 0
je 0x1000da72
mov eax, dword [esi]
call dword [eax + 0x2c]
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x54]
mov dword [ecx], ebp
push dword [eax + 0x8c]
push dword [esp + 0x30]
push ebx
push ecx
mov ecx, edi
call fcn.1000d590
add esp, 0x10
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1000daaf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret 8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000dac9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x1000dace
or eax, 0xffffffff
or ecx, eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x3c], ecx
test eax, eax
je 0x1000dae4
push eax
call fcn.10154f5a
add esp, 4
push edi
call fcn.101565d5
add esp, 4
mov dword [esi + 0x40], eax
test edi, edi
je 0x1000db33
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x1000db33
cmp word [edi + 2], 0x3a
jne 0x1000db33
cmp word [edi + 4], 0x5c
jne 0x1000db33
mov ax, word [edi]
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x16], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x16], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret 8
Function at 0x100173c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov edx, dword [edx]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, eax
push edi
mov edi, ecx
test eax, eax
je 0x100173fe
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, edx
shr edx, 8
movzx ecx, al
xor edx, dword [ebx + ecx*4 + 0x14]
sub esi, 1
jne 0x100173e1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esi], edx
mov esi, dword [edi]
cdq
mov dword [esp + 0x10], eax
mov eax, edx
push eax
push dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, edi
call dword [esi + 0x18]
test eax, eax
je 0x1001744c
push edi
push dword [esp + 0x18]
lea ecx, [ebx - 0x814]
push dword [esp + 0x18]
push 0
push 0
call fcn.10057270
cmp dword [ebx - 0xcc], 0
jne 0x10017463
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x101e45fc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xa0000030
push eax
call fcn.10153200
lea ecx, [ebx - 0x818]
call fcn.100132d0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x101e45fc
push eax
call fcn.10153200
int3
Function at 0x1001b7a0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
cmp edx, dword [esp + 0x2c]
ja 0x1001b7dd
mov eax, dword [esp + 8]
jb 0x1001b7e3
cmp eax, ecx
jb 0x1001b7e3
mov edx, dword [esp + 0x2c]
mov eax, ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f6d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x24], edi
test eax, eax
je 0x1001f6ee
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp byte [eax + 0xa0], 0
je 0x1001f80b
mov eax, dword [edi + 0x54]
cmp eax, 4
jne 0x1001f734
lea esi, [edi + 0x244]
mov edx, ecx
push esi
mov ecx, ebx
call fcn.100eaf00
lea eax, [esi + 0x114]
mov ecx, ebx
mov esi, dword [ebp + 0x10]
mov edx, esi
push eax
call fcn.1012acb0
add esp, 8
jmp 0x1001f80e
cmp eax, 1
je 0x1001f744
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 0x23c]
mov edx, dword [edi + 0x234]
mov esi, dword [edi + 0x238]
mov dword [esp + 0x20], eax
mov eax, ecx
or eax, 0
mov dword [esp + 0x10], ebx
mov ebx, dword [edi + 0x230]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
je 0x1001f7f6
mov edi, edx
nop dword [eax]
mov edx, dword [esp + 0x10]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
mov dl, byte [edx]
imul ecx, eax
mov eax, dword [esp + 0x10]
shr ecx, 8
xor cl, dl
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
movzx eax, dl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [ecx + eax*4]
movzx eax, bl
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]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, 0xffffffff
mov dword [esp + 0x18], eax
adc ecx, 0xffffffff
inc dword [esp + 0x10]
or eax, ecx
mov dword [esp + 0x1c], ecx
jne 0x1001f780
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x230], ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x234], edx
mov dword [edi + 0x238], esi
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
push esi
push ebx
call fcn.1001f830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10022040
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, edx
mov eax, esi
mov dword [esp + 0xc], ecx
or eax, ebx
push edi
je 0x100220b8
nop word [eax + eax]
mov dword [esp + 0x14], 0
test ebx, ebx
jne 0x10022086
mov edi, esi
cmp esi, 0x1000000
jbe 0x1002208b
mov edi, 0x1000000
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100220d0
mov eax, dword [esp + 0x14]
cmp edi, eax
jne 0x100220d0
mov ecx, dword [esp + 0x10]
sub esi, eax
sbb ebx, 0
add ebp, eax
mov eax, esi
or eax, ebx
jne 0x10022070
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10151433
add esp, 0xc
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0xc
ret
Function at 0x100220f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov eax, esi
or eax, ebx
mov dword [esp + 0xc], edx
push edi
mov dword [esp + 0x14], ecx
mov dword [ebp], 0
mov dword [ebp + 4], 0
je 0x10022187
nop word [eax + eax]
mov dword [esp + 0x18], 0
test ebx, ebx
jne 0x10022146
mov edi, esi
cmp esi, 0x1000000
jbe 0x1002214b
mov edi, 0x1000000
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002219f
mov eax, dword [esp + 0x18]
add dword [ebp], eax
adc dword [ebp + 4], 0
cmp eax, edi
jb 0x10022187
mov edx, dword [esp + 0x10]
sub esi, eax
mov ecx, dword [esp + 0x14]
sbb ebx, 0
add edx, eax
mov eax, esi
mov dword [esp + 0x10], edx
or eax, ebx
jne 0x10022130
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
Function at 0x10022370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017cced
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101e6040]
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 esi, ecx
mov eax, dword [ebp + 0x10]
mov dl, 1
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
call fcn.10001a30
mov edi, eax
test edi, edi
je 0x100224c9
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
cmp dword [esi + 0x78], 0xffffffff
je 0x100223d9
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x24]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100223ef
push 0xffffffffffffffff
push edi
push dword [ebp + 0x14]
push eax
call fcn.101611d8
add esp, 0x10
push dword [ebp - 0x1c]
mov ecx, esi
push ebx
push edi
call fcn.100224f0
test eax, eax
jne 0x10022427
mov edx, dword [esi + 0x98]
mov ecx, edi
push ebx
mov edx, dword [edx + 0x24]
call fcn.1000a720
add esp, 4
test eax, eax
je 0x1002248d
push dword [ebp - 0x1c]
mov ecx, esi
push ebx
push edi
call fcn.100224f0
test eax, eax
je 0x1002248d
push edi
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
call fcn.101565d5
mov dword [esi + 0x7c], eax
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x10022465
push eax
call fcn.10154f5a
add esp, 4
push 0x8000
call fcn.101554b7
add esp, 4
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0x8000
test eax, eax
jne 0x10022491
mov dword [esi + 0x68], 8
mov dword [ebx], 0xa0000063
xor esi, esi
jmp 0x100224be
cmp dword [esi + 0xc], 0
jne 0x100224b9
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x10022b00
push 0
push 0
call fcn.10161c9f
add esp, 0x18
mov dword [esi + 0xc], eax
mov esi, 1
push edi
call fcn.10154f5a
add esp, 4
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.10151433
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100224f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 8], 1
push esi
movups xmm0, xmmword [edx]
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0xc]
mov eax, dword [ebx + 0x98]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x24], xmm0
call fcn.1006d0c0
add esp, 4
mov dword [ebx + 0x78], eax
cmp eax, 0xffffffff
je 0x10022594
test edi, edi
je 0x10022594
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x10022594
cmp word [edi + 2], 0x3a
jne 0x10022594
cmp word [edi + 4], 0x5c
jne 0x10022594
mov ax, word [edi]
mov word [esp + 0x34], ax
xor eax, eax
mov word [esp + 0x3a], ax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebx + 0xa8], eax
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp dword [ebx + 0x78], 0xffffffff
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100225c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x64], 1
je 0x10022611
call fcn.1001c070
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp edi, edx
jb 0x10022636
ja 0x100225e9
cmp ebx, eax
jbe 0x10022636
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
je 0x10022611
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x78]
push edi
push ebx
call fcn.10022040
add esp, 8
test eax, eax
jne 0x1002261c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x68], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0xa0], ebx
mov eax, 1
adc dword [esi + 0xa4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea ecx, [esi + 0x18]
push ebx
push dword [ebp + 8]
call fcn.1006ccc0
test eax, eax
jne 0x1002265a
mov dword [esi + 0x64], 1
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.1001c070
cmp dword [esi + 0x3c], edx
jb 0x10022771
ja 0x1002267c
cmp dword [esi + 0x38], eax
jbe 0x10022771
push edi
mov ebx, 1
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
mov edi, 0xbb8
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
nop dword [eax]
test edi, edi
je 0x1002273f
test ebx, ebx
je 0x100226c7
push 0xa
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x64], 0
jne 0x1002273f
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.1001c070
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jb 0x10022735
ja 0x100226f6
cmp ebx, ecx
jbe 0x10022735
cmp dword [esp + 0x10], ebx
jne 0x10022714
cmp dword [esp + 0x14], eax
jne 0x10022714
lea eax, [esi + 0x40]
dec edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
jmp 0x100226b0
mov dword [esp + 0x14], eax
mov edi, 0xbb8
lea eax, [esi + 0x40]
mov dword [esp + 0x10], ebx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
jmp 0x100226b0
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x64], 1
je 0x10022611
test edi, edi
jle 0x10022611
add dword [esi + 0xa0], ebx
mov eax, dword [ebp + 0x10]
adc dword [esi + 0xa4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0xbb8
jmp 0x10022742
Function at 0x10022b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
push edi
mov ebp, dword [esi + 0x70]
lea edi, [esi + 0x40]
mov dword [esp + 0x20], ebp
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x10022b78
test eax, eax
jne 0x10022b78
test edi, edi
jne 0x10022b6f
cmp ebx, 0x8000
jae 0x10022b6f
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
jmp 0x10022b84
mov ebx, 0x8000
xor edi, edi
jmp 0x10022b84
test edi, edi
jne 0x10022bbd
cmp ebx, 0x8000
jae 0x10022bbd
mov eax, ebx
or eax, edi
jne 0x10022bc4
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0x40]
mov ebp, dword [esi + 0x38]
test ecx, ecx
mov eax, 1
cmovne ebx, eax
mov eax, dword [esi + 0x3c]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10022c1e
mov ebx, 0x8000
xor edi, edi
push 1
push edi
push ebx
push ebp
lea ecx, [esi + 0x18]
call fcn.1006cee0
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x3c]
mov ebp, dword [esi + 0x38]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x78]
push edi
push ebx
call fcn.10022040
add esp, 8
test eax, eax
jne 0x10022c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0x40]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x24], 0
je 0x10022c4f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x64], 0
jne 0x10022c38
or ebp, dword [esp + 0x18]
jne 0x10022c48
push dword [esi + 0x5c]
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x10022b31
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022c9e
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x20]
mov eax, dword [esi + 0x78]
pop esi
cmp eax, 0xffffffff
je 0x10022cd4
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10022cd4
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10151433
add esp, 0xc
ret
mov ecx, dword [esp + 8]
or eax, 0xffffffff
xor ecx, esp
or edx, eax
call fcn.10151433
add esp, 0xc
ret