joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0x43c858
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x78], 0xcc
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x5a8]
add edx, 0x21c
push edx
lea eax, [ebp - 0x74]
push eax
push 0
push 0x43c868
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
invalid
inc ebp

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x40e3f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0042a710
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0042a710
add esp, 0xc
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], 0
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov ecx, 0x448b4c
call fcn.004079c0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e4de
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40e4de
mov ecx, dword [ebp - 0x214]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x40e4fa
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
jmp 0x40e5ee
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x40e5b9
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x420]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e5b9
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
push str.StringFileInfo040904E4LegalCopyright
mov ecx, dword [ebp - 0x434]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e57d
push 0x104
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x40e5b9
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x428]
push edx
push str.StringFileInfo040904B0LegalCopyright
mov eax, dword [ebp - 0x434]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e5b9
push 0x104
mov ecx, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp dword [ebp - 0x424], 0
je 0x40e5dc
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret
Function at 0x40e600
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0042a710
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0042a710
add esp, 0xc
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], 0
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov ecx, 0x448b4c
call fcn.004079c0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e6ee
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40e6ee
mov ecx, dword [ebp - 0x214]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x40e70a
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
jmp 0x40e7fe
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x40e7c9
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x420]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e7c9
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
push str.StringFileInfo040904E4FileVersion
mov ecx, dword [ebp - 0x434]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e78d
push 0x104
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x40e7c9
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x428]
push edx
push str.StringFileInfo040904B0FileVersion
mov eax, dword [ebp - 0x434]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e7c9
push 0x104
mov ecx, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp dword [ebp - 0x424], 0
je 0x40e7ec
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret
Function at 0x40e810
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0042a710
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0042a710
add esp, 0xc
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], 0
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov ecx, 0x448b4c
call fcn.004079c0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e8fe
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40e8fe
mov ecx, dword [ebp - 0x214]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x40e91a
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
jmp 0x40ea0e
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x40e9d9
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x420]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e9d9
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
push str.StringFileInfo040904E4ProjectName
mov ecx, dword [ebp - 0x434]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e99d
push 0x104
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x40e9d9
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x428]
push edx
push str.StringFileInfo040904B0ProjectName
mov eax, dword [ebp - 0x434]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e9d9
push 0x104
mov ecx, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp dword [ebp - 0x424], 0
je 0x40e9fc
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414090
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret
Function at 0x417950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417979
xor eax, eax
jmp 0x417b04
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41799f
jmp 0x417b01
cmp dword [ebp - 0xc], 0x104
jb 0x4179bc
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0xc], 0
jmp 0x417b01
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jl 0x417b01
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jge 0x417a4d
mov edx, dword [ebp - 0x220]
sar edx, 0x10
and edx, 0x1fff
cmp edx, 7
jne 0x417a39
mov eax, dword [ebp - 0x220]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x417a41
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0xc], 0
jmp 0x417af3
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x417a7f
movzx eax, word [ebp - 0x218]
test eax, eax
je 0x417a7f
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x417ac2
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
add edx, 1
cmp edx, dword [ebp + 0x10]
jbe 0x417aad
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x417ac2
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x417af3
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418940
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
jne 0x418953
mov dword [ebp + 0xc], 0xfffffffe
cmp dword [ebp + 0xc], 0
jge 0x41896f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
neg ecx
imul ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418f50
mov esp, ebp
pop ebp
ret 8
Function at 0x4232f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00419a70
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.0041a6b0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.004235e0
lea ecx, [ebp - 0x438]
call fcn.0041a6b0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419a80
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42336e
call fcn.00418d20
mov dword [ebp - 0x444], eax
jmp 0x4234c3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x42339f
call fcn.00418d20
mov dword [ebp - 0x444], eax
jmp 0x4234c3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x4233cf
call fcn.00418d20
mov dword [ebp - 0x444], eax
jmp 0x4234c3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x42341f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00425ef0
lea ecx, [ebp - 0x2c]
call fcn.0041a6d0
mov eax, dword [ebp - 0x44c]
jmp 0x4234f8
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00425ec0
lea ecx, [ebp - 0x438]
call fcn.00420c20
test eax, eax
jne 0x42344c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x4234c3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00420c20
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00419a70
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x42348e
call fcn.00418d20
mov dword [ebp - 0x444], eax
jmp 0x4234c3
lea ecx, [ebp - 0x438]
call fcn.00420c20
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00420c20
push eax
lea ecx, [ebp - 0x18]
call fcn.00423610
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x4234d3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00425ef0
lea ecx, [ebp - 0x2c]
call fcn.0041a6d0
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424e10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00424be0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00424db0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x424e7b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00424c10
mov eax, dword [ebp - 0x224]
jmp 0x424f0c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x424ee1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00424e10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x424ed8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00424c10
mov eax, dword [ebp - 0x228]
jmp 0x424f0c
mov dword [ebp - 4], 0x100
jmp 0x424e82
lea ecx, [ebp - 0x14]
call fcn.00424cf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00424c90
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00424c10
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042a2e8
mov esp, ebp
pop ebp
ret 4
Function at 0x425470
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x425479
xor ecx, ecx
jne 0x425479
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x42549a
mov eax, 0xd
jmp 0x4254f5
xor eax, eax
jne 0x425481
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x4254ab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x429ac7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x448bb0], 0
push esi
jne 0x429a3a
call fcn.00429960
test eax, eax
je 0x429a7d
mov eax, dword [0x448bb0]
cmp eax, 1
jne 0x429a5b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429a7d
pop esi
ret
push eax
call dword [0x448bb8]
test eax, eax
jne 0x429ac5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x429a81
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x448bb0]
call dword [0x448bb8]
mov edi, eax
test edi, edi
je 0x429aa6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x429ac2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x448bb0]
call dword [0x448bb4]
add edi, 0x10
cmp edi, esi
jb 0x429aae
mov eax, edi
pop edi
pop esi
ret
jmp 0x429a27
Function at 0x429e60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4477d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429f35
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429f24
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x429f0e
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x429f24
push eax
push edi
push dword [ebp - 0x110]
call fcn.00429dfd
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x429f37
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a2e8
leave
ret 4

Function at 0x42a2e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4477d0]
jne 0x42a2f2
repz ret
jmp fcn.0042e5f6
Function at 0x43587d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042df86
and dword [ebp - 4], 0
cmp dword [0x4496e4], 0
mov ebx, eax
jne 0x43592e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4359df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4359df
push eax
call fcn.0042df14
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4496e4], eax
call esi
push eax
call fcn.0042df14
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4496e8], eax
call esi
push eax
call fcn.0042df14
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4496ec], eax
call esi
push eax
call fcn.0042df14
pop ecx
mov dword [0x4496f4], eax
test eax, eax
je 0x43592e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042df14
pop ecx
mov dword [0x4496f0], eax
mov eax, dword [0x4496f0]
cmp eax, ebx
je 0x435986
cmp dword [0x4496f4], ebx
je 0x435986
push eax
call fcn.0042df8f
push dword [0x4496f4]
mov esi, eax
call fcn.0042df8f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435986
test edi, edi
je 0x435986
call esi
test eax, eax
je 0x43597d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43597d
test byte [ebp - 0xc], 1
jne 0x435986
or dword [ebp + 0x10], 0x200000
jmp 0x4359bf
mov eax, dword [0x4496e8]
cmp eax, ebx
je 0x4359bf
push eax
call fcn.0042df8f
pop ecx
test eax, eax
je 0x4359bf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4359bf
mov eax, dword [0x4496ec]
cmp eax, ebx
je 0x4359bf
push eax
call fcn.0042df8f
pop ecx
test eax, eax
je 0x4359bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4496e4]
call fcn.0042df8f
pop ecx
test eax, eax
je 0x4359df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4359e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret