joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dc8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40400f
push ebx
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, eax
or ebx, 0xffffffff
cmp ecx, 0x9b
je 0x403f85
cmp ecx, 0x9d
je 0x403f85
mov eax, dword [ebp - 0x6c]
add eax, 0xffffffea
cmp eax, 8
ja case.0x403e31.26
jmp dword [eax*4 + 0x404020]
mov eax, 0x402
cmp ecx, eax
jne case.0x403e31.26
push eax
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
jmp case.0x403e31.26
cmp ecx, 0x415
je 0x403e81
cmp ecx, 0x417
je 0x403e81
cmp ecx, 0x427
je 0x403e81
lea eax, [ecx - 0x4d9]
cmp eax, 1
ja case.0x403e31.26
push ecx
jmp 0x403e46
cmp ecx, 0x4af
je 0x403e97
lea eax, [ecx - 0x4f3]
cmp eax, 2
jmp 0x403e7b
push 0
push 0
push 0x147
push 0x4a4
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, eax
neg ebx
sbb ebx, ebx
jmp 0x403f82
mov eax, 0x425
sub ecx, eax
je 0x403ed4
dec ecx
sub ecx, 1
jne case.0x403e31.26
push 0x427
jmp 0x403e46
push eax
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 2
jmp case.0x403e31.26
mov eax, 0x447
sub ecx, eax
je 0x403e45
sub ecx, 3
jne case.0x403e31.26
push 0x44a
jmp 0x403e46
mov eax, ecx
sub eax, 0x439
je 0x403e81
sub eax, 3
jne case.0x403e31.26
jmp 0x403e81
mov eax, ecx
sub eax, 0x41b
je 0x403e81
sub eax, 6
jmp 0x403f1a
mov eax, 0x49d
cmp ecx, eax
je 0x403f66
jle case.0x403e31.26
cmp ecx, 0x49f
jle 0x403e81
cmp ecx, 0x4ad
je 0x403e81
cmp ecx, 0x4f3
jmp 0x403f1a
push eax
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je case.0x403e31.26
mov eax, dword [0x44e4a4]
shr eax, 0x11
push 0
test al, 1
pop ebx
sete bl
inc ebx
jmp case.0x403e31.26
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
sub esi, edi
mov eax, esi
mov dword [ebp - 0x28], ecx
cdq
and edx, 3
mov dword [ebp - 0x1c], edi
add eax, edx
mov dword [ebp - 0x18], ebx
sar eax, 2
add eax, esi
add eax, edi
mov dword [ebp - 0x24], eax
lea eax, [ecx + ecx]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x68]
push 0x3f
push eax
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x68]
push eax
push 0x403cdf
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [ebp - 0x18], ebx
je 0x403ff7
mov ebx, dword [ebp - 0x18]
sub ebx, 0
je 0x404003
sub ebx, 1
je 0x403fff
sub ebx, 1
je 0x403ffb
xor eax, eax
jmp 0x40400e
push 8
jmp 0x404005
push 0x13
jmp 0x404005
push 0xe
mov ecx, dword [ebp - 0x78]
pop edx
call fcn.00403c88
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x404b68
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x484a78]
push ebx
mov ebx, edx
push esi
xor eax, ebx
push edi
mov edi, 0x396
test eax, 0x20000
je 0x404c3c
mov ecx, edi
call fcn.00402d5e
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
lea eax, [ebp - 0x24]
mov ecx, 0x387
push eax
call fcn.00402d5e
push eax
call esi
lea eax, [ebp - 0x34]
mov ecx, 0x394
push eax
call fcn.00402d5e
push eax
call esi
mov eax, dword [ebp - 0x24]
test ebx, 0x20000
push 2
cmovne eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x46159c]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 4
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x442813
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, ebx
mov ecx, 0x394
shr eax, 0x11
not eax
and eax, 1
push eax
call fcn.00402d5e
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x396
mov esi, ebx
and esi, 0x20000
jne 0x404c58
push 0x35
pop eax
mov dword [0x44a848], eax
mov dword [0x44a84c], eax
call fcn.0040434e
mov ecx, 0x395
test ebx, 0x10000
je 0x404c8c
mov edx, 0x88
mov dword [0x44a858], 0x3a
call fcn.0040baa7
mov edx, 0x8a
mov ecx, edi
call fcn.0040baa7
mov edx, 0x89
jmp 0x404ce6
test esi, esi
je 0x404ccf
and dword [0x44a84c], 0
mov edx, 0x91
and dword [0x44a848], 0
call fcn.0040baa7
mov edx, 0x90
mov ecx, edi
call fcn.0040baa7
mov edx, 0x93
mov ecx, 0x392
call fcn.0040baa7
mov edx, 0x94
mov ecx, 0x393
jmp 0x404ceb
mov esi, 0x92
mov edx, esi
call fcn.0040baa7
mov edx, esi
mov ecx, edi
call fcn.0040baa7
mov edx, esi
mov ecx, 0x394
call fcn.0040baa7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x40c227
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp esi, 6
jbe 0x40c236
xor eax, eax
jmp 0x40c263
xor ecx, ecx
cmp dword [edi + esi*4], ecx
jne 0x40c260
mov eax, dword [0x44ad0c]
test esi, esi
je 0x40c24d
mov eax, dword [esi*4 + 0x44ad0c]
test eax, eax
je 0x40c260
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + esi*4], eax
mov eax, dword [edi + esi*4]
pop edi
pop esi
ret

Function at 0x40dacc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x414
push dword [0x46159c]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
mov dword [0x4615a0], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x31
push ebx
push 0x1036
push dword [0x4615a0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call esi
mov edi, eax
push 0x32
mov dword [ebp - 0x20], edi
call esi
push ebx
push 0xd
push 1
push eax
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, eax
mov esi, 0x461518
push dword [esi]
push 0xffffffffffffffff
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
add esi, 4
cmp esi, 0x461538
jl 0x40db3d
push dword [0x461510]
push 0xffffffffffffffff
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
movaps xmm0, xmmword [0x445580]
push dword [0x46159c]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
push dword [ebp + ebx*4 - 0x14]
mov edx, dword [0x461510]
push ecx
push dword [ebp - 0x1c]
mov ecx, eax
push dword [ebp - 0x20]
call fcn.00402383
add esp, 0x10
mov esi, eax
push esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x18]
inc ebx
cmp ebx, 4
jl 0x40db7c
push eax
push dword [0x46159c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
push 1
push 0x1003
push dword [0x4615a0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4615a0]
mov edx, 0x44e518
push 0xd
push 0x448848
push dword [0x44e514]
call fcn.0040d5c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x44e514], eax
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x40e2db
Capabilities:
Hide graphical window

Disassembly:
push ecx
push 0x415
push dword [0x46159c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov dword [0x4615b0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x31
push 0
push 0x1036
push dword [0x4615b0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4615b0]
mov edx, 0x44e61c
push 7
push 0x448780
push dword [0x44e618]
call fcn.0040d5c0
push 0
push 0x1000
push 0x102f
push dword [0x4615b0]
mov dword [0x44e618], eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop ecx
ret
Function at 0x40ebe2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
cmp esi, 4
jl 0x40ec3a
push edi
mov edi, esi
shr edi, 2
imul eax, edi, 0xfffffffc
add esi, eax
xor edx, dword [ecx]
add ecx, 4
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
sub edi, 1
jne 0x40ebfb
pop edi
sub esi, 1
je 0x40ec6f
sub esi, 1
je 0x40ec5c
sub esi, 1
jne 0x40ec81
movzx eax, byte [ecx]
xor edx, eax
inc ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
movzx eax, byte [ecx]
xor edx, eax
inc ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f4a8]
movzx ecx, byte [ecx]
xor edx, ecx
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45f4a8]
mov eax, edx
pop esi
pop ebp
ret 4

Function at 0x40ec88
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
cmp esi, 4
jl 0x40ece0
push edi
mov edi, esi
shr edi, 2
imul eax, edi, 0xfffffffc
add esi, eax
xor edx, dword [ecx]
add ecx, 4
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
sub edi, 1
jne 0x40eca1
pop edi
sub esi, 1
je 0x40ed15
sub esi, 1
je 0x40ed02
sub esi, 1
jne 0x40ed27
movzx eax, byte [ecx]
xor edx, eax
inc ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
movzx eax, byte [ecx]
xor edx, eax
inc ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x45f0a8]
movzx ecx, byte [ecx]
xor edx, ecx
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45f0a8]
mov ax, dx
pop esi
pop ebp
ret 4

Function at 0x40edad
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ecx - 2]
push esi
push edi
cmp eax, 0x17
ja 0x40edfd
add cl, 0x41
mov word [ebp - 3], 0x5c3a
push 0x8003
mov byte [ebp - 4], cl
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test esi, esi
jne 0x40ee05
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ecx, dword [ebp - 0xc]
or eax, ecx
je 0x40ee20
shrd edx, ecx, 0x14
xor eax, eax
inc eax
shr ecx, 0x14
test edx, edx
cmovne eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eead
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
sub eax, 0
je 0x40eef3
sub eax, 1
je 0x40eed7
sub eax, 1
jne 0x40ef0c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x40ef0e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, eax
and ecx, esi
cmp ecx, esi
je 0x40ef0c
or eax, esi
push eax
jmp 0x40eec9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
test esi, eax
je 0x40ef0c
not esi
and esi, eax
jmp 0x40eec8
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40f63a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x44a6f4]
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [eax], ecx
cmp esi, dword [0x45e81c]
je 0x40f6d4
push ecx
push ecx
push ecx
push 4
push dword [0x45e7f8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x40f6d6
test esi, esi
je 0x40f680
cmp byte [edx + esi - 1], 0xa
je 0x40f680
sub esi, 1
jne 0x40f674
push ebx
mov ebx, dword [0x45e81c]
mov eax, 0x40000
cmp ebx, esi
mov ecx, esi
cmovb ebx, eax
cmp esi, ebx
jae 0x40f6b1
mov al, byte [ecx + edx]
cmp al, 0xd
jne 0x40f6a5
cmp byte [ecx + edx + 1], 0xa
je 0x40f6b1
test al, al
je 0x40f6b1
mov byte [edi], al
inc edi
inc ecx
cmp ecx, ebx
jb 0x40f697
mov eax, ecx
mov word [edi], 0x2e
sub eax, esi
add ecx, 2
mov esi, dword [ebp - 4]
cmp ecx, 0x3fc00
push edx
mov dword [esi], eax
sbb esi, esi
and esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f79b
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [0x482060]
mov dword [ebp - 0x26c], ecx
push ebx
push esi
lea esi, [ebp - 0x110]
push edi
test dl, dl
je 0x40f7dc
mov edi, 0x482060
mov eax, esi
sub edi, eax
mov byte [esi], dl
inc esi
mov al, byte [edi + esi]
mov dl, al
test al, al
jne 0x40f7d0
mov edi, dword [0x44ac54]
mov ebx, 0x190
mov byte [esi], 0
add edi, 0xfffffff9
mov dword [ebp - 0x268], ebx
mov ecx, edi
call fcn.004246e8
mov edx, eax
mov ecx, esi
call fcn.0040e8eb
mov edx, dword [ebp - 0x26c]
mov ecx, eax
call fcn.0040e8d5
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40f8ca
mov ebx, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x11a]
movzx edx, word [ebp - 0x11e]
movzx ecx, word [ebp - 0x120]
push eax
call fcn.0042441c
mov ecx, dword [0x44ac54]
add ecx, 0xfffffff9
cmp eax, ecx
jae 0x40f8a7
mov bl, byte [ebp - 0x234]
mov ecx, esi
test bl, bl
je 0x40f891
lea edx, [ebp - 0x234]
sub edx, esi
mov byte [ecx], bl
inc ecx
mov al, byte [edx + ecx]
mov bl, al
test al, al
jne 0x40f885
lea eax, [ebp - 0x110]
mov byte [ecx], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f835
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x268]
dec edi
sub ebx, 1
mov dword [ebp - 0x268], ebx
jne 0x40f7f3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x40f913
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push ecx
mov esi, ecx
lea ecx, [ebp - 0x14]
push 3
call fcn.0040efd7
add esp, 8
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f983
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, edi
je 0x40f983
test eax, eax
je 0x40f983
test al, 1
je 0x40f983
xor eax, 1
or eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4108d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edi
call fcn.0041083b
mov ebx, eax
lea eax, [esp + 0x828]
mov dword [esp + 0x10], eax
mov edx, eax
mov eax, dword [ebp + 8]
mov cl, byte [eax]
test cl, cl
je 0x410926
mov esi, edx
sub eax, esi
mov byte [edx], cl
inc edx
mov cl, byte [eax + edx]
test cl, cl
jne 0x41091c
lea eax, [esp + 0x828]
mov byte [edx], 0
sub edx, eax
jne 0x41093b
xor eax, eax
jmp 0x410a66
xor esi, esi
mov eax, edx
xor eax, ebx
inc esi
mov dword [edi], eax
test edx, edx
js 0x410979
lea edi, [edx + 4]
shr edi, 2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
add edx, 4
xor eax, ebx
mov dword [esp + 0x10], edx
mov dword [ecx + esi*4], eax
lea ecx, [esp + 0x18]
inc esi
call fcn.0040e903
mov ebx, eax
sub edi, 1
jne 0x41094e
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x828]
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
test dl, dl
je 0x4109a1
mov edi, ecx
sub eax, edi
mov edi, dword [esp + 0xc]
mov byte [ecx], dl
inc ecx
mov dl, byte [eax + ecx]
test dl, dl
jne 0x410997
lea eax, [esp + 0x828]
mov byte [ecx], 0
sub ecx, eax
je 0x410934
mov eax, ecx
xor eax, ebx
mov dword [edi + esi*4], eax
inc esi
test ecx, ecx
js 0x4109ec
lea edi, [ecx + 4]
shr edi, 2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
add edx, 4
xor eax, ebx
mov dword [esp + 0x10], edx
mov dword [ecx + esi*4], eax
lea ecx, [esp + 0x18]
inc esi
call fcn.0040e903
mov ebx, eax
sub edi, 1
jne 0x4109c1
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x828]
mov ecx, edx
mov al, byte [eax]
test al, al
je 0x410a19
mov edi, edx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
sub edi, edx
mov byte [ecx], al
inc ecx
mov al, byte [edi + ecx]
test al, al
jne 0x410a0b
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x828]
mov byte [ecx], 0
sub ecx, eax
je 0x410934
mov eax, ecx
xor eax, ebx
mov dword [edi + esi*4], eax
inc esi
test ecx, ecx
js 0x410a64
lea edi, [ecx + 4]
shr edi, 2
mov eax, dword [edx]
add edx, 4
mov ecx, dword [esp + 0xc]
xor eax, ebx
mov dword [esp + 0x14], edx
mov dword [ecx + esi*4], eax
lea ecx, [esp + 0x18]
inc esi
call fcn.0040e903
mov edx, dword [esp + 0x14]
mov ebx, eax
sub edi, 1
jne 0x410a3d
mov eax, esi
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a623
mov esp, ebp
pop ebp
ret 8
Function at 0x410ae5
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x38
push 0x445b28
call fcn.0042b0a0
cmp byte [0x4615fb], 0
jne 0x410b02
xor al, al
call fcn.0042b0e6
ret
mov byte [0x4615fb], 0
cmp dword [0x48375c], 0
sete byte [ebp - 0x1b]
and dword [ebp - 0x20], 0
xor ebx, ebx
inc ebx
and dword [ebp - 0x28], 0
mov byte [ebp - 0x19], 0x43
mov dl, byte [ebp - 0x19]
cmp dl, 0x5a
jg 0x410cba
mov byte [0x449c7c], dl
mov byte [ebp - 0x1a], 0
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x30], eax
call fcn.00413842
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
push 0x449c7c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x410b73
cmp eax, 4
je 0x410b73
cmp eax, 2
je 0x410b73
and dword [ebp - 0x24], 0
jmp 0x410be9
cmp dword [ebp - 0x20], 0
jne 0x410b7e
cmp eax, 3
je 0x410b91
cmp dword [ebp - 0x20], ebx
jne 0x410bec
cmp eax, 4
je 0x410b91
cmp eax, 2
je 0x410b91
cmp eax, ebx
jne 0x410bec
push 0x8003
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call ebx
mov edi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x449c7c
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov esi, eax
push edi
call ebx
test esi, esi
jne 0x410bc9
and dword [ebp - 0x24], 0
xor ebx, ebx
inc ebx
jmp 0x410be9
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x410bd5
cmp dword [ebp - 0x34], ecx
je 0x410bc0
mov eax, dword [ebp - 0x34]
shl eax, 0xc
shr ecx, 0x14
add eax, ecx
push 1
pop ebx
cmove eax, ebx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x1a], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x410c12
call fcn.00413842
mov esi, eax
sub esi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [ebp - 0x1a], 0
je 0x410cb2
cmp esi, 0x1f4
jae 0x410cb2
mov dl, byte [ebp - 0x19]
movsx eax, dl
mov ecx, dword [ebp - 0x24]
mov dword [eax*4 + 0x44e324], ecx
test ecx, ecx
je 0x410cb2
mov cl, dl
call fcn.0040f8eb
mov esi, eax
mov dword [ebp - 0x30], esi
or dword [ebp - 0x28], esi
cmp byte [ebp - 0x1b], 0
je 0x410cb2
mov byte [str.C:pagefile.sys], dl
mov dword [ebp - 4], ebx
xor edx, edx
mov ecx, str.C:pagefile.sys
call fcn.0040ef12
test al, al
je 0x410c7f
or dword [0x48375c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x410cb2
inc byte [ebp - 0x19]
jmp 0x410b23
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
cmp dword [ecx*4 + 0x44e490], eax
je 0x410cd4
test eax, eax
je 0x410cd4
mov dword [ecx*4 + 0x44e490], eax
cmp dword [ebp - 0x20], ebx
jne 0x410d28
push dword [0x4619c4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [0x4619c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x3e8
call fcn.004104ad
mov ecx, dword [0x44aa44]
mov edx, ecx
inc ecx
mov dword [0x44aa44], ecx
test edx, edx
jne 0x410d15
call fcn.00410a7d
push dword [0x4619c4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, bl
jmp 0x410afc
mov dword [ebp - 0x20], ebx
jmp 0x410b1b
Function at 0x411726
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
xor ebx, ebx
test al, 1
je 0x41175e
test byte [0x44e78c], 8
je 0x4117a9
xor edx, edx
mov ecx, esi
push ebx
inc edx
call fcn.0040eead
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4117a9
push esi
push str.Deleting_Tape__s_for_space
push ebx
push 0x80
push ebx
push ebx
call fcn.00420600
add esp, 0x18
test edi, edi
je 0x411792
or byte [edi + 0x47], 2
mov byte [edi + 0x2a], 0x26
or byte [0x44ac88], 4
test dword [0x44e78c], 0x200
je 0x4117a5
mov cl, byte [esi]
call fcn.0040ea6e
mov al, 1
jmp 0x4117ab
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret