joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d660
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 0x42d6a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42d6a1
push esi
call fcn.0042d430
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 0x42d6b0
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 0x42d6e0
test al, 0x10
jne 0x42d6f8
test al, 1
je 0x42d6d9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0048f750
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42d6f5
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x42d704
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x431bf0
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 0x431c56
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x431c30
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x431c56
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x431c4c
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x431c58
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x431eb0
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 0x432066
mov eax, dword [esp]
test eax, eax
je 0x432066
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 0x64e0a0
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 0x64e0a8
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x64e0b0
push edx
call ebx
mov ecx, dword [0x64e25c]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x64e260]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x64e264]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x64e22c]
mov word [esp + 0x38], ax
mov eax, dword [0x64e230]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x64e234]
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 [0x64e236]
push 0
push 0x64e0c0
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 0x64e0c8
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 [0x64e214]
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 0x64e0e0
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push 0x64e0f0
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 0x432070
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 0x4321c1
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x4321c1
cmp ecx, 0x104
jge 0x4321c1
lea eax, [esp + ecx + 0xb]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
jne 0x4320d6
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 0x43213f
push 0x103
push eax
lea eax, [esp + 0x118]
push eax
call fcn.00444220
add esp, 0xc
jmp 0x4321a2
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4321c1
lea edx, [esp + 0x110]
push 0x5c
push edx
call fcn.004441ae
add esp, 8
test eax, eax
je 0x432171
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 0x4321d0
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 0x432254
mov eax, dword [esp]
test eax, eax
je 0x432254
mov edx, dword [0x63c1dc]
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 [0x63c1e0]
push 0
push 0x64e204
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 0x432260
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 0x4323cc
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x4323cc
cmp ecx, 0x104
jge 0x4323cc
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x4322d8
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 0x43233b
push 0x103
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00444220
add esp, 0xc
jmp 0x4323ad
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4323cc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4323cc
cmp ecx, 0x104
jge 0x4323cc
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.004441ae
add esp, 8
test eax, eax
je 0x43237f
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 0x432a30
Capabilities:
Start service

Disassembly:
push ebx
call fcn.0047ae50
test eax, eax
jne 0x432a3c
pop ebx
ret
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x432a52
mov dword [0x677188], 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 0x432a8f
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x432a8f
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 [0x677188], 0
jne 0x432acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x676468]
mov dword [0x677188], eax
test ecx, ecx
je 0x432acd
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x6763fc
call fcn.00429e80
add esp, 0x18
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x432ada
push esi
call ebx
test edi, edi
je 0x432ae1
push edi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x43bb40
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5e7c58
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 0x43bb86
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.005d5c95
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.005d2ffd
mov eax, dword [eax]
push 0x6383c8
push eax
call fcn.004462d6
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.005d5c27
test bl, bl
pop ebx
je 0x43bc00
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.005d3079
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.005d5d60
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005d5c27
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005d3147
cmp eax, 2
jl 0x43bc7c
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.005d3079
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.005d5d60
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005d5c27
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 2
jg 0x43bc51
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005d602a
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043bb40
add esp, 4
test eax, eax
je 0x43bc7c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x43bc9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43bc9c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005d5c27
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.005d5c27
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43d7e0
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 0x43d932
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43d932
push eax
push esi
call fcn.00486840
add esp, 8
test eax, eax
je 0x43d932
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 0x43d8e4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push 0x10000
mov ebx, eax
call fcn.005d62f8
mov esi, eax
add esp, 4
test esi, esi
je 0x43d90f
mov ecx, 0x4000
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 1
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x43d919
cmp ebx, 0x10000
mov eax, 0x10000
ja 0x43d89f
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 0x43d8da
mov edi, dword [esp + 0x1c]
push eax
push esi
sub ebx, eax
mov edx, dword [edi]
push edx
call fcn.004a9c40
add esp, 0xc
mov dword [edi], eax
test ebx, ebx
ja 0x43d890
jmp 0x43d919
mov dword [esp + 0x18], 0
jmp 0x43d919
mov eax, dword [0x676468]
test eax, eax
je 0x43d960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeAndCrc_1___08x_
push str.Update
push 0xf
push 0x6763fc
call fcn.00429e80
add esp, 0x14
jmp 0x43d932
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
test esi, esi
je 0x43d926
push esi
call fcn.005d6321
add esp, 4
cmp ebp, 0xffffffff
je 0x43d932
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x676468]
test eax, eax
je 0x43d960
mov esi, dword [esp + 0x18]
push esi
push str.GetFileSizeAndCrc____d_
push str.Update
push 0xf
push 0x6763fc
call fcn.00429e80
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 0x43ea60
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.0040a730
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 0x43eac1
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 0x45c2b0
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 0x45c309
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45c309
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 0x45c310
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x45c2ed
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 0x45c30b
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 0x461de0
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 0x461e30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x461e30
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x461e35
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x461e1b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x461e42
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 0x46ca10
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 0x46ca51
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 0x46ca53
mov esi, edi
test esi, esi
je 0x46cac8
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 0x46cabd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x46cabd
cmp dword [esp + 0x1c], eax
jbe 0x46ca8e
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 0x46cabd
cmp esi, edi
je 0x46caaf
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 0x46cac8
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 0x46cae0
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 0x46cb45
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 0x46cb45
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x46cb45
cmp dword [esp + 0x18], eax
jbe 0x46cb2b
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 0x46cb49
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x46cde0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5e94af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x656c68]
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 0x46ce4b
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 0x46ce4d
mov esi, edi
test esi, esi
je 0x46cf17
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 0x46cf0c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x46ce8f
cmp eax, 2
je 0x46ce8f
cmp eax, 6
je 0x46ce8f
cmp eax, 7
jne 0x46cf0c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005d62f8
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 0x46cef2
lea ecx, [esp + 0x14]
call fcn.005d5db0
cmp esi, dword [esp + 0x14]
je 0x46cee7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005d6321
add esp, 4
jmp 0x46cf29
call fcn.005d6321
add esp, 4
lea ecx, [esp + 0x10]
push 0x675fc0
call fcn.005d5db0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x46cf17
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46cf29
push eax
lea ecx, [esp + 0x14]
call fcn.005d5db0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005d599c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005d5c27
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