joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x120]
push eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
inc esi
cmp dword [ebp - 0x11c], 6
jne 0x4a45d5
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4a4585
cmp eax, esi
je 0x4a4585
cmp eax, 2
je 0x4a458a
cmp eax, 3
jne 0x4a45de
cmp eax, 2
jne 0x4a458c
mov edi, esi
push str.RtlGetVersion
push 0x64045c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a45c8
lea ecx, [ebp - 0x238]
push ecx
call eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x118], 3
jne 0x4a45d5
mov edi, esi
mov ebx, esi
cmp dword [ebp - 0x11c], 0xa
je 0x4a45e7
cmp dword [ebp - 0x118], 4
jne 0x4a45f1
mov edi, esi
mov ebx, esi
mov dword [0x6b670c], esi
test edi, edi
je 0x4a45f9
cmp ebx, esi
jne 0x4a45ff
mov dword [0x6b6710], esi
cmp edi, esi
jne 0x4a4613
call fcn.004a41c8
cmp eax, 0xf
jge 0x4a4613
mov dword [0x6b6710], esi
cmp dword [0x6b670c], 0
je 0x4a4622
mov dword [0x6b6710], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4a48a6
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
push edi
mov esi, eax
xor eax, eax
push eax
push 0x26
push esi
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4a48bd
push 0x10
mov edi, esi
pop ecx
mov esi, 0x663b00
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x4a50c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a512b
cmp dword [ebp + 0xc], 1
je 0x4a5103
cmp dword [ebp + 0xc], 2
je 0x4a5103
push 0xd
pop eax
jmp 0x4a512b
mov eax, dword [ebp - 4]
test edi, edi
je 0x4a5125
test eax, eax
je 0x4a5120
test al, 1
jne 0x4a50fe
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4a5125
jmp 0x4a50fe
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4a5bf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x4a5c77
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x4a5c77
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp - 8]
push eax
call fcn.00404787
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4a5c5f
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004a5529
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a63ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.tencent:__message__uin
lea esi, [ebp - 0x20]
mov edi, ecx
call fcn.0040beca
push 0
lea eax, [edi + 0xb8]
push eax
or eax, 0xffffffff
call fcn.0040d7c5
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4a642b
mov eax, esi
xor esi, esi
inc esi
push esi
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [edi + 0xe0], esi
push esi
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040bad4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00403fc1
leave
ret
Function at 0x4a71c5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x4a720f
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x4a7236
shr eax, 2
test al, 1
je 0x4a723f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4a7272
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x4a7271
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push edi
call fcn.004a78f3
mov ecx, eax
test ecx, ecx
je 0x4a7b18
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 8], eax
pop eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a7b18
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, ecx
shl esi, 2
add eax, esi
mov ecx, dword [eax]
and dword [ebp - 4], 0
mov dword [0x6b673c], ecx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x4a7b18
mov eax, dword [ebp - 8]
mov dword [esi + eax], 0x4a798c
add esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call edi
pop edi
pop esi
leave
ret
Function at 0x4a83e6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x220], ecx
xor esi, esi
lea ecx, [ebp - 0x218]
or eax, 0x2001f
push ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.004a5071
mov ebx, eax
cmp ebx, esi
je 0x4a8453
cmp dword [ebp - 0x218], esi
je 0x4a844c
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4a84eb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4a847b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004a83e6
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x4a84fc
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x4a845b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x4a84c6
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.004a8321
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x4a84e9
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x4a8510
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4a84eb
Function at 0x4a87c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x4a8812
call fcn.004a7d25
mov esi, eax
jmp 0x4a88d7
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4a882b
call fcn.004a7d25
jmp 0x4a88c9
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x4a8821
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4a885b
mov esi, 0x8007000e
jmp 0x4a88cb
push 2
push eax
call fcn.0042da4c
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x4a887b
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0042dae9
jmp 0x4a8887
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x4a8854
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4a8821
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x414]
call fcn.004a9283
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4a88f0
lea eax, [ebp - 0x408]
call fcn.004aa9c9
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 0xc
Function at 0x4a9d2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4a9d6d
xor al, al
jmp 0x4a9dbb
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x22c]
call fcn.0040beca
push str._new_360se.exe
mov eax, esi
push eax
call fcn.0040d6fd
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4a9d9d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
push 1
xor edi, edi
lea esi, [ebp - 0x22c]
call fcn.0040bad4
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4ad0e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x4ad05a
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret

Function at 0x4ad102
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x4ad068
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret
Function at 0x4ad11c
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x4ad19c
mov eax, dword [esi]
cmp eax, ebx
je 0x4ad19c
mov edi, dword [eax]
mov ebx, 0xc06d007e
cmp edi, ebx
je 0x4ad16d
cmp edi, 0xc06d007f
jne 0x4ad178
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
call fcn.004ad5ee
cmp edi, ebx
jne 0x4ad185
push dword [esi]
call fcn.004aceea
jmp 0x4ad194
cmp edi, 0xc06d007f
jne 0x4ad19a
push dword [esi]
call fcn.004acf6f
pop ecx
jmp 0x4ad22e
xor ebx, ebx
cmp byte [ebp + 0x1c], 0
je 0x4ad1cf
lea eax, [esp + 0x70]
call fcn.004ada95
push esi
push dword [esp + 0x10]
mov edi, eax
push dword [esp + 0x18]
call fcn.004adcad
test al, al
je 0x4ad1c6
mov ecx, edi
call fcn.004add60
lea ecx, [esp + 0x70]
call fcn.004adc8d
mov ecx, dword [0x6b7cec]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x4ad22e
push 0x40
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], 0x44
call fcn.00402394
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4ad22e
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x4ad497
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x7c], edi
lea esi, [ebp - 0x80]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
call fcn.004107f6
mov eax, esi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
push eax
mov eax, esi
push eax
mov ecx, str.Path
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], edi
call fcn.004b668a
test eax, eax
je 0x4ad528
xor ebx, ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bad4
lea esi, [ebp - 0x80]
call fcn.004107f6
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5c]
call fcn.0040c917
push str.SoftMgrSoftManager.exe
lea esi, [ebp - 0x40]
call fcn.0040beca
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.004108b7
push eax
push ebx
call fcn.00422755
push 1
xor edi, edi
lea esi, [ebp - 0x78]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x40]
call fcn.0040bad4
cmp dword [ebx + 0x14], 8
jb 0x4ad575
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor edi, edi
lea esi, [ebp - 0x5c]
mov ebx, eax
call fcn.0040bad4
jmp 0x4ad503

Function at 0x4adcad
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.004adec4
push dword [ebp + 8]
lea esi, [edi + 0x174]
push esi
call fcn.0040beee
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x184]
jb 0x4adcd6
mov ecx, dword [esi]
jmp 0x4adcd8
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4adceb
push 0x6403a4
push esi
call fcn.0040d6fd
push dword [ebp + 0xc]
push esi
call fcn.0040d6fd
push str..dmp
push esi
call fcn.0040d6fd
cmp dword [esi + 0x14], 8
jb 0x4add07
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4add59
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x500000
jae 0x4add59
cmp byte [edi + 0xe4], 0
je 0x4add59
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004ae0e9
mov al, 1
jmp 0x4add5b
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x4add60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x60], esi
cmp dword [esi + 0x184], ebx
jne 0x4add89
xor al, al
jmp 0x4adeb5
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
call fcn.004ae6cb
push str.SoftwareTheWorld6Crash
lea esi, [ebp - 0x3c]
call fcn.0040beca
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
jae 0x4addbd
mov eax, esi
lea ecx, [ebp - 0x5c]
push ecx
mov edi, 0x20006
push edi
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x5c], ebx
jne 0x4ade1e
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], ebx
jae 0x4adde9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x5c], ebx
jne 0x4ade1e
push 1
xor edi, edi
lea esi, [ebp - 0x3c]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x20]
call fcn.0040bad4
jmp 0x4add82
mov edi, dword [ebp - 0x60]
push 2
add edi, 0x174
push 0x6646c0
call fcn.00414a1c
mov esi, eax
lea eax, [ebp - 0x60]
push eax
or ecx, 0xffffffff
mov dword [ebp - 0x60], 0x2e
call fcn.0043da41
sub eax, esi
dec eax
push eax
inc esi
push esi
push edi
lea esi, [ebp - 0x58]
call fcn.0040c35b
cmp dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0x20]
jae 0x4ade63
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x4ade6f
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x10]
add edx, edx
push edx
push ecx
push 3
push ebx
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x58]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x3c]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x20]
call fcn.0040bad4
cmp dword [ebp - 0x60], ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4adec4
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [0x6f2004], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
jne 0x4ae0d8
push str.SoftwareTheWorld6
lea esi, [ebp - 0x230]
mov byte [0x6f2004], 1
call fcn.0040beca
mov eax, dword [ebp - 0x230]
xor esi, esi
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x368], esi
jae 0x4adf1e
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x368]
push ecx
push 0x20019
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x368], esi
je 0x4adf9a
push 4
pop eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x370]
push eax
push esi
push str.usagestats
push dword [ebp - 0x368]
mov dword [ebp - 0x36c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4adf8e
cmp dword [ebp - 0x36c], esi
seta al
mov byte [ebx + 0xe4], al
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.TheWorld6
lea eax, [ebx + 4]
push eax
call fcn.0040beee
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push esi
push eax
call fcn.00402394
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.004ae49a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.0040beee
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebx + 0xc8]
push eax
call fcn.0040beee
lea ecx, [ebp - 0x24c]
call fcn.004ae4ff
push eax
lea eax, [ebx + 0x74]
call fcn.0040ba78
push 1
xor edi, edi
lea esi, [ebp - 0x24c]
call fcn.0040bad4
mov esi, 0x114
push esi
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
mov dword [ebp - 0x364], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ae086
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 0x358]
lea eax, [ebp - 0x214]
push dword [ebp - 0x35c]
push dword [ebp - 0x360]
push str._d._d._d__s
push 0x103
push eax
call fcn.00409645
add esp, 0x1c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebx + 0x3c]
push eax
call fcn.0040beee
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call fcn.004ae332
lea eax, [ebp - 0x214]
push eax
lea eax, [ebx + 0x58]
push eax
call fcn.0040beee
push str.TheWorld6
add ebx, 0xac
push ebx
call fcn.0040beee
push 1
xor edi, edi
lea esi, [ebp - 0x230]
call fcn.0040bad4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
Function at 0x4ae332
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0xa18], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00402394
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4ae38a
push esi
push 0x10
pop ecx
push 0x104
push dword [ebp - 0xa18]
mov esi, 0x663b00
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20c]
call fcn.004ae5d3
mov byte [ebp - 0xa0d], al
pop esi
cmp al, bl
jne 0x4ae484
lea eax, [ebp - 0xa14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 0xa14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0xa14], ebx
je 0x4ae484
xor eax, eax
push 0x7fe
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push ebx
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa20]
push eax
push ebx
push str.Version
push dword [ebp - 0xa14]
mov dword [ebp - 0xa1c], 0x800
mov dword [ebp - 0xa20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ae478
lea eax, [ebp - 0xa0c]
push eax
push 0x64f918
push 0x103
push dword [ebp - 0xa18]
call fcn.00409645
add esp, 0x10
mov byte [ebp - 0xa0d], 1
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xa0d]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4

Function at 0x4ae4ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str.0.0.0.0
call fcn.0040beca
lea eax, [ebp - 0x80c]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMacromediaFlashPlayer
push 0x80000002
mov dword [ebp - 0x80c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x80c], edi
je 0x4ae5c3
xor eax, eax
push 0x7fe
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x814]
push eax
push edi
push str.CurrentVersion
push dword [ebp - 0x80c]
mov dword [ebp - 0x810], 0x800
mov dword [ebp - 0x814], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ae5b7
lea eax, [ebp - 0x808]
push eax
push esi
call fcn.0040beee
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403fc1
leave
ret