joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x72414283
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x57e07188
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x84], eax
movups xmm0, xmmword [str.SampleWindowClass]
mov eax, dword [0x403650]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x48]
movups xmmword [esp + 0x48], xmm0
push esi
movups xmm0, xmmword [0x403640]
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push edi
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0x4019c0
push eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 1
push 1
push 0x80000000
push 0x80000000
push 0x80000000
push 0x403654
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x401d36
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x34]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x401d36
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
jne 0x401d13
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401d7d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4025ae
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4025ed
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4025ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4025ed
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4025ed
cmp dword [ecx + 0x74], 0xe
jbe 0x4025ed
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40655f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ece0]
jne 0x406569
repz ret
jmp fcn.00408d02

Function at 0x4073f7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004045d4
and dword [ebp - 4], 0
cmp dword [0x40f5c4], 0
mov ebx, eax
jne 0x4074a8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407559
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40baac
push edi
call esi
test eax, eax
je 0x407559
push eax
call fcn.00404562
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f5c4], eax
call esi
push eax
call fcn.00404562
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f5c8], eax
call esi
push eax
call fcn.00404562
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f5cc], eax
call esi
push eax
call fcn.00404562
pop ecx
mov dword [0x40f5d4], eax
test eax, eax
je 0x4074a8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404562
pop ecx
mov dword [0x40f5d0], eax
mov eax, dword [0x40f5d0]
cmp eax, ebx
je 0x407500
cmp dword [0x40f5d4], ebx
je 0x407500
push eax
call fcn.004045dd
push dword [0x40f5d4]
mov esi, eax
call fcn.004045dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407500
test edi, edi
je 0x407500
call esi
test eax, eax
je 0x4074f7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4074f7
test byte [ebp - 0xc], 1
jne 0x407500
or dword [ebp + 0x10], 0x200000
jmp 0x407539
mov eax, dword [0x40f5c8]
cmp eax, ebx
je 0x407539
push eax
call fcn.004045dd
pop ecx
test eax, eax
je 0x407539
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407539
mov eax, dword [0x40f5cc]
cmp eax, ebx
je 0x407539
push eax
call fcn.004045dd
pop ecx
test eax, eax
je 0x407539
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f5c4]
call fcn.004045dd
pop ecx
test eax, eax
je 0x407559
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40755b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ca0
Capabilities:
Delete file

Disassembly:
push esi
push 0x40fc18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x40fc30]
test esi, esi
je 0x409cd9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, edi
mov edi, dword [esi]
lea eax, [esi + 4]
push eax
call ebx
push esi
call fcn.00401284
add esp, 4
mov esi, edi
test edi, edi
jne 0x409cc0
pop edi
pop ebx
push 0x40fc18
mov dword [0x40fc34], 0
mov dword [0x40fc30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
ret
Function at 0x409f00
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00409de0
test eax, eax
jne 0x409f29
pop edi
pop ebp
pop ebx
ret 0xc
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409f50
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409f7f
cmp dword [esp + 0x14], ebx
jne 0x409f7f
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x409f91
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret 0xc

Function at 0x409fa0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40a015
lea ecx, [esp]
push ecx
push 0
push str.Embedded
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40a015
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x214]
lea eax, [esp]
push eax
push ecx
push edx
mov edx, dword [esp + 0x224]
call fcn.00409f00
test eax, eax
je 0x40a015
lea eax, [esp]
push eax
call fcn.00409d60
lea ecx, [esp]
test eax, eax
jne 0x40a020
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x220]
lea eax, [esp]
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a030
mov eax, 1
add esp, 0x210
ret 0x10
Function at 0x40a3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
push 0x40cb68
push str.STUBDATA
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40a479
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a479
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40a479
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
cmp eax, 0x400
jne 0x40a479
cmp dword [ebx + 4], 0x54
jb 0x40a479
push eax
push ebx
push esi
call fcn.00407740
lea edx, [esi + 0x28]
add dword [esi + 0x2c], edx
lea eax, [esi + 0x28]
add dword [esi + 0x30], eax
add esp, 0xc
lea ecx, [esi + 0x28]
add dword [esi + 0x38], ecx
lea eax, [esi + 0x28]
add dword [esi + 0x40], eax
lea edx, [esi + 0x28]
add dword [esi + 0x3c], edx
lea ecx, [esi + 0x28]
add dword [esi + 0x48], ecx
pop edi
mov eax, 1
pop ebx
ret 4
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x40a480
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a4a4
xor eax, eax
pop esi
ret 8
push ebx
push ebp
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov edi, eax
call ebp
cmp edi, 0xffffffff
je 0x40a514
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call ebp
test esi, esi
je 0x40a514
push esi
call fcn.00409e50
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
test eax, eax
je 0x40a50d
mov edx, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
mov dword [edx], esi
mov eax, 1
pop esi
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 8
Function at 0x4013c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44c044]
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.00428450
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.004217a4
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 [0x44c044]
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.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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.004217a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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.004217a4
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.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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 [0x48943c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217a4
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.004217a4
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.004217a4
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 [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428450
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.004217a4
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 [0x44c044]
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.00428450
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 [0x48ba78], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217a4
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 0x43c900
push ecx
call esi
test eax, eax
je 0x404ea0
mov dword [0x48ba78], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217a4
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 [0x48ba78], 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.00422520
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004217a4
mov esp, ebp
pop ebp
ret
Function at 0x405b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44c044]
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.00428450
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.004217a4
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 0x43c7d4
push edx
call fcn.00422d63
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.004217a4
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 [0x44c044]
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.00428450
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.004217ed
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.004217b3
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004217a4
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 0x44df70
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 + 0x44e0f3]
mov dl, byte [ecx]
mov byte [eax + 0x44e0b4], dl
inc eax
dec ecx
cmp eax, esi
jl 0x406bf7
lea eax, [esi + 1]
mov byte [esi + 0x44e0b4], bl
cmp eax, 0x3e
jge 0x406c2c
mov edx, 0x3e
sub edx, eax
push edx
lea ecx, [eax + 0x44e0b4]
push 1
push ecx
call fcn.00428450
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 0x44e0a8
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