joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425370
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x42549a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x42549a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x5106c0]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x4253a0
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004af870
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x425447
mov ebp, dword [0x5106bc]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x5106c0]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x42543a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x42543a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x425410
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x425432
add ecx, esi
cmp ecx, 0x7fff
jb 0x42542c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x425410
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x4253e0
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x425477
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x425460
cmp dword [edi], 0x11
jbe 0x425491
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x425491
dec eax
mov dword [edi], eax
test eax, eax
jne 0x425482
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x4254b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x425595
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x5106c0]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x4254fb
add ecx, ecx
cmp ecx, 0x7fff
jb 0x4254e8
add ecx, 0xffff8001
mov edx, dword [0x5106bc]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x425503
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x425548
lea edx, [esi + ecx*8 - 4]
mov edi, edi
mov dword [edx + 4], ebp
mov eax, dword [edi + ecx*4]
mov eax, dword [ebx + eax*4]
cmp eax, 0x7fff
je 0x42553e
add eax, eax
cmp eax, 0x7fff
jb 0x42552e
add eax, 0xffff8001
mov ebp, dword [0x5106bc]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x425540
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x425510
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x425573
lea eax, [esi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
lea esp, [esp]
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], ebp
sub eax, 4
sub edx, 1
jne 0x425560
cmp dword [esi], 0x11
jbe 0x42558e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x42558e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x425580
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], ebp
pop ebp
ret 8
Function at 0x427640
Capabilities:
Get file system object information

Disassembly:
sub esp, 0xab8
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0xab4], eax
mov eax, dword [esp + 0xabc]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4001
mov esi, ecx
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4c678c
mov dword [esi], eax
call edi
test eax, eax
jne 0x4276b0
push 0x400
lea edx, [esp + 0x2c0]
push edx
call fcn.00489f90
push 0x4001
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x2cc]
push ecx
call edi
mov edx, dword [esi]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xabc]
pop edi
pop esi
xor ecx, esp
call fcn.004af00b
add esp, 0xab8
ret 4

Function at 0x427b10
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
mov esi, dword [esp + 0x2c4]
push edi
mov edi, dword [esp + 0x2cc]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push esi
call ebx
mov ecx, dword [esp + 0x10]
push 0x400b
push 0x2b4
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [edi + 0x18], ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c0]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004af00b
add esp, 0x2b8
ret 8
Function at 0x428e30
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov eax, 0x1050
call fcn.004af840
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x104c], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
mov esi, ecx
mov eax, dword [esi]
push 0x110a
push eax
call edi
test eax, eax
je 0x428f55
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x113e
push edx
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], eax
call edi
test eax, eax
je 0x428f55
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x428f55
mov edx, dword [eax + 8]
lea ecx, [esp + 0x854]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x428f55
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
push 0x400
shr ebx, 0xf
lea eax, [esp + 0x85c]
push eax
lea ecx, [esp + 0x5c]
not bl
push ecx
and bl, 1
call fcn.0046f500
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428ee5
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x56], dx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
movzx eax, bl
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x40
lea ecx, [esp + 0x54]
push edx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx eax, byte [esi + 8]
push eax
mov ecx, esi
call fcn.00428d50
pop ebx
mov ecx, dword [esp + 0x1054]
pop edi
pop esi
xor ecx, esp
call fcn.004af00b
add esp, 0x1050
ret
Function at 0x429790
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004af840
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x429858
push 0x400
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.00455cc0
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4297e0
sub eax, edx
lea ecx, [esp + 8]
sar eax, 1
push ecx
mov esi, eax
call fcn.00457120
test al, al
jne 0x429833
lea edx, [esp + 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x808]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429820
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x429858
push 0x104
push 0x564
call fcn.00466160
push eax
push 0x4c6d1c
call fcn.00498e30
add esp, 0xc
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004af00b
add esp, 0x1004
ret 8
Function at 0x430a20
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4c257b
mov eax, dword fs:[0]
push eax
mov eax, 0x30c4
call fcn.004af840
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x30c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4d8620]
xor eax, esp
push eax
lea eax, [esp + 0x30d4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30e4]
lea ecx, [esp + 0x1844]
call fcn.00472610
lea ecx, [esp + 0x1868]
call fcn.00472610
lea ecx, [esp + 0x188c]
call fcn.00472610
push 0
lea eax, [esp + 0xc34]
push eax
push edi
push 0
call fcn.00437bb0
test al, al
je 0x430c42
cmp word [esp + 0x18b0], 0
je 0x430c42
lea ecx, [esp + 0x18b0]
push ecx
lea edx, [esp + 0x1034]
push edx
call fcn.00455e10
push eax
call fcn.00477f20
test eax, eax
je 0x430c42
lea eax, [esp + 0x18b0]
push eax
push edi
call fcn.00455e10
push eax
call fcn.00477f20
test eax, eax
jne 0x430c42
mov word [esp + 0x20d0], ax
xor esi, esi
jmp 0x430b00
test ax, ax
jne 0x430b74
push 0x400
push edi
lea ecx, [esp + 0x20d8]
push ecx
call fcn.0046f500
push esi
push str.rtmp_d
lea edx, [esp + 0x20d8]
push edx
call fcn.00455e10
push eax
mov edx, 0x400
call fcn.004a5f50
add esp, 0xc
lea eax, [esp + 0x20d0]
push eax
push 0
call fcn.00432430
test al, al
je 0x430b58
xor eax, eax
mov word [esp + 0x20d0], ax
jmp 0x430b60
mov ax, word [esp + 0x20d0]
add esi, 0x7b
cmp esi, 0x2710
jl 0x430b00
test ax, ax
je 0x430c42
push 0x400
push edi
lea ecx, [esp + 0x28d8]
push ecx
call fcn.0046f500
lea edx, [esp + 0x1030]
push edx
call fcn.00455e10
mov esi, eax
lea eax, [esp + 0x28d0]
push eax
call fcn.00455e10
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x430ba3
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x20d0]
push ecx
lea edx, [esp + 0x28d4]
push edx
call esi
test eax, eax
je 0x430c42
lea ecx, [esp + 0x10]
call fcn.00430fc0
mov dword [esp + 0x30dc], 0
push edi
push 0
xor bl, bl
call fcn.00432430
test al, al
jne 0x430c02
push 1
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.004315a0
mov bl, al
lea eax, [esp + 0x28d0]
push eax
lea ecx, [esp + 0x20d4]
push ecx
call esi
test bl, bl
je 0x430c2a
lea ecx, [esp + 0x10]
call fcn.00431040
lea ecx, [esp + 0x10]
call fcn.004310f0
mov dword [esp + 0x30dc], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004313d0
mov al, 1
jmp 0x430c44
xor al, al
mov ecx, dword [esp + 0x30d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30c0]
xor ecx, esp
call fcn.004af00b
add esp, 0x30d0
ret 4
Function at 0x431400
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x16], 0
mov dword [edi + 0xc18], 0
mov al, 1
jne 0x43141c
mov al, byte [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
je 0x431433
mov dword [esp + 0x1c], 0xc0000000
mov ebp, 1
test al, al
je 0x431441
mov ebp, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov esi, eax
call fcn.00443050
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x431482
test ebx, ebx
je 0x431482
cmp word [ebx], 0
je 0x431482
mov ecx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x43149a
mov edx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4314b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4314b6
mov dword [edi + 0xc18], 1
cmp esi, 0xffffffff
setne al
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov byte [esp + 0x1c], al
test al, al
je 0x431550
mov dword [edi + 4], esi
test ebx, ebx
je 0x431506
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4314e0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x418]
push ebx
push ecx
call fcn.004b00e0
add esp, 0xc
jmp 0x43150f
xor edx, edx
mov word [edi + 0x418], dx
test ebp, ebp
je 0x431532
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431518
sub eax, edx
inc eax
push eax
lea eax, [edi + 0x17]
push ebp
push eax
call fcn.004b00e0
add esp, 0xc
jmp 0x431541
push 0x1000000
lea ecx, [edi + 0x17]
push ecx
push ebx
call fcn.00477bc0
mov edx, dword [edi + 4]
push edx
mov ecx, edi
call fcn.00431010
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x4316f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x431717
cmp edi, 0x4e20
jbe 0x43170c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431788
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x431766
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x43174b
cmp eax, 3
jne 0x431766
cmp edi, 0x4e20
jbe 0x431766
push 0x4e20
push ebx
mov ecx, esi
call fcn.004316f0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x43177f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x43177f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x431a90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x431cae
mov eax, dword [esi + 0xc]
test eax, eax
je 0x431ace
sub eax, 1
je 0x431ac3
sub eax, 1
jne 0x431ace
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x431af0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x431af0
mov ebx, dword [esp + 0x34]
jmp 0x431af0
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x431b44
xor edi, edi
test ebx, ebx
jbe 0x431b69
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x431b14
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x431b69
add edi, 0x4000
cmp edi, ebx
jb 0x431b04
jmp 0x431b61
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x431ca8
cmp byte [esi + 0x14], 0
je 0x431ca8
cmp dword [esi + 0xc], 0
jne 0x431ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00431210
mov ebx, eax
lea eax, [esi + 0x17]
push eax
mov dword [esp + 0x2c], edx
call fcn.004321d0
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x431bf9
ja 0x431bba
cmp dword [esp + 0x1c], ebp
jbe 0x431bf9
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x431bf9
jl 0x431bd1
cmp edx, 0xffffffff
ja 0x431bf9
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x431bf9
jg 0x431be4
cmp ecx, 0xffffffff
jbe 0x431bf9
lea edx, [esi + 0x418]
push edx
lea eax, [esi + 0x17]
push eax
mov ecx, 0x513904
call fcn.00429bb0
push 0
lea ebx, [esi + 0x418]
push ebx
lea edi, [esi + 0x17]
push edi
mov ecx, 0x513904
call fcn.00429c30
test al, al
je 0x431c8f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x431ae0
test eax, eax
jbe 0x431ae0
mov ecx, esi
call fcn.00431210
mov ecx, dword [esp + 0x10]
xor ebp, ebp
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebp
cmp ecx, 0xffffffff
je 0x431ae0
mov ebp, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebp, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x431ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x431ae0
cmp byte [esi + 0x14], 0
je 0x431ae0
push ebx
push edi
mov ecx, 0x513904
call fcn.00429d10
jmp 0x431ae0
lea eax, [esi + 0x418]
push eax
lea ecx, [esi + 0x17]
push ecx
push 0
push 0
mov ecx, 0x513904
call fcn.0042a0e0
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x4320d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00455c20
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x43212c
cmp eax, 5
je 0x43212c
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004af00b
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.004af00b
add esp, 0x404
ret 4

Function at 0x432150
Capabilities:
Get disk information

Disassembly:
sub esp, 0x804
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
lea ecx, [esp]
push ecx
push eax
call fcn.00457200
movzx edx, word [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4321ac
cmp eax, 5
je 0x4321ac
xor eax, eax
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004af00b
add esp, 0x804
ret 4
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.004af00b
add esp, 0x804
ret 4

Function at 0x4321d0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00455c20
cmp dword [0x5112e4], 0
jne 0x43222d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x432220
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5112e4], eax
cmp dword [0x5112e4], 0
je 0x4322ae
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00456310
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x5112e4]
test eax, eax
je 0x4322ae
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x4322ae
push 1
push 0
push 0
push eax
call fcn.004afe90
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004af00b
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x4322fb
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004af00b
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.004af00b
add esp, 0x42c
ret 4
Function at 0x432320
Capabilities:
Get disk information

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x510]
lea ecx, [esp + 0x108]
push ecx
push eax
call fcn.00455c20
push 0x105
lea edx, [esp + 4]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x43240f
mov ecx, 0x4c7040
lea eax, [esp]
jmp 0x432380
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4323a0
test dl, dl
je 0x43239c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4323a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x432380
xor eax, eax
jmp 0x4323a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4323f3
mov ecx, 0x4c7038
lea eax, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4323d1
test dl, dl
je 0x4323cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4323d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4323b1
xor eax, eax
jmp 0x4323d6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4323f3
xor eax, eax
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004af00b
add esp, 0x50c
ret 4
mov eax, 1
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004af00b
add esp, 0x50c
ret 4
mov ecx, dword [esp + 0x508]
xor ecx, esp
xor al, al
call fcn.004af00b
add esp, 0x50c
ret 4

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

Disassembly:
call fcn.00443050
test eax, eax
je 0x43245b
mov eax, dword [esp + 8]
test eax, eax
je 0x43245b
cmp word [eax], 0
je 0x43245b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
mov eax, dword [esp + 4]
test eax, eax
je 0x432477
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x432477
mov eax, 1
ret 8
xor eax, eax
ret 8

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

Disassembly:
call fcn.00443050
test eax, eax
je 0x4324a7
mov eax, dword [esp + 4]
test eax, eax
je 0x4324a7
cmp word [eax], 0
je 0x4324a7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret 4
xor al, al
ret 4

Function at 0x432510
Capabilities:
Get file attributes

Disassembly:
call fcn.00443050
test eax, eax
je 0x432531
mov eax, dword [esp + 8]
test eax, eax
je 0x432531
cmp word [eax], 0
je 0x432531
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x432540
Capabilities:
Set file attributes

Disassembly:
call fcn.00443050
test eax, eax
je 0x43256b
mov eax, dword [esp + 8]
test eax, eax
je 0x43256b
cmp word [eax], 0
je 0x43256b
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov eax, dword [esp + 4]
test eax, eax
je 0x432587
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
xor al, al
ret 0xc