joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e0e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004643b0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043da80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004642de
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00460ba2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00460ba2
push 1
push 0
push 0
mov ecx, esi
call fcn.00460b4a
push 1
push 0
push 1
mov ecx, esi
call fcn.00460b4a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464422
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e260
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004643b0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043da80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004642de
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e324
cmp dword [esp + 0x40], 1
jne 0x43e322
cmp ecx, eax
jge 0x43e324
mov eax, ecx
cmp eax, 0xc8
jge 0x43e330
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e0e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464422
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43eaa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045efc0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00464658
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00465b74
test eax, eax
je 0x43ebbc
mov ecx, dword [esp + 0x3c]
call fcn.00464685
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43eb80
push edi
mov ecx, esi
call fcn.00461ced
mov ecx, esi
call fcn.0043ed20
cmp dword [esp + 0x38], 1
jne 0x43ebb5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00461e28
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4415d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441603
push esi
call fcn.004446c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4415fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441689
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441672
mov eax, dword [esi + 8]
test eax, eax
je 0x441627
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44166e
cmp eax, 2
je 0x441672
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44161a
cmp eax, 3
je 0x44164d
cmp eax, 1
jne 0x44161a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44161a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44161a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004416b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441698
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004416b0
add esp, 4
pop esi
ret

Function at 0x45fdb5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fded
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045de6c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045de44
jmp 0x45fdf9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4614aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4614ec
call fcn.00466f5a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4614ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4614e3
xor eax, eax
jmp 0x4614f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004614fa
pop edi
pop esi
pop ebx
ret 4

Function at 0x46748a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4674b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4674d6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004673f0
jmp 0x4674d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4674d6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004673f0
test edi, edi
mov eax, edi
jne 0x4674c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40152a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x401586
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040152a
test eax, eax
jne 0x401620
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020b6
sub eax, 0x401654
mov dword [esp], 0x401654
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401620
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401420
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014a3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401db9
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
call fcn.00402506
push eax
lea ecx, [ebp - 0xc]
call fcn.00402331
push 0x45bab8
push 0x20a
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 1
call fcn.00436fb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40154b
mov ecx, dword [ebp - 4]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0x44c510
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 0xea
jne 0x40152e
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [esp], 0x45bab8
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436fb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40154b
mov eax, dword [ebp - 4]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0x44c510
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401543
mov ecx, esi
call fcn.00401f04
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00402120
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov esi, dword [ebp - 0xc]
lea ecx, [esi - 0x10]
call fcn.00402227
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.004025d7
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x401856
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4018e3
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
mov esi, 0x47cfd8
mov dword [ebp - 8], 0x208
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push 0x44c510
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x4018b8
sub esi, ecx
sar esi, 1
je 0x4018de
push 0x5c
pop eax
cmp word [esi*2 + 0x47cfd6], ax
je 0x4018de
mov word [esi*2 + 0x47cfd8], ax
mov eax, esi
pop esi
jmp 0x4018e5
xor eax, eax
pop edi
leave
ret
Function at 0x401c9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401cf2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401cf2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401ce4
cmp esi, ecx
jae 0x401cf2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401cd2
cmp esi, ecx
jae 0x401cf2
cmp word [esi], 0
je 0x401cf2
mov eax, esi
jmp 0x401cf4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402da7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402dc9
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x402e12
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x402e10
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x402e04
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4044a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 0x45]
push eax
xor esi, esi
mov dword [ebp - 0x50], edx
push esi
push 1
push 0x11
call edi
test eax, eax
je 0x4044df
or eax, 0x10000000
jmp 0x404600
lea eax, [ebp - 0x45]
push eax
push esi
push 1
push 0x12
call edi
test eax, eax
jne 0x4044d5
push str.BCD00000000
lea ecx, [ebp - 0x44]
call fcn.00401e23
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x4c]
push eax
push 0x2000000
push 4
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, 2
jne 0x4045b3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
call fcn.00404657
mov ebx, eax
test ebx, ebx
jne 0x404558
push esi
push 0x3c
lea eax, [ebp - 0x40]
push eax
push 0x5a
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x30]
sub eax, 1
je 0x404564
sub eax, 1
je 0x40455d
mov ebx, 0x80004001
mov esi, dword [ebp - 0x44]
jmp 0x404588
mov eax, str.EFIMicrosoftBootBCD
jmp 0x404569
mov eax, str.BootBCD
push eax
lea ecx, [ebp - 0x44]
call fcn.00411c77
mov esi, dword [ebp - 0x44]
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ebx, eax
test ebx, ebx
je 0x404591
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4045f6
lea eax, [ebp - 0x4c]
push eax
push 0x2000000
push 4
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
test ebx, ebx
jne 0x4045eb
push 0x24
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
je 0x4045e4
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.00402227
mov ecx, dword [ebp - 0x44]
add eax, 0x10
mov dword [esi], eax
push dword [ebp - 0x4c]
call fcn.00403ad2
mov esi, eax
mov eax, dword [ebp - 0x50]
mov dword [eax], esi
jmp 0x4045f6
jle 0x4045f6
movzx ebx, bx
or ebx, 0x80070000
lea ecx, [edi - 0x10]
call fcn.004025d7
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret

Function at 0x40460f
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x3c
lea eax, [ebp - 0x40]
mov edi, ecx
push eax
push 0x5a
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x40463f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x40464a
push esi
lea esi, [ebp - 0x40]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004488a4
leave
ret
Function at 0x404657
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push ebx
push ebx
push 0x62
mov dword [ebp - 4], ebx
call edi
cmp eax, 0xc0000023
jne 0x4046e9
push esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
push 0x62
call edi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4046dd
movzx ecx, word [esi]
add ecx, 0x1c
push ecx
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
push 7
mov ebx, eax
mov esi, str._GLOBALROOT
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x1c]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 8]
movzx ecx, word [esi]
add ecx, 2
push ecx
push dword [esi + 4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax], ebx
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x10]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x405967
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov ebx, str.GlobalWinRE_565A8060_7F1C_42D2_9F94_06204826B359
jmp 0x40598f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4059a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x405970
pop esi
pop ebx
ret
mov eax, esi
jmp 0x4059a0
Function at 0x4069cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x18
push 0x456678
call fcn.00448a10
mov ebx, edx
mov edi, ecx
and dword [ebp - 4], 0
push 0
push 1
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x406a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xfffffffe
jmp 0x406a98
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4069f6
and dword [ebp - 0x20], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
call fcn.00448c60
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
push dword [ebp - 0x24]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x44eb58
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4069f6
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x406a98
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40722f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
mov esi, ecx
push edi
push 0x100478
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x94], eax
test eax, eax
jne 0x407258
call fcn.0041390d
jmp 0x4072ae
push 2
push edi
push edi
lea ecx, [ebp + 8]
push ecx
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x407251
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push esi
push 0x407202
push edi
push edi
mov dword [esi + 0x98], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [esi + 0x90], eax
add esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esi + 0x88], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x40735f
Capabilities:
Create thread
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
je 0x4074be
xor edi, edi
cmp word [eax], di
je 0x4074be
cmp dword [ebp + 0xc], edi
je 0x4074be
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4074be
cmp word [esi], di
je 0x4074be
push eax
push edi
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebx + 0x88], eax
test eax, eax
jne 0x4073bb
call fcn.0041390d
jmp 0x4074c3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4073d4
mov eax, 0x8000ffff
jmp 0x4074c3
push dword [ebp + 0xc]
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebx + 0x94], eax
test eax, eax
je 0x4073b1
push esi
mov ecx, ebx
call fcn.0041ced0
test eax, eax
jne 0x4074c3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x40742e
sub eax, esi
lea ecx, [ebp + 0xc]
sar eax, 1
push eax
push esi
call fcn.00411308
push dword [eax]
push str.WuaWsuscan2RootPath
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004025d7
call fcn.00402506
push eax
lea ecx, [ebp + 0xc]
call fcn.00402331
lea edx, [ebp + 0xc]
mov ecx, 0x400000
call fcn.004141aa
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x40746f
push ecx
lea ecx, [ebp + 0xc]
call fcn.0040cb8b
inc eax
lea ecx, [ebp + 0xc]
push eax
call fcn.004020f5
push esi
push str.WuaPatchMgrRootPath
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407488
call fcn.0041390d
mov edi, eax
jmp 0x4074b2
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push ebx
push 0x407202
push edi
push edi
mov dword [ebx + 0x98], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x90], eax
lea ecx, [esi - 0x10]
call fcn.004025d7
mov eax, edi
jmp 0x4074c3
mov eax, 0x80070057
pop edi
pop esi
pop ebx
pop ebp
ret 0xc