joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e71d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x5d0894
mov dword [esp + 0x18], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4e7233
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x5d0874
mov word [esi], ax
call fcn.004e9a70
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push edi
call fcn.00550f5e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e7262
push 0x5d0874
mov ecx, esi
call fcn.004e9850
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0x5d0894
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e7242
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
push 0x5d0890
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4e7242
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.004e20d0
add esp, 0x18
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004e98b0
lea ecx, [esp + 0x1c]
call fcn.004e9960
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e76e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x34], 7
xor bl, bl
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push str.SoftwareMacromedia_s
push eax
call fcn.004e20d0
add esp, 0xc
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push 0x2001f
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e77ab
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x30]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4c]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x4e77bc
push dword [ebp - 0x2c]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x4e77e1
push dword [ebp + 8]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4e7806
push dword [ebp + 0x20]
call fcn.0054dfd9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e7830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575f1b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x14], 8
jb 0x4e7885
mov eax, dword [esi]
jmp 0x4e7887
mov eax, esi
push eax
lea eax, [esp + 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004e20d0
add esp, 0xc
mov dword [esp + 0x270], 0
xorps xmm0, xmm0
push 0x5d10d0
push 0x5d0894
mov dword [esp + 0x38], 0
movdqu xmmword [esp + 0x3c], xmm0
movdqu xmmword [esp + 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e795e
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x30]
cmp ax, 9
je 0x4e78f2
cmp ax, 6
jne 0x4e795e
cmp dword [esi + 0x14], 8
jb 0x4e78fa
mov esi, dword [esi]
push esi
lea eax, [esp + 0x34]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004e20d0
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x14]
cmp eax, esi
je 0x4e794b
cmp dword [esp + 0x28], 8
jb 0x4e792a
push dword [esp + 0x14]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004ebaa0
cmp dword [esp + 0x44], 8
jb 0x4e795e
push dword [esp + 0x30]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [esp + 0x10], 0
push 0x206
push eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call fcn.00550bc0
add esp, 0xc
lea ecx, [esp + 0x10]
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push ecx
push 1
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e79e8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], 0x208
cmp dword [eax + 0x14], 8
jb 0x4e79bb
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
test eax, eax
mov ecx, 1
cmove edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x28], 8
jb 0x4e79fb
push dword [esp + 0x14]
call fcn.0054dfd9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret

Function at 0x4e7a20
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
lea eax, [ebp - 8]
xor bl, bl
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, 1
movzx ecx, bl
cmp eax, edx
pop ebx
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e7a60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575f72
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5ea6f0]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
mov ecx, edi
push eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], eax
call fcn.004ebbd0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x228], 1
jb 0x4e7af9
mov eax, dword [ebx]
jmp 0x4e7afb
mov eax, ebx
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e7bf7
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00550bc0
add esp, 0xc
mov dword [ebp - 0x21c], 1
cmp dword [esi + 0x14], 8
jb 0x4e7b4e
mov eax, dword [esi]
jmp 0x4e7b50
mov eax, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push eax
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x4e7be6
cmp dword [esi + 0x14], 8
jb 0x4e7b7d
mov esi, dword [esi]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
push dword [ebp - 0x224]
call ebx
cmp word [ebp - 0x218], 0
jne 0x4e7bbd
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.004e9a70
jmp 0x4e7c4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7bc6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004e9a70
jmp 0x4e7c4f
cmp byte [ebp + 0x1c], 0
je 0x4e7c4f
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0x10]
jmp 0x4e7c20
cmp byte [ebp + 0x1c], 0
je 0x4e7c5b
cmp dword [ebx + 0x14], 8
jb 0x4e7c05
mov ebx, dword [ebx]
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4e7c5b
mov eax, dword [edi + 0x10]
add eax, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x220], eax
jb 0x4e7c32
mov ecx, dword [edi]
jmp 0x4e7c34
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x4e7c3c
mov esi, dword [esi]
push eax
push ecx
push 1
push 0
push esi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4ec540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x576348
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4ec694
cmp byte [ebx + 0x45], 0
je 0x4ec694
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4ec5a0
xor al, al
jmp 0x4ec696
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4ec5e0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4ec621
dec eax
je 0x4ec625
sub eax, 2
je 0x4ec67b
xor bl, bl
jmp 0x4ec67d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4ec65c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00552abe
add esp, 0x10
cmp esi, eax
jne 0x4ec61d
cmp byte [ebx + 0x45], 0
je 0x4ec67b
test esi, esi
jne 0x4ec5e0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004eaf00
jmp 0x4ec5e0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4ec690
push dword [esp + 0x18]
call fcn.0054dfd9
add esp, 4
mov al, bl
jmp 0x4ec696
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4ee5b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5764eb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x18], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x224], 0
jb 0x4ee5fc
mov eax, dword [eax]
lea edx, [ebp - 0x224]
push edx
push dword [ecx + 0x1c]
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ee729
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00550bc0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call ebx
mov edi, eax
xor eax, eax
test edi, edi
jne 0x4ee712
inc esi
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], edi
mov word [ebp - 0x240], ax
cmp word [ebp - 0x21c], ax
je 0x4ee6af
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ee6a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.004e9a70
mov dword [ebp - 4], 0
movzx eax, byte [0x5f040d]
push eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x248]
push eax
call fcn.004ef1a0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x22c], 8
jb 0x4ee621
push dword [ebp - 0x240]
call fcn.0054dfd9
add esp, 4
jmp 0x4ee621
push dword [ebp - 0x224]
cmp edi, 0x103
cmove edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x14]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret 4
Function at 0x4f1ee0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x576898
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
movdqa xmmword [esp + 0x18], xmm0
push ecx
movdqa xmmword [esp + 0x2c], xmm0
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push eax
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x20], 1
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
call fcn.004ebbd0
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], 0
lea esi, [eax + 4]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], 0
jb 0x4f1f9a
mov ecx, dword [esi]
jmp 0x4f1f9c
mov ecx, esi
lea edx, [esp + 0x10]
push edx
push dword [eax + 0x1c]
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f1fe7
cmp dword [esi + 0x14], 8
jb 0x4f1fbb
mov esi, dword [esi]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4f1fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
jmp 0x4f2042
mov eax, dword [esp + 0x28]
add eax, eax
push eax
call fcn.0054d749
cmp dword [esp + 0x30], 8
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov esi, eax
cmovae edx, dword [esp + 0x1c]
add ecx, ecx
push ecx
push edx
push esi
call fcn.0054fa00
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x4f201c
mov edi, dword [edi]
mov eax, dword [esp + 0x28]
add eax, eax
push eax
push esi
push dword [esp + 0x1c]
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00551062
mov dword [esp + 0x64], 0xffffffff
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4f207f
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4f207f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f207f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x2c], 8
jb 0x4f2092
push dword [esp + 0x18]
call fcn.0054dfd9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f20c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5768c8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor eax, eax
push eax
movdqa xmmword [esp + 0x38], xmm0
movdqa xmmword [esp + 0x48], xmm0
push 0x5d0874
mov dword [esp + 0x38], 0
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e9a70
mov dword [esp + 0x50], 0x208
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [edi + 4]
mov dword [esp + 0x80], 0
cmp dword [eax + 0x14], 8
jb 0x4f217b
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push dword [edi + 0x1c]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4f2223
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x4f21a4
mov edi, dword [edi]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004f1c20
add esp, 4
push eax
lea eax, [esp + 0x74]
push eax
push 0
push edi
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4f2223
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004f1cc0
mov edi, eax
cmp esi, edi
je 0x4f220e
cmp dword [esi + 0x14], 8
jb 0x4f21f3
push dword [esi]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004ebaa0
cmp dword [esp + 0x2c], 8
jb 0x4f2221
push dword [esp + 0x18]
call fcn.0054dfd9
add esp, 4
xor edi, edi
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4f225b
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4f225b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f225b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x4c], 8
jb 0x4f226e
push dword [esp + 0x38]
call fcn.0054dfd9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f4f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576baf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5d14bc
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e1010
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e0ff0
push eax
mov dword [ebp - 4], 2
call fcn.004ee080
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f4fea
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f4fea
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f500f
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e0f20
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004ecae0
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x5f0358]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4