joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edx, ecx
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
test edx, edx
je 0x100416a8
mov esi, dword [edx + 0x3c]
lea eax, [edx + 0xf8]
mov ecx, 0x100e621c
add eax, esi
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x10041583
test bl, bl
je 0x1004157f
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x10041583
add eax, 2
add ecx, 2
test bl, bl
jne 0x10041563
xor eax, eax
jmp 0x10041588
sbb eax, eax
or eax, 1
test eax, eax
je 0x10041595
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + edx + 0x100]
mov ecx, dword [esi + edx + 0x104]
mov dword [ebp - 0xc], eax
cmp ecx, eax
jae 0x100416a8
mov edi, edi
mov esi, 0x100f5f7c
mov eax, dword [esi]
cmp eax, dword [ecx + edx]
jne 0x1004165b
movzx eax, word [esi + 4]
cmp ax, word [ecx + edx + 4]
jne 0x1004165b
cmp dword [ecx + edx - 6], 0x88
jne 0x1004165b
mov al, byte [ecx + edx + 0xa]
and al, 0xf0
cmp al, 0x40
jne 0x1004165b
cmp byte [ecx + edx + 0xb], 0xf
jne 0x1004165b
cmp byte [ecx + edx + 0xc], 0x85
jne 0x1004165b
mov eax, dword [ecx + edx + 0xd]
add eax, ecx
cmp byte [eax + edx + 0x11], 0x6a
jne 0x1004165b
cmp byte [eax + edx + 0x12], 0
jne 0x1004165b
cmp byte [eax + edx + 0x19], 0xff
jne 0x1004165b
cmp byte [eax + edx + 0x1a], 0xd7
jne 0x1004165b
cmp byte [eax + edx + 0x1b], 0x85
jne 0x1004165b
cmp byte [eax + edx + 0x1c], 0xc0
jne 0x1004165b
cmp byte [eax + edx + 0x1d], 0xf
jne 0x1004165b
cmp byte [eax + edx + 0x1e], 0x84
lea esi, [eax + edx]
jne 0x1004165b
cmp byte [eax + edx + 0x23], 0xff
jne 0x1004165b
cmp byte [eax + edx + 0x24], 0x15
jne 0x1004165b
cmp byte [eax + edx + 0x29], 0x50
jne 0x1004165b
mov bl, byte [eax + edx + 0x2a]
cmp bl, 0xff
jne 0x100416b2
cmp byte [eax + edx + 0x2b], 0x15
je 0x100416be
mov ebx, dword [ebp - 4]
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x100415b0
test edi, edi
je 0x100416a8
cmp edi, 1
jne 0x100416a8
test ebx, ebx
je 0x100416a8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push ebx
mov dword [ebp - 4], 0
call esi
test eax, eax
je 0x100416a8
lea eax, [ebp - 0xc]
mov byte [ebx], 0x85
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push ebx
mov dword [ebp - 0xc], 0
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 0xeb
jne 0x1004165b
cmp byte [eax + edx + 0x2b], 0xbb
jne 0x1004165b
lea ebx, [esi + 0x1e]
inc edi
mov dword [ebp - 4], ebx
jmp 0x1004165e
Function at 0x10041f10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x100420b1
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100420b1
mov eax, dword [ecx + 0x3c]
cdq
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ebx, edi
cdq
add ebx, 0xf8
mov esi, eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
mov eax, edx
adc eax, 0
mov dword [ebp - 0xc], esi
cmp dword [ebp - 4], eax
jb 0x100420b1
ja 0x10041f6a
cmp esi, ebx
jbe 0x100420b1
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
cmp dword [ebx], 0x4550
jne 0x100420b1
movzx ecx, word [ebx + 4]
xor eax, eax
mov dword [ebp - 0x10], 0x14c
cmp cx, word [ebp - 0x10]
jne 0x10042013
mov eax, 0xe0
cmp word [ebx + 0x14], ax
jne 0x100420b1
movzx eax, word [ebx + 6]
mov ecx, eax
test ax, ax
je 0x100420b1
cdq
mov edi, edx
mov ecx, eax
mov esi, edi
shld esi, ecx, 2
shl ecx, 2
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 8]
adc edi, esi
cdq
shld edi, ecx, 3
shl ecx, 3
sub ecx, eax
mov eax, ebx
sbb edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 0xf8
adc edi, 0
cmp dword [ebp - 4], edi
ja 0x10041ff7
jb 0x100420b1
cmp dword [ebp - 0xc], ecx
jb 0x100420b1
mov eax, 0x10b
cmp word [ebx + 0x18], ax
jne 0x100420b1
pop edi
pop esi
lea eax, [ebx + 0x98]
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 0x8664
cmp cx, word [ebp - 0x10]
je 0x10042031
mov dword [ebp - 0x10], 0x200
cmp cx, word [ebp - 0x10]
jne 0x100420b3
add edi, 0x108
adc edx, eax
cmp dword [ebp - 4], edx
ja 0x10042044
jb 0x100420b1
cmp esi, edi
jbe 0x100420b1
mov eax, 0xf0
cmp word [ebx + 0x14], ax
jne 0x100420b1
movzx eax, word [ebx + 6]
mov ecx, eax
test ax, ax
je 0x100420b1
cdq
mov edi, edx
mov ecx, eax
mov esi, edi
shld esi, ecx, 2
shl ecx, 2
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 8]
adc edi, esi
cdq
shld edi, ecx, 3
shl ecx, 3
sub ecx, eax
mov eax, ebx
sbb edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 0x108
adc edi, 0
cmp dword [ebp - 4], edi
ja 0x10042099
jb 0x100420b1
cmp dword [ebp - 0xc], ecx
jb 0x100420b1
mov eax, 0x20b
cmp word [ebx + 0x18], ax
jne 0x100420b1
pop edi
pop esi
lea eax, [ebx + 0xa8]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100452f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0xc], 0
mov edi, dword [esi + 4]
je 0x10045323
mov ecx, 0x10
call fcn.10012b40
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
test eax, eax
je 0x1004532e
call eax
jmp 0x10045334
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100453ae
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
je 0x10045369
mov ecx, 9
call fcn.10012b40
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push esi
push edi
push ebx
push dword [esp + 0x1c]
test eax, eax
je 0x10045378
call eax
jmp 0x1004537e
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100453a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x100453ae
push ecx
mov ecx, dword [esp + 0x10]
mov edx, ebx
push esi
push edi
call fcn.100161d0
add esp, 0xc
test eax, eax
je 0x100453ae
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100e185c
push 0x100e185c
push 0
push 0
call fcn.1008b562
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100453d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0xc], 0
mov esi, dword [eax + 4]
je 0x100453f7
mov ecx, 0x28
call fcn.10012b40
push dword [ebp + 0xc]
push esi
test eax, eax
je 0x100453fb
call eax
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
pop esi
pop ebp
ret

Function at 0x10045490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbd96
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [eax + 4], 0
mov byte [ebp - 4], 3
mov dword [eax + 0xc], eax
mov dword [eax + 8], eax
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 4
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ebp - 4], 6
mov dword [ecx + 0x24], ecx
mov dword [ecx + 0x20], ecx
mov dword [ecx + 0x28], ecx
mov dword [ebp - 4], 7
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1004c510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
cmp edi, 0xffffffff
je 0x1004c597
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004c597
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x1004c597
cmp dword [ecx + 0x210], 0
mov dword [ebp + 8], 0
je 0x1004c558
mov ecx, 9
call fcn.10012b40
push 0
test eax, eax
je 0x1004c55a
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push edi
call eax
jmp 0x1004c567
push 0
lea eax, [ebp + 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004c58c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1004c597
push ecx
lea eax, [ebp + 8]
mov edx, esi
push eax
push ebx
mov ecx, edi
call fcn.100161d0
add esp, 0xc
test eax, eax
je 0x1004c597
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x1004daf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc34e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 0xc]
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x18], eax
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], dl
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ecx + 0x2c], edx
mov dword [ecx], vtable.CMID.2.0
mov dword [ecx + 4], vtable.CMID.1.0
mov dword [ecx + 8], vtable.CMID.0
mov word [ecx + 0x30], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1004e550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004e5c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1004e58f
cmp eax, 2
jne 0x1004e5ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1004e5bb
test ecx, ecx
je 0x1004e5b6
test cl, 1
jne 0x1004e5ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1004e5bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1004f160
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x16c]
mov ebx, edx
push 0
push eax
mov esi, ecx
call fcn.10097030
push esi
push 0x100e6d78
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x1d0], 0
push 0x104
push eax
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0x67452301
mov dword [ebp - 0x1c8], 0xefcdab89
mov dword [ebp - 0x1c4], 0x98badcfe
mov dword [ebp - 0x1c0], 0x10325476
call fcn.10050d70
lea ecx, [ebp - 0x16c]
add esp, 0x1c
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f1f0
sub ecx, edx
lea edx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x1d4]
call fcn.1004e840
lea ecx, [ebp - 0x1d4]
call fcn.1004e900
lea ecx, [ebp - 0x1d4]
call fcn.1004e900
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x170]
push 0x40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.10097030
add esp, 0x10
xor esi, esi
jmp 0x1004f260
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02x
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push 8
push eax
mov dword [ebp - 0xc], 0
call fcn.10050d70
lea ecx, [ebp - 0x64]
add esp, 0x10
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f290
sub ecx, edx
lea eax, [ebp - 0x10]
mov edx, 0x40
lea edi, [eax + 1]
sub edx, ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004f2a6
sub eax, edi
cmp edx, eax
jl 0x1004f2b5
mov edx, eax
push edx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100a67e0
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x1004f260
test ebx, ebx
je 0x1004f2f8
mov esi, dword [ebp + 8]
push esi
push 0
push ebx
call fcn.10097030
lea eax, [ebp - 0x64]
push eax
push 0x100e6d78
lea eax, [esi - 1]
push eax
push ebx
call fcn.10050d70
push ebx
call fcn.100a6a91
add esp, 0x20
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x1004f970
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
lea eax, [ebp - 0x68]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x4f4], ebx
call fcn.10097030
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1004fb48
push edi
xor edi, edi
mov dword [ebp - 0x4e4], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4dc]
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1004fb39
lea esp, [esp]
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x4e0]
call esi
test eax, eax
jne 0x1004fb03
push 0x208
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x4f0], 1
push eax
mov dword [ebp - 0x4ec], 0x206
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x4ec]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004fafb
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10097030
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x2d4]
call fcn.1004f800
add esp, 4
test eax, eax
je 0x1004fafb
cmp byte [ebp - 0x68], 0
je 0x1004fac0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x1004fafb
lea eax, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x1004faed
mov cl, byte [esi + eax]
test cl, cl
je 0x1004faed
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1004fad2
jmp 0x1004faf1
test edx, edx
jne 0x1004faf2
dec eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [eax], 0
push dword [ebp - 0x4e8]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x4dc]
inc edi
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1004fa00
push dword [ebp - 0x4e0]
call ebx
mov ebx, dword [ebp - 0x4f4]
pop edi
cmp byte [ebp - 0x68], 0
je 0x1004fb77
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
mov ecx, ebx
call fcn.1003a940
xor ecx, ecx
test eax, eax
pop esi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x1004fd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc526
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x100f51d4]
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
test edi, edi
je 0x1004fec4
push 0x400
lea eax, [ebp - 0x510]
mov dword [ebp - 0x518], 1
push 0
push eax
mov dword [ebp - 0x514], 0x400
call fcn.10097030
add esp, 0xc
lea ecx, [ebp - 0x51c]
call fcn.1004e5d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x518]
push ecx
push 0x100e6eb4
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x51c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fdee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1004fee2
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x1004fec4
lea ecx, [ebp - 0x510]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004fe00
sub ecx, edx
cmp ecx, 0x40
jne 0x1004fec4
push 0x20
lea eax, [ebp - 0x510]
push eax
push ecx
lea edx, [ecx + 0x40]
lea ecx, [ebp - 0x110]
call fcn.10050d20
lea ecx, [ebp - 0x90]
mov edx, 0x80
lea esi, [ebp - 0x4f0]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x1004fe5b
mov al, byte [esi + ecx]
test al, al
je 0x1004fe5b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1004fe40
jmp 0x1004fe5f
test edx, edx
jne 0x1004fe60
dec ecx
push 0x400
lea eax, [ebp - 0x510]
mov byte [ecx], 0
push 0
push eax
call fcn.10097030
add esp, 0xc
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x110]
push 0x400
call fcn.1004f160
add esp, 4
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1004fec4
lea eax, [ebp - 0x110]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.1003a940
neg eax
sbb eax, eax
inc eax
jmp 0x1004fec6
xor eax, eax
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.10071699
mov esp, ebp
pop ebp
ret
call esi
jmp 0x1004fdee
Function at 0x10052660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc9d9
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100f51d4]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], 0
call fcn.10012770
mov ecx, eax
test ecx, ecx
je 0x10052899
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100528a3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 1
call fcn.10012770
mov ecx, eax
test ecx, ecx
je 0x100528aa
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100528b4
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x21c]
push dword [esi]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call fcn.1004e430
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x21c]
push 1
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10010e10
mov ebx, dword [ebp - 0x230]
test eax, eax
jne 0x10052824
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10097030
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10052824
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x100527d7
cmp eax, 2
jne 0x10052824
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100527f4
test al, 1
jne 0x10052824
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x100527fd
jmp 0x10052824
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052806
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10016cf0
mov byte [ebp - 4], 3
test ebx, ebx
je 0x1005283d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005287b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x100528bb
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
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.10071699
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10010ca0
call edx
jmp 0x100526d5
push 0x80004005
call fcn.10010ca0
call edx
jmp 0x10052711
call edx
jmp 0x1005287b
Function at 0x100528c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bca3c
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100f51d4]
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 ebx, ecx
push 0x410
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push eax
push dword [0x100f8d04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10052a60
cmp eax, 0x208
jae 0x10052a60
push 0x100e5bd4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, ebx
lea ecx, [ebp - 0x428]
call fcn.10052660
mov dword [ebp - 4], esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
call fcn.100a62ba
add esp, 8
or edi, 0xffffffff
test eax, eax
jne 0x10052a26
lea ecx, [ebp - 0x424]
call fcn.10014460
mov byte [ebp - 4], 1
lea eax, [ebp - 0x424]
push dword [ebx]
push str.safemon_s.exe
push eax
call fcn.1004e430
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esi + 0x21]
call fcn.10012b40
test eax, eax
je 0x100529c3
lea ecx, [ebp - 0x420]
push ecx
call eax
jmp 0x100529d0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100529ec
lea eax, [ebp - 0x420]
push eax
call fcn.1008ae24
add esp, 4
test eax, eax
je 0x100529ec
mov esi, 1
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10052a26
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x10052a7e
mov eax, dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x10052a2c
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10052a60
mov edx, dword [eax]
push eax
mov ecx, dword [edx]
mov edi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x10052a84
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call ebx
mov eax, esi
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.10071699
mov esp, ebp
pop ebp
ret
mov ecx, edx
call ebx
jmp 0x10052a26
mov ecx, edx
call edi
jmp 0x10052a60