joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028b0
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push edi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.HARDWAREDESCRIPTIONSystem
push 0x80000002
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40295d
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.SystemBiosVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40292b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40295d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x61c], 0x51
jne 0x40295d
cmp byte [ebp - 0x61b], 0x45
jne 0x40295d
cmp byte [ebp - 0x61a], 0x4d
jne 0x40295d
cmp byte [ebp - 0x619], 0x55
je 0x402a75
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push str.SANDBOX
push eax
call esi
add esp, 8
test eax, eax
jne 0x402a74
lea ecx, [ebp - 0x21c]
push str.MALNETVM
push ecx
call esi
add esp, 8
test eax, eax
jne 0x402a74
lea edx, [ebp - 0x21c]
push str.VIRUSCLONE
push edx
call esi
add esp, 8
test eax, eax
jne 0x402a74
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 0x115], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
cmp eax, 0xcd1a40
je 0x402a74
cmp eax, 0x6cbbc508
je 0x402a74
cmp eax, 0x774e1682
je 0x402a74
cmp eax, 0x837f873e
je 0x402a74
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._sand_box_
lea ecx, [ebp - 0x118]
push ecx
call esi
test eax, eax
jne 0x402a74
push str.cwsandbox_
lea edx, [ebp - 0x118]
push edx
call esi
test eax, eax
jne 0x402a74
push str._sandbox_
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
jne 0x402a74
xor edi, edi
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4058ff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x40598e
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40594c
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40596f
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x405aa5
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x4059b6
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x4059c0
xor eax, eax
jmp 0x4059f8
sub ecx, dword [ebp - 4]
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
cmp dword [ecx + 0x18], 1
jne 0x4059e2
push dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
call fcn.004076a5
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x405a20
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edi]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x405a34
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40590a
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x405aa5
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x405a74
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x405a59
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x405aa5
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x405aa5
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x405a8e
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x42a36802
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x330b6235
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4065ee
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0xb8], 0xffffffff
or dword [ebp - 0xbc], 0xffffffff
and dword [ebp - 0xb4], 0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
test esi, esi
je 0x406794
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x406794
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.00426c17
mov dword [ebp - 0xb4], eax
test eax, eax
js 0x40665f
push dword [ebp - 0xb8]
call fcn.004065ad
mov dword [ebp - 0xbc], eax
push edi
call fcn.00405d37
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
xor eax, eax
mov word [esi], ax
cmp edi, 2
jne 0x406698
cmp dword [ebp - 0xb4], eax
jl 0x406698
push ebx
push esi
push 1
push eax
push dword [ebp - 0xb8]
call fcn.0040651a
test eax, eax
jne 0x40678b
push ebx
push esi
push edi
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x40678b
push dword [ebp - 0xc0]
push edi
call fcn.004064c7
test eax, eax
jle 0x406786
cmp dword [ebp - 0xbc], 0xffffffff
je 0x40671c
push 0xaa
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xbc]
call fcn.0042abd1
cmp dword [ebp - 0xb4], 0
jl 0x40671c
push ebx
push esi
push edi
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x40678b
push dword [ebp - 0xc0]
push edi
call fcn.004064c7
cmp eax, 1
jle 0x406786
cmp dword [ebp - 0xc4], 0xffffffff
je 0x406786
push 0xaa
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x55
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xc4]
call fcn.0042abd1
cmp dword [ebp - 0xb4], 0
jl 0x406786
push ebx
push esi
push edi
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x40678b
xor eax, eax
mov word [esi], ax
push esi
call fcn.00405293
pop edi
jmp 0x406796
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c025
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a6ea
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041fe7c
cmp eax, 3
je 0x40a876
call fcn.0041fe7c
cmp eax, 4
je 0x40a876
push ebx
push esi
push edi
push 0x55
mov edi, 0x470338
push edi
push 0x470548
call fcn.004052bd
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x40a747
push ebx
push 0x55
push edi
push esi
call fcn.004148f4
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
call fcn.00406859
push eax
push esi
call fcn.004149bb
call fcn.00406859
push eax
push dword [0x46ea08]
call fcn.004149bb
call fcn.00406859
mov edi, eax
call fcn.00407322
mov esi, eax
cmp edi, esi
je 0x40a873
movzx ecx, di
push ecx
call fcn.00421ecc
test eax, eax
jne 0x40a78c
movzx eax, si
push eax
call fcn.00421ecc
test eax, eax
je 0x40a873
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x46e7a8]
call fcn.00411f16
test eax, eax
jne 0x40a873
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a873
imul eax, eax, 0x104
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
mov edi, ebx
mov dword [ebp - 0xc], 0x104
push eax
call fcn.004121be
test al, al
jne 0x40a7ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x40a873
push dword [ebp + 8]
jmp 0x40a86d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40a844
mov ebx, esi
cmp edi, dword [ebp - 8]
jae 0x40a844
mov eax, 0x104
inc edi
add ebx, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40a81b
test edi, edi
je 0x40a85f
mov ebx, esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 0x104
sub edi, 1
jne 0x40a84a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a873
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b247
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x470778], 0
je 0x40b25f
mov eax, dword [0x47077c]
jmp 0x40b32f
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2ae
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x47077c
push esi
push esi
push dword [0x46e130]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b2ae
cmp dword [ebp - 8], 4
je 0x40b308
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40b2bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b310
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x47077c
push esi
push esi
push dword [0x46e130]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b310
cmp dword [ebp - 8], 4
jne 0x40b310
mov esi, dword [0x47077c]
jmp 0x40b316
mov dword [0x47077c], esi
cmp dword [ebp - 4], 0
mov byte [0x470778], 1
je 0x40b32c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b333
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x451ec8
push SysReAllocString
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40b3c5
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40b3bb
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b3bb
cmp dword [ebp + 8], edi
jne 0x40b3bb
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x40b3bb
cmp dword [ebp - 4], ebx
je 0x40b3c7
push dword [ebp - 4]
call esi
jmp 0x40b3c7
cmp dword [ebp - 4], ebx
je 0x40b3c5
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x40b3d1
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412b00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x44ece2
call fcn.0044c389
mov esi, dword [ebp + 8]
test esi, esi
jne 0x412b1a
xor eax, eax
jmp 0x412c63
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x412b3d
cmp dword [0x47083c], ebx
je 0x412c27
push 2
pop edi
jmp 0x412b56
cmp ebx, 1
jne 0x412c27
push esi
call fcn.00412e75
test al, al
je 0x412c24
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.0041217c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
push eax
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x412bf2
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x412b87
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 2
mov edi, eax
jae 0x412bb3
cmp dword [ebp - 0x1c], 1
je 0x412bb0
cmp dword [ebp - 0x1c], 2
jne 0x412bb3
push 2
pop edi
push edi
call fcn.00412e9f
push dword [ebp - 0x10]
test eax, eax
je 0x412c0f
mov eax, dword [esi + 0xc]
xor edi, edi
mov ecx, 0x470b30
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x46e1d0], edi
call fcn.00412d6c
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 0x10], edi
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], edi
push edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
call fcn.004121ec
mov edi, eax
test edi, edi
je 0x412b7b
jmp 0x412c18
call fcn.0041395f
test edi, edi
je 0x412c33
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0041219d
mov ecx, dword [ebp - 0x14]
inc ebx
cmp ebx, 2
jl 0x412b25
jmp 0x412c3e
lea ecx, [ebp + 0xb]
call fcn.0041219d
mov ecx, dword [ebp - 0x14]
test edi, edi
jne 0x412c59
cmp dword [ebp - 0x1c], 2
je 0x412c51
mov al, byte [esi + 0x10]
and al, 0xf
cmp al, 2
jne 0x412c61
push ecx
call fcn.00414565
jmp 0x412c5f
push esi
call fcn.00414884
mov ecx, eax
mov eax, ecx
call fcn.0044c35a
ret 4
Function at 0x413062
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x44ed05
call fcn.0044c389
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41307c
xor al, al
jmp 0x41314d
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x41308d
xor ecx, ecx
cmp dword [0x47083c], ecx
jmp 0x413097
push esi
call fcn.00412e75
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x413075
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.0041217c
xor ecx, ecx
mov dword [ebp - 4], edi
push 2
test bl, bl
pop eax
cmovne ecx, eax
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 0x14], ecx
or eax, ecx
jmp 0x413121
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4130d7
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.00412e9f
push ebx
test eax, eax
je 0x41313b
mov eax, dword [esi + 0xc]
xor edi, edi
mov ecx, 0x470b30
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x46e1d0], edi
call fcn.00412d6c
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp + 8], edi
or eax, dword [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
call fcn.004121ec
mov edi, eax
test edi, edi
je 0x4130cb
jmp 0x413140
call fcn.0041395f
lea ecx, [ebp + 0xf]
call fcn.0041219d
test edi, edi
sete al
call fcn.0044c35a
ret 8

Function at 0x4132e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4132fd
mov eax, dword [edi]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0xffff
push dword [ebp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push 2
pop eax
cmp edx, eax
jae 0x413334
cmp ecx, 1
je 0x413332
cmp ecx, eax
jne 0x413334
mov esi, eax
push esi
call fcn.00412e9f
test eax, eax
je 0x41334b
push edi
mov ecx, 0x470b30
call fcn.00412d6c
jmp 0x41337e
test esi, esi
jne 0x413378
cmp ecx, 2
je 0x413359
cmp ecx, 1
jne 0x413365
shr edx, 1
xor eax, eax
mov word [ebx + edx*2 - 2], ax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x1c]
push eax
push ecx
call fcn.00413155
test eax, eax
push 2
pop eax
cmove esi, eax
push edi
call fcn.0041395f
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x413387
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x4133ad
cmp dword [0x47083c], edi
je 0x41349e
push 2
pop esi
jmp 0x4133c6
cmp edi, 1
jne 0x41349e
push ebx
call fcn.00412e75
test al, al
je 0x41349e
xor esi, esi
lea ecx, [ebp + 0xb]
mov dword [ebp - 0xc], esi
call fcn.0041217c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
push eax
movzx eax, word [ebx + 0x10]
shr eax, 1
and eax, 0x10
or eax, esi
jmp 0x41344d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4133fb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call fcn.00412e9f
push dword [ebp - 4]
test eax, eax
je 0x413466
mov eax, dword [ebx + 0xc]
xor esi, esi
mov ecx, 0x470b30
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x46e1d0], esi
call fcn.00412d6c
movzx eax, word [ebx + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 4], esi
or eax, dword [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xc]
call fcn.004121ec
mov esi, eax
test esi, esi
je 0x4133e7
jmp 0x413496
call fcn.0041395f
test esi, esi
jne 0x413496
movzx ecx, word [ebx + 0x10]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x10], eax
je 0x4134b3
cmp dword [ebp - 0x10], 3
jne 0x413493
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x413493
and cl, 0xf
cmp cl, 4
je 0x4134b3
push 2
pop esi
lea ecx, [ebp + 0xb]
call fcn.0041219d
inc edi
cmp edi, 2
jl 0x413395
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xb]
mov dword [eax], 1
call fcn.0041219d
xor eax, eax
jmp 0x4134aa
Function at 0x413abd
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x44ed70
call fcn.0044c389
xor edi, edi
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.0041217c
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
push edi
jmp 0x413b49
cmp dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
jne 0x413af7
test eax, eax
jne 0x413af3
mov eax, dword [edi]
push 0
jmp 0x413aff
test eax, eax
jne 0x413afd
mov eax, dword [edi]
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push esi
call fcn.00412e9f
push edi
test eax, eax
je 0x413b6f
mov eax, dword [ebx + 0xc]
xor esi, esi
mov ecx, 0x470b30
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x46e1d0], esi
call fcn.00412d6c
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x14], esi
call fcn.0041219d
lea ecx, [ebp - 0xd]
call fcn.0041217c
mov dword [ebp - 4], esi
push esi
movzx eax, word [ebx + 0x10]
shr eax, 1
and eax, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0xc]
call fcn.004121ec
mov esi, eax
test esi, esi
je 0x413ae2
jmp 0x413b74
call fcn.0041395f
lea ecx, [ebp - 0xd]
call fcn.0041219d
mov eax, esi
call fcn.0044c35a
ret 4

Function at 0x41402d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x44eda6
call fcn.0044c3f4
push dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.00413a1b
test eax, eax
jne 0x41404e
push 2
pop eax
jmp 0x4140c0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0041410b
mov esi, eax
test esi, esi
je 0x41407b
cmp dword [ebp - 0x14], 0
je 0x414077
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4140c0
push dword [ebp + 0x24]
mov esi, dword [ebp - 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x4140a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4140c0
call fcn.0044c35a
ret 0x20

Function at 0x414c86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x414cce
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x414cce
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414cce
cmp word [eax + 2], 0
je 0x414cce
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x414cce
add eax, 0x30
jmp 0x414cd3
mov eax, 0x4585e8
pop esi
pop ebp
ret