joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x8590a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x7530
lea eax, [esi + 0x10]
lea ecx, [esi + 8]
push 0
push eax
mov dword [eax], ecx
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esi + 0xc], esi
mov dword [esi + 0x14], 0x4139e0
call fcn.005794a0
lea edx, [esp + 4]
mov ecx, 0x9cf1a8
push edx
mov dword [esp + 0x50], 0
call fcn.0057a890
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x64], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00579500
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x45c730
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x8592f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
mov ebp, dword [esp + 0x238]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x1c], ecx
je 0x45c902
push ebp
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x45c902
mov ecx, dword [esp + 0x23c]
push esi
push edi
push ebp
call fcn.006181a0
mov eax, dword [0x92f1fc]
mov cx, word [0x92f200]
xor edx, edx
cmp ax, 0x5a
mov dword [esp + 0x1e], edx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov word [esp + 0x22], dx
ja 0x45c8ac
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00617650
mov eax, dword [esp + 0x10]
mov dword [esp + 0x238], ebx
cmp dword [eax - 8], ebx
jbe 0x45c887
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00617440
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push eax
mov byte [esp + 0x240], 1
call fcn.0045cc40
test eax, eax
je 0x45c861
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], bl
call fcn.00617ec0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00617440
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x240], 1
call fcn.0045cc40
test eax, eax
jne 0x45c826
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], bl
call fcn.00617ec0
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 8]
push esi
push eax
push ebp
call fcn.005fddee
add esp, 0xc
test eax, eax
je 0x45c8c4
inc word [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], 0xffffffff
call fcn.00617ec0
cmp word [esp + 0x18], 0x5a
jbe 0x45c7ac
mov eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x24]
push eax
push ebp
call fcn.0045cd80
mov esi, eax
pop edi
pop esi
jmp 0x45c904
mov edx, dword [esp + 0x244]
lea eax, [ebp + esi*2]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x93a244
push edx
call fcn.0061aed0
add esp, 0x10
lea ecx, [esp + 0x10]
mov esi, 1
mov dword [esp + 0x238], 0xffffffff
call fcn.00617ec0
mov eax, esi
pop edi
pop esi
jmp 0x45c904
mov eax, ebx
mov ecx, dword [esp + 0x228]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 8
Function at 0x45d6c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push edi
xor eax, eax
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x1e], eax
push ecx
lea edx, [esp + 0x20]
push 0xe
mov dword [esp + 0x2a], eax
push edx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov word [esp + 0x2c], si
mov dword [esp + 0x36], eax
call ebp
test eax, eax
je 0x45d835
cmp dword [esp + 0x10], 0xe
jne 0x45d835
cmp word [esp + 0x18], 0x4d42
jne 0x45d835
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x14]
mov esi, 0x28
push eax
lea ecx, [esp + 0x30]
push esi
push ecx
push ebx
call ebp
test eax, eax
je 0x45d835
cmp dword [esp + 0x10], esi
jne 0x45d835
cmp dword [esp + 0x28], esi
jne 0x45d835
sub esp, 0x28
mov ecx, 0xa
lea esi, [esp + 0x50]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0045dd50
mov esi, eax
push esi
call fcn.008325b4
mov edi, eax
add esp, 0x2c
test edi, edi
mov dword [esp + 0x14], edi
je 0x45d835
mov ecx, esi
xor eax, eax
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0
call fcn.0045dbd0
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0045ddc0
add esp, 4
push eax
push ebx
call ebp
test eax, eax
je 0x45d835
mov eax, dword [esp + 0x22]
test eax, eax
je 0x45d835
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0
call fcn.0045dca0
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0045ddf0
add esp, 4
push eax
push ebx
call ebp
test eax, eax
jne 0x45d842
lea ecx, [esp + 0x14]
push ecx
call fcn.0045d560
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x45ece0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x45ecee
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45ed1f
mov eax, dword [esi + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x1c], 0
mov eax, 1
pop esi
ret
Function at 0x463f29
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x859d70
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464110
mov eax, dword [esi + 0xe8]
mov edi, dword [esi + 0x100]
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push eax
push edi
mov dword [esp + 0x20], ebx
call fcn.00477810
add esp, 0xc
test eax, eax
je 0x46406b
cmp dword [edi + 0x848], ebx
jne 0x463f80
mov dword [esi + 0xd8], 1
jmp 0x463f86
mov dword [esi + 0xd8], ebx
cmp dword [edi + 0x858], ebx
jne 0x463f9a
mov dword [esi + 0xd4], 1
jmp 0x463fa0
mov dword [esi + 0xd4], ebx
lea edx, [edi + 0x18]
lea ecx, [esi + 0xdc]
push edx
call fcn.00832082
mov eax, dword [edi + 0x838]
mov dword [esi + 0xe0], eax
mov ecx, dword [edi + 0x850]
mov dword [esi + 0xe4], ecx
mov eax, dword [edi + 0x84c]
cmp eax, ebx
je 0x464016
mov ax, word [edi + 0x854]
xor ecx, ecx
cmp ax, 0x63
jb 0x463ff0
cmp ax, 0x7a
ja 0x463ff0
and eax, 0xffff
sub eax, 0x62
jmp 0x464004
cmp ax, 0x43
jb 0x464006
cmp ax, 0x5a
ja 0x464006
and eax, 0xffff
sub eax, 0x42
mov ecx, eax
mov edx, dword [esi + 0xb4]
push ebx
push ecx
push 0x14e
push edx
jmp 0x464024
mov eax, dword [esi + 0xb4]
push ebx
push ebx
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x503
mov ecx, esi
call fcn.00831156
mov ecx, eax
call fcn.00831574
push 1
push 1
mov ecx, esi
call fcn.00831156
mov ecx, eax
call fcn.00831574
push ebx
mov ecx, esi
call fcn.00830530
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esi + 0xdc]
call fcn.00831e73
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xe0], ebx
mov eax, dword [0x98b454]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], eax
push 0x11b1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.008325e8
push 0x1224
lea ecx, [esp + 0x10]
call fcn.008325e8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0x30
push ecx
push edx
mov ecx, esi
call fcn.0082f847
push ebx
push 0x503
mov ecx, esi
call fcn.00831156
mov ecx, eax
call fcn.00831574
push ebx
push 1
mov ecx, esi
call fcn.00831156
mov ecx, eax
call fcn.00831574
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.00831eeb
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00831eeb
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x464130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x859da0
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4641f3
cmp dword [esp + 0x40], edi
je 0x4641f3
mov eax, dword [esp + 0x48]
push 1
push eax
lea ecx, [esp + 0x50]
call fcn.006177f0
push 0x93a6bc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], edi
call fcn.00618b00
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call esi
or ebx, 0xffffffff
cmp eax, ebx
je 0x4641e6
push str.VEDisk
lea ecx, [esp + 0x4c]
call fcn.00618b00
mov edx, dword [esp + 0x48]
push edx
call esi
cmp eax, ebx
jne 0x46420e
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xc]
push eax
call fcn.00831f5f
mov ecx, dword [esp + 0xc]
push 6
push ecx
mov byte [esp + 0x3c], 1
call fcn.0066ea30
add esp, 8
mov byte [esp + 0x34], 0
test eax, eax
lea ecx, [esp + 0xc]
jne 0x464209
call fcn.00831eeb
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], ebx
call fcn.00617ec0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
call fcn.00831eeb
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov dword [esp + 0x20], edx
push ebp
mov ebp, dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x20]
push eax
call fcn.006a67f0
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.00617650
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [0x8ab26c]
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push eax
push edi
push ecx
lea edx, [esp + 0x54]
push 0x93a690
push edx
mov byte [esp + 0x4c], 3
call fcn.0061aed0
mov eax, dword [esp + 0x5c]
add esp, 0x14
push eax
call esi
cmp eax, 0xffffffff
je 0x4642d3
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 2
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00617ec0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x464239
mov esi, dword [esp + 0x1c]
jmp 0x46432a
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, 1
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.005fc3ce
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 2
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00617ec0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x30]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x46a600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x85a9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x1d4c0
lea eax, [esi + 0x10]
lea ecx, [esi + 4]
push 0
push eax
mov dword [eax], ecx
push 0
push 2
lea ecx, [esp + 0x1c]
mov dword [esi + 8], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0x4139e0
call fcn.005794a0
lea edx, [esp + 4]
mov ecx, 0x9cf1a8
push edx
mov dword [esp + 0x50], 0
call fcn.0057a890
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x64], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00579500
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x46acb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85aa68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
push 0x9b5220
lea ecx, [esp + 0xc]
call fcn.00831f5f
mov ecx, dword [esi + 0x134]
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x46acfd
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46acfd
lea eax, [esp + 8]
push eax
call fcn.0082e99c
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.0083145e
mov edx, dword [esi + 0x12c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x130]
mov ecx, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
mov eax, dword [eax - 8]
mov dword [esi + 0x154], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0082dfdb
mov ecx, esi
mov edi, eax
call fcn.0083145e
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [edi + 0x1c]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 8]
mov edi, eax
mov dword [esi + 0x154], 0
mov dword [esp + 0x48], 0xffffffff
call fcn.00831eeb
mov ecx, dword [esp + 0x40]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x46c860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x214]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.005fc3ce
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.005fc428
add esp, 0x14
test eax, eax
pop edi
je 0x46c8ad
mov word [eax], 0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46c8d7
lea ecx, [esp]
push 0
push ecx
call fcn.0066ee10
add esp, 8
test eax, eax
jne 0x46c8d7
add esp, 0x208
ret
mov eax, 1
add esp, 0x208
ret

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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x46cba3
mov eax, dword [esp + 0x30]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x40000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x46cb92
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46cb92
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x46cb92
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46cb92
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46cb92
mov ebx, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
je 0x46cba3
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x46d460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85ada8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0xd4]
lea ecx, [esp + 0xc]
push eax
call fcn.005f27b7
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x12c]
lea eax, [esi + 0x108]
mov dword [esp + 0x1c], 0
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.0082b1f8
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0x11c]
mov edi, dword [esp + 0x24]
push 0xffffffffffffffff
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0xfc]
push edx
mov ecx, edi
call fcn.00412650
mov ecx, dword [esi + 0xfc]
mov esi, dword [esi + 0xf8]
mov eax, dword [edi + 4]
mov edx, ecx
dec ecx
test edx, edx
je 0x46d522
push ebx
inc ecx
mov edx, esi
mov edi, eax
add eax, 0x10
add esi, 0x10
mov ebx, dword [edx]
dec ecx
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
jne 0x46d4fe
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005f27f3
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x470120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85b160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00469e90
lea eax, [esi + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 0x1c], 0
call fcn.0046c9a0
add esp, 8
mov edx, dword [esp + 4]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x4701c4
lea ecx, [esp + 4]
mov dword [esi + 0x48c], 2
mov byte [esp + 0x14], 0
call fcn.00617ec0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00469ec0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
lea eax, [esi + 0x54]
push 0x470ba0
push eax
mov ecx, esi
call fcn.0046fcd0
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esi + 0x40], 0xffffffff
mov byte [esp + 0x14], 0
call fcn.00617ec0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00469ec0
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x85b1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
lea eax, [esi + 0x25c]
mov edi, 1
push eax
call fcn.00617650
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
push ecx
lea ecx, [esp + 0x10]
call fcn.00617650
push 0x92edb8
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.0061b8a0
push 0x92edb8
lea ecx, [esp + 0xc]
call fcn.00618b00
lea ecx, [esp + 8]
call fcn.00619280
lea ecx, [esp + 0xc]
call fcn.00619280
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.00619100
test eax, eax
jne 0x470402
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
cmp eax, edx
jge 0x470402
add esi, 0x54
lea ecx, [esp + 0x24]
push esi
call fcn.00617650
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
mov eax, dword [edx - 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0061a220
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 3
call fcn.00618b60
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call fcn.00617ec0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4703f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4703f4
xor edi, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.00617ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00617ec0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x470459
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x85b200
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4704a6
mov eax, dword [0x9dce80]
test eax, eax
je 0x4705ea
push str.IsEncryptDiskOk_1....
push str.EDBackup
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
xor ebx, ebx
mov dword [esp + 0x18], 0x895698
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x18]
add esi, 0x44
push eax
push esi
mov ecx, 0x9be970
mov dword [esp + 0x3c], ebx
call fcn.004795d0
cmp eax, ebx
je 0x4705a8
mov dx, word [0x92f200]
mov ecx, dword [0x92f1fc]
mov eax, dword [esp + 0x1c]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov cx, word [eax + 0x18]
push edx
mov word [esp + 0x14], cx
call fcn.005fdee6
add esp, 4
lea ecx, [esp + 0xc]
push edi
call fcn.00617650
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call fcn.00619180
mov eax, dword [esp + 0xc]
mov ax, word [eax]
cmp ax, word [esp + 0x10]
jne 0x47059b
cmp dword [0x9dce80], ebx
je 0x470556
push str.IsEncryptDiskOk_2....
push str.EDBackup
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.00617ec0
mov dword [esp + 0x18], 0x895698
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], 2
cmp eax, ebx
je 0x470584
push eax
call fcn.008325dd
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.00617ec0
cmp dword [0x9dce80], ebx
je 0x4705c9
push str.IsEncryptDiskOk_3....
push str.EDBackup
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x10
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], 3
cmp eax, ebx
je 0x4705ea
push eax
call fcn.008325dd
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret