joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x445c78]
mov eax, dword [esp + 4]
mov ecx, edx
push esi
mov esi, dword [0x463048]
xor ecx, eax
and ecx, 0xff
push edi
shr edx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, edx
mov edx, dword [0x445c7c]
mov dword [0x445c78], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [0x445c80]
imul ecx, ecx, 0x8088405
inc ecx
mov edi, edx
mov dword [0x445c7c], ecx
and edi, 0xff
shr ecx, 0x18
xor ecx, edi
pop edi
shr edx, 8
mov ecx, dword [esi + ecx*4]
pop esi
xor ecx, edx
mov dword [0x445c80], ecx
ret

Function at 0x4056a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x445c84]
sub esp, 0xc
inc eax
push ebx
push esi
cmp eax, 1
push edi
mov dword [0x445c84], eax
jne 0x4056cf
push 0
call fcn.004232e3
mov esi, eax
call sub.KERNEL32.dll_GetCurrentProcessId
xor esi, eax
push esi
call fcn.004232bb
add esp, 8
mov edi, dword [esp + 0x1c]
push edi
call fcn.00405660
add esp, 4
xor esi, esi
call fcn.004232c5
mov ebx, eax
sar ebx, 7
and ebx, 0xff
call fcn.004055d0
push ebx
mov dword [esp + 0x20], eax
call fcn.004055f0
mov dl, byte [esp + 0x20]
add esp, 4
xor bl, dl
mov byte [esp + esi + 0xc], bl
inc esi
cmp esi, 0xa
jl 0x4056de
push edi
call fcn.00405660
add esp, 4
xor esi, esi
call fcn.004055d0
mov ebx, eax
xor eax, eax
mov al, byte [esp + esi + 0xc]
push eax
call fcn.004055f0
mov dl, byte [esp + esi + 0x10]
add esp, 4
xor dl, bl
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xa
jl 0x40571b
call fcn.004055d0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov ebx, esi
shr ebx, 0x10
mov ecx, ebx
and ecx, 0xff
push ecx
call fcn.004055f0
xor bl, byte [esp + 0x20]
mov byte [esp + 0x1a], bl
call fcn.004055d0
mov ebx, esi
mov dword [esp + 0x20], eax
shr ebx, 0x18
push ebx
call fcn.004055f0
mov al, byte [esp + 0x24]
push 0
push 0xc
lea edx, [esp + 0x1c]
xor bl, al
push 1
push edx
mov byte [esp + 0x2f], bl
call fcn.00409b30
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4057b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x44759c]
push ebp
mov ebp, dword [esp + 0x10]
push esi
test eax, eax
je 0x4057f1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
imul eax, ebp
test eax, eax
je 0x4057f1
push ebx
push edi
mov edi, eax
call fcn.004055d0
mov ebx, eax
movsx eax, byte [esi]
push eax
call fcn.004055f0
mov dl, byte [esi]
add esp, 4
xor dl, bl
mov byte [esi], dl
inc esi
dec edi
jne 0x4057d2
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push ebp
push ecx
push edx
call fcn.00409b30
add esp, 0x10
pop esi
pop ebp
ret
Function at 0x405810
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp esi, 1
jl 0x405820
cmp esi, 9
jle 0x40582d
push str.bad_pack_level
call fcn.00412aa0
add esp, 4
mov eax, dword [0x464828]
xor ebx, ebx
cmp eax, ebx
mov dword [0x445c94], ebx
jne 0x405852
mov dword [0x445c94], 1
mov dword [0x464828], 0x10000
push edi
mov ecx, 0x3fff
xor eax, eax
mov edi, 0x484880
mov word [0x49487e], bx
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [esi*8 + 0x436484]
xor eax, eax
mov ax, word [esi*8 + 0x436482]
xor ecx, ecx
mov cx, word [esi*8 + 0x436480]
mov dword [0x445c88], eax
xor eax, eax
cmp esi, 2
mov ax, word [esi*8 + 0x436486]
mov dword [0x484860], ecx
mov dword [0x46482c], edx
mov dword [0x474840], eax
pop edi
jg 0x4058b7
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x4058c3
cmp esi, 8
jl 0x4058c3
mov eax, dword [esp + 0x10]
or byte [eax], 2
push 0x10000
push 0x474860
mov dword [0x464824], ebx
mov dword [0x484868], ebx
call dword [0x4421d8]
add esp, 8
cmp eax, ebx
mov dword [0x445c98], eax
je 0x40592e
cmp eax, 0xffffffff
je 0x40592e
cmp eax, 0x106
mov dword [0x445c90], ebx
jae 0x405902
call fcn.00405ab0
xor ecx, ecx
xor eax, eax
xor edx, edx
and ecx, 0x3ff
mov dl, byte [eax + 0x474860]
and edx, 0x7fff
shl ecx, 5
xor ecx, edx
inc eax
cmp eax, 2
jb 0x405906
pop esi
mov dword [0x445c8c], ecx
pop ebx
ret
mov dword [0x445c98], ebx
pop esi
mov dword [0x445c90], 1
pop ebx
ret
Function at 0x406060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [0x445c98]
push esi
push edi
xor esi, esi
xor edi, edi
test ebp, ebp
mov dword [0x464820], 2
je 0x406274
mov edx, dword [0x445c8c]
mov ecx, dword [0x464824]
push ebx
cmp ebp, 3
jb 0x4060d0
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x474862]
xor esi, esi
and eax, 0x7fff
shl edx, 5
xor eax, edx
mov edx, ecx
and edx, 0x7fff
mov dword [0x445c8c], eax
mov si, word [eax*2 + 0x484880]
mov word [eax*2 + 0x484880], cx
mov word [edx*2 + 0x464840], si
test esi, esi
je 0x406109
mov eax, ecx
sub eax, esi
cmp eax, 0x7efa
ja 0x406109
cmp dword [0x46482c], ebp
jbe 0x4060ed
mov dword [0x46482c], ebp
push esi
call fcn.00405960
mov edi, eax
mov eax, dword [0x445c98]
add esp, 4
cmp edi, eax
jbe 0x406103
mov edi, eax
mov ecx, dword [0x464824]
cmp edi, 3
jb 0x4061d9
mov eax, dword [0x484864]
lea edx, [edi - 3]
sub ecx, eax
push edx
push ecx
call fcn.0040d3d0
mov ebp, dword [0x445c98]
mov ecx, dword [0x445c88]
add esp, 8
sub ebp, edi
cmp edi, ecx
mov dword [0x445c98], ebp
ja 0x4061a0
cmp ebp, 3
jb 0x4061a0
mov edx, dword [0x445c8c]
mov ecx, dword [0x464824]
dec edi
inc ecx
xor ebx, ebx
and edx, 0x3ff
mov bl, byte [ecx + 0x474862]
mov esi, ebx
mov ebx, ecx
and esi, 0x7fff
and ebx, 0x7fff
shl edx, 5
xor edx, esi
xor esi, esi
dec edi
mov si, word [edx*2 + 0x484880]
mov word [edx*2 + 0x484880], cx
mov word [ebx*2 + 0x464840], si
jne 0x406150
inc ecx
mov dword [0x445c8c], edx
mov dword [0x464824], ecx
jmp 0x40620c
mov ecx, dword [0x464824]
xor edx, edx
add ecx, edi
xor ebx, ebx
xor edi, edi
mov dword [0x464824], ecx
mov dl, byte [ecx + 0x474860]
mov bl, byte [ecx + 0x474861]
and edx, 0x3ff
and ebx, 0x7fff
shl edx, 5
xor edx, ebx
mov dword [0x445c8c], edx
jmp 0x40620c
xor eax, eax
mov al, byte [ecx + 0x474860]
push eax
push 0
call fcn.0040d3d0
mov ebp, dword [0x445c98]
mov ecx, dword [0x464824]
mov edx, dword [0x445c8c]
add esp, 8
dec ebp
inc ecx
mov dword [0x445c98], ebp
mov dword [0x464824], ecx
test eax, eax
je 0x40624a
mov edx, dword [0x484868]
test edx, edx
jl 0x406222
lea eax, [edx + 0x474860]
jmp 0x406224
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.0040c9d0
mov ecx, dword [0x464824]
mov ebp, dword [0x445c98]
mov edx, dword [0x445c8c]
add esp, 0xc
mov dword [0x484868], ecx
cmp ebp, 0x106
jae 0x406269
call fcn.00405ab0
mov ebp, dword [0x445c98]
mov edx, dword [0x445c8c]
mov ecx, dword [0x464824]
test ebp, ebp
jne 0x40608c
pop ebx
jmp 0x40627a
mov ecx, dword [0x464824]
mov edx, dword [0x484868]
pop edi
pop esi
pop ebp
test edx, edx
jl 0x40629c
sub ecx, edx
lea eax, [edx + 0x474860]
push 1
push ecx
push eax
call fcn.0040c9d0
add esp, 0xc
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.0040c9d0
add esp, 0xc
ret
Function at 0x4064b0
Capabilities:
Parse credit card information

Disassembly:
mov eax, dword [0x4424f0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
xor ebx, ebx
mov dword [0x463160], edi
call fcn.00423797
mov edx, dword [0x463160]
xor ecx, ecx
mov ebp, eax
add esp, 8
mov cl, byte [edx]
add ebp, edi
mov esi, ecx
test esi, esi
je 0x40663e
cmp esi, 0x20
je 0x406612
cmp esi, 0x3a
je 0x406612
cmp esi, 0x22
je 0x406612
cmp esi, 0x2a
je 0x406612
cmp esi, 0x2b
je 0x406612
cmp esi, 0x2c
je 0x406612
cmp esi, 0x3b
je 0x406612
cmp esi, 0x3c
je 0x406612
cmp esi, 0x3d
je 0x406612
cmp esi, 0x3e
je 0x406612
cmp esi, 0x3f
je 0x406612
cmp esi, 0x5b
je 0x406612
cmp esi, 0x5d
je 0x406612
cmp esi, 0x7c
je 0x406612
cmp esi, 0x2f
jne 0x406591
mov eax, dword [0x4424f0]
mov dword [0x463160], edi
push eax
push edi
call fcn.00423797
mov ecx, dword [0x463160]
add esp, 8
add edi, eax
xor ebx, ebx
mov byte [ecx], 0x2f
jmp 0x406612
cmp esi, 0x2e
jne 0x4065cd
test ebx, ebx
je 0x406612
cmp ebx, 9
jge 0x4065c6
mov edx, dword [0x4424f0]
mov dword [0x463160], edi
push edx
push edi
call fcn.00423797
add esp, 8
add edi, eax
mov eax, dword [0x463160]
mov ebx, 9
mov byte [eax], 0x2e
jmp 0x406612
mov ebx, 0xc
jmp 0x406612
cmp ebx, 0xc
jge 0x406612
cmp ebx, 8
je 0x406612
mov ecx, dword [0x4424f0]
push ecx
push ebp
call fcn.00423797
mov edx, dword [0x4424f0]
add ebx, eax
push edx
push edi
mov dword [0x463160], edi
call fcn.00423797
mov ecx, dword [0x463160]
add esp, 0x10
add edi, eax
and esi, 0xff
mov al, byte [esi + 0x463180]
mov byte [ecx], al
mov edx, dword [0x4424f0]
mov dword [0x463160], ebp
push edx
push ebp
call fcn.00423797
mov ecx, dword [0x463160]
add ebp, eax
xor eax, eax
add esp, 8
mov al, byte [ecx]
mov esi, eax
test esi, esi
jne 0x4064e7
mov eax, dword [esp + 0x14]
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406650
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
movzx ax, byte [ebx]
push edi
xor edi, edi
test ax, ax
mov esi, ebx
lea ebp, [ebx + 2]
je 0x406732
cmp ax, 0x20
je 0x406721
cmp ax, 0x3a
je 0x406721
cmp ax, 0x22
je 0x406721
cmp ax, 0x2a
je 0x406721
cmp ax, 0x2b
je 0x406721
cmp ax, 0x2c
je 0x406721
cmp ax, 0x3b
je 0x406721
cmp ax, 0x3c
je 0x406721
cmp ax, 0x3d
je 0x406721
cmp ax, 0x3e
je 0x406721
cmp ax, 0x3f
je 0x406721
cmp ax, 0x5b
je 0x406721
cmp ax, 0x5d
je 0x406721
cmp ax, 0x7c
je 0x406721
cmp ax, 0x2f
jne 0x4066e4
mov word [esi], ax
add esi, 2
xor edi, edi
jmp 0x406721
cmp ax, 0x2e
jne 0x406707
test edi, edi
je 0x406721
cmp edi, 9
jge 0x406700
mov word [esi], ax
add esi, 2
mov edi, 9
jmp 0x406721
mov edi, 0xc
jmp 0x406721
cmp edi, 0xc
jge 0x406721
cmp edi, 8
je 0x406721
push eax
inc edi
call fcn.0042380e
add esp, 4
mov word [esi], ax
add esi, 2
movzx ax, byte [ebp]
add ebp, 2
test ax, ax
jne 0x40666c
mov word [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x40c0f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
mov eax, dword [0x4476a8]
push ebx
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], 1
jne 0x40c123
call fcn.0040c330
test eax, eax
jne 0x40c123
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edi, dword [esp + 0x128]
cmp edi, ebp
je 0x40c1e2
cmp byte [edi], 0
je 0x40c1e2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 0x104
jbe 0x40c159
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x1c]
xor edx, edx
sub edi, eax
mov bl, 0x5c
lea eax, [esp + edx + 0x1c]
mov cl, byte [edi + eax]
cmp cl, 0x2f
jne 0x40c173
mov byte [eax], bl
jmp 0x40c175
mov byte [eax], cl
inc edx
cmp edx, esi
jbe 0x40c163
mov al, byte [esp + 0x1c]
cmp al, bl
mov al, byte [esp + 0x1d]
jne 0x40c1c7
cmp al, bl
jne 0x40c1c7
mov eax, 2
xor ecx, ecx
cmp esi, eax
jbe 0x40c1e2
cmp byte [esp + eax + 0x1c], bl
jne 0x40c1a1
inc ecx
cmp ecx, 2
je 0x40c1bd
inc eax
cmp eax, esi
jb 0x40c195
cmp ecx, 1
jne 0x40c1e2
cmp byte [esp + esi + 0x1c], bl
je 0x40c1e2
mov byte [esp + esi + 0x1c], bl
mov byte [esp + esi + 0x1d], 0
inc esi
jmp 0x40c1e2
inc eax
mov esi, eax
mov byte [esp + eax + 0x1c], 0
jmp 0x40c1e2
cmp al, 0x3a
jne 0x40c1db
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0
mov esi, 3
jmp 0x40c1e2
mov byte [esp + 0x1c], 0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4633c0
call edi
mov eax, dword [0x463280]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, ebp
je 0x40c216
lea ecx, [esp + 0x1c]
push ecx
push 0x46329c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40c2e4
push 0x4633c0
mov dword [esp + 0x1c], ebp
call ebx
mov al, byte [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push 0
neg al
push edx
push 0
sbb eax, eax
lea ecx, [esp + 0x2c]
push 0
push 0
and eax, ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40c298
test byte [esp + 0x14], 8
je 0x40c298
mov edx, dword [esp + 0x130]
mov eax, dword [edx + 8]
test eax, eax
je 0x40c298
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x1c]
neg al
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x40c298
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x18]
push edx
push eax
mov ebp, 1
call fcn.0040c3d0
add esp, 8
push 0x4633c0
call edi
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40c30b
inc esi
lea ecx, [esp + 0x1c]
push esi
push ecx
push 0x46329c
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [0x463284], edi
mov dword [0x46328c], edx
mov dword [0x463290], ebp
mov dword [0x463294], eax
mov dword [0x463280], 1
mov edi, dword [esp + 0x130]
mov esi, 0x463280
mov ecx, dword [edi + 8]
mov dword [0x463288], ecx
mov edx, dword [edi + 0x18]
mov ecx, 0x49
mov dword [0x463298], edx
rep movsd dword es:[edi], dword [esi]
jmp 0x40c311
mov dword [0x463280], edi
push 0x4633c0
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x40c330
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4476a8]
push ebx
push esi
push edi
test eax, eax
jne 0x40c3c1
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x40c356
pop edi
pop esi
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push 0x4476ac
call edi
mov esi, eax
test esi, esi
je 0x40c392
push esi
push 0x4476ac
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4476a8]
pop edi
pop esi
pop ebx
ret
push 0x4633c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x49
xor eax, eax
mov edi, 0x463280
rep stosd dword es:[edi], eax
call fcn.0040c5c0
push ebx
mov dword [0x4476a8], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40f220
Capabilities:
Get disk information

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 0x10]
push 3
push esi
push eax
call fcn.00424cf0
mov eax, dword [0x4424f0]
add esp, 0xc
cmp eax, 1
jle 0x40f25c
mov ecx, dword [esp + 0x10]
push 0x103
and ecx, 0xff
push ecx
call fcn.00424c6f
add esp, 8
jmp 0x40f274
mov edx, dword [esp + 0x10]
mov eax, dword [str.________________________________H]
and edx, 0xff
mov ax, word [eax + edx*2]
and eax, 0x103
xor ecx, ecx
cmp eax, ecx
je 0x40f29a
cmp byte [esp + 0x11], 0x3a
jne 0x40f29a
xor edx, edx
mov byte [esp + 0x12], 0x5c
mov dl, byte [esi]
mov byte [esp + 0x13], cl
mov al, byte [edx + 0x463180]
mov byte [esp + 0x10], al
jmp 0x40f2a4
mov al, 0x5c
mov byte [esp + 0x11], cl
mov byte [esp + 0x10], al
mov dl, byte [0x46269a]
pop esi
cmp dl, al
jne 0x40f2b8
mov eax, dword [0x46269c]
add esp, 8
ret
push ecx
lea eax, [esp + 8]
push ecx
lea edx, [esp + 8]
push eax
push edx
push ecx
push ecx
lea eax, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40f2f0
mov ecx, dword [0x4633e8]
push str.zip_diagnostic:_GetVolumeInformation_failed_n
push ecx
call fcn.00423885
add esp, 8
xor eax, eax
add esp, 8
ret
mov dl, byte [esp + 0xc]
mov eax, 0xc
mov byte [0x46269a], dl
mov edx, dword [esp]
cmp eax, edx
sbb eax, eax
inc eax
mov dword [0x46269c], eax
add esp, 8
ret
Function at 0x40f320
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push 3
push esi
push eax
call fcn.00425211
mov ecx, dword [esp + 0x14]
push 0x103
push ecx
call fcn.004251bf
add esp, 0x14
test eax, eax
je 0x40f374
cmp word [esp + 0xa], 0x3a
jne 0x40f374
mov dx, word [esi]
push edx
call fcn.0042380e
add esp, 4
mov word [esp + 8], ax
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
jmp 0x40f384
mov ax, 0x5c
mov word [esp + 0xa], 0
mov word [esp + 8], ax
cmp word [0x4626a0], ax
jne 0x40f397
mov eax, dword [0x4626a4]
pop esi
add esp, 0xc
ret
push 0
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x40f3d4
mov eax, dword [0x4633e8]
push str.zip_diagnostic:_GetVolumeInformation_failed_n
push eax
call fcn.00423885
add esp, 8
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
mov cx, word [esp + 8]
mov edx, 0xc
mov word [0x4626a0], cx
cmp edx, esi
pop esi
sbb eax, eax
inc eax
mov dword [0x4626a4], eax
add esp, 0xc
ret

