joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4586f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x45871b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00452510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x45873d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x45873f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4587de
jg 0x45875c
test esi, esi
je 0x4587de
test ecx, ecx
jl 0x4587a9
jg 0x458766
test eax, eax
je 0x4587a9
cmp ebx, ecx
jg 0x45877a
jl 0x458770
cmp esi, eax
jae 0x45877a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0064c9d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4587b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4587de
jg 0x4587ba
test esi, esi
je 0x4587de
cmp dword [edi + 0x4c], 0
je 0x4587de
mov ecx, edi
call fcn.00459b20
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0065e174
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x458b20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x458b5c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x458b5c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x458c43
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x458b84
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458bb7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00659350
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x458c43
cmp eax, 1
jle 0x458c16
cmp eax, 3
jne 0x458c43
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00659350
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x458c33
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0065d7be
add esp, 0x10
cmp edi, eax
jne 0x458c43
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x458b47
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
Function at 0x459b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x459bf1
cmp byte [esi + 0x3d], 0
je 0x459bf1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x459ba7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x459bb9
sub eax, 1
je 0x459bbd
sub eax, 2
je 0x459bf1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x459bda
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0065d7be
add esp, 0x10
cmp edi, eax
jne 0x459ba7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x463530
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681240
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x79cac4]
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 ebx, ecx
mov dword [ebp - 0x34], ebx
push dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x46358c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0xffffffff
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
cmp esi, edi
je 0x463619
cmp dword [esi - 4], 8
lea eax, [esi - 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jb 0x4635ae
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp - 0x2c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4635eb
test al, 0x10
jne 0x4635eb
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4635e4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, edi
je 0x463616
nop
cmp dword [esi - 4], 8
lea eax, [esi - 0x18]
jb 0x4635fb
mov eax, dword [eax]
mov esi, ebx
add ebx, 0xffffffe8
mov ecx, ebx
cmp dword [ecx + 0x14], 8
jb 0x46360a
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp ebx, edi
jne 0x4635f0
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x463624
mov esi, dword [esi]
mov edx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x463640
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push esi
call fcn.00459550
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.004636a0
lea ecx, [ebp - 0x28]
call fcn.00453390
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x4636a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x79cac4]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x14], 8
jb 0x4636c0
mov eax, dword [eax]
push 0x80
push 4
push 3
lea esi, [ecx + 4]
push 0xc0000000
push eax
mov ecx, esi
call fcn.004647e0
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x463785
push 4
push 0x768f14
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
call fcn.0044fad0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
cmovae eax, ecx
cmp dword [esp + 0x1c], 0
je 0x46375b
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
jb 0x463785
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46377b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463797
push edx
push ecx
call fcn.00611704
add esp, 8
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4
call fcn.00655e38
int3

Function at 0x4637a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681278
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0xffffffff
je 0x46380f
push 0x768f1c
lea ecx, [ebp + 8]
call fcn.004515c0
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 8]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
cmovae edx, ecx
cmp dword [ebp + 0x18], 0
je 0x463815
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x18]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x463841
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x463837
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463853
push edx
push ecx
call fcn.00611704
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.00655e38
int3
Function at 0x46c930
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681d91
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x79cac4]
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, ecx
lea ecx, [ebp - 0xd0]
call fcn.0046c600
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc0], 0
jne 0x46c9f8
movups xmm0, xmmword [0x6f8ba0]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0xa0], xmm0
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 0x40
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0xec], esi
test esi, esi
je 0x46caf2
mov ecx, esi
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c9d1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xd0]
call fcn.00459550
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str..dmp
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
call fcn.0045a420
add esp, 4
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.0046c580
cmp dword [ebp - 0xa8], 0
je 0x46cab6
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 0
cmovae eax, dword [ebp - 0xb8]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46cab6
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
push 0
push esi
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x46caaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb8]
call fcn.00453390
lea ecx, [ebp - 0xe8]
call fcn.00453390
lea ecx, [ebp - 0xd0]
call fcn.00453390
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.006116c3
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0046abb0
int3
Function at 0x46d1b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681e90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0046d040
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x46d22c
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46d250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0046d040
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x46d2fd
cmp dword [edi + 0x14], 8
jb 0x46d2c9
mov edi, dword [edi]
test edi, edi
je 0x46d2f6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d2d2
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0046d100
mov esi, dword [ebp - 0x24]
add esp, 0x18
test esi, esi
je 0x46d42d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d42d
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x46d3c2
cmp eax, 2
jne 0x46d42d
mov eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x14], eax
je 0x46d42d
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00464120
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push eax
push edi
push ebx
call fcn.004711e0
test eax, eax
jne 0x46d425
mov edx, edi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d400
sub edx, ecx
mov ecx, dword [ebp - 0x18]
sar edx, 1
push edx
push edi
call fcn.00459550
lea ecx, [ebp - 0x30]
call fcn.00453330
mov bl, 1
jmp 0x46d42f
lea ecx, [ebp - 0x30]
call fcn.00453330
xor bl, bl
test esi, esi
je 0x46d43a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681f30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.0046d040
mov esi, dword [ebp - 0x1c]
add esp, 0x18
test esi, esi
je 0x46d4ed
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681f60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0046d100
mov esi, dword [ebp - 0x20]
add esp, 0x18
test esi, esi
je 0x46d5b9
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d5ad
cmp dword [ebp - 0x10], 4
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46d5bb
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00453390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d940
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0046ce70
cmp dword [eax + 0x14], 8
jb 0x46d995
mov eax, dword [eax]
push 0x2001f
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x34]
call fcn.00471280
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00453390
test esi, esi
mov esi, dword [ebp - 0x34]
jne 0x46d9c5
push str.ParentBrowserPath
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x46d9d0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x4704a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67fa90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x79cac4]
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.006116d4
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005fe407
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 0x4710c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x79cac4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00471280
mov esi, eax
test esi, esi
jne 0x4711b7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x471189
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004710c0
mov esi, eax
test esi, esi
jne 0x4711b7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x471150
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4711a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00470fe0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4711c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 4