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

Disassembly:
push 0xffffffffffffffff
push 0x458aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x48]
xor edi, edi
push esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
sub eax, ecx
lea edx, [ebx + 0xd]
sub eax, 0xd
mov dword [esp + 0x20], edx
cdq
sub eax, edx
mov dword [esp + 0x2c], ecx
sar eax, 1
add ecx, eax
mov dword [esp + 0x1c], ecx
add ecx, 0xd
cmp ebp, edi
mov dword [esp + 0x24], ecx
je 0x40f8c5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40f8c5
xor ebp, ebp
jmp 0x40f8c9
mov ebp, dword [esp + 0x50]
push edi
push edi
push 0xf0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebp, 4
jne 0x40f8de
xor ebp, ebp
mov edx, dword [0x468c90]
mov ecx, dword [esp + 0x4c]
lea eax, [ebp + eax*4]
push edi
push edi
push eax
push 8
lea eax, [esp + 0x28]
push edx
push eax
push ecx
call fcn.00444f00
add esp, 0x1c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add ebx, 0x10
push 4
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x60]
mov dword [edx + 0xc], eax
call fcn.004108f0
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.004108d0
push esi
call fcn.0040f290
mov ecx, dword [esp + 0x54]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x40f960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 4
xor ecx, ecx
sub esp, 0x10
xor eax, eax
mov esi, esp
mov edx, eax
mov dword [esp + 0x24], ecx
mov dword [esi], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.004108f0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004108d0
mov eax, dword [esp + 0x30]
push eax
call fcn.0040f290
mov ecx, dword [esp + 0x24]
add esp, 0x1c
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x40f9d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 4
xor ecx, ecx
sub esp, 0x10
xor eax, eax
mov esi, esp
mov edx, eax
mov dword [esp + 0x24], ecx
mov dword [esi], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.004108f0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004108d0
mov eax, dword [esp + 0x30]
push eax
call fcn.0040f290
mov ecx, dword [esp + 0x24]
add esp, 0x1c
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x4215b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459910
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
jne 0x4215db
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4217ad
mov eax, dword [0x4631a0]
push esi
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00407710
mov esi, dword [esp + 8]
mov ecx, ebx
call fcn.004217c0
test esi, esi
je 0x42177d
cmp word [esi], 0
je 0x42177d
cmp dword [ebx], 0xffffffff
je 0x42177d
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4631a0]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x16]
and edx, 0xffff
push esi
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x48]
push str._02d:_02d:_02d:_04d_t_s_r_n
push eax
mov byte [esp + 0x44], 1
call fcn.004076f0
mov eax, dword [esp + 0x50]
add esp, 0x1c
mov esi, dword [eax - 8]
cmp word [eax + esi*2 - 6], 0xa
jne 0x421737
mov ecx, dword [eax - 0xc]
push edi
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x4216a2
cmp esi, dword [eax - 4]
jle 0x4216e4
push esi
lea ecx, [esp + 0x3c]
call fcn.00404720
test eax, eax
jne 0x4216b8
mov eax, dword [esp + 0x38]
xor ecx, ecx
jmp 0x4216e6
lea ecx, [esi + esi + 2]
lea edx, [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
lea eax, [esi + esi + 2]
push edx
push eax
push ecx
call fcn.00401bc0
mov edx, dword [esp + 0x48]
add esp, 0x10
push edi
mov dword [edx - 8], esi
call fcn.00405ba0
mov eax, dword [esp + 0x38]
mov ecx, eax
mov eax, dword [eax - 8]
mov word [ecx + eax*2 - 6], 0xd
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 8]
mov word [ecx + eax*2 - 4], 0xa
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x38]
dec esi
call fcn.00408830
cmp esi, 0xffffffff
pop edi
jne 0x421722
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [esp + 0x34]
mov dword [eax - 8], esi
mov ecx, dword [esp + 0x34]
mov word [ecx + esi*2], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
lea edx, [esp + 0x30]
push 0
push edx
mov edx, dword [ebx]
shl ecx, 1
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x34]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42177d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42177d
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x4631a4]
pop esi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4217ad
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4217ad
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0x1c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4231a0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x4232b8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4232b8
push 0x464874
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4232b8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jle 0x4232ae
mov esi, eax
and esi, 0x80000003
jns 0x4231f9
dec esi
or esi, 0xfffffffc
inc esi
neg esi
cdq
sbb esi, esi
and edx, 3
add eax, edx
neg esi
sar eax, 2
add esi, eax
lea edi, [esi*4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4232ae
mov ecx, edi
mov eax, 0x20202020
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 4
push esi
push ebx
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, ebx
test esi, esi
jle 0x423269
mov ecx, esi
mov ebp, dword [eax]
add eax, 4
xor ebp, 0x4f484951
dec ecx
mov dword [eax - 4], ebp
jne 0x423258
mov eax, dword [esp + 0x18]
push 0x464870
push eax
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x42329e
push edi
push 4
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov ebp, 1
push ebx
call fcn.0044bf22
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x423bd0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c6e0
push 0x45785c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x423cf2
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], edi
push edi
push edi
push 3
push edi
push 3
push 0x80
push str..360SelfProtection
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
jne 0x423c40
xor eax, eax
mov dword [ebp - 0x40], eax
jmp 0x423c79
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
lea edx, [ebp - 0x3c]
push edx
push 0x22204c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
mov dword [ebp - 0x2c], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, dword [ebp - 0x30]
mov eax, esi
mov dword [ebp - 0x40], eax
mov esi, dword [ebp + 8]
test eax, eax
jne 0x423cbe
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x423cbe
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423cbe
push ebx
call fcn.00456c70
add esp, 4
test eax, eax
je 0x423cbe
push ebx
call fcn.00401e30
add esp, 4
test eax, eax
jne 0x423cbe
push 1
call fcn.004568c0
push eax
push ebx
call fcn.00456b50
add esp, 0xc
xor eax, eax
jmp 0x423cc3
mov eax, 1
mov dword [ebp - 0x48], eax
test eax, eax
je 0x423cf2
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424480
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x459aee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [ebp - 0x1c], 0x45c6f8
mov dword [ebp], 0x45c6ec
mov dword [esp + 0x24], 5
xor esi, esi
lea edi, [ebp + 0xec]
mov eax, dword [edi + 4]
test eax, eax
je 0x4244ec
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4244ec
mov edx, dword [ebp + 0xf0]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x4244e9
lea ecx, [eax + 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
inc esi
jmp 0x4244c0
xor ebx, ebx
lea esi, [ebp + 0x100]
mov eax, dword [esi + 4]
test eax, eax
je 0x424520
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x424520
mov edx, dword [ebp + 0x104]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x42451d
lea ecx, [eax + 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
inc ebx
jmp 0x4244f4
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push ecx
push eax
push eax
call fcn.00432a70
add esp, 0xc
mov ebx, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebx
call fcn.0042fb60
mov dword [edi + 8], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push ecx
push eax
push eax
call fcn.00432a70
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.0042fb60
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0xfc]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x424578
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp + 0x110]
mov byte [esp + 0x24], 4
call fcn.0043e6e0
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.0044bf22
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0xfc]
mov edx, dword [0x4631a4]
add esp, 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4245d4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4245d4
mov eax, dword [ebp + 0xfc]
sub eax, 0xc
push eax
call fcn.0044bf22
add esp, 4
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.0044bf22
add esp, 4
lea ecx, [ebp + 0x68]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x24], 0
call fcn.00445b90
mov dword [ebp - 0x1c], 0x45c710
mov dword [esp + 0x18], ebp
mov dword [ebp], 0x45c704
mov ecx, ebp
mov dword [esp + 0x24], 7
call fcn.004491d0
lea ecx, [ebp - 0x1c]
mov byte [esp + 0x24], 6
neg ecx
sbb ecx, ecx
and ecx, ebp
call fcn.00448750
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x427460
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x459e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4631a0]
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
push edi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x90]
push ebx
push ebx
push 3
push ebx
push 1
mov ebp, 0x10325476
push SysReAllocString
push ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x427591
push 0x100000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42758a
lea edx, [esp + 0x90]
push ebx
push edx
push 0x100000
mov dword [esp + 0x44], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x67452301
mov dword [esp + 0x44], 0xefcdab89
mov dword [esp + 0x48], 0x98badcfe
mov dword [esp + 0xa4], ebx
call ebp
test eax, eax
je 0x42756a
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x42756a
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00427660
lea eax, [esp + 0x90]
push ebx
push eax
push 0x100000
push esi
push edi
call ebp
test eax, eax
jne 0x42753e
push esi
call fcn.0044bf22
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004280a0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.004281e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x8c]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebx
jl 0x4275b1
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x427618
mov edx, dword [0x4631a0]
cmp eax, ebx
mov dword [esi], edx
mov dword [esp + 0x8c], eax
jne 0x4275c8
xor edi, edi
jmp 0x4275d1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
jg 0x4275de
cmp edi, dword [eax - 4]
jle 0x4275f1
mov ecx, esi
call fcn.00405b60
push edi
mov ecx, esi
call fcn.00404720
cmp eax, ebx
je 0x427618
mov eax, dword [esp + 0x8c]
mov edx, dword [esi]
lea ebp, [edi + edi]
lea ecx, [edi + edi + 2]
push ebp
push eax
push ecx
push edx
call fcn.00401bc0
mov eax, dword [esi]
add esp, 0x10
mov dword [eax - 8], edi
mov ecx, dword [esi]
mov word [ecx + ebp], bx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4631a4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x427647
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427647
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret
Function at 0x428430
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00457870
push esi
mov esi, dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4284aa
cmp eax, 0x1fff
ja 0x4284aa
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4284aa
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x463650
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4284aa
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2018]
pop esi
mov edx, dword [eax + 0xc]
mov dword [ecx], edx
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
mov eax, 1
add esp, 0x200c
ret
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x429560
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 4]
mov dword [esp + 4], 0
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
or edx, 1
push ecx
push edx
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4295c4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4295d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100c
call fcn.00457870
push esi
mov esi, dword [esp + 0x1014]
lea ecx, [esp + 4]
mov dword [esp + 8], 0x1000
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
or edx, 1
push ecx
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42970e
mov esi, dword [esi + 8]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42970e
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x429661
cmp eax, 1
jne 0x42970e
lea eax, [esp + 0x10]
push ebx
test eax, eax
push ebp
jne 0x42966f
xor ebp, ebp
jmp 0x42967c
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov ebx, dword [esp + 0x1020]
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x429695
cmp ebp, dword [eax - 4]
jle 0x4296ce
mov edx, dword [0x4631a4]
add eax, 0xfffffff4
cmp eax, edx
je 0x4296c2
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4296bb
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0044bf22
add esp, 4
mov eax, dword [0x4631a0]
mov dword [ebx], eax
push ebp
mov ecx, ebx
call fcn.00404720
test eax, eax
je 0x4296ff
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x4296f2
mov ecx, eax
push edi
mov edi, dword [ebx]
mov edx, ecx
lea esi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x100c
ret
xor eax, eax
pop esi
add esp, 0x100c
ret
Function at 0x429860
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x459ff6
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.00457870
push ebx
mov ebx, dword [esp + 0x103c]
push ebp
mov ebp, dword [esp + 0x103c]
push esi
push edi
xor edi, edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov eax, dword [ebx]
cmp dword [eax - 8], edi
je 0x4299db
mov esi, dword [esp + 0x104c]
mov ecx, dword [esi]
cmp dword [ecx - 8], edi
je 0x4299db
mov eax, dword [esp + 0x1050]
mov edx, dword [eax]
cmp dword [edx - 8], edi
je 0x4299db
mov ecx, dword [esp + 0x1054]
mov dword [esp + 0x14], 0x1000
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040c550
push ecx
mov dword [esp + 0x1048], edi
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call fcn.0040c550
mov ecx, ebx
mov dword [esp + 0x1048], 0xffffffff
call fcn.00405940
push eax
lea ecx, [esp + 0x28]
call fcn.00429a00
mov esi, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esi]
or ecx, 1
push ecx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42996c
mov esi, dword [esi + 8]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42996e
xor esi, esi
mov eax, dword [esp + 0x20]
mov dword [ebp + 8], esi
mov ecx, dword [0x4631a4]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4299a2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4299a2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4299cd
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4299cd
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov dword [ebp + 0xc], 1
mov eax, 1
jmp 0x4299dd
xor eax, eax
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1030
ret 0x18
Function at 0x42a030
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a068
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42a179
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a179
mov edx, dword [esp + 0x38]
mov dword [ebx + 0xc], 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x468dac
call fcn.0042a190
push ecx
mov dword [esp + 0x30], 0
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.0040c550
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.00405940
push eax
lea ecx, [esp + 0x1c]
call fcn.00429a00
mov ecx, dword [eax]
test ecx, ecx
je 0x42a101
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
lea esi, [esp + 0x2c]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a101
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x42a103
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4631a4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42a137
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42a137
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42a162
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42a162
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x14
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x14