Function at 0x40f400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f426
push esi
push str.reading_file_attributes_failed:
call fcn.00412ca0
add esp, 8
mov eax, 0x20
pop esi
ret
and eax, 0x37
pop esi
ret

Function at 0x40f430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f464
push esi
call fcn.0040a350
mov esi, eax
push esi
push str.reading_file_attributes_failed:
call fcn.00412ca0
push esi
call fcn.00423252
add esp, 0x10
mov eax, 0x20
pop esi
ret
and eax, 0x37
pop esi
ret

Function at 0x40f470
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f498
mov eax, dword [0x4633e8]
push str.zip_diagnostic:_GetFileAttributes_failed_n
push eax
call fcn.00423885
add esp, 8
xor eax, eax
pop esi
ret
and al, 0xdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f4c8
mov ecx, dword [0x4633e8]
push str.zip_diagnostic:_SetFileAttributes_failed_n
push ecx
call fcn.00423885
push str.SetFileAttributes
call fcn.0042524e
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x40f4d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f4f8
mov eax, dword [0x4633e8]
push str.zip_diagnostic:_GetFileAttributes_failed_n
push eax
call fcn.00423885
add esp, 8
xor eax, eax
pop esi
ret
and al, 0xdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40f528
mov ecx, dword [0x4633e8]
push str.zip_diagnostic:_SetFileAttributes_failed_n
push ecx
call fcn.00423885
push str.SetFileAttributes
call fcn.0042524e
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x40f530
Capabilities:
Get disk information

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 1
push 1
push 0x7bc
mov dword [eax], 0x28
call fcn.00407d20
mov ecx, dword [esp + 0x28]
push eax
mov dword [ecx], eax
call fcn.00407de0
mov edx, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp]
mov dword [edx], eax
mov eax, dword [0x437b94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x14], al
push 0
push 0
lea edx, [esp + 0xc]
neg eax
push ecx
push edx
sbb eax, eax
lea ecx, [esp + 0x24]
push 0
push 0xd
and eax, ecx
push 0x46268c
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
neg eax
sbb eax, eax
and eax, 0x46268c
add esp, 8
ret
Function at 0x40f600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
push esi
push edi
call fcn.00423f25
add esp, 8
test eax, eax
jne 0x40f758
push ebp
push edi
call fcn.0040f7b0
add esp, 4
mov ebp, eax
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f74e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40f74e
lea edi, [esi + 0x24]
lea eax, [esp + 0x20]
test ebp, ebp
push edi
push eax
jne 0x40f6ee
call fcn.0040f8e0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x40f6a3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40f6a3
mov ecx, dword [edi]
mov dword [esi + 0x20], ecx
jmp 0x40f6b4
lea edx, [esi + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040f8e0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f6d3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40f6d3
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x28], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x28
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040f8e0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call fcn.0040f960
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x40f70d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40f70d
mov ecx, dword [edi]
mov dword [esi + 0x20], ecx
jmp 0x40f71e
lea edx, [esi + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040f960
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f73d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40f73d
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x28], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x28
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040f960
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f7a4
test bl, 0x10
je 0x40f7a4
mov ecx, 0xc
xor eax, eax
mov edi, esi
push 0x210000
rep stosd dword es:[edi], eax
call fcn.00407de0
not bl
and ebx, 1
add esp, 4
or bl, 0x82
mov dword [esi + 0x24], eax
shl ebx, 7
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov word [esi + 6], bx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
Function at 0x40f7b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4424f0]
sub esp, 0x21c
cmp eax, 1
push esi
jle 0x40f7dc
mov esi, dword [esp + 0x224]
xor eax, eax
push 0x103
mov al, byte [esi]
push eax
call fcn.00424c6f
add esp, 8
jmp 0x40f7f6
mov esi, dword [esp + 0x224]
mov edx, dword [str.________________________________H]
xor ecx, ecx
mov cl, byte [esi]
mov ax, word [edx + ecx*2]
and eax, 0x103
test eax, eax
je 0x40f804
cmp byte [esi + 1], 0x3a
jne 0x40f804
mov eax, esi
jmp 0x40f824
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x11c]
push 3
lea edx, [esp + 0xc]
push eax
push edx
mov dword [esp + 0x10], eax
call fcn.00424cf0
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push 0x104
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea eax, [esp + 0x1c]
push 0x437ba8
push eax
call fcn.00431ebd
add esp, 4
push eax
call fcn.00424df0
add esp, 0xc
test eax, eax
pop esi
je 0x40f8c9
push 4
lea ecx, [esp + 0x18]
push 0x437ba0
push ecx
call fcn.00424df0
add esp, 0xc
test eax, eax
je 0x40f8c9
push 4
lea edx, [esp + 0x18]
push str.HPFS
push edx
call fcn.00424df0
add esp, 0xc
test eax, eax
je 0x40f8c9
xor eax, eax
add esp, 0x21c
ret
mov eax, 1
add esp, 0x21c
ret