joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ae00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x19a
push 0x54fee4
mov eax, dword [ebp - 4]
push eax
call fcn.0045d090
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
jne 0x46ae37
push 0x19b
push 0x54ff1c
call fcn.0045b590
test eax, eax
je 0x46ae37
int3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x30]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46ae77
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.0040d7e0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047b960
mov esp, ebp
pop ebp
ret 8

Function at 0x46ae80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x1a5
push 0x54ff54
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045d090
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46aed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46aed8
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.0040d7e0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047b960
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x46b230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.0040bf20
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x550040
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46b30a
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46b300
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push str.InProcServer32
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46b2f6
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x55006c
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00426f40
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8
Function at 0x46b320
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a6a7
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov word [eax], 0
cmp dword [ebp + 8], 0
jne 0x46b367
xor eax, eax
jmp 0x46b4da
push 0x800
push 0x2b4
lea ecx, [ebp - 0x2d4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x46b395
mov eax, dword [ebp - 0x2cc]
and eax, 0x10000
jne 0x46b39c
xor eax, eax
jmp 0x46b4da
lea ecx, [ebp - 0x14]
push ecx
push 0x5a0be0
push 0
push 0x5509b0
lea ecx, [ebp - 0x2d5]
call fcn.0046af80
test eax, eax
jl 0x46b3c1
cmp dword [ebp - 0x14], 0
jne 0x46b3c8
xor eax, eax
jmp 0x46b4da
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x5a0c10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x46b4ca
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2dc]
call fcn.0040ac70
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x46b4a4
push 0
lea ecx, [ebp - 0x2dc]
call fcn.0040d7e0
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jl 0x46b4a4
push 2
mov ecx, dword [ebp + 8]
call fcn.00433240
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0x4c]
call eax
test eax, eax
jl 0x46b4a4
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x2e0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.0040ad40
mov eax, dword [ebp - 0x2e0]
jmp 0x46b4da
cmp dword [ebp - 0x10], 0
je 0x46b4b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.0040ad40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46bfd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x46c046
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x46c037
mov eax, dword [ebp + 8]
push eax
push 0x550a78
push 0
mov ecx, 0x5c97d8
call fcn.0040d7e0
push eax
push 0x5d
push 0x550a40
lea ecx, [ebp - 0x10]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
xor eax, eax
jmp 0x46c0d0
mov eax, 1
jmp 0x46c0d0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x46c0a0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x46c0a0
cmp dword [ebp - 8], 0
jne 0x46c0a0
mov eax, 1
jmp 0x46c0d0
mov eax, dword [ebp + 8]
push eax
push str.Warning:_registration_database_update_failed_for_key__s._n
push 0
mov ecx, 0x5c97d8
call fcn.0040d7e0
push eax
push 0x6f
push 0x550af0
lea ecx, [ebp - 0x18]
call fcn.00401100
push eax
call fcn.00401120
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f970
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x46f993
push 0x108
push 0x552484
call fcn.0045b590
test eax, eax
je 0x46f993
int3
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x54], 0
je 0x46fa78
cmp dword [ebp + 0xc], 0
jne 0x46f9de
mov ecx, dword [ebp - 0x14]
call fcn.0046f020
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46f9be
xor eax, eax
jmp 0x46fad6
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46fa6b
cmp dword [ebp + 0x10], 0
jne 0x46fa1d
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0046f110
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46fa00
xor eax, eax
jmp 0x46fad6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46fa6b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0046f110
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46fa39
xor eax, eax
jmp 0x46fad6
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x46fad6
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x68], 0
jne 0x46fa95
push 0x12a
push 0x5524bc
call fcn.0045b590
test eax, eax
je 0x46fa95
int3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xfff
jl 0x46fabd
push 0x12b
push 0x5524f4
call fcn.0045b590
test eax, eax
je 0x46fabd
int3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473750
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x473773
push 0x158
push 0x555f00
call fcn.0045b590
test eax, eax
je 0x473773
int3
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x47378c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x473811
cmp dword [ebp + 0xc], 0
je 0x4737af
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4737f6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4737dd
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x20], eax
jmp 0x4737e4
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + eax*4], 0
jmp 0x47380c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
cmp dword [edx + eax*4], 0
je 0x47380c
mov dword [ebp - 4], 0
jmp 0x473783
cmp dword [ebp - 4], 0
je 0x473887
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.00479480
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x473872
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x24], eax
jmp 0x473879
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x473890
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4738d3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4738d1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00473750
jmp 0x473908
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00473eb0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x473908
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00473750
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4738e1
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8

Function at 0x474d20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x474e1b
mov eax, dword [ebp - 4]
push eax
call fcn.00440c40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x474e07
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
cmp edx, dword [ebp - 4]
je 0x474e07
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00474940
test eax, eax
je 0x474e07
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x474dc5
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x474dc5
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], ecx
jmp 0x474e07
cmp dword [ebp + 8], 0
je 0x474e07
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
jne 0x474e07
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
and edx, 2
je 0x474e07
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb4], 0
jne 0x474e07
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
and eax, 0xfffffffd
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3c], eax
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x474d3b
mov esp, ebp
pop ebp
ret 4
Function at 0x48b860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
je 0x48b87f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x48b8da
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48b8a3
call fcn.004582d0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48b8c2
call fcn.004582d0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48b8da
call fcn.004582d0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
cmp ecx, 0xffff
jne 0x48b996
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 0x80000000
je 0x48b965
call fcn.0045c240
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0043fd00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48b92d
push 0x12c
push 0x569c9c
call fcn.0045b590
test eax, eax
je 0x48b92d
int3
cmp dword [ebp - 0x18], 0
je 0x48b963
push 0x569cd4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48b963
xor eax, eax
jne 0x48b963
push 0x131
push 0x569ce4
call fcn.0045b590
test eax, eax
je 0x48b963
int3
jmp 0x48b996
mov edx, dword [ebp - 0x14]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
cmp ecx, 3
jne 0x48b996
xor edx, edx
jne 0x48b996
push 0x137
push 0x569d1c
call fcn.0045b590
test eax, eax
je 0x48b996
int3
call fcn.0045c240
cmp dword [eax + 0x3c], 0
je 0x48b9b0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0048b810
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0048b6c0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x5c], 0
je 0x48b9e0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x5c], 0
cmp dword [ebp - 4], 0
je 0x48b9f5
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
or edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x491a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
push 0x16d
push 0x56ccd8
mov eax, dword [ebp - 0x48]
push eax
call fcn.0045d090
cmp dword [ebp + 8], 0
jne 0x491a86
push 0x16e
push 0x56cd10
call fcn.0045b590
test eax, eax
je 0x491a86
int3
call fcn.0043a140
mov dword [ebp - 0xc], eax
push 0xf1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x491ab1
xor eax, eax
jmp 0x491c2d
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x491acf
xor eax, eax
jmp 0x491c2d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x491ae9
xor eax, eax
jmp 0x491c2d
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 1
je 0x491b08
push 0x17d
push 0x56cd48
call fcn.0045b590
test eax, eax
je 0x491b08
int3
push 0x17f
push 0x56cd80
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425ea0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x491b4d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x1c], eax
jge 0x491b73
mov ecx, dword [ebp - 4]
call fcn.00494b40
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x491b44
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00491e50
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004263d0
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x491c17
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0050fb30
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
add eax, 7
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
add edx, 7
push edx
lea ecx, [ebp - 0x2c]
call fcn.0050fb30
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00491760
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00491c40
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0044a950
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a08ad
xor eax, eax
jmp 0x4a0917
lea ecx, [ebp - 0x218]
push ecx
call fcn.004dbad0
add esp, 4
movzx edx, word [ebp + eax*2 - 0x21a]
cmp edx, 0x5c
je 0x4a08ea
push 0x5a8254
push 0x105
lea eax, [ebp - 0x218]
push eax
call fcn.004dbb00
add esp, 0xc
test eax, eax
je 0x4a08ea
xor eax, eax
jmp 0x4a0917
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x218]
push edx
call fcn.004dbb00
add esp, 0xc
test eax, eax
je 0x4a090a
xor eax, eax
jmp 0x4a0917
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret
Function at 0x4a1e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
call fcn.00401050
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov word [0x5c9b88], 0
mov dword [ebp - 8], 0xc8
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
xor edx, edx
test eax, eax
setge dl
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x4a1ea0
push 0x21
push 0x574258
call fcn.0045b590
test eax, eax
je 0x4a1ea0
int3
cmp dword [ebp - 0x24], 0
jne 0x4a1eab
call fcn.00431d30
xor ecx, ecx
jne 0x4a1e71
xor edx, edx
cmp dword [ebp - 0x1c], 0
setne dl
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x4a1ed2
push 0x22
push 0x574290
call fcn.0045b590
test eax, eax
je 0x4a1ed2
int3
cmp dword [ebp - 0x28], 0
jne 0x4a1edd
call fcn.00431d30
xor ecx, ecx
jne 0x4a1eaf
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ac70
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
push str.Interface_s
push 0x64
push 0x5c9b88
call fcn.004da980
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a1f53
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x5c9b88
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a1f53
lea ecx, [ebp - 8]
push ecx
push 0x5c9b88
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a1fd1
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
push 0x5742e4
push 0x64
push 0x5c9b88
call fcn.004da980
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a1fb9
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push 0x5c9b88
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a1fb9
lea edx, [ebp - 8]
push edx
push 0x5c9b88
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a1fd1
lea ecx, [ebp - 0x14]
call fcn.0040d7e0
push eax
push 0x64
push 0x5c9b88
call fcn.004dca90
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x2c], 0x5c9b88
lea ecx, [ebp - 0x14]
call fcn.0040ad40
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 4