joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e53fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], eax
xor eax, eax
push ebp
push 0x4e559e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48d464]
call fcn.004b0e54
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
xor ecx, ecx
mov edx, 0x208
call fcn.004077e8
push 0x208
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push 0x4e55b0
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_lstrcatW
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004e537c
test eax, eax
je 0x4e5575
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.ntdll_RtlImageDirectoryEntryToData
mov ebx, eax
test ebx, ebx
je 0x4e556c
cmp dword [ebp - 8], 0
je 0x4e556c
mov byte [ebp - 0xd], 1
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4e556c
dec eax
test eax, eax
jb 0x4e556c
inc eax
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp - 0x14]
add eax, esi
mov edx, edi
add edx, edx
add edx, edx
add eax, edx
mov eax, dword [eax]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x744e
jne 0x4e5562
mov eax, dword [ebx + 0x24]
add eax, esi
mov edx, edi
add edx, edx
add eax, edx
movzx eax, word [eax]
add eax, eax
add eax, eax
mov edx, dword [ebx + 0x1c]
add edx, esi
add eax, edx
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
movzx edx, byte [ebp - 0xd]
add eax, edx
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x224]
call fcn.00423834
mov eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040a514
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
call fcn.0040ac64
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004affac
inc edi
dec dword [ebp - 0x18]
jne 0x4e54d2
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e55a5
lea eax, [ebp - 0x22c]
call fcn.00409e00
lea eax, [ebp - 0x228]
mov edx, 2
call fcn.00409e3c
ret

Function at 0x4e55d0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
pop ebp
xor eax, eax
mov eax, dword fs:[eax + 0x18]
mov eax, dword [eax + 0xc0]
test eax, eax
jne 0x4e55f5
xor ecx, ecx
mov eax, dword [0x5f37bc]
lea edx, [esp + 4]
int 0x2e
ret 8
xor ecx, ecx
mov eax, dword [0x5f37bc]
lea edx, [esp + 4]
call dword fs:[0xc0]
add esp, 4
ret 8

Function at 0x4ec4a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040a258
mov eax, ebx
call fcn.0040a3ac
mov eax, dword [ebx]
call fcn.0040a2d8
test eax, eax
jle 0x4ec4d1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x4ec4c6
pop esi
pop ebx
ret
Function at 0x4ecb70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4ecbbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.004eda64
test al, al
jne 0x4ecbb2
cmp word [edi], 0x5a4d
jne 0x4ecbb2
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4ecbb2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ecbc8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ecd64
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x5f39ac], 0
jne 0x4ece45
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4ecdb7
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x4ecde8
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x4ece45
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4ece13
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x4ece25
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4ece3f
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4f0b18
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x4f0b94
cmp dword [esp + 0x10], 0x1000
jne 0x4f0b94
cmp dword [esp + 4], 0
je 0x4f0b94
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA
test eax, eax
je 0x4f0b94
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x4f0b94
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x4f0b94
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f1830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x5f4288], 0
je 0x4f1875
push esp
push 0x40
push 4
mov eax, dword [0x5f4288]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f1875
mov eax, dword [0x5f4288]
mov edx, dword [0x5f428c]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x5f4288]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x5f4288], eax
cmp dword [0x5f4290], 0
je 0x4f18b9
push esp
push 0x40
push 4
mov eax, dword [0x5f4290]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f18b9
mov eax, dword [0x5f4290]
mov edx, dword [0x5f4294]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x5f4290]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x5f4290], eax
xor eax, eax
mov dword [0x5fee60], eax
pop edx
ret

Function at 0x4f3738
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4f37df
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x5f439c]
call fcn.004ec4a0
push dword [ebp - 8]
push 0x4f37fc
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x5f43a0]
call fcn.004f3638
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040a6b4
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0040a7fc
push eax
call fcn.004f3624
mov edi, eax
test edi, edi
je 0x4f37c4
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4f37be
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f37e6
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409e6c
ret

Function at 0x4f3ac4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x4f3b23
xor ebx, ebx
jmp 0x4f3b1c
cmp edi, dword [ebp - 4]
jne 0x4f3b1b
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f3b23
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + ebx*4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4f3b23
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4f3ae5
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f3b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 9], 0
xor ecx, ecx
push ebp
push 0x4f3bef
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
call fcn.004ecc04
test eax, eax
je 0x4f3be5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
dec eax
test eax, eax
jl 0x4f3be5
inc eax
xor esi, esi
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x1c]
add edx, ebx
mov edx, dword [edx + esi*4]
add edx, ebx
cmp edx, dword [ebp - 4]
jne 0x4f3be1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004f3ac4
test al, al
je 0x4f3be5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, ebx
lea edi, [eax + esi*4]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f3bd1
mov eax, dword [ebp - 8]
sub eax, ebx
mov dword [edi], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push edi
call sub.kernel32.dll_VirtualProtect
jmp 0x4f3be5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004f3ac4
jmp 0x4f3be5
inc esi
dec eax
jne 0x4f3b73
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3bf9
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f3c08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.004ecb70
mov edi, eax
test edi, edi
je 0x4f3c9f
cmp dword [edi + 0x80], 0
je 0x4f3c9f
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x4f3c9f
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x4f3c9f
jmp 0x4f3c8b
mov ebx, dword [esi + 0x10]
add ebx, dword [esp]
jmp 0x4f3c83
cmp ebp, dword [ebx]
jne 0x4f3c80
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f3c80
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x4f3c51
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x4f3c9f
cmp dword [esi + 0x10], 0
je 0x4f3c9f
mov eax, dword [esi + 0x10]
cmp eax, dword [edi + 0x50]
jb 0x4f3c49
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f5b78
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f5d7d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x5f4314]
call fcn.004f0988
mov dword [0x5feed0], eax
xor edx, edx
mov eax, dword [0x5f4318]
call fcn.004f0988
mov dword [0x5feed4], eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 5
call fcn.0040a8c0
lea eax, [ebp - 4]
call fcn.0040a39c
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.0040a39c
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.0040a39c
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.0040a39c
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.0040a39c
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x5f4388]
call fcn.004ec4a0
push dword [ebp - 0x10]
push 0x4f5d9c
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004ec12c
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a6b4
mov eax, dword [ebp - 4]
call fcn.0040a7fc
push eax
push 0
push 0
call fcn.00414c90
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4f5d5a
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x5feec4], edi
mov eax, dword [ebp - 8]
mov dword [0x5feec8], eax
cmp dword [0x5feed0], 0
je 0x4f5ca3
cmp dword [0x5feed4], 0
jne 0x4f5d29
mov dl, 1
mov eax, dword [0x5f42bc]
call fcn.004f0a94
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4f5d3e
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4f5d3e
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4f5d3e
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4f5d3e
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4f5d3e
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f5d3e
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x5feecc], edx
mov edx, 0x4f5b28
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x4f5d3e
push 0x4f5ad4
push 0xffffffffffffffff
call dword [0x5feed0]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x4f5d5a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5d84
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409e6c
lea eax, [ebp - 4]
call fcn.00409e00
ret
Function at 0x4f5da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x5feed0], 0
je 0x4f5db8
cmp dword [0x5feed4], 0
jne 0x4f5df9
mov dl, 1
mov eax, dword [0x5f42bc]
call fcn.004f0a94
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f5e00
mov eax, dword [0x5feecc]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x4f5e00
push eax
call dword [0x5feed4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f8758
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4f8843
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
call fcn.004f3e40
xor eax, eax
push ebp
push 0x4f8826
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004eca64
test al, al
je 0x4f8813
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004f4690
test al, al
je 0x4f8813
cmp dword [ebp - 0x14], 0
jne 0x4f87b9
cmp dword [ebp - 0x18], 0
je 0x4f8813
call fcn.004f17c4
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 8
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f8813
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x18]
mov ecx, 8
mov edx, ebx
call fcn.004f2b58
test al, al
jne 0x4f87f7
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.004f5a98
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 8
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f882d
call fcn.004f3fd0
ret
Function at 0x500b30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x500ceb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a204
mov eax, dword [ebp - 4]
call fcn.00500480
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x500b82
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040afb0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00501778
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x500c61
xor eax, eax
push ebp
push 0x500c5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00500720
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00500d20
test al, al
je 0x500c38
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409f64
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x500c38
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040aba4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00500680
test al, al
je 0x500c32
mov eax, dword [ebp - 8]
call fcn.0040aba4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040ac0c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00500b30
dec ebx
cmp ebx, 0xffffffff
jne 0x500be1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500c61
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00500720
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5fef1c], 0
je 0x500ca1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040aba4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050070c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00500680
mov ebx, eax
jmp 0x500cc8
mov eax, dword [ebp - 4]
call fcn.0040aba4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050070c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00500680
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500cf2
lea eax, [ebp - 0x3c]
call fcn.00409ddc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409e3c
ret
Function at 0x501654
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00500498
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040aba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.00500680
test al, al
jne 0x5016bc
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f8aa4]
mov dl, 1
mov eax, dword [0x4ff264]
call fcn.0042983c
call fcn.00409458
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5016c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040aba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00500680
test al, al
jne 0x501729
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f8e48]
mov dl, 1
mov eax, dword [0x4ff264]
call fcn.0042983c
call fcn.00409458
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005004c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x501d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x501e50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00500720
xor eax, eax
push ebp
push 0x501e2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00500d20
test al, al
je 0x501e0f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00501c08
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409f64
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x501e0f
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aba4
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00500680
test al, al
je 0x501e0b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aba4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040ac0c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00501c08
pop ecx
inc edi
dec ebx
jne 0x501db3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501e32
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00500720
ret