joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6540
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x74a9b7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.006b7270
mov dword [edi], eax
mov dword [edi + 8], 0
mov dword [edi + 0x24], 0xf
mov dword [edi + 0x20], 0
mov byte [edi + 0x10], 0
mov dword [esp + 0x60], 0
mov dword [edi + 0xc], vtable.wbs::StringBase_char_.0
lea ecx, [edi + 0x28]
mov byte [esp + 0x60], 1
call fcn.004f8e40
lea ebx, [edi + 0x2c]
mov byte [esp + 0x60], 2
mov ecx, ebx
call fcn.005735b0
lea ebp, [edi + 0x9c]
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
lea eax, [esp + 0x34]
mov byte [esp + 0x60], 4
push eax
call fcn.00503d20
add esp, 4
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 5
push ecx
mov ecx, eax
call fcn.00503600
push eax
lea ecx, [edi + 0xc]
mov byte [esp + 0x64], 6
call fcn.004f59b0
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x18], vtable.wbs::StringBase_char_.0
jb 0x4a6636
push dword [esp + 0x1c]
call fcn.006f75a9
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x60], 4
call fcn.0070ffc0
mov ecx, dword [0x833348]
push ebx
call fcn.004d2e70
push ebp
mov ecx, ebx
call fcn.00573d30
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x50
ret

Function at 0x4a7a70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov edi, dword [esp + 0x50]
lea eax, [esp + 8]
xorps xmm0, xmm0
mov byte [esp + 8], 0
push 0x20
push eax
mov esi, ecx
movq qword [esp + 0x21], xmm0
movdqu xmmword [esp + 0x11], xmm0
mov dword [esp + 0x29], 0
mov word [esp + 0x2d], 0
mov byte [esp + 0x2f], 0
mov byte [esp + 0x30], 0
movdqu xmmword [esp + 0x31], xmm0
mov dword [esp + 0x49], 0
movq qword [esp + 0x41], xmm0
mov word [esp + 0x4d], 0
mov byte [esp + 0x4f], 0
call fcn.00456f20
push 0x20
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00456f90
lea edx, [esp + 0x27]
xor eax, eax
lea ecx, [edi + 0x1f]
cmp edi, edx
ja 0x4a7b02
lea edx, [esp + 8]
cmp ecx, edx
jae 0x4a7b12
lea edx, [esp + 0x47]
cmp edi, edx
ja 0x4a7b36
lea edx, [esp + 0x28]
cmp ecx, edx
jb 0x4a7b36
mov cl, byte [esp + eax + 0x28]
xor cl, byte [esp + eax + 8]
mov byte [edi + eax], cl
inc eax
cmp eax, 0x20
jl 0x4a7b12
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x44
ret 4
movdqu xmm0, xmmword [esp + 8]
mov ecx, dword [esp + 0x48]
movdqu xmm1, xmmword [esp + 0x28]
pxor xmm1, xmm0
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmmword [edi], xmm1
movdqu xmm1, xmmword [esp + 0x18]
pxor xmm1, xmm0
movdqu xmmword [edi + 0x10], xmm1
pop edi
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 0x44
ret 4
Function at 0x4aafb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x74b3e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xbc]
push eax
lea ecx, [esp + 0xc]
call fcn.004f8e60
push dword [esp + 0x24]
lea eax, [esi + 0x2c]
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
push eax
call fcn.006e6560
add esp, 0xc
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call fcn.004f8ea0
lea eax, [esi + 0xb8]
push eax
lea ecx, [esp + 0x10]
call fcn.004f8e60
mov eax, dword [esi + 8]
mov dword [esp + 0x18], 1
test eax, eax
je 0x4ab05a
push eax
push dword [esp + 0x28]
push 1
push dword [esp + 0x2c]
call fcn.00700a90
push dword [esi + 8]
push 1
push 1
push 0x781320
call fcn.00700a90
add esp, 0x20
mov byte [esi + 0xc], 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004f8ea0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x74b416
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
xor eax, eax
lea ecx, [edi + 0x34]
mov word [edi], ax
xorps xmm0, xmm0
mov dword [edi + 4], eax
mov word [edi + 8], ax
mov dword [edi + 0xc], eax
movq qword [edi + 0x10], xmm0
mov word [edi + 0x18], ax
mov dword [edi + 0x1c], eax
mov word [edi + 0x20], ax
mov byte [edi + 0x22], al
mov dword [edi + 0x24], eax
mov word [edi + 0x28], ax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
call fcn.004d9250
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.004d9250
mov dword [edi + 0x3c], eax
push 0
push 0
lea ecx, [edi + 0x44]
mov byte [esp + 0x20], 1
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
call fcn.00437250
mov dword [edi + 0x44], eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4acc80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x74b6fe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x20], 2
mov byte [ecx], 0
call fcn.00404c20
push 0xffffffffffffffff
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 3
lea eax, [esp + 0x4c]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404c20
push 0xffffffffffffffff
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 4
lea eax, [esp + 0x64]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404c20
cmp dword [esp + 0x44], 0x10
jb 0x4acd55
push dword [esp + 0x30]
call fcn.006f75a9
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x4acd7d
push dword [esp + 0x48]
call fcn.006f75a9
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x4acda5
push dword [esp + 0x60]
call fcn.006f75a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x5c
Function at 0x4b2210
Capabilities:
Persist via ginadll registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x88], eax
lea eax, [esp]
mov dword [esp + 4], 0x80
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b22a6
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.GinaDLL
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b22a6
cmp dword [esp + 4], 0x80
ja 0x4b22a6
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
push str.SkGina.dll
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
sete al
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x8c
ret
mov ecx, dword [esp + 0x88]
xor al, al
xor ecx, esp
call fcn.006f7ca4
add esp, 0x8c
ret
Function at 0x4bc700
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x761018
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
movzx eax, word [esi + 0x40]
mov ecx, dword [esi + 0x178]
push eax
mov dword [esp + 0x30], 0
call fcn.0047a700
mov edx, dword [esi + 0xc]
mov ecx, edx
shr ecx, 0x13
test cl, 1
je 0x4bc7c9
test edx, 0x1000
jne 0x4bc7c9
test dword [eax + 0xc], 0x1000
je 0x4bc7c9
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
jmp 0x4bc7e6
push 0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004bdfd0
mov eax, dword [esp + 0x38]
mov ecx, esi
add eax, dword [esp + 0x34]
mov dword [ebx], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004bdac0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bc81d
push eax
call fcn.006f75a9
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 8

Function at 0x4bcae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x767268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0xc], 4
je 0x4bcbbe
push 0xb
push str.ThresholdED
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00409620
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
mov ecx, dword [0x833348]
lea eax, [esp + 0x10]
push 5
push eax
mov dword [esp + 0x40], 0
mov ecx, dword [ecx + 0x3ec]
call fcn.004fec80
cmp dword [esp + 0x28], 0x10
mov edi, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
jb 0x4bcb8e
push dword [esp + 0x14]
call fcn.006f75a9
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.004fa120
imul ecx, edi, 0x15180
add esp, 4
add ecx, dword [eax]
cmp dword [esi + 0x24], ecx
ja 0x4bcbbe
mov ecx, dword [0x833348]
push 0x80
mov ecx, dword [ecx + 0x130]
call fcn.0042c750
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x30
ret
Function at 0x4c01f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x74d1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x84], 0
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004bdfd0
mov eax, dword [edi + 0x130]
xor ebp, ebp
sub eax, dword [edi + 0x12c]
sar eax, 6
test eax, eax
je 0x4c03a1
mov esi, dword [esp + 0x30]
sub esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x88]
sar esi, 2
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edx
jmp 0x4c02c0
mov ecx, dword [edi + 0x12c]
add ecx, edx
movdqu xmm1, xmmword [ecx + 0x10]
movdqu xmm0, xmmword [ecx + 0x30]
movdqu xmm2, xmmword [ecx]
movdqu xmm3, xmmword [ecx + 0x20]
mov ecx, dword [0x833348]
movdqu xmmword [esp + 0x48], xmm1
mov ebx, dword [esp + 0x4c]
movdqu xmmword [esp + 0x68], xmm0
mov ecx, dword [ecx + 0x3a8]
test ecx, ecx
je 0x4c030a
cmp ecx, ebx
cmovb ebx, ecx
mov dword [esp + 0x4c], ebx
movdqu xmm1, xmmword [esp + 0x48]
cmp esi, ebp
jbe 0x4c03c8
mov ecx, dword [esp + 0x2c]
mov edi, dword [edi + 0x34]
sub edi, dword [esp + 0x14]
sub edi, dword [esp + 0x18]
movzx ecx, word [ecx + ebp*4]
sub edi, dword [esp + 0x1c]
movd esi, xmm1
mov word [esp + 0x74], cx
sub esi, ecx
movzx ecx, di
movzx edx, si
cmp edi, edx
movzx esi, si
cmovb esi, ecx
mov word [esp + 0x76], si
test si, si
je 0x4c0376
cmp dword [eax + 4], 0
jne 0x4c0358
cmp dword [eax + 8], 0
je 0x4c035d
cmp ebx, dword [eax + 0x14]
jbe 0x4c0376
movdqu xmm0, xmmword [esp + 0x68]
movdqu xmmword [eax], xmm2
movdqu xmmword [eax + 0x10], xmm1
movdqu xmmword [eax + 0x20], xmm3
movdqu xmmword [eax + 0x30], xmm0
mov edi, dword [esp + 0x24]
inc ebp
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
add edx, 0x40
mov dword [esp + 0x20], edx
mov ecx, dword [edi + 0x130]
sub ecx, dword [edi + 0x12c]
sar ecx, 6
cmp ebp, ecx
jb 0x4c02c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c03b2
push eax
call fcn.006f75a9
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 4
push str.invalid_vector_T__subscript
call fcn.006f2a61
int3
Function at 0x4ceba4
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x4cebc5
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x210
ret
push ebx
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x23
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4cec1d
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, 1
jne 0x4cec1d
xor eax, eax
lea ecx, [esi + 8]
mov word [esp + 0x212], ax
lea eax, [esp + 0xc]
push eax
call fcn.004cea80
push 0x787c84
lea ecx, [esi + 8]
call fcn.004ceac0
mov bl, 1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4cec2c
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x214]
mov al, bl
pop ebx
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 0x210
ret

Function at 0x4cecee
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x4ced52
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
push str._llu
push 0x14
xorps xmm0, xmm0
push 0x14
push eax
movdqu xmmword [esp + 0x20], xmm0
call fcn.006f8d83
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ced33
push 0
lea eax, [esp + 8]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 0x1c
ret 4

Function at 0x4cf540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x74e853
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [esp + 0x1c], 0
mov byte [ecx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [esp + 0x1c], 1
call fcn.006976c0
lea ecx, [edi + 0x20]
mov byte [ecx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [esp + 0x1c], 3
call fcn.00697d60
lea esi, [edi + 0x30]
mov byte [esi], 0
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push fcn.0042d4f0
push fcn.00609540
push 7
push 0xc
lea eax, [esi + 0x10]
mov byte [esp + 0x2c], 5
push eax
call fcn.006f9153
mov ecx, esi
mov byte [esp + 0x1c], 6
call fcn.00698770
mov ecx, edi
mov byte [esp + 0x1c], 7
call fcn.00698db0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4d0900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x74ebf1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi], 0
lea ecx, [esi + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 2
mov dword [esi + 8], eax
call fcn.004d09a0
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.004d0a50
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 0
call fcn.004d0a50
mov eax, dword [esi + 4]
test eax, eax
je 0x4d0980
push eax
call fcn.006f75a9
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4d20f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x610
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
mov ebx, dword [esp + 0x61c]
push esi
mov esi, dword [esp + 0x61c]
push edi
mov edi, dword [esp + 0x628]
push edi
push 0
push ebx
call fcn.006f87a0
push 0x400
lea eax, [esp + 0x228]
push 0
push eax
call fcn.006f87a0
add esp, 0x18
test esi, esi
je 0x4d2240
cmp word [esi], 0
je 0x4d2240
test ebx, ebx
je 0x4d2240
test edi, edi
je 0x4d2240
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x787eac
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d2240
push esi
push 0x787ed8
push 0x787ef4
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x400
push 0x200
push eax
call fcn.004d9c50
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4d2240
cmp dword [esp + 0x10], 3
jne 0x4d2240
push 0x40
push str._STORAGEVolume119f7e59c0
push ebx
call fcn.006f8110
lea edi, [ebx + 0x40]
mov ecx, 0x100
lea esi, [esp + 0x224]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d2204
sub ecx, edx
sar ecx, 1
push 0x4e
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
lea eax, [ebx + ecx*2]
push eax
call fcn.006f8110
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x610
ret
mov ecx, dword [esp + 0x618]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x610
ret
Function at 0x4d4b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
xor bl, bl
mov dword [esp + 0x18], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d4c58
push 0
push 0
push 0
push 0
push str.WinPE
push dword [esp + 0x20]
call esi
test eax, eax
movzx ebx, bl
mov eax, 1
mov dword [esp + 0x10], 0x1e
cmove ebx, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.EditionID
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4d4be2
mov ecx, str.WindowsPE
lea eax, [esp + 0x14]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d4bd0
test dl, dl
je 0x4d4bcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d4bd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d4bb0
xor ecx, ecx
jmp 0x4d4bd5
sbb ecx, ecx
or ecx, 1
test ecx, ecx
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1e
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.InstallationType
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4d4c42
mov ecx, str.WindowsPE
lea eax, [esp + 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d4c30
test dl, dl
je 0x4d4c2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d4c30
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d4c10
xor ecx, ecx
jmp 0x4d4c35
sbb ecx, ecx
or ecx, 1
test ecx, ecx
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
test bl, bl
jne 0x4d4cae
lea eax, [esp + 0xc]
push eax
push str.SystemControlSet001Control
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d4cae
push eax
push eax
push eax
push eax
push str.MiniNT
push dword [esp + 0x20]
call esi
push 0
push 0
push 0
push 0
push str.PEBootType
push dword [esp + 0x20]
test eax, eax
movzx ebx, bl
mov edi, 1
cmove ebx, edi
call esi
push dword [esp + 0xc]
test eax, eax
movzx ebx, bl
cmove ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x2c
ret