joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aca0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x42ace1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42ace1
push esi
call fcn.0042aa70
add esp, 4
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42acf0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ad20
test al, 0x10
jne 0x42ad38
test al, 1
je 0x42ad19
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0048ca30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42ad35
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x42ad44
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x42f220
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42f286
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x42f260
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x42f286
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x42f27c
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x42f288
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x42f4e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesTPacket
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42f696
mov eax, dword [esp]
test eax, eax
je 0x42f696
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x63cf98
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 1
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x63cfa0
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x63cfa8
push edx
call ebx
mov ecx, dword [0x63d154]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x63d158]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x63d15c]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x63d124]
mov word [esp + 0x38], ax
mov eax, dword [0x63d128]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x63d12c]
lea eax, [esp + 0x2c]
push 0xe
push eax
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x14]
push 1
mov dword [esp + 0x4c], edx
mov dl, byte [0x63d12e]
push 0
push 0x63cfb8
push ecx
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x62], dl
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push 0x29
push edx
push 2
push 0
push 0x63cfc0
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x3c]
push 0xf
push ecx
push 1
push 0
push str.DisplayName
push edx
call ebx
mov eax, dword [str.NDIS]
mov cl, byte [0x63d10c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 5
push eax
mov byte [esp + 0x28], cl
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0x63cfd8
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push 0x63cfe8
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
xor eax, eax
add esp, 0x6c
ret
Function at 0x42f6a0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42f7f1
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x42f7f1
cmp ecx, 0x104
jge 0x42f7f1
lea eax, [esp + ecx + 0xb]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
jne 0x42f706
mov byte [eax], 0
mov edi, str.Drivers_tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x110], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x42f76f
push 0x103
push eax
lea eax, [esp + 0x118]
push eax
call fcn.00441500
add esp, 0xc
jmp 0x42f7d2
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42f7f1
lea edx, [esp + 0x110]
push 0x5c
push edx
call fcn.0044148e
add esp, 8
test eax, eax
je 0x42f7a1
mov byte [eax], 0
mov edi, str._tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret

Function at 0x42f800
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxDTPACKET
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42f884
mov eax, dword [esp]
test eax, eax
je 0x42f884
mov edx, dword [0x62c000]
mov ecx, dword [str.tpacket.vxd]
mov dword [esp + 8], edx
lea edx, [esp + 4]
push 0xc
push edx
push 1
mov dword [esp + 0x10], ecx
mov ecx, dword [0x62c004]
push 0
push 0x63d0fc
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x42f890
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42f9fc
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x42f9fc
cmp ecx, 0x104
jge 0x42f9fc
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x42f908
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xc], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x42f96b
push 0x103
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00441500
add esp, 0xc
jmp 0x42f9dd
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42f9fc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42f9fc
cmp ecx, 0x104
jge 0x42f9fc
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0044148e
add esp, 8
test eax, eax
je 0x42f9af
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x110]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
Function at 0x430060
Capabilities:
Start service

Disassembly:
push ebx
call fcn.00478130
test eax, eax
jne 0x43006c
pop ebx
ret
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x430082
mov dword [0x665408], 0x57
xor eax, eax
pop ebx
ret
push ebp
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4300bf
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4300bf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
mov dword [0x665408], 0
jne 0x4300fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6646f8]
mov dword [0x665408], eax
test ecx, ecx
je 0x4300fd
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x66468c
call fcn.00427530
add esp, 0x18
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x43010a
push esi
call ebx
test edi, edi
je 0x430111
push edi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x438f20
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5da3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
je 0x438f66
and eax, 0xff
pop edi
shr eax, 4
and eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.005c86d5
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.005c5a3d
mov eax, dword [eax]
push 0x6283c8
push eax
call fcn.004435c6
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.005c8667
test bl, bl
pop ebx
je 0x438fe0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push edx
call fcn.005c5ab9
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.005c87a0
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005c8667
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005c5b87
cmp eax, 2
jl 0x43905c
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.005c5ab9
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.005c87a0
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005c8667
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 2
jg 0x439031
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005c8a6a
mov edx, dword [esp + 0x1c]
push edx
call fcn.00438f20
add esp, 4
test eax, eax
je 0x43905c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x43907c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43907c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005c8667
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005c8667
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43abc0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov dword [ebx], 0
push edi
test esi, esi
mov dword [eax], 0
mov dword [esp + 0x18], 0
je 0x43ad12
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43ad12
push eax
push esi
call fcn.00483b20
add esp, 8
test eax, eax
je 0x43ad12
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x43acc4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push 0x10000
mov ebx, eax
call fcn.005c8d38
mov esi, eax
add esp, 4
test esi, esi
je 0x43acef
mov ecx, 0x4000
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 1
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x43acf9
cmp ebx, 0x10000
mov eax, 0x10000
ja 0x43ac7f
mov eax, ebx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43acba
mov edi, dword [esp + 0x1c]
push eax
push esi
sub ebx, eax
mov edx, dword [edi]
push edx
call fcn.004a6f00
add esp, 0xc
mov dword [edi], eax
test ebx, ebx
ja 0x43ac70
jmp 0x43acf9
mov dword [esp + 0x18], 0
jmp 0x43acf9
mov eax, dword [0x6646f8]
test eax, eax
je 0x43ad40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeAndCrc_1___08x_
push str.Update
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x14
jmp 0x43ad12
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
test esi, esi
je 0x43ad06
push esi
call fcn.005c8d61
add esp, 4
cmp ebp, 0xffffffff
je 0x43ad12
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6646f8]
test eax, eax
je 0x43ad40
mov esi, dword [esp + 0x18]
push esi
push str.GetFileSizeAndCrc____d_
push str.Update
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43bd60
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.0040a570
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x43bdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x104
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x104
ret
Function at 0x459590
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4595e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4595e9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4595f0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x4595cd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4595eb
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x45f0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x45f110
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45f110
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x45f115
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x45f0fb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x45f122
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x469cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x469d31
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x469d33
mov esi, edi
test esi, esi
je 0x469da8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x469d9d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x469d9d
cmp dword [esp + 0x1c], eax
jbe 0x469d6e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x469d9d
cmp esi, edi
je 0x469d8f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x469da8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x469dc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x469e25
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x469e25
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x469e25
cmp dword [esp + 0x18], eax
jbe 0x469e0b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x469e29
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x46a0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5dbc4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6457a8]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x46a12b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46a12d
mov esi, edi
test esi, esi
je 0x46a1f7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46a1ec
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x46a16f
cmp eax, 2
je 0x46a16f
cmp eax, 6
je 0x46a16f
cmp eax, 7
jne 0x46a1ec
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005c8d38
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x46a1d2
lea ecx, [esp + 0x14]
call fcn.005c87f0
cmp esi, dword [esp + 0x14]
je 0x46a1c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005c8d61
add esp, 4
jmp 0x46a209
call fcn.005c8d61
add esp, 4
lea ecx, [esp + 0x10]
push 0x664250
call fcn.005c87f0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x46a1f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46a209
push eax
lea ecx, [esp + 0x14]
call fcn.005c87f0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005c83dc
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005c8667
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10