joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489950
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x671010], 0
jne 0x4899bb
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004cf790
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, section..data
mov word [esp + 0x20e], ax
lea eax, [esp + 8]
push eax
call fcn.0044dd10
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004c4309
add esp, 0x214
ret

Function at 0x489a70
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x5cf8bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x678098]
test eax, eax
jle 0x489ac1
inc eax
mov dword [0x678098], eax
mov al, 1
jmp 0x489bb3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0045b8b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0045c410
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045b930
test bl, bl
je 0x489ba3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x489ba3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x489b9c
inc dword [0x678098]
mov eax, dword [edi]
test eax, eax
je 0x489b46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x671028], 0
mov dword [ebp - 0x10], 0
jne 0x489b9c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004cf790
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x671018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0044dd10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x489bb1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004c4309
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x489be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004cf790
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x489c5d
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x489c46
jne 0x489c5d
cmp dword [esp + 8], 0
seta al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret

Function at 0x489c80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004cf790
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x489cd5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret

Function at 0x489d00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004cf790
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x489d55
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret

Function at 0x489d80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004cf790
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x489de7
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x489dde
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
jb 0x489de7
cmp dword [esp + 8], 2
jae 0x489dc7
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004c4309
add esp, 0x118
ret
Function at 0x48d3b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d02bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x671580]
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
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov byte [edi + 4], 0
mov dword [edi], vtable.RC::RCAppGlobalConfig.0
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0xf
mov eax, dword [str.999999]
mov dword [edi + 8], eax
mov ax, word [0x5d9110]
mov word [edi + 0xc], ax
mov byte [edi + 0xe], 0
mov dword [ebp - 4], 0
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00475900
mov esi, eax
mov byte [ebp - 4], 4
push 0x5d8658
lea ecx, [ebp - 0x2c]
call fcn.0044ddd0
mov byte [ebp - 4], 5
push 0
push edi
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x38], esp
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0045f5f0
add esp, 8
mov byte [ebp - 4], 6
push 3
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.00484090
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0044dd70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00475aa0
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x48d4cf
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.004c4309
mov esp, ebp
pop ebp
ret
Function at 0x4901c0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 8
mov edx, ecx
xor eax, eax
xorps xmm3, xmm3
xorps xmm2, xmm2
push esi
push edi
mov edi, dword [esp + 0x14]
movd xmm1, dword [eax + edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [edi + eax + 4]
punpcklbw xmm1, xmm0
add eax, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, 0xc18
jb 0x4901d3
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
push 0
psrldq xmm0, 4
push 0x80
paddd xmm2, xmm0
movd ecx, xmm2
push 4
push 0
push 0
cmp ecx, 2
push 0x40000000
lea eax, [ecx - 2]
cmovbe eax, ecx
push edx
mov dword [edi + 0xc18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4902ba
push ebp
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0xc1c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x18], 0xc1c
je 0x4902b2
mov eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
add esp, 8
ret 4

Function at 0x4a8bd5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004e4d6f
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4a8c14
sub eax, 1
je 0x4a8c0f
sub eax, 1
je 0x4a8c0b
xor eax, eax
leave
ret
push 3
jmp 0x4a8c16
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4b5090
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call fcn.004cf790
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret
Function at 0x4be770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d330f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
push 0x70
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.004c4317
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
mov dword [ebp - 4], 0
call fcn.004be1f0
lea esi, [edi + 8]
mov dword [ebp - 4], 1
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004c4317
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
movzx eax, byte [ebx + 0x1c]
mov byte [edi + 0x1c], al
movzx eax, byte [ebx + 0x1d]
mov byte [edi + 0x1d], al
cmp byte [ebx + 0x30], 0
mov byte [ebp - 4], 2
jne 0x4be858
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4be84e
push esi
call fcn.00471040
add esp, 4
lock inc dword [eax]
lea eax, [ebp - 0x18]
mov ebx, 1
jmp 0x4be869
push 0
lea ecx, [ebp - 0x28]
call fcn.004be650
mov ebx, 2
mov esi, dword [eax]
mov dword [edi + 0x20], esi
mov ecx, dword [eax + 4]
mov dword [edi + 0x24], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 4], 4
test bl, 2
je 0x4be896
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.004be9b0
test bl, 1
je 0x4be8a3
lea ecx, [ebp - 0x18]
call fcn.004be9b0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 6
mov al, byte [ecx + 0x30]
mov byte [edi + 0x30], al
lea eax, [ecx + 8]
push eax
mov ecx, edi
call fcn.004bf930
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4be8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d332d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x70
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004c4317
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea esi, [edi + 8]
mov dword [ebp - 4], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004c4317
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov al, cl
and al, 1
shr ecx, 1
mov byte [edi + 0x1c], al
and cl, 1
mov byte [edi + 0x1d], cl
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bfe50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004c2e00
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004c4317
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.004b3e20
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x78], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c55ec
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c562b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c562b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c562b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c562b
cmp dword [ecx + 0x74], 0xe
jbe 0x4c562b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4c9a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3c65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
xorps xmm0, xmm0
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x34], 0
push esi
movups xmmword [ebp - 0x44], xmm0
mov esi, ecx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 4]
push eax
call fcn.004b2950
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x14]
add esp, 8
lea eax, [ebp - 0x44]
or ecx, 0x20019
cmp dword [ebp - 0x30], 7
cmova eax, dword [ebp - 0x44]
push edx
push ecx
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x4c9b27
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call fcn.004b2950
add esp, 8
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
sete byte [ebp - 0xd]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4c9b27
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9b1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9b70
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4c9b5d
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9b53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9b75
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.004d91aa
call fcn.004d91aa
int3
Function at 0x4c9c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3cce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
call fcn.004caa20
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
call fcn.004b2950
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9dc8
cmp dword [ebp - 0x18], 3
jne 0x4c9dc8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4c9d7e
mov eax, dword [edi + 4]
mov edx, dword [edi]
sub eax, edx
cmp ecx, eax
jae 0x4c9d31
lea eax, [edx + ecx]
mov dword [edi + 4], eax
jmp 0x4c9d5f
jbe 0x4c9d5f
mov eax, dword [edi + 8]
sub eax, edx
cmp ecx, eax
jbe 0x4c9d4a
lea eax, [ebp + 0xf]
push eax
push ecx
mov ecx, edi
call fcn.004c9680
jmp 0x4c9d5f
lea esi, [edx + ecx]
push esi
push dword [edi + 4]
call fcn.004be330
mov dword [edi + 4], esi
add esp, 8
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 7
lea ecx, [ebp - 0x10]
push ecx
push dword [edi]
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push 0
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x4c9db4
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9daa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9df3
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004ca720
push 0
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.004aa350
push 0x669c1c
lea eax, [ebp - 0x78]
push eax
call fcn.004cf8ea
call fcn.004d91aa
int3
Function at 0x4c9e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3cf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
mov esi, ecx
call fcn.004caa20
xorps xmm0, xmm0
mov dword [ebp - 0x10], 8
xor eax, eax
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004b2950
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9ed8
cmp dword [ebp - 0x14], 0xb
jne 0x4c9ed8
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4c9ec2
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9eb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9f01
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004ca720
push 0
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004aa350
push 0x669c1c
lea eax, [ebp - 0x78]
push eax
call fcn.004cf8ea
call fcn.004d91aa
int3

Function at 0x4c9f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
call fcn.004caa20
xorps xmm0, xmm0
mov dword [ebp - 0x10], 4
xor eax, eax
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.004b2950
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9fe7
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x4c9f9b
cmp eax, 5
jne 0x4c9fe7
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4c9fd4
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9fca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ca012
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.004ca720
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.004aa350
push 0x669c1c
lea eax, [ebp - 0x74]
push eax
call fcn.004cf8ea
call fcn.004d91aa
int3
Function at 0x4caba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3e45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.004caa20
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], 7
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.004b2950
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
call fcn.004b2950
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
add esp, 0x10
cmp dword [ebp - 0x10], 7
cmova ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x3c]
cmova eax, dword [ebp - 0x3c]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4cace4
mov ecx, dword [ebp - 0x10]
pop esi
cmp ecx, 7
jbe 0x4cac8a
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cac80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cacee
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 7
jbe 0x4cacd4
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cacca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cacee
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
mov ecx, esi
call fcn.004ca6b0
call fcn.004d91aa
int3