joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov bl, dl
cmp dword [esi + 0x10], 0
je 0x404fd6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404f50
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404fd6
mov ecx, esi
call fcn.00403fa0
test al, al
je 0x404f6e
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404f78
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404fd6
test bl, bl
je 0x404fd6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404f91
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x404fb1
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x404fa9
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404fbb
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404fd6
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.00405e30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b550
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x40501a
mov al, 1
jmp 0x40510d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405024
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
push 0
push 0x536234
test al, 0x10
je 0x4050b0
xor eax, eax
mov word [ebp - 0x28], ax
call fcn.00403ab0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404920
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4050a4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40509a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405128
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov dl, byte [ebp + 0xc]
mov ecx, esi
call fcn.004047b0
jmp 0x40510d
xor eax, eax
mov word [ebp - 0x28], ax
call fcn.00403ab0
mov dl, byte [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00404f30
mov edx, dword [ebp - 0x14]
add esp, 4
mov bl, al
cmp edx, 8
jb 0x40510b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405101
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40512d
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
call fcn.004f855c
int3
Function at 0x407c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x407cb1
cmp byte [esi + 0x3d], 0
je 0x407cb1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x407c67
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407c79
sub eax, 1
je 0x407c7d
sub eax, 2
je 0x407cb1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407c9a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004fc618
add esp, 0x10
cmp edi, eax
jne 0x407c67
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004f313b
mov esp, ebp
pop ebp
ret
Function at 0x40c810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x40c826
mov edx, dword [edx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push 0
or eax, 0x2001b
push eax
push 0
push 0
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40c852
xor al, al
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x40c860
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x40c86b
mov edx, dword [edx]
push ebx
lea eax, [eax*2 + 2]
mov bl, 1
push eax
push ecx
push dword [ebp + 0x14]
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416a30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
xor ebx, ebx
mov esi, eax
mov cl, byte [ebp + 0xb]
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jle 0x416b8a
nop
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ebx
sub edx, eax
sub edx, 0
je 0x416b4d
sub edx, 1
je 0x416af4
sub edx, 1
jne 0x416b80
mov al, byte [edi]
shr al, 6
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x416a8c
add al, 0x41
jmp 0x416aa6
cmp al, 0x34
jae 0x416a94
add al, 0x47
jmp 0x416aa6
cmp al, 0x3e
jae 0x416a9c
sub al, 4
jmp 0x416aa6
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
cmp al, 0x1a
jae 0x416abd
add al, 0x41
mov byte [esi + 1], al
add esi, 2
jmp 0x416b7f
cmp al, 0x34
jae 0x416ace
add al, 0x47
mov byte [esi + 1], al
add esi, 2
jmp 0x416b7f
cmp al, 0x3e
jae 0x416adf
sub al, 4
mov byte [esi + 1], al
add esi, 2
jmp 0x416b7f
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi + 1], al
add esi, 2
jmp 0x416b7f
mov al, byte [edi]
shr al, 4
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x416b10
add al, 0x41
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x416b7f
cmp al, 0x34
jae 0x416b23
add al, 0x47
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x416b7f
cmp al, 0x3e
jae 0x416b36
sub al, 4
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x416b7f
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x416b7f
mov al, byte [edi]
shr al, 2
cmp al, 0x1a
jae 0x416b5a
add al, 0x41
jmp 0x416b74
cmp al, 0x34
jae 0x416b62
add al, 0x47
jmp 0x416b74
cmp al, 0x3e
jae 0x416b6a
sub al, 4
jmp 0x416b74
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 3
shl cl, 4
inc edi
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x416a50
mov ebx, dword [ebp + 8]
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
sub ebx, eax
je 0x416bdd
and cl, 0x3f
cmp cl, 0x1a
jae 0x416baf
add cl, 0x41
jmp 0x416bcd
cmp cl, 0x34
jae 0x416bb9
add cl, 0x47
jmp 0x416bcd
cmp cl, 0x3e
jae 0x416bc3
sub cl, 4
jmp 0x416bcd
setne cl
lea ecx, [ecx*4 + 0x2b]
mov byte [esi], cl
inc esi
cmp ebx, 1
jne 0x416bd9
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
sub esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004f53d0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x234], 0x11c
mov ecx, dword [eax]
mov eax, dword [0x54b408]
cmp eax, dword [ecx + 4]
jg 0x41bf56
mov eax, dword [0x54b40c]
test eax, eax
je 0x41bf32
lea ecx, [ebp - 0x234]
push ecx
call eax
test eax, eax
jne 0x41bf32
cmp dword [ebp - 0x230], 0xa
sete al
test al, al
jne 0x41bf32
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004f53d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41bf22
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x41bed4
cmp dword [ebp - 0x110], 1
jne 0x41bf22
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x41bf22
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x41bef6
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41bf0a
call fcn.0041bda0
mov ecx, 3
lea edx, [ecx + 0xa]
jmp 0x41bf41
cmp eax, 2
jne 0x41bf22
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.0041bda0
mov ecx, 5
mov edx, 0xf
test al, al
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
push 0x54b408
call fcn.004f2d66
add esp, 4
cmp dword [0x54b408], 0xffffffff
jne 0x41be4c
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54b408
mov dword [0x54b40c], eax
call fcn.004f2d1c
add esp, 4
jmp 0x41be4c
Function at 0x425560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cff4
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
lea esi, [ebx + 8]
mov dword [ebx], 0x53a5f4
mov byte [ebx + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
lea edi, [ebx + 0x38]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebx + 0x50], 0x53aa94
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0xf
mov byte [ebx + 0x58], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0xf
mov byte [ebx + 0x70], 0
mov dword [ebx + 0x54], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0040b010
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 0
je 0x425646
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x425652
lea eax, [ebp - 0x28]
push eax
call fcn.004044d0
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0xb
jb 0x425692
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x16
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0xb]
push str.config.dat
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004f4a40
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea esi, [ebx + 8]
lea edi, [ebx + 0x38]
jmp 0x4256aa
push 0xb
push str.config.dat
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
push 0xb
call fcn.00408630
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00409d70
add esp, 8
lea ecx, [ebx + 0x20]
push eax
call fcn.0040a340
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4256f3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4256e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425763
push edx
push ecx
call fcn.004f2ead
add esp, 8
push 5
push str.kantu
mov ecx, edi
call fcn.00409bb0
push 5
push str.kantu
mov ecx, esi
call fcn.00409bb0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x425745
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42573b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425768
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
call fcn.004f855c
int3
Function at 0x426060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d0e6
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.004f4060
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 4], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x4260ad
call fcn.004258b0
test al, al
je 0x42627c
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004f53d0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4260cb
mov esi, dword [esi]
cmp dword [edi + 0x4c], 0x10
lea eax, [edi + 0x38]
jb 0x4260d6
mov eax, dword [eax]
push esi
push eax
push str.SELECT__FROM__s_WHERE_key_s
lea eax, [ebp - 0x1010]
push 0x1000
push eax
call fcn.0040eb30
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1018], 0
add esp, 0x14
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426115
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x1028]
call fcn.00409bb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
lea eax, [ebp - 0x1038]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1028]
push eax
lea ecx, [edi + 0x50]
call fcn.00427da0
mov edi, dword [ebp - 0x1034]
mov eax, edi
mov esi, dword [ebp - 0x1038]
sub eax, esi
sub eax, 0xc
cmp eax, 0xc
jb 0x426196
xor bl, bl
jmp 0x4261c2
mov eax, dword [esi]
add eax, 0x18
cmp ebx, eax
je 0x4261c0
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x4261a9
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.00409bb0
mov edi, dword [ebp - 0x1034]
mov esi, dword [ebp - 0x1038]
mov bl, 1
test esi, esi
je 0x426244
cmp esi, edi
je 0x4261e4
nop word [eax + eax]
mov ecx, esi
call fcn.00426330
add esi, 0xc
cmp esi, edi
jne 0x4261d0
mov esi, dword [ebp - 0x1038]
mov ecx, dword [ebp - 0x1030]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x42621c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42629a
push ecx
push esi
call fcn.004f2ead
add esp, 8
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x42627a
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426270
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42629f
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret 8
call fcn.004f855c
call fcn.004f855c
int3
Function at 0x427090
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37cc
call fcn.004f4060
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x37cc], eax
xor edi, edi
nop word [eax + eax]
push edi
lea eax, [ebp - 0x108]
push str..PhysicalDrive_d
push eax
call fcn.00427a40
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x427283
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37c8], 0
push 0
push eax
mov dword [ebp - 0x37bc], 0
mov dword [ebp - 0x37c4], 0
mov dword [ebp - 0x37c0], 0
call fcn.004f53d0
add esp, 0xc
lea eax, [ebp - 0x37c8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c4]
push eax
push 0x2d1400
push esi
call ebx
test eax, eax
je 0x427276
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0xcc0]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00426f10
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0x8d8]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00426f10
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00426f10
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.00426f10
add esp, 0x20
cmp byte [0x54a4d0], 0
jne 0x42723d
movsx eax, byte [ebp - 0x4f0]
push eax
call fcn.004fd063
add esp, 4
test eax, eax
jne 0x427201
movsx eax, byte [ebp - 0x4dd]
push eax
call fcn.004fd063
add esp, 4
test eax, eax
je 0x42723d
lea eax, [ebp - 0x4f0]
push eax
push 0x400
push 0x54a4d0
call fcn.004fe504
add esp, 0xc
lea eax, [ebp - 0x8d8]
push eax
push 0x400
push 0x54aae0
call fcn.004fe504
add esp, 0xc
mov dword [ebp - 0x37cc], 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call fcn.004f53d0
add esp, 0xc
lea eax, [ebp - 0x37c8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
jmp 0x42727c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x4270c0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37cc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f313b
mov esp, ebp
pop ebp
ret
Function at 0x429ac0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x50], 0
je 0x429b31
cmp byte [esi + 0x60], 0
je 0x429b16
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
jb 0x429ade
mov eax, dword [eax]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x429b15
lea ecx, [esi + 0x64]
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp byte [esi + 0x59], 0
je 0x429b31
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
jb 0x429b27
mov eax, dword [eax]
push dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x431070
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x43109e
nop dword [eax + eax]
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x5383b0]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x431080
pop esi
ret

Function at 0x431110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov edx, ecx
push esi
push edi
mov dword [ebp - 4], edx
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x43116a
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x431151
nop
movzx eax, al
lea edi, [edi + 1]
movzx ecx, byte [eax + 0x5383b0]
lea eax, [esi*8]
xor ecx, eax
mov al, byte [edi]
xor esi, ecx
test al, al
jne 0x431130
mov ecx, dword [edx + 0xc]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
div dword [esi]
mov eax, edx
mov dword [ebp - 4], eax
mov esi, dword [ecx + eax*8 + 4]
mov edi, dword [ecx + eax*8]
mov ecx, edx
jmp 0x431172
mov esi, dword [edx + 8]
xor ecx, ecx
mov edi, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test edi, edi
je 0x431197
nop dword [eax + eax]
push ebx
push dword [esi + 0xc]
dec edi
call fcn.0042fb90
add esp, 8
test eax, eax
je 0x4311a0
mov esi, dword [esi]
test edi, edi
jne 0x431180
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4419c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x14], edx
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x441b2b
cmp byte [ebx + 9], 0
je 0x4419f8
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4419f8
call fcn.0043dfb0
mov eax, dword [ebx + 4]
mov esi, dword [eax + 8]
test esi, esi
je 0x441b18
cmp dword [ebp + 8], 0
je 0x441a4d
test byte [esi + 0x40], 1
jne 0x441a4d
mov al, byte [esi + 0x42]
cmp al, 1
je 0x441a21
cmp al, 2
jne 0x441abe
mov ecx, esi
call fcn.0043e1f0
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x441abe
mov ebx, dword [esp + 0x10]
mov edx, edi
push 0
mov ecx, ebx
call fcn.004419c0
add esp, 4
jmp 0x441b18
mov edi, dword [esi + 0x30]
test edi, edi
je 0x441aac
cmp dword [0x547ee0], 0
je 0x441aa2
mov eax, dword [0x54b238]
test eax, eax
je 0x441a70
push eax
call dword [0x547f34]
add esp, 4
push edi
call dword [0x547f10]
sub dword [0x54b0c0], eax
add esp, 4
dec dword [0x54b0e4]
push edi
call dword [0x547f08]
mov eax, dword [0x54b238]
add esp, 4
test eax, eax
je 0x441aac
push eax
call dword [0x547f3c]
jmp 0x441aa9
push edi
call dword [0x547f08]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 0x30], 0
mov byte [esi + 0x42], 4
mov dword [esi + 0x3c], eax
xor ebx, ebx
cmp byte [esi + 0x44], bl
jl 0x441b05
lea edi, [esi + 0x78]
mov ecx, dword [edi]
test ecx, ecx
je 0x441af3
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
je 0x441ae5
call fcn.00438df0
jmp 0x441aea
call fcn.004353d0
mov ecx, dword [esp + 0x1c]
call fcn.00439f70
mov dword [edi], 0
inc ebx
movsx eax, byte [esi + 0x44]
add edi, 4
cmp ebx, eax
jle 0x441ac8
mov esi, dword [esi + 8]
test esi, esi
jne 0x441a06
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp byte [ebx + 9], 0
je 0x441b2b
add dword [ebx + 0xc], 0xffffffff
jne 0x441b2b
mov ecx, ebx
call fcn.0043df70
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov al, byte [esi + 0x42]
cmp al, 1
je 0x442ee9
cmp al, 3
jb 0x442ebf
call fcn.0043e510
test eax, eax
jne 0x442fbc
cmp byte [esi + 0x42], 0
jne 0x442ed1
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x442ee9
mov byte [esi + 0x42], 1
mov dword [esi + 0x3c], 0
jg 0x442fba
movsx eax, byte [esi + 0x44]
mov edx, dword [esi + eax*4 + 0x78]
inc word [esi + eax*2 + 0x50]
mov ax, word [esi + eax*2 + 0x50]
mov cl, byte [edx + 5]
cmp ax, word [edx + 0x12]
jb 0x442fb2
test cl, cl
jne 0x442f32
movzx ecx, byte [edx + 6]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
mov ecx, esi
bswap edx
call fcn.004425d0
test eax, eax
jne 0x442fbc
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.00442780
mov cl, byte [esi + 0x44]
test cl, cl
je 0x442f8e
nop dword [eax]
and byte [esi + 0x40], 0xf9
xor eax, eax
mov word [esi + 0x24], ax
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x442f69
call fcn.00438df0
jmp 0x442f6e
call fcn.004353d0
mov ecx, edi
call fcn.00439f70
mov cl, byte [esi + 0x44]
movsx eax, cl
mov edx, dword [esi + eax*4 + 0x78]
mov ax, word [esi + eax*2 + 0x50]
cmp ax, word [edx + 0x12]
jb 0x442f9e
test cl, cl
jne 0x442f40
mov dword [ebx], 1
xor eax, eax
mov byte [esi + 0x42], 0
pop edi
pop esi
pop ebx
ret
cmp byte [edx + 2], 0
je 0x442fba
push ebx
push esi
call fcn.00442fc0
add esp, 8
pop edi
pop esi
pop ebx
ret
test cl, cl
je 0x442f28
xor eax, eax
pop edi
pop esi
pop ebx
ret