joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6c465087
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x34a16472
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4013c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.00427f40
push esi
lea edx, [ebp - 0x804]
push str._EmbedModule___s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403556
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40355c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ebx
je 0x40356b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret

Function at 0x403ad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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 0x403b35
cmp dword [ebp - 0x118], 0
jne 0x403b35
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00421294
mov esp, ebp
pop ebp
ret

Function at 0x403b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00421294
mov esp, ebp
pop ebp
ret

Function at 0x403bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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
jbe 0x403c25
cmp eax, 6
jbe 0x403c13
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
jne 0x403c25
mov eax, dword [ebp - 0x118]
cmp eax, 1
jbe 0x403c25
cmp eax, 2
jae 0x403c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00421294
mov esp, ebp
pop ebp
ret
Function at 0x404850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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 0x4048ac
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x4048ac
cmp word [ebp - 0xc], ax
je 0x4048ae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret

Function at 0x4048c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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 0x404940
jne 0x404953
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x404940
cmp eax, 2
jne 0x40492f
mov eax, dword [0x48743c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x404961
mov ax, word [ebp - 0xc]
cmp ax, 3
je 0x40491c
jae 0x404961
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x404961
cmp dword [ebp - 0x118], 0
je 0x40491c
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00421294
mov esp, ebp
pop ebp
ret

Function at 0x404980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427f40
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 0x4049dd
mov eax, 1
cmp dword [ebp - 0x118], eax
jne 0x4049dd
cmp word [ebp - 0xc], 0
je 0x4049df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
Function at 0x404db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x44a044]
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.00427f40
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x404e00
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x404e00
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 0x404e55
mov dword [0x489a78], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
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 0x43b908
push ecx
call esi
test eax, eax
je 0x404ea0
mov dword [0x489a78], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
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 [0x489a78], 1
call esi
mov esi, eax
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404f07
push 0
push str.C:Program_Filesww2017cfWM7Ldr.exe
call fcn.00422010
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00421294
mov esp, ebp
pop ebp
ret
Function at 0x405b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44a044]
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.00427f40
add esp, 0xc
push edi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bd8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
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 0x405c19
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x20c]
push 0x43b7dc
push edx
call fcn.00422853
add esp, 8
test eax, eax
jne 0x405c0a
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x405bf1
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.00421294
mov esp, ebp
pop ebp
ret

Function at 0x405c40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x44a044]
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.00427f40
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 0x405d89
push ebx
push esi
call fcn.004212dd
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405d88
push ebx
push esi
push 0
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x405d7f
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 0x405d7f
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x405d7f
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 0x405d7f
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x405d7f
mov edx, dword [ebp - 0x85c]
sub edx, eax
jmp 0x405d70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405d70
push ebx
call fcn.004212a3
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421294
mov esp, ebp
pop ebp
ret
Function at 0x406b70
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 0x406b85
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 0x406bc8
push 8
push 1
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call edi
test eax, eax
jne 0x406bc8
push 0xf0000000
push 1
push ebx
push ebx
lea edx, [ebp - 4]
push edx
call edi
test eax, eax
je 0x406c66
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 0x44bf70
push ecx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x406c66
xor eax, eax
cmp esi, ebx
jle 0x406c05
lea ecx, [esi + 0x44c0f3]
mov dl, byte [ecx]
mov byte [eax + 0x44c0b4], dl
inc eax
dec ecx
cmp eax, esi
jl 0x406bf7
lea eax, [esi + 1]
mov byte [esi + 0x44c0b4], bl
cmp eax, 0x3e
jge 0x406c2c
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0x44c0b4]
push 1
push ecx
call fcn.00427f40
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 0x44c0a8
push edx
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x406c66
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 0x406c6f
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 0x408b80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x44a044]
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.00427f40
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x408bda
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x48aef8], 1
mov dword [ebp - 0x220], eax
jne 0x408c13
cmp byte [ebp + 0x10], 0
push 0
je 0x408c08
push 0x100
push esi
push edi
call eax
jmp 0x408c1b
push 0x200
push esi
push edi
call eax
jmp 0x408c1b
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x408c35
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x408c49
lea edx, [ebp - 0x218]
push edx
push 0x20119
jmp 0x408c55
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 0x408c6d
xor ecx, ecx
cmp eax, 2
jmp 0x408d75
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
je 0x408c8f
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 0x408d27
jmp 0x408cd0
lea edx, [ebp - 0x214]
mov ecx, ebx
call fcn.004075e0
mov edx, dword [ebp + 0x10]
push edx
push esi
push edi
call fcn.00408b80
add esp, 0xc
test eax, eax
je 0x408d27
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 0x408cd0
xor ecx, ecx
mov word [ebx - 2], cx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x48aef8], 1
jne 0x408d69
cmp byte [ebp + 0x10], 0
push 0
je 0x408d5a
push 0x100
push esi
push edi
call dword [ebp - 0x220]
jmp 0x408d71
push 0x200
push esi
push edi
call dword [ebp - 0x220]
jmp 0x408d71
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.00421294
mov esp, ebp
pop ebp
ret
Function at 0x40ae00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44a044]
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.00427f40
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 0x40ae66
and eax, 0xfc00
cmp eax, 0x400
jne 0x40ae66
lea edi, [edx - 3]
jmp 0x40ae68
xor edi, edi
call esi
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x40ae8b
and eax, 0xfc00
cmp eax, 0x800
jne 0x40ae8b
lea edx, [ecx - 3]
jmp 0x40ae8d
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 0x40ae90
test edi, edi
je 0x40aef9
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40aeb4
mov edx, dword [0x43e1ac]
mov ecx, dword [0x43e1b0]
mov dword [eax], edx
mov edx, dword [0x43e1b4]
mov dword [eax + 4], ecx
mov ecx, dword [0x43e1b8]
mov dword [eax + 8], edx
mov edx, dword [0x43e1bc]
mov dword [eax + 0xc], ecx
mov cx, word [0x43e1c0]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x40af6c
test edx, edx
je 0x40af4b
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40af06
mov edx, dword [0x43e1c4]
mov ecx, dword [str._Client7]
mov dword [eax], edx
mov edx, dword [0x43e1cc]
mov dword [eax + 4], ecx
mov ecx, dword [0x43e1d0]
mov dword [eax + 8], edx
mov edx, dword [0x43e1d4]
mov dword [eax + 0xc], ecx
mov cx, word [0x43e1d8]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x40af6c
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40af54
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 0x40affe
nop
movzx ecx, word [eax + 0x484954]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x40afa0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40afc0
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.00421294
mov esp, ebp
pop ebp
ret
Function at 0x40b020
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x487430], 0
mov dword [ebp - 8], 0
je 0x40b093
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 0x40b08d
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 0x40b0cb
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