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

Disassembly:
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [esp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [esp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x463624
pop esi
ret

Function at 0x463659
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x100
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x463667
pop edi
pop esi
pop ebp
ret

Function at 0x46375f
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x46379f
push ebx
push edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx edi, word [edi + edx*2]
shr dword [esp + 0x14], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x46376d
pop edi
pop ebx
pop esi
ret
Function at 0x4650e7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor edx, edx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], edx
mov dword [esi + 0x3bcd0], edx
push ebx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], edx
lea eax, [ecx + 0x70]
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 8
mov ebx, edi
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr edi, 1
xor edi, ebx
dec dword [ebp - 8]
jne 0x465134
inc dword [ebp - 4]
mov dword [eax], edi
add eax, 4
cmp dword [ebp - 4], 0x100
jb 0x46512a
mov dword [esi + 0x118], edx
lea eax, [esi + 0x148]
mov dword [eax], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [esi + 0x198], ecx
call fcn.00463239
mov ebx, esi
call fcn.0046333c
push 2
pop edi
mov byte [esi + 0x306a0], 0
mov byte [esi + 0x306a1], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
xor ebx, ebx
sar ecx, 1
dec ecx
inc ebx
shl ebx, cl
test ebx, ebx
jbe 0x4651eb
push ebx
push dword [ebp - 4]
lea eax, [edi + esi + 0x306a0]
push eax
call fcn.0049cee0
add esp, 0xc
add edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jl 0x4651c6
push 8
pop edi
mov edx, 0x10000
push 4
mov eax, edi
xor ecx, ecx
pop ebx
imul eax, eax
add ecx, ecx
jmp 0x46520d
shr eax, 1
inc ecx
cmp eax, edx
jae 0x46520a
dec ebx
jne 0x465203
mov eax, 0xa1
sub eax, ecx
mov ecx, edi
shr ecx, 4
add edi, 0x10
cmp edi, 0x800
mov dword [esi + ecx*4 + 0x30ea0], eax
jb 0x4651fc
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop ebx
leave
ret

Function at 0x465c73
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004a162a
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x465c9c
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x465ca7
inc eax
leave
ret
Function at 0x4692c5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x596d91
call fcn.00596170
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x10
mov dword [esi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], al
lea eax, [esi + 0x30]
mov dword [esi + 0x28], 1
call fcn.0045b2df
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x471e7f
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x597794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x258]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0xc]
add edi, 0x1c8
push eax
call fcn.0045e195
push 0xe
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.00471dfb
pop ecx
push 0xf
lea ecx, [esp + 0x10]
call fcn.00471dfb
pop ecx
push 0x11
push esi
lea edi, [esp + 0x14]
call fcn.00471db7
push 0x10
push esi
call fcn.00471db7
push 9
push esi
call fcn.00471db7
push 6
push esi
call fcn.00471db7
push 0x12
push esi
call fcn.00471db7
push 0x14
push esi
call fcn.00471db7
push 0x13
push esi
call fcn.00471db7
push 0x15
push esi
call fcn.00471db7
add esp, 0x40
push 0xa
push esi
call fcn.00471db7
push 0x16
push esi
call fcn.00471db7
add esp, 0x10
mov eax, esi
call fcn.0045e42c
push ebx
push 0x61
call fcn.0046a84e
push ebx
push 0x62
call fcn.0046a84e
push ebx
push 0x63
call fcn.0046a84e
push 0x14
mov eax, esi
call fcn.00471e31
pop ecx
push 6
mov eax, esi
call fcn.00471e31
pop ecx
push 9
mov eax, esi
call fcn.00471e31
pop ecx
push 0x11
mov eax, esi
call fcn.00471e31
or dword [esp + 0x30], 0xffffffff
pop ecx
mov ecx, edi
call fcn.00465e43
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4759ba
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5998aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x61c924]
push ebx
push esi
push edi
mov ecx, 0x61c924
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
and dword [esp + 0x50], 0
lea ebx, [edi + 8]
push ebx
mov dword [esp + 0x28], ebx
call fcn.00432365
mov esi, ebx
call fcn.00476920
push dword [ebx]
call fcn.004769ae
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
add edi, 0x1c
pop ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x30], 0
mov esi, dword [edi + 4]
je 0x475a3a
cmp dword [esp + 0x30], edi
je 0x475a3f
call fcn.0049dfe4
cmp dword [esp + 0x34], esi
je 0x475b4f
lea esi, [esp + 0x30]
call fcn.00477032
mov dword [esp + 0x14], eax
call fcn.00477032
mov esi, eax
push 0x5ea0c0
push dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x2c], esi
call fcn.0041bc99
test eax, eax
je 0x475ab5
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00414c1b
pop ecx
pop ecx
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 1
call fcn.004013bf
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
push dword [esp + 0x10]
call fcn.004769ae
mov edi, dword [esp + 0x1c]
pop ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
je 0x475ad6
cmp dword [esp + 0x28], esi
je 0x475adb
call fcn.0049dfe4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], eax
je 0x475b41
cmp dword [esp + 0x28], 0
jne 0x475af1
call fcn.0049dfe4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 4]
jne 0x475b03
call fcn.0049dfe4
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 8]
push dword [ebx]
mov ebx, esi
call fcn.004762f7
test eax, eax
jne 0x475b2a
push dword [esi]
mov esi, 0x6206d8
push str.ExtractMemoryFiles_WriteFile_fail__path:_ws
call fcn.00488528
pop ecx
pop ecx
lea esi, [esp + 0x28]
call fcn.004779eb
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
jmp 0x475ac2
lea esi, [esp + 0x30]
call fcn.0044e627
jmp 0x475a2a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x475ee8
Capabilities:
Copy file

Disassembly:
mov eax, 0x599834
call fcn.00596170
mov eax, dword [ebx + 0x14]
sub esp, 0x14
cmp eax, 0xffffffff
push esi
push edi
je 0x47603e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x18]
lea ecx, [ebx + 8]
push eax
call fcn.00414c1b
pop ecx
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00476a4e
test eax, eax
je 0x476033
mov eax, dword [0x61c924]
mov esi, 0x61c924
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x61c924]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00476af2
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004013bf
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00476b9c
pop ecx
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004013bf
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00414c1b
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
test esi, esi
mov edi, dword [ebp - 0x10]
je 0x476020
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.00401367
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00414c1b
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 4], 7
call fcn.00476bf5
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [edi - 0x10]
call fcn.004011c0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
or dword [ebx + 0x14], 0xffffffff
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4765b7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
jne 0x4765fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
push eax
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
jmp 0x47672f
mov edi, dword [ebp + 8]
push ebx
push dword [edi + 4]
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp esi, ebx
mov dword [ebp - 8], eax
jne 0x47662a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x476652
push dword [edi + 4]
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x476664
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x6206d8
call fcn.00488528
add esp, 0xc
jmp 0x4766f0
lea ebx, [edi + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebx + 4]
je 0x476683
cmp dword [ebp - 0x18], ebx
je 0x476688
call fcn.0049dfe4
cmp dword [ebp - 0x14], esi
je 0x4766de
lea esi, [ebp - 0x18]
call fcn.00477052
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4766a2
xor eax, eax
jmp 0x4766a7
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0044b75a
push eax
push dword [ebp - 4]
call fcn.0049f720
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x4766c6
xor esi, esi
jmp 0x4766cb
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.00477072
mov edi, dword [ebp + 8]
jmp 0x476675
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x476700
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x47673c
push dword [ebp + 0xc]
mov eax, edi
call fcn.00476746
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x47673c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0xc]
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
mov esi, 0x6206d8
call fcn.00488528
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x476746
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
mov esi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x476797
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x6206d8
call fcn.00488528
add esp, 0xc
jmp 0x4768c4
push edi
push dword [esi + 4]
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
jne 0x4767d1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x6206d8
call fcn.00488528
add esp, 0xc
jmp 0x4768af
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x476809
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x6206d8
call fcn.00488528
add esp, 0xc
jmp 0x4768a1
lea ebx, [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
mov esi, dword [ebx + 4]
je 0x476827
cmp dword [ebp - 0x20], ebx
je 0x47682c
call fcn.0049dfe4
cmp dword [ebp - 0x1c], esi
je 0x47689a
lea esi, [ebp - 0x20]
call fcn.00477052
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x476846
xor eax, eax
jmp 0x47684b
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0044b75a
push eax
push dword [ebp - 8]
call fcn.0049fda4
add esp, 0xc
test eax, eax
jne 0x476884
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x47686d
xor esi, esi
jmp 0x476872
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.00477072
xor edi, edi
jmp 0x47681a
push dword [ebp + 8]
mov esi, 0x6206d8
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.00488528
pop ecx
pop ecx
jmp 0x4768a1
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x4768af
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4768bf
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47695d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x476994
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x4769a0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x476981
jmp 0x4769a7
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x4769ae
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x599846
call fcn.00596170
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043238b
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4769f9
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4769da
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4769da
lea ecx, [ebp - 0x10]
call fcn.004768ce
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x476a30
xor esi, esi
jmp 0x4769dd
push eax
call fcn.004769ae
test eax, eax
pop ecx
je 0x476a2c
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4769da
call edi
cmp eax, ebx
jne 0x476a2c
jmp 0x4769da

Function at 0x476af2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
test byte [0x620ab0], 1
jne 0x476b2f
mov eax, dword [0x61c924]
or dword [0x620ab0], 1
mov ecx, 0x61c924
call dword [eax + 0xc]
add eax, 0x10
push 0x59d470
mov dword [0x620aac], eax
call fcn.0049c9ee
pop ecx
mov eax, dword [0x620aac]
cmp dword [eax - 0xc], 0
jne 0x476b8b
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x476b86
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049cde3
pop ecx
lea ecx, [ebp - 0x20c]
mov ebx, eax
mov esi, 0x620aac
push ecx
mov eax, esi
call fcn.00401400
call fcn.00476920
push str.drivers_
push esi
call fcn.004320b6
pop esi
pop ebx
mov eax, dword [0x620aac]
add eax, 0xfffffff0
call fcn.00401367
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x4783d7
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4783ea
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x478892
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x4788c1
test esi, esi
jbe 0x4788c1
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x4788b0
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x4788a4
shl eax, 2
jmp 0x4788ba
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x4788b5
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x478db6
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.004b6ad0
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x120]
push str..PhysicalDrive_d
push eax
call fcn.0047918a
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x478f55
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0049cee0
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0049cee0
add esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x478f46
mov eax, dword [ebp - 0x37c4]
push ebx
lea esi, [ebp - 0xcd8]
lea ecx, [ebp - 0x37d0]
call fcn.00478c72
mov eax, dword [ebp - 0x37c0]
push ebx
lea esi, [ebp - 0x8f0]
lea ecx, [ebp - 0x37d0]
call fcn.00478c72
mov eax, dword [ebp - 0x37bc]
push ebx
lea esi, [ebp - 0x10c0]
lea ecx, [ebp - 0x37d0]
call fcn.00478c72
mov eax, dword [ebp - 0x37b8]
push 1
lea esi, [ebp - 0x508]
lea ecx, [ebp - 0x37d0]
call fcn.00478c72
add esp, 0x10
cmp byte [0x61fe00], bl
jne 0x478f16
movsx eax, byte [ebp - 0x508]
push eax
call fcn.004a230f
test eax, eax
pop ecx
jne 0x478eea
movsx eax, byte [ebp - 0x4f5]
push eax
call fcn.004a230f
test eax, eax
pop ecx
je 0x478f16
lea eax, [ebp - 0x508]
push eax
push 0x61fe00
call fcn.004791a5
lea eax, [ebp - 0x8f0]
push eax
push 0x620200
call fcn.004791a5
add esp, 0x10
mov dword [ebp - 0x10], 1
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
call fcn.0049cee0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x478f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x478dd3
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret