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

Disassembly:
mov eax, 0x462ceb
call fcn.0043b400
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
test byte [ebp + 0xf], 0x80
push 1
mov eax, 0x20019
pop esi
mov dword [ebp - 4], esi
je 0x424113
and byte [ebp + 0xf], 0x7f
mov eax, 0x20119
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push 0x479128
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42415a
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, 0x479118
je 0x424143
mov eax, 0x479108
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x468098
mov esi, 0x468090
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00401712
push 0x4763ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004241d9
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00401b15
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401279
cmp dword [ebp - 0x10], 0
je 0x4241c8
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4241c8
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x424800
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x462e04
call fcn.0043b400
sub esp, 0x144
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
je 0x42487c
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 4], 0
lea eax, [ebp - 0x150]
push eax
call fcn.0040bbda
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42487c
push ebx
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.0040bbda
mov ecx, esi
mov ebx, eax
call fcn.0040bbda
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, esi
call fcn.0040bbda
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
test eax, eax
je 0x42487c
push edi
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x424bd5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
je 0x424c6e
push edi
call fcn.0043cd86
push edi
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.0043c580
add esp, 0x10
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x424c65
lea eax, [ebp - 0x3c]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0043c580
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 8]
push eax
push 0x476c60
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x424c65
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.0043cc9d
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x4275ae
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4276e1
cmp byte [ebp + 0xc], bl
jne 0x42762a
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4276e1
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4276d3
call fcn.0043ba30
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0042805b
push dword [ebp + 0xc]
jmp 0x4276be
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4276e1
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4276d0
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x427672
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x42767b
xor esi, esi
jmp 0x4276ac
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0043afe0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.0043ba30
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0042805b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4276e3
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x427e55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x427ec4
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x427ea7
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x427ea7
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x427ea7
mov byte [ebp - 1], 1
jmp 0x427ec4
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x427ec4
cmp byte [ebp - 1], bl
jne 0x427ec4
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x427eae
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x42972f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x429743
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x429777
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00437c80
test al, al
jne 0x4297aa
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413bb6
lea eax, [ebp - 0x4c]
push 0x46c758
push eax
call fcn.0043bb6a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4297aa
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413876
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x429b71
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x429b8d
mov ecx, esi
call fcn.00429b91
pop esi
ret 4

Function at 0x42a723
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46349d
call fcn.0043b400
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ebx, 0x467548
and dword [esi], 0
mov dword [esi + 4], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0xd]
mov edi, 0x467550
push 0
push eax
mov dword [ebp - 0x14], esi
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aa0
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
lea eax, [ebp - 0xe]
push 0
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aa0
lea ecx, [esi + 0x58]
lea eax, [ebp - 0xd]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aa0
lea ecx, [esi + 0x80]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aa0
lea ecx, [esi + 0xa8]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 3
mov dword [ecx], ebx
xor ebx, ebx
push ebx
push eax
mov dword [ecx + 0x20], edi
call fcn.00401aa0
mov eax, dword [ebp + 8]
and byte [esi + 0xd8], bl
mov byte [ebp - 4], 4
lea edi, [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00406791
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], eax
call fcn.00401279
cmp dword [ebp + 8], ebx
setne al
mov byte [esi + 0xd9], al
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
push esi
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 6
call fcn.0042a85d
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 0x2c]
mov al, byte [eax + 0x16]
lea ecx, [esi + 0x154]
push eax
push esi
call fcn.0042a994
push esi
lea ecx, [esi + 0x1c4]
mov byte [ebp - 4], 8
call fcn.0042aa0d
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x230], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42c706
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x46381e
call fcn.0043b400
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x42c758
lea ecx, [ebp + 8]
call fcn.00419439
test al, al
je 0x42c758
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.004016e8
call fcn.0042c9bb
add esp, 0x2c
mov bl, al
jmp 0x42c8d5
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x467548
mov dword [ecx + 0x20], 0x467550
call fcn.00401b15
call fcn.0042f6f5
add esp, 0x28
cmp eax, 0xffffffff
je 0x42c7a5
test bl, 4
je 0x42c78d
test al, 0x10
je 0x42c79e
test bl, 8
je 0x42c8d3
test al, 0x10
je 0x42c8d3
mov bl, 1
jmp 0x42c8d5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x42c8e5
cmp esi, 3
je 0x42c8e5
push 1
cmp esi, 5
pop ebx
jne 0x42c85a
lea ecx, [ebp - 0x100]
call fcn.0042c92c
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.004016e8
call fcn.0042f629
add esp, 0x2c
cmp eax, 0xffffffff
je 0x42c847
test byte [ebp + 0x30], 4
je 0x42c815
test byte [ebp - 0x100], 0x10
je 0x42c826
test byte [ebp + 0x30], 8
je 0x42c824
test byte [ebp - 0x100], 0x10
jne 0x42c826
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x42c833
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042c985
jmp 0x42c8d5
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0042c985
test byte [ebp + 0x30], 0x20
je 0x42c8d3
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x467578
mov dword [ebp - 0x1c], 0x467570
call fcn.00401b15
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x467f30
call fcn.00413b5e
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042c902
mov eax, dword [ebp - 0x84]
push 0x46c620
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], 0x467f28
lea eax, [ebp - 0x84]
push eax
call fcn.0043bb6a
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401279
mov al, bl
jmp 0x42c8f3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401279
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42da44
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x42dabf
cmp dword [ebp - 0x8c], 0
je 0x42dab7
cmp dword [ebp - 0x8c], 0xa
je 0x42daa2
cmp dword [ebp - 0x8c], 0x5a
je 0x42daab
xor al, al
mov dword [esi], 0x80
jmp 0x42db30
call fcn.0042df88
test al, al
je 0x42daaf
mov al, 1
jmp 0x42da97
mov dword [esi], 0x40
jmp 0x42db19
mov dword [esi], 0x10
jmp 0x42db19
cmp dword [ebp - 0x84], 2
jne 0x42db2e
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x42db26
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x42dae9
dec eax
je 0x42db0f
xor al, al
mov dword [esi], 0x2000000
jmp 0x42db30
test ecx, ecx
jne 0x42daf5
mov dword [esi], 0x100000
jmp 0x42db19
cmp ecx, 1
jne 0x42db02
mov dword [esi], 0x400000
jmp 0x42db19
cmp ecx, 2
jne 0x42db0f
mov dword [esi], 0x800000
jmp 0x42db19
test ecx, ecx
jne 0x42db1d
mov dword [esi], 0x1000000
mov al, 1
jmp 0x42db30
cmp ecx, 1
jne 0x42dadf
mov al, cl
jmp 0x42dae1
mov dword [esi], 0x10000
jmp 0x42db19
xor al, al
pop esi
leave
ret

Function at 0x42de7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x478f20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42deac
push 0x478f04
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42deac
call eax
jmp 0x42df83
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push 0x479564
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x42def8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x47d774
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42df59
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x47953c
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x42df2d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x479534
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42df41
cmp esi, ebx
je 0x42df41
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x42df61
cmp dword [ebp - 4], ebx
je 0x42df53
cmp esi, ebx
je 0x42df53
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x42df83
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0043d608
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42df80
cmp esi, ebx
je 0x42df80
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ed14
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463ca4
call fcn.0043b400
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0041c0b8
mov edi, eax
cmp edi, esi
je 0x42ed5e
cmp dword [ebp - 0x10], esi
je 0x42ed57
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42edfb
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42edcf
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042ed14
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x42edbc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42ed81
cmp dword [ebp - 0x10], esi
je 0x42edca
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x42edfb
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42ede2
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x42edf9
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42ee0c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x463cd0
call fcn.0043b400
sub esp, 0x40
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f3e
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c0b8
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x42eed1
push esi
push edi
mov dword [ebp - 0x14], ebx
mov esi, 0x105
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x467548
mov dword [ebp - 0x2c], 0x467550
call fcn.00401aa0
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401799
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00401f3e
push esi
push eax
push dword [ebp - 0x14]
mov dword [edi + 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x24]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004019ee
cmp edi, ebx
jne 0x42eebc
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.004197d9
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401279
inc dword [ebp - 0x14]
cmp edi, ebx
je 0x42ee54
pop edi
pop esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47d934], eax
sete byte [ebp + 0xb]
cmp dword [ebp - 0x10], ebx
je 0x42eef0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42ef0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463d23
call fcn.0043b400
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0x467548
mov dword [ebp - 0x34], 0x467550
call fcn.00401aa0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401f3e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push dword [ebp + 0x88]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42ef7b
lea ecx, [ebp - 0x14]
call fcn.004090c6
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x42effd
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.00401f3e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x42effd
push dword [ebp + 0x88]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.00401799
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.00401f3e
lea ecx, [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [esi + 8], eax
call fcn.00401f3e
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004019ee
cmp esi, ebx
mov dword [0x47d934], esi
pop edi
lea eax, [ebp - 0x54]
je 0x42f00e
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x467548
mov dword [esi + 0x20], 0x467550
call fcn.00401b15
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x42f03f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00401279
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401279
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f07e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463d48
call fcn.0043b400
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401f3e
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c0b8
cmp eax, ebx
jne 0x42f0df
lea ecx, [ebp + 0x34]
call fcn.00401f3e
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47d934], eax
je 0x42f0ee
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], ebx
je 0x42f0ff
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42fa85
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042fafe
test al, al
je 0x42faea
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42faea
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x479788
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x4310f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x43110f
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431144
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413876
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8