joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427878
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 0x4279ab
cmp byte [ebp + 0xc], bl
jne 0x4278f4
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 0x4279ab
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 0x42799d
call fcn.0043bbf0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00428361
push dword [ebp + 0xc]
jmp 0x427988
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 0x4279ab
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 0x42799a
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x42793c
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x427945
xor esi, esi
jmp 0x427976
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.0043b1a0
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.0043bbf0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00428361
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4279ad
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 0x42815b
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 0x4281ca
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 0x4281ad
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4281ad
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4281ad
mov byte [ebp - 1], 1
jmp 0x4281ca
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4281ca
cmp byte [ebp - 1], bl
jne 0x4281ca
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4281b4
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 0x429ded
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 0x429e09
mov ecx, esi
call fcn.00429e0d
pop esi
ret 4

Function at 0x42a99f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x463725
call fcn.0043b5c0
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.00401aa5
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.00401aa5
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.00401aa5
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.00401aa5
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.00401aa5
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.0040681c
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], eax
call fcn.0040127e
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.0042aad9
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.0042ac08
push esi
lea ecx, [esi + 0x1c4]
mov byte [ebp - 4], 8
call fcn.0042ac81
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 0x42c97a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x463aa6
call fcn.0043b5c0
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 0x42c9cc
lea ecx, [ebp + 8]
call fcn.00419693
test al, al
je 0x42c9cc
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.004016ed
call fcn.0042cc2f
add esp, 0x2c
mov bl, al
jmp 0x42cb49
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.00401b1a
call fcn.0042f969
add esp, 0x28
cmp eax, 0xffffffff
je 0x42ca19
test bl, 4
je 0x42ca01
test al, 0x10
je 0x42ca12
test bl, 8
je 0x42cb47
test al, 0x10
je 0x42cb47
mov bl, 1
jmp 0x42cb49
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x42cb59
cmp esi, 3
je 0x42cb59
push 1
cmp esi, 5
pop ebx
jne 0x42cace
lea ecx, [ebp - 0x100]
call fcn.0042cba0
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.004016ed
call fcn.0042f89d
add esp, 0x2c
cmp eax, 0xffffffff
je 0x42cabb
test byte [ebp + 0x30], 4
je 0x42ca89
test byte [ebp - 0x100], 0x10
je 0x42ca9a
test byte [ebp + 0x30], 8
je 0x42ca98
test byte [ebp - 0x100], 0x10
jne 0x42ca9a
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x42caa7
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042cbf9
jmp 0x42cb49
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0042cbf9
test byte [ebp + 0x30], 0x20
je 0x42cb47
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x467578
mov dword [ebp - 0x1c], 0x467570
call fcn.00401b1a
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x467f38
call fcn.00413d21
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042cb76
mov eax, dword [ebp - 0x84]
push 0x46c698
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], 0x467f30
lea eax, [ebp - 0x84]
push eax
call fcn.0043bd2a
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040127e
mov al, bl
jmp 0x42cb67
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040127e
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42dcb8
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 0x42dd33
cmp dword [ebp - 0x8c], 0
je 0x42dd2b
cmp dword [ebp - 0x8c], 0xa
je 0x42dd16
cmp dword [ebp - 0x8c], 0x5a
je 0x42dd1f
xor al, al
mov dword [esi], 0x80
jmp 0x42dda4
call fcn.0042e1fc
test al, al
je 0x42dd23
mov al, 1
jmp 0x42dd0b
mov dword [esi], 0x40
jmp 0x42dd8d
mov dword [esi], 0x10
jmp 0x42dd8d
cmp dword [ebp - 0x84], 2
jne 0x42dda2
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x42dd9a
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x42dd5d
dec eax
je 0x42dd83
xor al, al
mov dword [esi], 0x2000000
jmp 0x42dda4
test ecx, ecx
jne 0x42dd69
mov dword [esi], 0x100000
jmp 0x42dd8d
cmp ecx, 1
jne 0x42dd76
mov dword [esi], 0x400000
jmp 0x42dd8d
cmp ecx, 2
jne 0x42dd83
mov dword [esi], 0x800000
jmp 0x42dd8d
test ecx, ecx
jne 0x42dd91
mov dword [esi], 0x1000000
mov al, 1
jmp 0x42dda4
cmp ecx, 1
jne 0x42dd53
mov al, cl
jmp 0x42dd55
mov dword [esi], 0x10000
jmp 0x42dd8d
xor al, al
pop esi
leave
ret

Function at 0x42e0f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x4790a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42e120
push 0x479084
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e120
call eax
jmp 0x42e1f7
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 0x4796e4
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x42e16c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x47d8e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42e1cd
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x4796bc
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x42e1a1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x4796b4
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 0x42e1b5
cmp esi, ebx
je 0x42e1b5
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x42e1d5
cmp dword [ebp - 4], ebx
je 0x42e1c7
cmp esi, ebx
je 0x42e1c7
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x42e1f7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0043d7d8
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42e1f4
cmp esi, ebx
je 0x42e1f4
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ef88
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463f2c
call fcn.0043b5c0
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.0041c454
mov edi, eax
cmp edi, esi
je 0x42efd2
cmp dword [ebp - 0x10], esi
je 0x42efcb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42f06f
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 0x42f043
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042ef88
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x42f030
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 0x42eff5
cmp dword [ebp - 0x10], esi
je 0x42f03e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x42f06f
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42f056
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 0x42f06d
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 0x42f080
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x463f58
call fcn.0043b5c0
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.00401f43
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c454
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x42f145
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.00401aa5
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040179e
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00401f43
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.004019f3
cmp edi, ebx
jne 0x42f130
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.00419a33
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040127e
inc dword [ebp - 0x14]
cmp edi, ebx
je 0x42f0c8
pop edi
pop esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47daa4], eax
sete byte [ebp + 0xb]
cmp dword [ebp - 0x10], ebx
je 0x42f164
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.0040127e
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f180
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463fab
call fcn.0043b5c0
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.00401aa5
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401f43
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 0x42f1ef
lea ecx, [ebp - 0x14]
call fcn.00409164
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x42f271
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.00401f43
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x42f271
push dword [ebp + 0x88]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.0040179e
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.00401f43
lea ecx, [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [esi + 8], eax
call fcn.00401f43
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.004019f3
cmp esi, ebx
mov dword [0x47daa4], esi
pop edi
lea eax, [ebp - 0x54]
je 0x42f282
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.00401b1a
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x42f2b3
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.0040127e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040127e
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.0040127e
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.0040127e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f2f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463fd0
call fcn.0043b5c0
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.00401f43
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c454
cmp eax, ebx
jne 0x42f353
lea ecx, [ebp + 0x34]
call fcn.00401f43
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 [0x47daa4], eax
je 0x42f362
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], ebx
je 0x42f373
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.0040127e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0040127e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42fcf9
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042fd72
test al, al
je 0x42fd5e
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 0x42fd5e
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x479908
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 0x4326e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46444b
call fcn.0043b5c0
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push 0x4792a8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4327bf
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, 0x479298
je 0x43274c
mov eax, 0x479288
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405529
push 0x4763ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404c8a
lea ecx, [ebp - 0x40]
call fcn.00432327
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b1a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x43280e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405529
push 0x4763ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404c8a
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b1a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0040127e
cmp dword [ebp - 0x10], 0
je 0x432827
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x432827
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x432dfe
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 0x432e14
mov dword [ebp + 0xc], 4
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 0x432e49
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413a39
lea eax, [ebp - 0x48]
push 0x46c698
push eax
call fcn.0043bd2a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x432e51
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 0x432e67
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 0x432e9c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413a39
lea eax, [ebp - 0x48]
push 0x46c698
push eax
call fcn.0043bd2a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x436681
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret