joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb8ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
xorps xmm0, xmm0
mov edi, dword [ebx + 8]
add eax, 0x30
movlpd qword [ebp - 0x1c], xmm0
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
call fcn.004820f0
add esp, 4
mov esi, dword [ebx + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp - 0x2c], eax
cmp esi, eax
je 0x43e61d
mov edi, dword [ebx + 0x18]
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43e56a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push edi
push dword [ebx + 0x14]
call fcn.004418c0
add esp, 0x10
test al, al
mov eax, dword [ebp - 0x2c]
jne 0x43e588
add esi, 0x24
cmp esi, eax
jne 0x43e560
mov edi, dword [ebp - 0x30]
cmp esi, eax
je 0x43e61d
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
cmp edi, eax
je 0x43e5db
mov esi, dword [ebx + 0x10]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
sar ecx, 4
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x43e618
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x28]
push edx
call dword [eax + 8]
add edi, 0x30
cmp edi, dword [ebp - 0x2c]
jne 0x43e5a3
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [esi + 4], 0x4fdad0
call fcn.0048210c
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
call fcn.0047fc25
push dword [ebp - 0x1c]
mov dword [edi], 0x16
mov dword [edi + 4], 0x4fdac8
call fcn.0048210c
mov eax, edi
jmp 0x43e5f5

Function at 0x444c90
Capabilities:
Get os information via kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc01d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x7ffe026c]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
cmp ax, 6
jb 0x444cdd
ja 0x444cd9
jne 0x444cdd
cmp word [0x7ffe0270], 2
jb 0x444cdd
mov al, 1
jmp 0x444cdf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
ret
Function at 0x447690
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x208]
mov esi, ecx
push eax
push 0x200
push 0
push edx
push 2
mov dword [ebp - 0x20c], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x447888
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push eax
push 0x4d36c0
lea eax, [ebp - 0x208]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x447888
cmp dword [ebp - 0x214], 0x34
jne 0x4478a4
mov edi, dword [ebp - 0x210]
cmp dword [edi], 0xfeef04bd
jne 0x4478bf
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov dword [ebp - 0x218], eax
movzx eax, ax
mov dword [ebp - 0x21c], eax
movzx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x220], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x23c], edx
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x224], eax
movzx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x228], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x22c], eax
movzx eax, cx
mov dword [ebp - 0x234], eax
mov eax, dword [edi + 0x1c]
and eax, dword [edi + 0x18]
mov edi, dword [edi + 0x28]
shr ecx, 0x10
mov dword [ebp - 0x230], ecx
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x238], eax
movzx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x244], ecx
mov ecx, dword [edx + 0x30]
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x240], esi
mov esi, dword [ebp - 0x20c]
mov dword [ebp - 0x248], eax
mov byte [edx + 0x28], 1
mov edx, dword [ebp - 0x218]
movzx eax, cx
shr ecx, 0x10
shr edx, 0x10
mov word [esi], dx
mov edx, dword [ebp - 0x21c]
mov word [esi + 2], dx
mov edx, dword [ebp - 0x220]
mov word [esi + 4], dx
mov edx, dword [ebp - 0x224]
mov word [esi + 6], dx
mov edx, dword [ebp - 0x228]
mov word [esi + 8], dx
mov edx, dword [ebp - 0x22c]
mov word [esi + 0xa], dx
mov edx, dword [ebp - 0x230]
mov word [esi + 0xc], dx
mov edx, dword [ebp - 0x234]
mov word [esi + 0xe], dx
mov edx, dword [ebp - 0x238]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x23c]
mov dword [esi + 0x14], edx
mov edx, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x240]
mov dword [edx + 0x18], esi
mov esi, edx
mov edx, dword [ebp - 0x244]
mov dword [esi + 0x1c], edi
mov word [esi + 0x20], dx
mov edx, dword [ebp - 0x248]
mov word [esi + 0x22], dx
mov word [esi + 0x24], cx
mov word [esi + 0x26], ax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0047e22a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 0x28], 0
mov dword [esi], eax
mov dword [esi + 4], 0x503418
mov dword [esi + 8], 0
jmp 0x447873
mov eax, dword [0x5033dc]
mov byte [esi + 0x28], 0
mov dword [esi], 0x73
mov dword [esi + 4], eax
mov dword [esi + 8], 0
jmp 0x447873
mov eax, dword [0x5033dc]
mov byte [esi + 0x28], 0
mov dword [esi], 0x68
mov dword [esi + 4], eax
mov dword [esi + 8], 0
jmp 0x447873
Function at 0x4480e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc370
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x200
push 0x100
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x4481b2
nop
mov ecx, dword [ebp - 0x38]
mov eax, ecx
shr eax, 1
cmp edx, eax
jb 0x448203
lea esi, [edx + edx]
cmp esi, ecx
jbe 0x44819f
push esi
call fcn.0047e643
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x448195
push ecx
call fcn.0047e238
mov eax, dword [ebp - 0x40]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x4481a2
mov eax, dword [ebp - 0x3c]
shr ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
jne 0x448160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi + 0x18], 0
mov dword [edi], eax
mov dword [edi + 4], 0x503418
mov dword [edi + 8], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4481e3
push eax
call fcn.0047e238
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 0x244], 0
push dword [ebp - 0x244]
mov dword [ebp - 0x248], edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00447040
add esp, 0xc
mov byte [edi + 0x18], 1
lea eax, [ebp - 0x2c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push 0x18
push eax
push edi
call fcn.00483a80
add esp, 0xc
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x4481d3
Function at 0x4483f0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc3f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x260
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x1c], eax
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 - 0x26c], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x260]
mov ecx, 0x200
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 1
shr ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov edx, eax
test edx, edx
je 0x44862b
mov ecx, dword [ebp - 0x58]
mov eax, ecx
shr eax, 1
cmp edx, eax
jae 0x44858c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 0x26c], 0
push dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00447040
add esp, 0xc
mov byte [ebp - 0x20], 1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0x18
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00483a80
add esp, 0xc
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x448511
push eax
call fcn.0047e238
add esp, 4
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.00448280
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 0x20]
sub eax, 0
je 0x448572
sub eax, 1
jne 0x448585
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x448585
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x448561
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448664
push edx
push ecx
call fcn.0047ea2e
add esp, 8
mov eax, edi
jmp 0x44860d
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x448585
mov byte [ebp - 4], 3
mov edx, dword [ecx]
push 1
mov edx, dword [edx]
call edx
mov eax, edi
jmp 0x44860d
lea esi, [edx + edx]
cmp esi, ecx
ja 0x44859b
mov eax, dword [ebp - 0x5c]
jmp 0x448470
push esi
call fcn.0047e643
mov ecx, dword [ebp - 0x60]
add esp, 4
or dword [ebp - 0x264], 0x10
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x4485c1
push ecx
call fcn.0047e238
mov eax, dword [ebp - 0x60]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
jmp 0x448470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x448643
lea ecx, [ebp - 0x38]
call fcn.004480e0
jmp 0x448501
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x503418
mov dword [ebp - 0x30], 0
jmp 0x448501
call fcn.0048c979
int3
Function at 0x449ff0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
jne 0x44a056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 0x18], bl
mov dword [esi], eax
mov dword [esi + 4], 0x503418
mov dword [esi + 8], ebx
mov dword [esi + 8], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 7
cmp ebx, 7
ja 0x44a08b
xor eax, eax
mov dword [ebp - 0x10], ebx
mov ecx, ebx
lea edi, [ebp - 0x20]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + ebx*2 - 0x20], ax
mov edx, dword [ebp - 0x20]
jmp 0x44a129
cmp ebx, 0x7ffffffe
ja 0x44a1f7
mov edi, ebx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x44a0b0
mov edi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x44a0d1
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x44a1f2
add eax, eax
cmp eax, 0x1000
jb 0x44a0f8
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x44a1f2
push ecx
call fcn.0047e643
add esp, 4
test eax, eax
je 0x44a1fc
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x44a10b
test eax, eax
je 0x44a109
push eax
call fcn.0047e643
add esp, 4
mov edx, eax
jmp 0x44a10b
xor edx, edx
mov dword [ebp - 0xc], edi
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x10], ebx
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + ebx*2], ax
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, edx
push eax
push ebx
push 0
push dword [ebp - 0x28]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x44a1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xc]
mov byte [esi + 0x18], 0
mov dword [esi], eax
mov dword [esi + 4], 0x503418
mov dword [esi + 8], 0
mov dword [esi + 8], 0
cmp edx, 8
jb 0x44a043
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44a198
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44a1fc
push edx
push ecx
call fcn.0047ea2e
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047e22a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00448e50
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x44a043
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44a198
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44a1fc
jmp 0x44a198
call fcn.004054f4
call fcn.0040556b
call fcn.0048c979
int3
Function at 0x45d830
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd920
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x45d9bf
cmp dword [ebp - 0x2c], 0
mov dl, 1
mov ecx, dword [ebp - 0x1c]
setne al
mov byte [ebp - 0x24], al
movzx eax, dl
mov byte [ebp - 0x18], dl
sub eax, 0
jne 0x45d8bd
test ecx, ecx
je 0x45d8bd
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push 1
mov eax, dword [eax]
call eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x28], ax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process2]
test eax, eax
je 0x45d9e2
mov ax, word [ebp - 0x28]
movzx esi, word [ebp - 0x2c]
test ax, ax
movzx ecx, ax
mov edx, esi
cmovne edx, ecx
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
mov al, 1
mov byte [ebp - 0x18], al
mov dword [ebp - 0x24], edx
movzx eax, al
sub eax, 0
jne 0x45d920
test ecx, ecx
je 0x45d920
mov dword [ebp - 4], 1
mov eax, dword [ecx]
push 1
mov eax, dword [eax]
call eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x50]
test eax, eax
jne 0x45da0a
mov eax, 0x7ffe0030
push 0
push 0x2000000
push 3
push 0
push 7
push 0x100080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45d97b
push 0
push 0x100
push 0x4fd818
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
jne 0x45d99a
test esi, esi
je 0x45d97b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp eax, 0x100
jae 0x45d970
mov dword [0x4fda18], 0x4fd818
mov dword [0x4fda1c], eax
test esi, esi
je 0x45d9bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x45d97d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor dl, dl
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x503418
mov dword [ebp - 0x1c], ecx
jmp 0x45d89c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x503418
mov dword [ebp - 0x1c], ecx
jmp 0x45d905
add eax, 0x1e
jmp 0x45d939
Function at 0x467920
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f0f28
push 0x4b6ce2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4f7108]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x38], esi
mov eax, dword [edx + 0xc]
push dword [eax]
mov eax, dword [edx + 8]
push dword [eax]
mov ecx, dword [edx + 4]
push dword [ecx]
mov ecx, dword [edx]
push dword [ecx]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov edx, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be9ed
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f7108]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x470d75
xor eax, eax
jmp 0x470de2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x4e45e0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x470da3
xor edi, edi
jmp 0x470dd5
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x4d3788
push eax
call fcn.00470c00
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040af52
test esi, esi
je 0x470de0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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.0047e22a
mov esp, ebp
pop ebp
ret

Function at 0x470ea0
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.00470f00

Function at 0x470f00
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x470f3a
cmp byte [esi + 0xc], 0
je 0x470f23
push 0x4d36c4
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esi + 4]
mov byte [esi + 0xc], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x471d00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x471e10
test eax, eax
jne 0x471e10
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00485260
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x471de6
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471dee
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x208]
call fcn.00471d00
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x471dee
cmp esi, 0x103
je 0x471e0c
inc edi
test esi, esi
je 0x471d50
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e22a
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047e22a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x474450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp byte [esi + 0x10], 0
jne 0x474507
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x14], 8
jb 0x47447c
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x474507
mov eax, dword [esi + 8]
add esi, 4
mov ecx, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov edx, dword [esi]
sub ecx, edx
cmp ebx, ecx
jae 0x4744aa
lea eax, [edx + ebx]
mov dword [esi + 4], eax
jmp 0x4744df
jbe 0x4744df
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x4744c3
lea eax, [ebp - 1]
mov ecx, esi
push eax
push ebx
call fcn.004680d0
jmp 0x4744df
mov esi, ebx
sub esi, ecx
mov ecx, dword [ebp - 0x10]
add esi, ecx
push esi
push ecx
call fcn.00468290
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0x14], 8
jb 0x4744e7
mov edi, dword [edi]
push dword [esi]
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
pop esi
mov byte [ecx + 0x10], al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x474710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov edx, 0x811c9dc5
lea esi, [eax + eax]
test esi, esi
je 0x474742
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x474730
pop edi
mov eax, edx
pop esi
pop ebp
ret