joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4299c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x52406c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push 0x52c310
push 0x431980
push 0x52c318
mov edi, edx
movlpd qword [esp + 0x18], xmm0
mov esi, ecx
call fcn.00469db2
add esp, 0xc
test eax, eax
je 0x429af0
push 0x52c310
push 0x431980
push 0x52c318
mov dword [esp + 0x1c], 0x52c310
mov dword [ebx], 0
call fcn.00469db2
add esp, 0xc
test eax, eax
je 0x429af0
push 0
sub esp, 0x10
mov dword [ebx + 4], 0x52c310
lea eax, [esp + 0x20]
mov edx, esi
lea ecx, [esp + 0x28]
push eax
call fcn.0042aaa0
mov eax, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
je 0x429a64
cmp eax, 1
je 0x429a64
cmp eax, 3
je 0x429ab6
cmp dword [edi + 0x10], 0
mov eax, dword [esi + 0x14]
je 0x429aca
cmp eax, 8
jb 0x429a74
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x429a7c
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x429adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x52c310
push 0x431980
push 0x52c318
mov esi, eax
call fcn.00469db2
add esp, 0xc
test eax, eax
je 0x429af0
mov dword [ebx], esi
mov dword [ebx + 4], 0x52c310
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
cmp eax, 8
jb 0x429ad1
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x429a86
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
call fcn.004be41d
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0x10
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
jb 0x42e7d2
mov esi, dword [esi]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test ebx, ebx
je 0x42e7f1
nop
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x42e7e0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
and ecx, edi
pop edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x42e82b
cmp ecx, eax
jne 0x42e823
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esi + edx + 4], ecx
jmp 0x42e833
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x42e833
cmp ecx, eax
jne 0x42e833
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [ebx + 8]
call fcn.0042e700
mov eax, dword [ebp - 8]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437b10
Capabilities:
Get disk information
Get disk size

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 0x4e6e0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x52406c]
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 - 0x144], edi
push 0x100
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], edi
xorps xmm0, xmm0
push 0
push eax
movsd qword [ebp - 0x160], xmm0
call fcn.004bb410
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x140], 0
lea esi, [ebp - 0x140]
je 0x437c35
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x437c35
lea eax, [ebp - 0x150]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x148]
movlpd qword [ebp - 0x148], xmm0
push eax
lea eax, [ebp - 0x158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x437be9
xorps xmm0, xmm0
movlpd qword [ebp - 0x148], xmm0
mov edx, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
call fcn.004e1ab0
movsd xmm1, qword [0x508db8]
mulsd xmm0, xmm1
push esi
mulsd xmm0, xmm1
mulsd xmm0, xmm1
addsd xmm0, qword [ebp - 0x160]
movsd qword [ebp - 0x160], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x437ba3
movsd xmm0, qword [ebp - 0x160]
call fcn.0043a2b0
cvttsd2si eax, xmm0
test eax, eax
jns 0x437c63
neg eax
push eax
lea eax, [ebp - 0x16]
push eax
call fcn.0043a2e0
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x437c6f
push eax
lea eax, [ebp - 0x16]
push eax
call fcn.0043a2e0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x168], 0
mov word [ebp - 0x178], ax
add esp, 8
lea eax, [ebp - 0x16]
mov dword [ebp - 0x164], 7
cmp ecx, eax
je 0x437ca7
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.00432030
push 2
push 0x506374
lea ecx, [ebp - 0x178]
mov dword [ebp - 4], 0
call fcn.00430ff0
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x164]
cmp edx, 8
jb 0x437d2d
mov ecx, dword [ebp - 0x178]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437d23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437d4d
push edx
push ecx
call fcn.0046c951
add esp, 8
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.0046c93b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004be3cc
int3
Function at 0x44ebb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e84b3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x52406c]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.004bb410
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x44ec69
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x44ec69
call fcn.0044d110
mov edi, eax
jmp 0x44ed85
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44ec8c
call fcn.0044d110
jmp 0x44ed78
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x44ecaa
call fcn.0044d110
jmp 0x44ed78
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x44eccb
mov edi, 0x8007000e
jmp 0x44ed7a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x44edc0
jb 0x44ece9
cmp eax, 0xffffffff
ja 0x44edc0
cmp eax, 0x400
jbe 0x44ecfe
push eax
lea ecx, [ebp - 0x424]
call fcn.0044d0e0
jmp 0x44ed24
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x44ed24
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x44ed3b
mov edi, 0x8007000e
jmp 0x44ed7a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x44ed5b
call fcn.0044d110
jmp 0x44ed78
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0044ea50
mov edi, eax
test esi, esi
je 0x44ed85
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x44eda0
lea ecx, [ebp - 0x424]
call fcn.0044d0c0
nop
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 - 0x14]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0043a3d0
int3
Function at 0x44f230
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push 0x52c310
push 0x431980
push 0x52c318
mov dword [esi], 0
call fcn.00469db2
add esp, 0xc
test eax, eax
je 0x44f31e
mov dword [esi + 4], 0x52c310
cmp dword [edi + 0x14], 8
jb 0x44f271
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44f298
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44f28f
cmp eax, 3
jne 0x44f2b4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x44f2c8
mov eax, ebx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44f2c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 8]
call fcn.0042a600
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp dword [esi], 0
jne 0x44f314
push edi
test bl, 0x10
je 0x44f2db
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x44f2e1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44f311
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x52c310
push 0x431980
push 0x52c318
mov edi, eax
call fcn.00469db2
add esp, 0xc
test eax, eax
je 0x44f31e
mov dword [esi + 4], 0x52c310
mov dword [esi], edi
cmp dword [esi], 0
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004be41d
int3
Function at 0x451530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8828
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52406c]
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 edi, edx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edx
cmovae eax, dword [ebp + 8]
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45158d
xor bl, bl
jmp 0x451683
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x24]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x451670
push ecx
lea ecx, [ebp - 0x29]
mov dword [ebp - 0x18], 0
push ecx
xorps xmm0, xmm0
mov byte [ebp - 0x29], 0
push eax
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00451b70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov esi, dword [ebp - 0x20]
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x14]
push esi
push ecx
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x28]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x45163d
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x451625
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.00432030
test esi, esi
je 0x45167e
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x451664
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451721
push ecx
push esi
call fcn.0046c951
add esp, 8
jmp 0x45167e
push 0
push 0x505f50
mov ecx, edi
call fcn.00432030
test ebx, ebx
sete bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4516b9
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4516af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451726
push edx
push ecx
call fcn.0046c951
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x451703
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4516f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45172b
push edx
push ecx
call fcn.0046c951
add esp, 8
mov al, bl
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.0046c93b
mov esp, ebp
pop ebp
ret
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
int3
Function at 0x451740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea edx, [ebp - 8]
push ebx
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x451781
xor bl, bl
jmp 0x4517c3
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp + 0x20]
push esi
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
lea eax, [eax*2 + 2]
push eax
cmovae ecx, dword [ebp + 0x20]
push edx
push 1
push 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4517fd
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4517f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518a2
push edx
push ecx
call fcn.0046c951
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x451847
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45183d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518a2
push edx
push ecx
call fcn.0046c951
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x451891
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518a2
push edx
push ecx
call fcn.0046c951
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
call fcn.004be3cc
int3
Function at 0x4518b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x52406c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push ebx
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x451a64
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x451938
cmp eax, 2
jne 0x451914
push 0x508754
call fcn.00428a50
add esp, 4
jmp 0x451a64
push str.Error_opening_key._n
call fcn.00428a50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
mov dword [esp + 0x10], edi
je 0x451962
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov dword [esp + 0x10], edi
mov word [edi], ax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x451a44
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop
cmp word [eax], 0
je 0x4519ae
add eax, 2
sub ecx, 1
jne 0x4519a0
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x451a02
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x4519f5
lea edi, [esp + 0x28]
mov eax, SysReAllocString
sub edi, ecx
test eax, eax
je 0x4519f1
movzx esi, word [edi + ecx]
test si, si
je 0x4519f1
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4519d8
mov edi, dword [esp + 0x10]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esp + 0x14]
mov edx, ebx
mov ecx, esi
call fcn.004518b0
test eax, eax
je 0x451a44
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x451993
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x451921
mov ecx, dword [esp + 0x234]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
Function at 0x456c90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8e83
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x52406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.004280a0
mov eax, dword [ebp + 8]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.004578e0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ebx, ax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x456d58
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x456d58
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
cmp dword [edi + 0x38], 0
mov word [edi + 0x40], bx
jne 0x456d76
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004303e0
lea edx, [esi + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5730
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0046c968
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046aa25
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459480
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9246
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x234], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x459522
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459500
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00432030
sub esp, 0x18
cmp dword [edi + 0x10], 0
mov ecx, esp
jne 0x45957c
lea eax, [ebp - 0x230]
push eax
call fcn.00432310
mov edx, 0x5054e4
mov ecx, esi
call fcn.0041a0d0
add esp, 0x18
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4595bc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4595b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4595d9
jmp 0x4595b2
mov dword [ebp - 0x234], esp
push edi
call fcn.00432310
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00432310
mov edx, 0x5054e4
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0045c470
add esp, 0x30
jmp 0x459548
push edx
push ecx
call fcn.0046c951
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret
call fcn.004be3cc
int3

Function at 0x4595e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9286
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
call fcn.004bb410
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x45963b
mov edi, dword [edi]
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
test eax, eax
je 0x459668
lea edx, [ebp - 0x218]
call fcn.004259b0
mov dword [ebp - 4], 0
jmp 0x459679
mov edx, 0x5037ec
call fcn.0042b970
mov dword [ebp - 4], 1
push 2
mov ecx, esi
mov dword [esi + 0x18], 0
call fcn.0042cf80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret