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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004279d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40232c
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40232c
cmp word [ebp - 0xc], ax
je 0x40232e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret

Function at 0x402340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004279d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jb 0x4023c0
jne 0x4023d3
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4023c0
cmp eax, 2
jne 0x4023af
mov eax, dword [0x4854a4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4023e1
mov ax, word [ebp - 0xc]
cmp ax, 3
je 0x40239c
jae 0x4023e1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4023e1
cmp dword [ebp - 0x118], 0
je 0x40239c
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret

Function at 0x402400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004279d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40245d
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x40245d
cmp word [ebp - 0xc], 0
je 0x40245f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x402830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.004279d0
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x402880
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x402880
lea edx, [ebp - 0x198]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4028d5
mov dword [0x4868d4], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0x435a48
push ecx
call esi
test eax, eax
je 0x402920
mov dword [0x4868d4], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.RegNumber
push edx
mov dword [0x4868d4], 1
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402987
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.0042017e
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x403600
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004279d0
add esp, 0xc
push edi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403658
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403699
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x20c]
push 0x435920
push edx
call fcn.0041fcb7
add esp, 8
test eax, eax
jne 0x40368a
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x403671
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp edi, 1
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret

Function at 0x4036c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x84e]
push edx
mov dword [ebp - 0x85c], eax
mov word [ebp - 0x850], cx
call fcn.004279d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x850]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [ebp - 0x850]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x403809
push ebx
push esi
call fcn.0041fd7c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403808
push ebx
push esi
push 0
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4037ff
push 0
lea eax, [ebp - 0x858]
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 0x858], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4037ff
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x4037ff
push edi
mov ecx, 0x12
mov esi, str.StringFileInfo12345678FileVersion
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
mov dword [ebp - 0x854], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
pop edi
test eax, eax
je 0x4037ff
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x4037ff
mov edx, dword [ebp - 0x85c]
sub edx, eax
jmp 0x4037f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4037f0
push ebx
call fcn.0041fd42
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x4045f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 with custom key via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp esi, 0x10
jle 0x404605
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x404648
push 8
push 1
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call edi
test eax, eax
jne 0x404648
push 0xf0000000
push 1
push ebx
push ebx
lea edx, [ebp - 4]
push edx
call edi
test eax, eax
je 0x4046e6
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptImportKey]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x134
push 0x449ff8
push ecx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x4046e6
xor eax, eax
cmp esi, ebx
jle 0x404685
lea ecx, [esi + 0x44a17b]
mov dl, byte [ecx]
mov byte [eax + 0x44a13c], dl
inc eax
dec ecx
cmp eax, esi
jl 0x404677
lea eax, [esi + 1]
mov byte [esi + 0x44a13c], bl
cmp eax, 0x3e
jge 0x4046ac
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0x44a13c]
push 1
push ecx
call fcn.004279d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push 0x4c
push 0x44a130
push edx
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x4046e6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 8]
push edx
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4046ef
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4065f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004279d0
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40664a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x488f70], 1
mov dword [ebp - 0x220], eax
jne 0x406683
cmp byte [ebp + 0x10], 0
push 0
je 0x406678
push 0x100
push esi
push edi
call eax
jmp 0x40668b
push 0x200
push esi
push edi
call eax
jmp 0x40668b
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4066a5
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x4066b9
lea edx, [ebp - 0x218]
push edx
push 0x20119
jmp 0x4066c5
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4066dd
xor ecx, ecx
cmp eax, 2
jmp 0x4067e5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
je 0x4066ff
mov edx, 0x5c
mov word [ebx], dx
add ebx, 2
xor eax, eax
mov word [ebx], ax
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push ecx
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406797
jmp 0x406740
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.00405050
mov edx, dword [ebp + 0x10]
push edx
push esi
push edi
call fcn.004065f0
add esp, 0xc
test eax, eax
je 0x406797
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push eax
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406740
xor ecx, ecx
mov word [ebx - 2], cx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x488f70], 1
jne 0x4067d9
cmp byte [ebp + 0x10], 0
push 0
je 0x4067ca
push 0x100
push esi
push edi
call dword [ebp - 0x220]
jmp 0x4067e1
push 0x200
push esi
push edi
call dword [ebp - 0x220]
jmp 0x4067e1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x4087f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x20c], ax
call fcn.004279d0
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
add esp, 0xc
call esi
movzx eax, ax
mov edx, eax
and edx, 0x3ff
cmp edx, 4
jne 0x408856
and eax, 0xfc00
cmp eax, 0x400
jne 0x408856
lea edi, [edx - 3]
jmp 0x408858
xor edi, edi
call esi
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x40887b
and eax, 0xfc00
cmp eax, 0x800
jne 0x40887b
lea edx, [ecx - 3]
jmp 0x40887d
xor edx, edx
xor eax, eax
nop
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x408880
test edi, edi
je 0x4088e9
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4088a4
mov edx, dword [0x43b824]
mov ecx, dword [0x43b828]
mov dword [eax], edx
mov edx, dword [0x43b82c]
mov dword [eax + 4], ecx
mov ecx, dword [0x43b830]
mov dword [eax + 8], edx
mov edx, dword [0x43b834]
mov dword [eax + 0xc], ecx
mov cx, word [0x43b838]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x40895c
test edx, edx
je 0x40893b
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4088f6
mov edx, dword [0x43b83c]
mov ecx, dword [str._Client7]
mov dword [eax], edx
mov edx, dword [0x43b844]
mov dword [eax + 4], ecx
mov ecx, dword [0x43b848]
mov dword [eax + 8], edx
mov edx, dword [0x43b84c]
mov dword [eax + 0xc], ecx
mov cx, word [0x43b850]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x40895c
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408944
mov ecx, 7
mov esi, str.WiNet_Client7
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
test eax, eax
jne 0x4089ee
nop
movzx ecx, word [eax + 0x4829bc]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x408990
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4089b0
mov ecx, dword [ebp - 0x210]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x408a10
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x485498], 0
mov dword [ebp - 8], 0
je 0x408a83
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_servicesWM7F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408a7d
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push str.NetDevice
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.systemcurrentcontrolset_servicesWM7F
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408abb
mov eax, dword [ebp - 4]
push str.NetDevice
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408d90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004279d0
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_serviceseventlogApplicationWinNetDaily
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408e14
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004279d0
push str._SystemRoot_System32WinNetDaily.dll
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.004217d0
lea eax, [ebp - 0x20c]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e50
mov ecx, dword [ebp - 0x210]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
lea eax, [ebp - 0x20c]
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call esi
mov eax, dword [ebp - 0x210]
push edi
lea edx, [ebp - 0x20c]
push edx
push 2
push 0
push str.CategoryMessageFile
push eax
call esi
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004279d0
mov eax, dword [ebp - 0x210]
add esp, 0xc
push 4
lea edx, [ebp - 0x214]
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [ebp - 0x214], 7
call esi
mov edx, dword [ebp - 0x210]
push 4
lea ecx, [ebp - 0x214]
push ecx
push 4
push 0
push str.CategoryCount
push edx
mov dword [ebp - 0x214], 1
call esi
mov eax, dword [ebp - 0x210]
pop edi
pop esi
test eax, eax
je 0x408f12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret

Function at 0x408f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004279d0
push 0x48b008
lea edx, [ebp - 0x210]
push str.__swmcSystem7.exe___di
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004279d0
add esp, 0x24
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x268]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
push 0
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408fed
mov ecx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x220]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x409000
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004279d0
push 0x11c
lea edx, [ebp - 0x330]
push 0
push edx
call fcn.004279d0
add esp, 0x18
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x330], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x32c], 6
push 0x48b008
jb 0x409078
push str.__swmcSystem7.exe___ai
lea ecx, [ebp - 0x210]
push ecx
jmp 0x409084
push str.__swmcSystem7.exe___i
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x44
lea eax, [ebp - 0x388]
push 0
push eax
call fcn.004279d0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x340]
push ecx
lea edx, [ebp - 0x388]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x210]
push eax
push 0
mov dword [ebp - 0x388], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409104
mov ecx, dword [ebp - 0x33c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x340]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
Function at 0x409120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x487af8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004279d0
add esp, 0xc
push 0x48b008
lea edx, [ebp - 0x210]
push str.__swmcSystem7.exe___ap
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, 2
jne 0x409197
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.00403960
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
cmp esi, 3
jne 0x4091bc
lea ecx, [ebp - 0x210]
push ecx
mov ecx, edi
call fcn.00403df0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x4091e1
lea edx, [ebp - 0x210]
push edx
mov ecx, edi
call fcn.00403df0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004279d0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x268]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
push 0
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409264
test edi, edi
je 0x40924c
mov ecx, dword [ebp - 0x218]
mov dword [edi], ecx
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x220]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret