joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478011
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f430e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_SmartuiOld::CQtlHwndHost_.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x1c], vtable.SmartuiOld::CQtlSupperWindowImpl_class_SmartuiOld::CQtlHwndHost__class_ATL::CWindow__class_ATL::CWinTraits_1442840576__0__.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndHost_.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndHost_.1.0
mov dword [esi + 0x40], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndHost_.2.0
mov dword [esi + 0xc], edx
mov dword [ebp - 4], eax
mov ecx, dword [0x6bb830]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x483013
Capabilities:
Hide graphical window

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48302b
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x49834f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [esi]
push esi
mov edi, ecx
call dword [eax + 0x15c]
test eax, eax
jne 0x4984d6
mov eax, dword [esi]
push esi
call dword [eax + 0x170]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp ecx, ebx
jle 0x4984d6
cmp eax, ebx
jle 0x4984d6
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x410
push esi
call dword [eax + 0x54]
test eax, eax
js 0x49846c
cmp word [esp + 0x28], 8
jne 0x49846c
mov eax, dword [esp + 0x30]
cmp word [eax], bx
je 0x49846c
push dword [edi + 0x30]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [eax + 0x130]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
add eax, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
add ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x432
push dword [edi + 0x50]
mov dword [esp + 0x4c], 0x30
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
push esi
call dword [eax + 0x100]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x4984cb
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x63ec60
push dword [esp + 0x18]
mov dword [esp + 0x20], ebx
push esi
call dword [eax + 0x104]
test eax, eax
js 0x4984af
push dword [esp + 0x24]
mov ecx, edi
push dword [esp + 0x18]
call fcn.0049834f
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4984bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jl 0x498481
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0181
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x24], 0
push esi
push edi
push 0x620dfc
lea esi, [ebp - 0x20]
call fcn.0040bead
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4a01af
mov eax, esi
push 0x2001b
push eax
push 0x80000001
lea esi, [ebp - 0x28]
call fcn.004106f5
cmp dword [ebp - 0x28], 0
je 0x4a01db
push 0x62ddf8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call fcn.00410999
lea esi, [ebp - 0x28]
call fcn.00410999
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040bab7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403fc1
leave
ret

Function at 0x4a06f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x174]
push eax
push 0x650d80
push str.Software360
xor ebx, ebx
push 0x80000001
mov dword [ebp - 0x16c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x16c], 1
jne 0x4a087e
push 5
pop ecx
mov esi, str.urlmon.dll
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
push 0x2a
lea eax, [ebp - 0x132]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00402394
add esp, 0xc
push 6
pop ecx
push 0xa
mov esi, str.wininet.dll
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 6
xor eax, eax
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
pop ecx
mov esi, str.iertutil.dll
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 9
pop ecx
lea edi, [ebp - 0xae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 6
pop ecx
push 0xa
mov esi, str.ieframe.dll
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
push 5
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
pop ecx
mov esi, str.mshtml.dll
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x2a
lea eax, [ebp - 0x32]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00402394
add esp, 0xc
push 0x650e2c
lea esi, [ebp - 0x164]
call fcn.0040bead
push 5
mov byte [ebp - 0x165], bl
lea esi, [ebp - 0x148]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a083e
push esi
lea eax, [ebp - 0x164]
push eax
call fcn.0040d6e0
push 0x650e48
lea eax, [ebp - 0x164]
push eax
call fcn.0040d6e0
mov byte [ebp - 0x165], 1
add esi, 0x40
dec edi
jne 0x4a080e
cmp byte [ebp - 0x165], bl
je 0x4a086f
cmp dword [ebp - 0x150], 8
mov eax, dword [ebp - 0x164]
jae 0x4a0861
lea eax, [ebp - 0x164]
push ebx
push 0x650e4c
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
xor edi, edi
lea esi, [ebp - 0x164]
call fcn.0040bab7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4a088d
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 0x4a0932
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4a08e2
cmp eax, esi
je 0x4a08e2
cmp eax, 2
je 0x4a08e7
cmp eax, 3
jne 0x4a093b
cmp eax, 2
jne 0x4a08e9
mov edi, esi
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a0925
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 0x4a0932
mov edi, esi
mov ebx, esi
cmp dword [ebp - 0x11c], 0xa
je 0x4a0944
cmp dword [ebp - 0x118], 4
jne 0x4a094e
mov edi, esi
mov ebx, esi
mov dword [0x6a1704], esi
test edi, edi
je 0x4a0956
cmp ebx, esi
jne 0x4a095c
mov dword [0x6a1708], esi
cmp edi, esi
jne 0x4a0970
call fcn.004a0525
cmp eax, 0xf
jge 0x4a0970
mov dword [0x6a1708], esi
cmp dword [0x6a1704], 0
je 0x4a097f
mov dword [0x6a1708], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4a0c03
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 0x4a0c1a
push 0x10
mov edi, esi
pop ecx
mov esi, 0x650ec0
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x4a1394
Capabilities:
Create thread

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

Function at 0x4a13ae
Capabilities:
Create thread

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

Function at 0x4a13c8
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 0x4a1448
mov eax, dword [esi]
cmp eax, ebx
je 0x4a1448
mov edi, dword [eax]
mov ebx, 0xc06d007e
cmp edi, ebx
je 0x4a1419
cmp edi, 0xc06d007f
jne 0x4a1424
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
call fcn.004a189a
cmp edi, ebx
jne 0x4a1431
push dword [esi]
call fcn.004aa985
jmp 0x4a1440
cmp edi, 0xc06d007f
jne 0x4a1446
push dword [esi]
call fcn.004aaa0a
pop ecx
jmp 0x4a14da
xor ebx, ebx
cmp byte [ebp + 0x1c], 0
je 0x4a147b
lea eax, [esp + 0x70]
call fcn.004a9a49
push esi
push dword [esp + 0x10]
mov edi, eax
push dword [esp + 0x18]
call fcn.004a9c61
test al, al
je 0x4a1472
mov ecx, edi
call fcn.004a9d14
lea ecx, [esp + 0x70]
call fcn.004a9c41
mov ecx, dword [0x6a2cdc]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x4a14da
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 0x4a14da
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 0x4a1743
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.00410999
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.004b2897
test eax, eax
je 0x4a17d4
xor ebx, ebx
push 1
xor edi, edi
lea esi, [ebp - 0x24]
call fcn.0040bab7
lea esi, [ebp - 0x80]
call fcn.00410999
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.0040c8fa
push str.SoftMgrSoftManager.exe
lea esi, [ebp - 0x40]
call fcn.0040bead
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.0041072b
push eax
push ebx
call fcn.0042353e
push 1
xor edi, edi
lea esi, [ebp - 0x78]
call fcn.0040bab7
push 1
lea esi, [ebp - 0x40]
call fcn.0040bab7
cmp dword [ebx + 0x14], 8
jb 0x4a1821
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.0040bab7
jmp 0x4a17af

Function at 0x4a3e3c
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 0x4a3ea0
cmp dword [ebp + 0xc], 1
je 0x4a3e78
cmp dword [ebp + 0xc], 2
je 0x4a3e78
push 0xd
pop eax
jmp 0x4a3ea0
mov eax, dword [ebp - 4]
test edi, edi
je 0x4a3e9a
test eax, eax
je 0x4a3e95
test al, 1
jne 0x4a3e73
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4a3e9a
jmp 0x4a3e73
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4a496d
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 0x4a49ec
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x4a49ec
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 0x4a49d4
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004a429e
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 0x4a5163
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.0040bead
push 0
lea eax, [edi + 0xb8]
push eax
or eax, 0xffffffff
call fcn.0040d7a8
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4a51a0
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.0040bab7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00403fc1
leave
ret
Function at 0x4a5f3a
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 0x4a5f84
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 0x4a5fab
shr eax, 2
test al, 1
je 0x4a5fb4
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 0x4a5fe7
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 0x4a5fe6
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 0x4a6821
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.004a6668
mov ecx, eax
test ecx, ecx
je 0x4a688d
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 0x4a688d
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 [0x6a1aec], ecx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x4a688d
mov eax, dword [ebp - 8]
mov dword [esi + eax], 0x4a6701
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 0x4a7056
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.004a3de6
mov ebx, eax
cmp ebx, esi
je 0x4a70c3
cmp dword [ebp - 0x218], esi
je 0x4a70bc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4a715b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4a70eb
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004a7056
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x4a716c
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 0x4a70cb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x4a7136
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.004a6f91
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x4a7159
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 0x4a7180
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4a715b
Function at 0x4a7430
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 0x4a7482
call fcn.004a6977
mov esi, eax
jmp 0x4a7547
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4a749b
call fcn.004a6977
jmp 0x4a7539
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x4a7491
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4a74cb
mov esi, 0x8007000e
jmp 0x4a753b
push 2
push eax
call fcn.00427194
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x4a74eb
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00427501
jmp 0x4a74f7
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x4a74c4
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 0x4a7491
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.004a7ef3
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4a7560
lea eax, [ebp - 0x408]
call fcn.004a8cca
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 0x4a8974
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 0x4a89b3
xor al, al
jmp 0x4a8a01
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x22c]
call fcn.0040bead
push str._new_360se.exe
mov eax, esi
push eax
call fcn.0040d6e0
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4a89e3
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.0040bab7
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4a9c61
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.004a9e78
push dword [ebp + 8]
lea esi, [edi + 0x174]
push esi
call fcn.0040bed1
cmp dword [esi + 0x14], 8
mov eax, dword [edi + 0x184]
jb 0x4a9c8a
mov ecx, dword [esi]
jmp 0x4a9c8c
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4a9c9f
push 0x62d6d4
push esi
call fcn.0040d6e0
push dword [ebp + 0xc]
push esi
call fcn.0040d6e0
push str..dmp
push esi
call fcn.0040d6e0
cmp dword [esi + 0x14], 8
jb 0x4a9cbb
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 0x4a9d0d
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 0x4a9d0d
cmp byte [edi + 0xe4], 0
je 0x4a9d0d
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004aa09d
mov al, 1
jmp 0x4a9d0f
xor al, al
pop esi
pop ebp
ret 0xc