joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403be0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504768
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402570
mov edx, 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040c110
cmp dword [ebp - 0x18], 0
je 0x403cdd
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
je 0x403cdd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc7b4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push esi
call fcn.004e3139
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0x10
mov bl, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x18]
mov word [esi + eax*2 + 2], cx
mov eax, 0x414
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
test esi, esi
je 0x403cdf
push esi
call fcn.004dc7bd
add esp, 4
jmp 0x403cdf
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x403d15
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403d0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d32
push edx
push ecx
call fcn.004dc783
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.004dc214
mov esp, ebp
pop ebp
ret
call fcn.004e2bf9
int3
Function at 0x4068d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x406971
cmp byte [esi + 0x3d], 0
je 0x406971
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406927
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 0x406939
sub eax, 1
je 0x40693d
sub eax, 2
je 0x406971
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40695a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e3ef9
add esp, 0x10
cmp edi, eax
jne 0x406927
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004dc214
mov esp, ebp
pop ebp
ret
Function at 0x409580
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d3b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x460
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], edx
mov esi, ecx
mov dword [ebp - 0x470], esi
xor eax, eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4096c0
lea eax, [ebp - 0x468]
mov dword [ebp - 0x468], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4096b9
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40968e
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x460]
je 0x409673
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409651
jmp 0x40968e
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004e3139
add esp, 0xc
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409697
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402710
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x468], edi
cmp dword [esi + 0x10], edi
je 0x40977f
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x45c], eax
cmp eax, 0xffffffff
je 0x40977f
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x458], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409792
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40992f
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4097ba
mov eax, dword [esi]
lea ecx, [ebp - 0x434]
push ecx
push eax
call fcn.004e319d
add esp, 8
test eax, eax
jne 0x40990e
cmp dword [ebx + 0x10], eax
je 0x40994e
push dword [ebp - 0x450]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40990e
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x40990e
xor eax, eax
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409850
sub eax, edx
lea ecx, [ebp - 0x228]
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00402710
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40987c
mov eax, dword [ebx]
mov edx, dword [ebp - 0x460]
lea ecx, [ebp - 0x228]
mov ebx, dword [ebp - 0x214]
cmp ebx, 8
mov esi, dword [ebp - 0x228]
cmovae ecx, esi
push dword [edx + 0x10]
mov edx, dword [ebp - 0x218]
push eax
push 0
call fcn.00402bf0
add esp, 0xc
mov dword [ebp - 0x46c], eax
cmp ebx, 8
jb 0x4098ea
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4098da
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409956
push ecx
push esi
call fcn.004dc783
mov eax, dword [ebp - 0x46c]
add esp, 8
cmp eax, 0xffffffff
je 0x409902
mov eax, dword [ebp - 0x450]
push edi
mov dword [ebp - 0x468], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x464]
mov ebx, dword [ebp - 0x460]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4097b0
mov edi, dword [ebp - 0x468]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dc214
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x450]
jmp 0x40992f
call fcn.004e2bf9
int3
Function at 0x409a00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d94
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x52d324]
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
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x484], esi
cmp esi, 0xffffffff
je 0x409a6b
lea eax, [ebp - 0x480]
mov dword [ebp - 0x480], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409a72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x409c3c
cmp dword [ebp - 0x478], 0xa
jb 0x409c1d
xor eax, eax
mov dword [ebp - 0x250], 0
push eax
push 0x51e7c4
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00402710
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x51e7c4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00402710
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x45c]
mov eax, dword [ebp - 0x478]
lea edx, [ecx + 2]
mov dword [ebp - 0x24c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b12
sub ecx, edx
lea eax, [ebp - 0x45c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402710
push dword [ebp - 0x478]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409bae
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x409ba7
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b85
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402710
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 4]
cmp dword [edi + 8], esi
je 0x409bf5
mov eax, dword [ebp - 0x250]
lea ecx, [esi + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 4], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x488], esi
call fcn.00402570
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.00402570
add dword [edi + 4], 0x38
jmp 0x409c04
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
push esi
call fcn.00409f70
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0xffffffff
inc ebx
call fcn.00409960
mov esi, dword [ebp - 0x484]
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409a72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004dc214
mov esp, ebp
pop ebp
ret
Function at 0x409c60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x43c], edi
mov esi, dword [edx]
test esi, esi
jne 0x409c91
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.004df150
add esp, 0xc
mov dword [ebp - 0x440], 0x104
xor eax, eax
mov dword [ebp - 0x43c], 0x104
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
push 0x10
push str.SeDebugPrivilege
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
call fcn.00402710
lea ecx, [ebp - 0x430]
call fcn.00409e80
mov edx, dword [ebp - 0x41c]
cmp edx, 8
jb 0x409d5f
mov ecx, dword [ebp - 0x430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409d55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e70
push edx
push ecx
call fcn.004dc783
add esp, 8
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x409e23
lea ecx, [ebp - 0x438]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409e23
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x434]
push 0
push 1
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x409db9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409e23
push dword [ebp - 0x434]
call fcn.004e6fbc
mov esi, eax
add esp, 4
test esi, esi
je 0x409e23
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x434]
push esi
push 1
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x409e1a
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.004e2a1e
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x210]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e40
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402710
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004dc214
mov esp, ebp
pop ebp
ret
call fcn.004e2bf9
int3
Function at 0x40dbb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004df150
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x234], 0x11c
mov ecx, dword [eax]
mov eax, dword [0x530ff8]
cmp eax, dword [ecx + 4]
jle 0x40dc37
push 0x530ff8
call fcn.004dc3e2
add esp, 4
cmp dword [0x530ff8], 0xffffffff
jne 0x40dc37
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x530ff8
mov dword [0x530ffc], eax
call fcn.004dc398
add esp, 4
mov eax, dword [0x530ffc]
test eax, eax
je 0x40dd1d
lea ecx, [ebp - 0x234]
push ecx
call eax
test eax, eax
jne 0x40dd1d
cmp dword [ebp - 0x230], 0xa
sete al
test al, al
jne 0x40dd1d
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004df150
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 0x40dd0d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x40dcbf
cmp dword [ebp - 0x110], 1
jne 0x40dd0d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x40dd0d
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x40dce1
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40dcf5
call fcn.0040db50
mov ecx, 3
lea edx, [ecx + 0xa]
jmp 0x40dd2c
cmp eax, 2
jne 0x40dd0d
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret
call fcn.0040db50
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.004dc214
mov esp, ebp
pop ebp
ret
Function at 0x416f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp dword [edx + 0x14], 8
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
jb 0x416f6d
mov edx, dword [edx]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416f9e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebx], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jb 0x416fc0
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x416fe5
test eax, eax
jne 0x41710e
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc7b4
mov ecx, dword [ebp - 0x28]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x41701a
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x34]
cmp dword [esi + 0x14], 8
jb 0x417022
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417101
cmp dword [ebp - 0x2c], 1
jne 0x41706d
mov edx, ebx
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417050
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push ebx
call fcn.00402710
jmp 0x4170f5
mov eax, dword [ebp - 0x2c]
cmp eax, 7
je 0x41707a
cmp eax, 2
jne 0x4170f5
xor eax, eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], 7
shr eax, 1
push eax
push ebx
call fcn.00402710
lea eax, [ebp - 0x20]
cmp edi, eax
je 0x4170bf
mov ecx, edi
call fcn.00402480
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
jmp 0x4170f5
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x4170f5
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4170eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41712d
push edx
push ecx
call fcn.004dc783
add esp, 8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x21], 1
mov dword [ecx], eax
test ebx, ebx
je 0x41710e
push ebx
call fcn.004dc7bd
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dc214
mov esp, ebp
pop ebp
ret 0x14
call fcn.004e2bf9
int3
Function at 0x417140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x417156
mov eax, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2011b
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41717e
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 0x41718c
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x417197
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 0x417ec0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37cc
call fcn.004dd480
mov eax, dword [0x52d324]
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.00418870
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 0x4180b3
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.004df150
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 0x4180a6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0xcc0]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00417d40
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0x8d8]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00417d40
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push 0
lea ecx, [ebp - 0x37b8]
call fcn.00417d40
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.00417d40
add esp, 0x20
cmp byte [0x530090], 0
jne 0x41806d
movsx eax, byte [ebp - 0x4f0]
push eax
call fcn.004e711d
add esp, 4
test eax, eax
jne 0x418031
movsx eax, byte [ebp - 0x4dd]
push eax
call fcn.004e711d
add esp, 4
test eax, eax
je 0x41806d
lea eax, [ebp - 0x4f0]
push eax
push 0x400
push 0x530090
call fcn.004e787e
add esp, 0xc
lea eax, [ebp - 0x8d8]
push eax
push 0x400
push 0x5306a0
call fcn.004e787e
add esp, 0xc
mov dword [ebp - 0x37cc], 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call fcn.004df150
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 0x4180ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x417ef0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37cc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dc214
mov esp, ebp
pop ebp
ret