joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0048e100
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1fff
lea eax, [ebp - 0x2003]
push 0
push eax
mov byte [ebp - 0x2004], 0
call fcn.0048d9d0
add esp, 0xc
lea ecx, [ebp - 0x200c]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x410685
cmp eax, 0x1fff
ja 0x410685
lea edx, [ebp - 0x2004]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410685
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2008]
push ecx
push 0x4fdf78
lea edx, [ebp - 0x2004]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x410685
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0xc]
pop edi
pop esi
mov dword [ebx], edx
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048d9be
mov esp, ebp
pop ebp
ret

Function at 0x4109d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5264fc], 0
je 0x410a36
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0048d9d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x410a2c
mov dword [0x52ac78], 1
mov dword [0x5264fc], 0
mov ecx, dword [ebp - 4]
mov eax, dword [0x52ac78]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret

Function at 0x410e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0048d9d0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ecx
call fcn.004109d0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
neg eax
sbb eax, eax
or dword [ebp - 0x38], 0x1000
and eax, str.runas
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 1
xor esi, esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x410eb2
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x410e9e
mov edx, dword [ebp - 4]
push eax
push edx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4119c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x528c24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
fldz
push eax
fstp dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040e6b0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jge 0x411a0b
or eax, 0xffffffff
jmp 0x411a27
push 0x4fe058
push ecx
call fcn.0048f0fb
add esp, 8
cmp eax, ebx
jne 0x411a22
or eax, 0xffffffff
jmp 0x411a27
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040db70
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040c3d0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x34]
push eax
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x411ac7
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
and ecx, 0x80000000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
fild qword [ebp - 0x18]
fchs
faddp st(1)
fld qword [0x4fe050]
fmul st(1), st(0)
fmul st(1), st(0)
fmulp st(1)
fstp dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411aed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x526520], 0
je 0x411db6
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0048d9d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x411dac
mov dword [0x52ac88], 1
mov dword [0x526520], 0
mov ecx, dword [ebp - 4]
mov eax, dword [0x52ac88]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efea6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
push 0x5124f8
lea ecx, [ebp - 0x220]
call fcn.0040e6b0
push 0x5124f8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040e6b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov byte [ebp - 4], 1
mov edi, 0x61
mov word [ebp - 0x218], ax
call fcn.0048d9d0
add esp, 0xc
movzx edx, di
push edx
lea eax, [ebp - 0x21c]
push 0x4fe188
push eax
call fcn.0040c440
mov edx, dword [ebp - 0x21c]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x416773
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416673
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040c210
mov edx, dword [ebp - 0x220]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4166c1
push esi
lea ecx, [ebp - 0x220]
call fcn.0040bbe0
mov edx, dword [ebp - 0x220]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.0048f624
add esp, 8
test esi, esi
jl 0x4167eb
mov eax, dword [ebp - 0x220]
cmp esi, dword [eax - 8]
jg 0x4167eb
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x220]
xor edx, edx
mov word [eax + esi*2], dx
mov edx, dword [ebp - 0x21c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x416720
push esi
lea ecx, [ebp - 0x21c]
call fcn.0040bbe0
mov edx, dword [ebp - 0x21c]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.0048f624
add esp, 8
test esi, esi
jl 0x4167eb
mov eax, dword [ebp - 0x21c]
cmp esi, dword [eax - 8]
jg 0x4167eb
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x224]
mov word [eax + esi*2], dx
call fcn.00416340
lea edx, [ebp - 0x21c]
push edx
mov ecx, eax
call fcn.0040c3d0
mov ax, di
inc edi
cmp ax, 0x7a
jb 0x416631
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040b2a0
int3
Function at 0x416a80
Capabilities:
Acquire debug privileges
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eff9b
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.0048e100
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
test eax, eax
je 0x416c4d
cmp dword [ebp + 0xc], 0x64
jl 0x416c4d
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push 0
push 0x1000
call edi
mov esi, eax
test esi, esi
jne 0x416b05
push str.SeDebugPrivilege
call fcn.00411cf0
add esp, 4
push ebx
push esi
push 0x1000
call edi
mov esi, eax
test esi, esi
je 0x416c4d
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0048d9d0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x1010]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1014]
call fcn.0040e6b0
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax - 8]
push ecx
push eax
mov dword [ebp - 4], 0
call fcn.0048f276
add esp, 8
test eax, eax
jl 0x416c43
mov ecx, dword [ebp - 0x1014]
cmp eax, dword [ecx - 8]
jg 0x416c43
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x1014]
xor ecx, ecx
mov word [edx + eax*2], cx
lea ecx, [ebp - 0x1014]
call fcn.00414170
lea eax, [ebp - 0x1014]
push eax
call fcn.00416a10
mov ecx, eax
call fcn.00414bf0
mov dword [ebp - 0x101c], eax
test eax, eax
je 0x416c0b
push 0x800
lea ecx, [ebp - 0x810]
push 0
push ecx
call fcn.0048d9d0
mov eax, dword [ebp - 0x1014]
mov edi, dword [eax - 0xc]
push 0x7e
push eax
mov ebx, eax
call fcn.0048f295
add esp, 0x14
test eax, eax
je 0x416bf1
push edi
lea edx, [ebp - 0x810]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jle 0x416bf1
cmp eax, edi
lea ecx, [ebp - 0x810]
jl 0x416bf7
mov ecx, dword [ebp - 0x1014]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1018]
push eax
push ecx
push edx
call fcn.0048f22c
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x101c]
jmp 0x416c4f
push 0x80070057
call fcn.0040b2a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret
Function at 0x416e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push eax
push 1
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x416ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x416ea5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x416e9a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov ecx, edi
call fcn.00416c70
mov dword [esi], eax
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 4]
call fcn.00416490
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4185c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.004181d0
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x418610
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x41865b
mov eax, dword [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.004181d0
mov eax, esi
pop esi
pop ebp
ret 4
push ecx
add eax, 4
push eax
mov ecx, esi
call fcn.004181d0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4198c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00419810
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x419e60
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x419e7a
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x14], ebx
je 0x419f5f
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x14]
xor eax, eax
cmp edx, eax
jl 0x419f5f
jg 0x419ec0
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x419f5f
push edi
push str..last
lea edi, [esi + 0x30]
lea ecx, [ebp - 4]
push edi
push ecx
call fcn.0040e000
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, dword [edi]
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
pop edi
cmp eax, 0xffffffff
jne 0x419f19
mov dword [esi], ebx
cmp dword [esi + 0xc], ebx
je 0x419f40
mov eax, dword [esi]
cmp eax, ebx
je 0x419f40
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
push eax
mov dword [ebp - 0xc], 0xfeff
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
cmp esi, ebx
je 0x419f7c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4207c0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
push edi
jne 0x4207e3
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 2
test eax, eax
jne 0x42088a
push 0x3f
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.0048d9d0
add esp, 0xc
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x164]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x168], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x420866
movsx ecx, byte [ebp - 0x44]
lea edx, [ebp - 0x42]
sub ecx, 0x30
push edx
mov dword [esi + 0x10], edi
mov dword [esi + 4], ecx
call fcn.004905db
add esp, 4
mov dword [esi + 8], eax
jmp 0x42088a
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [esi + 8], eax
cmp edx, ecx
sbb eax, eax
neg eax
inc eax
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x420899
jne 0x4208f6
cmp dword [esi + 8], edi
jb 0x4208f6
push 0x118
lea ecx, [ebp - 0x15c]
push 0
push ecx
call fcn.0048d9d0
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x160], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4208f6
lea edx, [ebp - 0x160]
push edx
call eax
test eax, eax
jne 0x4208f6
mov edi, dword [esi]
push edi
lea eax, [ebp - 0x160]
push eax
push esi
call fcn.0048fa10
add esp, 0xc
mov dword [esi], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0048d9be
mov esp, ebp
pop ebp
ret

Function at 0x421800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x42181f
cmp dword [edi], 2
jae 0x42181f
pop edi
mov eax, 0x7a
pop esi
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
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 0x421889
cmp dword [ebp + 0x10], 7
je 0x421859
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x421883
test cl, 1
jne 0x42184e
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x42184e
cmp word [esi + eax*2 - 2], 0
jne 0x42184e
cmp eax, 1
jbe 0x421883
cmp word [esi + eax*2 - 4], 0
jne 0x42184e
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x421910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x421929
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x421933
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x422480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0048e100
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x40
lea eax, [ebp - 0x1054]
push 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0048d9d0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x1058]
push ecx
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x1058], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dx, word [ebp + 0x14]
xor eax, eax
push 0xffe
push eax
lea ecx, [ebp - 0x1002]
push ecx
mov dword [ebp - 0x102c], 1
mov word [ebp - 0x1028], dx
mov word [ebp - 0x1004], ax
call fcn.0048d9d0
push ebx
lea edx, [ebp - 0x1004]
push str.__s_
push edx
call fcn.00421f40
add esp, 0x18
test edi, edi
je 0x422559
push edi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00490d83
add esp, 0xc
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x1058]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esi], eax
test eax, eax
je 0x4225e5
mov eax, dword [ebp + 0x18]
cmp eax, 1
jne 0x4225a3
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1014]
push ecx
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x4225cd
cmp eax, 2
jne 0x4225cd
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1014]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1014]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x1010]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x1014]
push ecx
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d9be
mov esp, ebp
pop ebp
ret