joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d186
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push str.LogicLetter
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
call ebp
xor ecx, ecx
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x40d186
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d1f0
xor eax, eax
mov word [esi + 4], ax
mov eax, edi
pop edi
mov edx, 0x3a
pop ebp
mov word [esi + 2], dx
pop ebx
add esp, 8
ret
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40d1f0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push edi
push edi
push str.LogicLetter
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call ebp
xor edx, edx
test edi, edi
sete dl
mov edi, edx
test edi, edi
je 0x40d1f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d1f0
mov eax, 0x3a
xor ecx, ecx
mov word [esi + 2], ax
mov word [esi + 4], cx
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40d200
Capabilities:
Delete registry value

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push eax
push 0x20007
push 0
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d23d
mov ebx, str.LogicLetter
xor esi, esi
call fcn.00404d10
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 8]
push str.LogicLetter
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ebx, str.LogicLetter
mov esi, eax
call fcn.00404d10
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x40e24a
Capabilities:
Set file attributes

Disassembly:
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x40e268
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x40ec04
Capabilities:
Set file attributes

Disassembly:
cmp ebx, 0xffffffff
je 0x40ec10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x40ec27
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp + 0x2200]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x410cbd
Capabilities:
Delete file

Disassembly:
mov eax, dword [ebp + 4]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x410ce4
push eax
call esi
cmp dword [ebp + 0x1c], 0
je 0x410ce4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp], 0
jne 0x410cf4
push 0
call fcn.004b305a
add esp, 4
ret

Function at 0x411990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 4
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4119c8
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.ImportStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x4120a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5433e2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5954a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x5675c8
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00413460
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.004144a0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5a22cc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x28]
push 0x22
mov byte [esp + 0x20], 2
call fcn.00413940
test eax, eax
jne 0x4121a0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x41218f
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4121a0
push ebx
call fcn.0040c480
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x4144a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x542dfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5954a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00537d87
push 4
mov dword [esp + 0x20], 0
call fcn.004b3015
mov edi, eax
add esp, 4
test edi, edi
je 0x41451e
call fcn.00537a75
mov dword [edi], eax
call fcn.0053786e
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00537cc8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414513
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00537cf0
jmp 0x414520
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x415660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push ebp
call fcn.004b3015
mov edi, eax
add esp, 4
test edi, edi
jne 0x41567a
pop edi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x4156c3
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call fcn.004b3044
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x416460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5954a0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
lea edi, [esp + 0x34]
call fcn.00418270
mov ecx, dword [esp + 0x220]
mov edi, dword [esp + 0x214]
mov ebp, dword [esp + 0x21c]
shr ebx, 4
mov eax, ebx
mov ebx, dword [esp + 0x218]
mov dword [esp + 0x30], ecx
test eax, eax
jbe 0x416520
mov dword [esp + 0x10], eax
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00418920
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor dword [esp + 0x24], ebp
mov ebp, dword [esi + 8]
xor dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
xor eax, edi
mov edi, dword [esi]
xor ecx, ebx
mov ebx, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 8
add esi, 0x40
sub dword [esp + 0x10], 1
mov dword [esp + 0x30], edx
jne 0x4164c0
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8124
add esp, 0x21c
ret

Function at 0x416540
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
mov eax, dword [0x5954a0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push edi
lea edi, [esp + 0x20]
call fcn.00418270
mov eax, dword [esp + 0x200]
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x208]
mov edi, dword [esp + 0x20c]
shr esi, 4
mov ebx, esi
test ebx, ebx
jbe 0x4165e7
lea esi, [ebp + 8]
xor eax, dword [esi - 8]
xor ecx, dword [esi - 4]
xor edx, dword [esi]
xor edi, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
call fcn.00418340
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
add esp, 8
add esi, 0x10
sub ebx, 1
jne 0x416597
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8124
add esp, 0x208
ret
Function at 0x417990
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x5a2220], 0
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, edx
je 0x417a98
test eax, eax
je 0x417a98
push esi
mov esi, dword [0x5a2228]
xor edx, edx
div esi
test edx, edx
jne 0x417a97
push ebp
cmp ecx, 1
jne 0x417a1c
mov ebp, edi
test eax, eax
jbe 0x417a96
sub ebx, edi
mov dword [esp + 0x10], eax
lea edi, [ebx + ebp]
push edi
mov ecx, ebp
call fcn.00417610
add esp, 4
xor ecx, ecx
mov eax, edi
test esi, esi
jle 0x4179fe
lea ecx, [ecx]
mov dl, byte [ecx + 0x5a0874]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, esi
jl 0x4179f0
push esi
push ebp
push 0x5a0874
call fcn.004f8140
add esp, 0xc
add ebp, esi
sub dword [esp + 0x10], 1
jne 0x4179d7
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
cmp ecx, 2
jne 0x417a79
test eax, eax
jbe 0x417a96
mov ebp, ebx
sub ebp, edi
mov dword [esp + 0x10], eax
lea ecx, [ecx]
lea ebx, [edi + ebp]
push ebx
mov ecx, 0x5a0874
call fcn.00417390
add esp, 4
xor ecx, ecx
mov eax, ebx
test esi, esi
jle 0x417a5b
lea esp, [esp]
mov dl, byte [ecx + edi]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, esi
jl 0x417a50
push esi
push edi
push 0x5a0874
call fcn.004f8140
add esp, 0xc
add edi, esi
sub dword [esp + 0x10], 1
jne 0x417a30
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
test eax, eax
jbe 0x417a96
sub ebx, edi
mov ebp, eax
lea eax, [ebx + edi]
push eax
mov ecx, edi
call fcn.00417610
add esp, 4
add edi, esi
sub ebp, 1
jne 0x417a81
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret

Function at 0x417b00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [eax + 4]
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [eax]
test ebp, ebp
jbe 0x417b47
push ebx
push esi
inc cl
movzx esi, cl
mov bl, byte [eax + esi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + esi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [edi], cl
inc edi
sub ebp, 1
mov dword [esp + 0x14], esi
mov ecx, esi
jne 0x417b13
pop esi
pop ebx
pop edi
mov dword [eax + 4], edx
mov dword [eax], ecx
pop ebp
ret
Function at 0x418040
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
call fcn.00417b50
lea edi, [eax*4]
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x4180a5
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x418064
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x418260
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x56a660]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56ae60]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56aa60]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x56b260]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x56a660]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56ae60]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56aa60]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x56b260]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x56a660]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56ae60]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56aa60]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x56b260]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x56a660]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56ae60]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56aa60]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x56b260]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x4180b1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43a8e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push esi
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43a924
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov esi, eax
call fcn.004ff09d
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
add esp, 0x10
ret

Function at 0x43a940
Capabilities:
Get volume information via ioctl

Disassembly:
sub esp, 0x68
push esi
push 0
lea eax, [esp + 8]
push eax
push 0x60
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x90064
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43a984
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov esi, eax
call fcn.004ff09d
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push eax
push ecx
push 0
push edx
call fcn.004f8720
pop esi
add esp, 0x68
ret

Function at 0x43ab40
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x43ab6b
sub eax, 1
je 0x43ab64
sub eax, 1
je 0x43ab5d
xor eax, eax
jmp 0x43ab70
mov eax, 3
jmp 0x43ab70
mov eax, 2
jmp 0x43ab70
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x43aba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov esi, eax
call fcn.004ff09d
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x43abda
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov edi, eax
call fcn.004ff09d
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x43abee
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.004f8720
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x43ab4a
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x43ab6b
sub eax, 1
je 0x43ab64
sub eax, 1
je 0x43ab5d
xor eax, eax
jmp 0x43ab70
mov eax, 3
jmp 0x43ab70
mov eax, 2
jmp 0x43ab70
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x43aba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov esi, eax
call fcn.004ff09d
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x43abda
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0043a520
mov edi, eax
call fcn.004ff09d
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x43abee
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.004f8720
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x44a2e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp + 0x10]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov cl, 0x20
call fcn.004f84b0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
and eax, 0
mov dword [ebp - 0x18], edx
movzx ecx, word [ebp + 0xc]
sub ecx, 0x80
push ecx
push str..PHYSICALDRIVE_d
push 0x80
lea edx, [ebp - 0xa0]
push edx
call fcn.0044aa20
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x44a375
xor eax, eax
jmp 0x44a44a
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xac], edx
movzx eax, word [ebp + 8]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 3
je 0x44a3af
cmp dword [ebp - 0xc0], 4
je 0x44a3ee
jmp 0x44a42d
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x44a3ec
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44a44a
jmp 0x44a43b
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x44a42b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44a44a
jmp 0x44a43b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44a44a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44b7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44b7dd
xor eax, eax
jmp 0x44b80f
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 0x18

Function at 0x44b820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44b85e
mov eax, dword [ebp - 4]
jmp 0x44b88a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x18