joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031d0
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x419526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x41f908]
push ebx
xor ebx, ebx
mov dword [esp + 0x218], eax
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
mov dword [esp + 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x403249
mov eax, dword [esp + 4]
cmp eax, ebx
mov dword [esp + 0x224], 0xffffffff
je 0x40323f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x40336f
push esi
lea edx, [esp + 8]
push edx
push 0x41bc48
push 1
push ebx
push 0x41bc58
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x403353
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x40328b
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x41a91c
push eax
call dword [ecx]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x230], 1
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x4032f1
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x4032f1
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x4032f1
mov edx, dword [esp + 0x240]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
cmp esi, ebx
jge 0x403321
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x403306
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x40336c
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40336c
mov esi, dword [esp + 0x238]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x403353
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x40336c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x218]
pop ebx
call fcn.0040da10
add esp, 0x224
ret
Function at 0x4036a0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
call fcn.00405590
add esp, 4
test eax, eax
jne 0x4036c7
mov eax, dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4036c7
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push eax
push 0x41a620
push ecx
call fcn.00403040
add esp, 0xc
test eax, eax
jl 0x4036c3
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 4]
push 2
push 0x41a7c0
push eax
push 0x41a620
push esi
call fcn.004031d0
xor ecx, ecx
add esp, 0x14
test eax, eax
setge cl
pop esi
mov eax, ecx
ret

Function at 0x403710
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push eax
push 0x41b588
push ecx
call fcn.00403040
add esp, 0xc
test eax, eax
jge 0x403730
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
push eax
push 0x41a92c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
ret

Function at 0x403b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403780
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004014c0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403bc2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403f90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4195b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x421564]
push ebx
push esi
mov ecx, 0x421564
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov ebx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x403fee
push 0x104
lea ecx, [esp + 0xc]
call fcn.004015c0
mov esi, dword [esp + 8]
push 0x104
push esi
call fcn.004055b0
add esp, 8
test esi, esi
jne 0x404004
xor eax, eax
jmp 0x404015
push esi
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x404129
cmp eax, dword [esi - 8]
jg 0x404129
push ebp
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
call fcn.00403ca0
mov ebx, dword [esp + 0x2c]
push 0x41aa40
push 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404108
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x404108
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x404108
test edi, edi
jbe 0x404108
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404108
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
add esi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4040f0
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
jmp 0x4040ed
push 0x80070057
call fcn.00401000
int3
Function at 0x404c90
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov eax, dword [0x41f908]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x268], eax
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, 0x93
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea edi, [ebx + 0x10]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], esi
call fcn.00403ca0
push 0x41abcc
call fcn.0040e053
add esp, 4
push eax
push 0x41abcc
lea ecx, [esp + 0x14]
call fcn.00401b10
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x404d60
mov dword [esp + 0x27c], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x404e48
test byte [esp + 0x18], 0x10
jne 0x404deb
mov eax, dword [0x421564]
mov ecx, 0x421564
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.00403ca0
lea ecx, [esp + 0x44]
push ecx
call fcn.0040e053
add esp, 4
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.00401b10
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.0040e7dd
add esp, 8
test eax, eax
je 0x404dc9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404deb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x250
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404d60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x27c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x26c]
call fcn.0040da10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4051e0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40524d
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x405225
cmp eax, 2
jne 0x40523d
test esi, esi
mov eax, dword [esp + 0x14]
je 0x405247
test al, 1
jne 0x40523d
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405247
pop edi
mov eax, 0xd
pop esi
ret 0xc
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x405590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x4055b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41f908]
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x40560f
test eax, eax
je 0x40560f
mov ecx, dword [esp + 0x210]
push ecx
push 0
push 0x41b4d8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x208]
call fcn.0040da10
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor eax, eax
call fcn.0040da10
add esp, 0x20c
ret

Function at 0x405630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40568c
add esp, 0x54
ret
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x4056b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41f908]
push ebx
push esi
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x104
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e069
lea edx, [esp + 0x1c]
push edx
call fcn.0040e053
mov ebx, eax
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x40573a
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp word [esp + esi*2 + 0x10], 0x5c
jne 0x405735
lea eax, [esp + 0x10]
push eax
mov word [esp + esi*2 + 0x14], 0
call edi
cmp eax, 0xffffffff
jne 0x40572e
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esp + esi*2 + 0x10], 0x5c
inc esi
cmp esi, ebx
jl 0x405706
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.0040da10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x41f908]
push edi
mov dword [esp + 0x8c], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x1f
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
lea eax, [esp + 0xc]
push eax
push 0x41af88
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x405802
cmp eax, 0x40
ja 0x405802
lea ecx, [esp + 8]
push 0x41b4e8
push ecx
call fcn.0040e7dd
add esp, 8
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x8c]
call fcn.0040da10
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x8c]
xor eax, eax
call fcn.0040da10
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x828
mov eax, dword [0x41f908]
mov dword [esp + 0x824], eax
mov eax, dword [0x420e04]
test eax, eax
push esi
push edi
je 0x40594f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
push 0x420e00
call esi
test eax, eax
je 0x405875
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 1
push 0x420e00
call esi
test eax, eax
jne 0x405862
xor eax, eax
mov word [esp + 0x20], 0
mov ecx, 0x200
lea edi, [esp + 0x22]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push 0x41b4f8
push eax
call fcn.0040e8b3
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040e053
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push ecx
mov edx, 0x400
sub edx, eax
push edx
lea eax, [esp + eax*2 + 0x3c]
push eax
call fcn.0040ebe9
push 0x400
lea ecx, [esp + 0x44]
push 0x41b4f0
push ecx
call fcn.0040e8b3
mov eax, dword [0x41f100]
add esp, 0x2c
cmp eax, 0xffffffff
je 0x405945
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0
call dword [0x420e08]
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [0x420e0c]
test eax, eax
jne 0x405945
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41f100]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x41f100]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esp + 0xc]
push edx
call dword [0x420e10]
mov dword [0x420e00], 0
mov ecx, dword [esp + 0x82c]
call fcn.0040da10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406990
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
push 0x41b5ec
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4069c0
cmp eax, esi
ja 0x4069c0
push edi
call fcn.004056b0
add esp, 4
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4069d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406a3e
push esi
mov esi, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
push 0x41b080
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x406a34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret
Function at 0x406a50
Capabilities:
Get geographical location
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, dword [eax]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406ab5
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
push 0x41b068
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x406ab5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x406ac0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406b2f
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push 0x41b050
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x406b25
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, 1
add esp, 8
ret

Function at 0x409cc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x409d29
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 8]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x41afec
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x409d28
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x409d44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
add esp, 8
ret

Function at 0x409d50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x409db9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 8]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x41affc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x409db8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x409dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
add esp, 8
ret
Function at 0x409de0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x409e49
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 8]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x41b014
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x409e48
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x409e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
add esp, 8
ret

Function at 0x409e70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41afa8
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x409ed9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 8]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x41b038
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x409ed8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x409ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
add esp, 8
ret
Function at 0x40f278
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41bd00
call fcn.0040f5fc
mov edi, 0x94
mov eax, edi
call fcn.0040e7a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x421134], ecx
mov eax, dword [esi + 4]
mov dword [0x421140], eax
mov edx, dword [esi + 8]
mov dword [0x421144], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x421138], esi
cmp ecx, 2
je 0x40f2d8
or esi, 0x8000
mov dword [0x421138], esi
shl eax, 8
add eax, edx
mov dword [0x42113c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f313
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f313
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f32b
cmp eax, 0x20b
je 0x40f318
mov dword [ebp - 0x1c], esi
jmp 0x40f33f
cmp dword [ecx + 0x84], 0xe
jbe 0x40f313
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f339
cmp dword [ecx + 0x74], 0xe
jbe 0x40f313
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040fb09
pop ecx
test eax, eax
jne 0x40f353
push 0x1c
call fcn.0040f254
pop ecx
call fcn.004111be
test eax, eax
jne 0x40f364
push 0x10
call fcn.0040f254
pop ecx
call fcn.00414d88
mov dword [ebp - 4], esi
call fcn.00414b8a
test eax, eax
jge 0x40f37d
push 0x1b
call fcn.0040f22f
pop ecx
call fcn.00414aeb
mov dword [0x422934], eax
call fcn.00414981
mov dword [0x420f60], eax
call fcn.004148eb
test eax, eax
jge 0x40f3a2
push 8
call fcn.0040f22f
pop ecx
call fcn.004146b8
test eax, eax
jge 0x40f3b3
push 9
call fcn.0040f22f
pop ecx
push 1
call fcn.004115e3
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f3c9
push eax
call fcn.0040f22f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00414672
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f3ea
movzx eax, word [ebp - 0x40]
jmp 0x40f3ed
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004024e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f40b
push edi
call fcn.00411710
call fcn.00411732
jmp 0x40f43d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f637
ret