joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d320
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e59
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.004aa810
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2030], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2034], esi
xor eax, eax
mov dword [ebp - 0x202c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
push eax
push edx
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x202c], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45d57d
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45d57d
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d3e0
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00460c20
push 0
push 0x28
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45d567
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45d567
lea eax, [ebp - 0x2010]
push 0x104
push eax
call fcn.004b2d39
mov ecx, dword [esi + 0x10]
add esp, 8
sub ecx, eax
dec ecx
lea edx, [eax + 1]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 0
movups xmmword [ebp - 0x2028], xmm0
cmp eax, edx
jb 0x45d599
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45d492
mov eax, dword [esi]
push ecx
lea eax, [eax + edx*2]
push eax
lea ecx, [ebp - 0x2028]
call fcn.004631a0
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x202c], 3
cmp esi, eax
je 0x45d4f4
mov ecx, esi
call fcn.00460b90
movups xmm0, xmmword [ebp - 0x2028]
mov ecx, 7
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x2018]
mov dword [ebp - 0x2014], ecx
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
jmp 0x45d4fa
mov ecx, dword [ebp - 0x2014]
mov eax, 3
mov dword [ebp - 0x202c], eax
and eax, 0xfffffffd
mov dword [ebp - 0x202c], eax
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x45d548
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45d53e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d59e
push ecx
push edx
call fcn.004aa103
add esp, 8
xor eax, eax
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
jmp 0x45d57d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45d578
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
call fcn.00461330
call fcn.004b3474
int3
Function at 0x45d5b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7eb7
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.004aa810
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2018], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x201c], esi
xor eax, eax
mov dword [ebp - 0x2014], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
push eax
push edx
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2014], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45d68e
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45d68e
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d670
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00460c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
Function at 0x45d6b0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7f45
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x502054]
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 dword [ebp - 0x22c], edx
mov esi, ecx
push 0x44
push 0
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0x44
mov dword [ebp - 0x224], 0x104
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x45d873
push 0xc
call fcn.004a9d6b
mov edi, eax
add esp, 4
mov dword [ebp - 0x230], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 1
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____void__.0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x234], edi
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x45d76f
mov esi, dword [esi]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45d85d
sub esp, 8
lea ecx, [ebp - 0x248]
call fcn.0045f470
lea ecx, [ebp - 0x220]
push ecx
push ebx
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x45d7d7
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x45d873
mov esi, dword [ebp - 0x220]
push 0xc
call fcn.004a9d6b
mov ebx, eax
add esp, 4
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 3
mov dword [ebx], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____unsigned_short_int__.0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x220]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45d827
sub edx, ecx
mov ecx, dword [ebp - 0x22c]
sar edx, 1
push edx
push esi
call fcn.00460c20
mov byte [ebp - 0x219], 1
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [edi]
call dword [edx]
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx + 4]
mov al, byte [ebp - 0x219]
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.004a9913
mov esp, ebp
pop ebp
ret
Function at 0x465c00
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c54
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00461130
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
add esi, 8
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
add esi, 0xc
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov dword [ebp - 0x24], esi
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov al, byte [edi + 0x14]
mov ecx, dword [ebp - 0x10]
lea esi, [ecx + 0x50]
mov byte [ecx + 0x14], al
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
movups xmm0, xmmword [edi + 0x20]
mov eax, dword [ebp + 8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [ecx + 0x40], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov edi, dword [edi + 0x54]
sub edi, dword [eax + 0x50]
sar edi, 2
test edi, edi
je 0x465d5a
cmp edi, 0x3fffffff
ja 0x465d76
push edi
call fcn.0046b5e0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [ebp - 0x14], esi
lea eax, [eax + edi*4]
mov dword [esi + 8], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
mov edi, dword [esi]
mov esi, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
sub esi, eax
push esi
push eax
push edi
call fcn.004abd70
mov ecx, dword [ebp - 0x10]
add esp, 0xc
sar esi, 2
mov dword [ebp - 0x14], 0
lea eax, [edi + esi*4]
mov dword [ecx + 0x54], eax
mov byte [ebp - 4], 9
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00463e50
int3
Function at 0x468230
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x502054]
xor eax, esp
mov dword [esp + 0x690], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
push 0x514ca8
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
push ecx
lea ecx, [esp + 0x294]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
call fcn.0048c510
mov ecx, 0x104
lea eax, [esp + 0x288]
nop dword [eax]
cmp word [eax], 0
je 0x4682ae
add eax, 2
sub ecx, 1
jne 0x4682a0
mov eax, 0x104
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4682de
push ecx
push str..Q
push ecx
mov edx, 0x104
lea ecx, [esp + 0x294]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.0048c510
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4683a3
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, 0x104
lea eax, [esp + 0x64]
nop dword [eax + eax]
cmp word [eax], 0
je 0x46831e
add eax, 2
sub esi, 1
jne 0x468310
test esi, esi
je 0x46838c
mov eax, 0x104
sub eax, esi
add eax, eax
neg esi
sbb esi, esi
and esi, eax
lea eax, [esp + 0x66]
and esi, 0xfffffffe
sub esi, 8
push esi
push eax
lea eax, [esp + 0x498]
push eax
call fcn.004abd70
add esp, 0xc
cmp esi, 0x208
jae 0x4683bc
xor eax, eax
mov word [esp + esi + 0x490], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x46838c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00467f20
add esp, 8
test al, al
je 0x4683a3
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
jne 0x468302
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x69c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 0x14
call fcn.004a9c90
int3
Function at 0x46ca30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9e6c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00461130
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov dword [ebp + 8], esi
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
add esi, 8
mov dword [ebp - 0x18], esi
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
add esi, 0xc
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
call fcn.0046a860
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov al, byte [edi + 0x14]
mov esi, dword [ebp - 0x10]
mov byte [esi + 0x14], al
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [esi + 0x40], xmm0
mov edx, dword [edi + 0x58]
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x50]
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46e040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, ecx
test edi, edi
jl 0x46e091
mov esi, dword [ebp + 8]
jg 0x46e067
test esi, esi
je 0x46e091
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
nop
mov eax, dword [ebp + 0x10]
add eax, ecx
and eax, 0xf
mov al, byte [eax + 0x515030]
xor byte [ecx + ebx], al
add ecx, 1
adc edx, 0
cmp edx, edi
jl 0x46e070
jg 0x46e091
cmp ecx, esi
jb 0x46e070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e0a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x502054]
xor eax, esp
mov dword [esp + 0x64], eax
xorps xmm0, xmm0
mov dword [esp], 0x67452301
push 0x21
mov edx, str.2d5704bf1e2641ea8f86477905614a0c
movq qword [esp + 0x14], xmm0
lea ecx, [esp + 4]
mov dword [esp + 8], 0xefcdab89
mov dword [esp + 0xc], 0x98badcfe
mov dword [esp + 0x10], 0x10325476
call fcn.004a3da0
mov edx, dword [esp + 0x14]
mov ecx, 0x78
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x5c], edx
shr edx, 3
mov dword [esp + 0x60], eax
and edx, 0x3f
sub ecx, edx
mov eax, 0x38
sub eax, edx
cmp edx, 0x38
mov edx, 0x502b20
cmovae eax, ecx
lea ecx, [esp]
push eax
call fcn.004a3da0
add esp, 4
lea edx, [esp + 0x5c]
lea ecx, [esp]
push 8
call fcn.004a3da0
movups xmm0, xmmword [esp + 4]
mov ecx, dword [esp + 0x68]
add esp, 4
xor ecx, esp
movups xmmword [0x515030], xmm0
call fcn.004a9913
mov esp, ebp
pop ebp
ret
Function at 0x471bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cac1b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x502054]
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, ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x814], 0
call fcn.00471d80
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x471c20
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00460f70
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x814]
push ecx
push 0x20019
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471d2d
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0
push 0
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x818], esi
jbe 0x471d21
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop dword [eax + eax]
push 0x400
lea eax, [ebp - 0x810]
push eax
push esi
push dword [ebp - 0x814]
call ebx
test eax, eax
jne 0x471d14
push ecx
mov edi, esp
mov dword [ebp - 0x81c], esp
mov dword [ebp - 0x820], edi
call fcn.00456f20
test eax, eax
je 0x471d6b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x810]
push eax
mov ecx, edi
call fcn.00460eb0
test al, al
jne 0x471cfe
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471ce0
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00461210
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x814]
call fcn.00471bc0
add esp, 4
inc esi
cmp esi, dword [ebp - 0x818]
jb 0x471c80
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471d4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004a9913
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3
Function at 0x4749f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb566
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x502054]
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 esi, edx
mov dword [ebp - 0x4c], esi
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x474b0d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 2
push esi
lea ecx, [ebp - 0x44]
call fcn.00460330
mov byte [ebp - 4], 3
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [eax + 2]
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0047ab80
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x474abe
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00460830
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00460b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00460b90
mov dword [ebp - 4], 0
jmp 0x474aef
mov eax, ebx
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.004a9913
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3
Function at 0x4750e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb6c5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x47528b
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.0047a840
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47527f
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
call fcn.00470c60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov esi, dword [esi]
mov dword [ebp - 0x24], esi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp esi, eax
je 0x475273
xor edi, edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
sar eax, 2
cmp edi, eax
jae 0x475239
lea ecx, [ebp - 0x20]
call fcn.00460a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edi*4]
push dword [esi + 0x10]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x20]
push eax
call fcn.0047b960
add esp, 0x14
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x475227
cmp dword [ebp - 0x18], 0
je 0x475227
cmp dword [ebp - 0x14], 0
jbe 0x475227
lea ecx, [ebp - 0x1c]
call fcn.00460a60
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.00461400
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x14]
call fcn.0047aa90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004608f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004608f0
inc edi
jmp 0x475184
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x475267
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x47525a
cmp esi, dword [eax + 8]
jne 0x47525a
mov esi, eax
mov dword [ebp - 0x24], esi
jmp 0x475245
mov esi, eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x28]
jmp 0x475175
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x47525c
jmp 0x475267
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00468540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0047b770
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret