joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483ac6
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x5088f7
call fcn.004d2c19
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x483ae3
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x483b41
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x483b41
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.00409419
lea edx, [ebp - 0x14]
call fcn.00485185
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea ecx, [esi + 0x1c]
call fcn.00406f66
lea ecx, [esi + 0x10]
call fcn.00406f66
mov dword [ebp - 0x14], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00406df6
call fcn.004d2be2
ret

Function at 0x483f3b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x483fcd
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x56a588]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x483fcd
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x483fe3
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x483fcc
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004d207d
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004d289c
int3
Function at 0x484165
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x536160]
and dword [esp + 8], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
mov bl, dl
movaps xmm0, xmmword [0x536160]
push edi
mov edi, ecx
movups xmmword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x4841df
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
push str.GetUserDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x4841f4
call eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x4842ce
mov dword [esp + 0x20], 3
push esi
mov ecx, edi
call fcn.00406f3f
mov edx, dword [esp + 0x1c]
movzx ecx, word [eax]
cmp cx, dx
jne 0x48422b
xor eax, eax
inc eax
test bl, bl
cmovne eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x48423e
push 5
pop eax
push 7
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x24]
cmp cx, dx
jne 0x48425a
and dword [esp + 0x10], 0
test bl, bl
push 3
pop eax
cmovne eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x48426d
push 7
pop eax
push 5
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x14]
cmp cx, dx
jne 0x48428b
xor eax, eax
mov dword [esp + 0x10], 2
test bl, bl
cmovne eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x48429e
push 4
pop eax
push 6
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x18]
cmp cx, dx
jne 0x4842b2
xor eax, eax
test bl, bl
sete al
mov dword [esp + eax*4 + 0x2c], esi
cmp cl, dl
jne 0x4842c5
push 6
pop eax
push 4
test bl, bl
pop ecx
cmovne eax, ecx
mov dword [esp + eax*4 + 0x28], esi
inc esi
cmp esi, ebp
jl 0x484209
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x4842e2
inc eax
cmp eax, 8
jb 0x4842d0
push 0
jmp 0x4842e3
push edx
mov ecx, edi
call fcn.00406f3f
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d207d
add esp, 0x3c
ret
Function at 0x484377
Capabilities:
Get geographical location

Disassembly:
push 0xc
mov eax, 0x508a06
call fcn.004d2c19
mov edi, edx
mov esi, ecx
call fcn.00406e18
push 0
push 0x51f97c
push 2
movzx ebx, di
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x14], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00443504
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x4843c7
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push 0x52c3d4
push esi
call fcn.00457385
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov eax, esi
call fcn.004d2be2
ret

Function at 0x48462d
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x4846a6
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x4846b1
mov eax, dword [ebp + 0x30]
jmp 0x4846b5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
push 0x206
lea eax, [esp + 0x10]
push eax
push 0
call fcn.00406495
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004d207d
add esp, 0x2c
ret
Function at 0x4849c1
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push ecx
push ecx
and dword [esi], 0
call fcn.00469ed0
pop ecx
mov ecx, eax
call fcn.0046a440
test al, al
je 0x484aaa
push edi
call fcn.00484acb
test al, al
je 0x484aaa
mov ebx, 0x208
lea eax, [ebp - 0x214]
push ebx
push 0
push eax
call fcn.004d3e90
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.004d3e90
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x41c]
mov ecx, esi
push eax
call fcn.00484b4d
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], ebx
mov byte [ebp - 0x420], bl
call fcn.004949f3
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [esi + 4], al
jne 0x484a9d
push edi
mov ecx, esi
call fcn.00484b4d
lea ecx, [ebp - 0x424]
call fcn.004949d3
jmp 0x484ab6
push edi
mov ecx, esi
call fcn.00484b4d
mov byte [esi + 4], 0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d207d
mov esp, ebp
pop ebp
ret 4

Function at 0x484acb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.0046abe0
mov ecx, edi
mov edx, eax
call fcn.0046abe0
cmp eax, edx
jae 0x484b13
xor al, al
jmp 0x484b3b
test edx, edx
je 0x484b39
lea eax, [ebp - 0x20c]
sub edi, eax
lea eax, [edi + esi*2]
mov ax, word [ebp + eax - 0x20c]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x484b0f
inc esi
cmp esi, edx
jb 0x484b1f
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d207d
mov esp, ebp
pop ebp
ret 4
Function at 0x484cad
Capabilities:
Delete file
Get file version info

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edi
mov esi, edi
call fcn.004849c1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
je 0x484d4a
push 0x56a5cc
push ebp
call fcn.004d271e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x484cf6
push 8
pop edi
jmp 0x484d52
push esi
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x484d4a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x523a24
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x484d52
cmp dword [esp + 0x18], edi
je 0x484d52
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x484d3b
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x484d52
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x484d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [esp + 0x24], 0
je 0x484d63
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x20]
call fcn.004d26a2
pop ecx
push esi
call fcn.004d26a2
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x484d7d
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x508a41
call fcn.004d2c19
mov eax, ecx
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
push eax
mov edi, ebx
call fcn.004073cf
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x484db2
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x484ec4
push 0x56a5cc
push esi
call fcn.004d271e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x484ec4
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x484df5
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov eax, dword [ebp - 0x10]
push edi
push esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x484ec4
call fcn.00406d01
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x484e4c
cmp dword [ebp - 0x1c], 0
je 0x484e4c
mov ecx, dword [ebp - 0x20]
push 0x5221e0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x484e5b
push 0x5221e0
push 0x4e2
push 0x409
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00457385
mov esi, dword [ebp - 0x14]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x484e83
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406951
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x484eb8
cmp dword [ebp - 0x24], 0
je 0x484eb8
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.004093f1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
mov bl, 1
jmp 0x484ec4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
push edi
call fcn.004d26a2
pop ecx
mov al, bl
call fcn.004d2be2
ret
Function at 0x4850a3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x508ab2
call fcn.004d2c19
mov edi, edx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x10], 0xc8
push ebx
jmp 0x4850c5
add dword [ebp - 0x10], 2
push esi
call fcn.004d26a2
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00483990
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4850c0
test eax, eax
jne 0x485176
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x485127
cmp eax, 2
je 0x485127
cmp eax, 7
je 0x485127
cmp eax, 4
jne 0x485176
push dword [esi]
push 0x52c574
push dword [ebp + 8]
call fcn.00457385
add esp, 0xc
jmp 0x485173
mov eax, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
jmp 0x48513e
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], bx
je 0x48513a
inc edi
mov dword [ebp - 0x10], edi
call fcn.00406d01
push eax
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00445221
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
xor ebx, ebx
inc ebx
push esi
call fcn.004d26a2
pop ecx
mov al, bl
call fcn.004d2be2
ret

Function at 0x485185
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x508aed
call fcn.004d2c19
push edx
lea ecx, [ebp - 0x10]
call fcn.004073cf
xor edi, edi
push 0x5c
push dword [ebp - 0x10]
call fcn.004d5852
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x485256
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x485256
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444f84
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.00471e40
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push 0x80000001
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x1c], esi
je 0x485247
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x485234
inc edi
cmp dword [ebp - 0x1c], esi
je 0x485220
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x48519c
cmp dword [ebp - 0x1c], esi
je 0x485245
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], esi
jmp 0x485247
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, edi
call fcn.004d2be2
ret
Function at 0x485485
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4854b5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test edi, edi
je 0x4854bc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret

Function at 0x4855ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x60]
mov esi, edx
push ebx
push eax
mov edi, ecx
call fcn.004d3e90
add esp, 0xc
mov dword [ebp - 0xc], ebx
xorps xmm0, xmm0
mov byte [ebp - 8], bl
movups xmmword [ebp - 0x1c], xmm0
cmp byte [ebp + 0x10], bl
je 0x4855f9
lea ecx, [ebp - 0xc]
call fcn.004949f3
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], ebx
cmove ecx, eax
mov eax, dword [edi]
xor edx, edx
cmp dword [eax - 0xc], ebx
cmove eax, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x485650
cmp dword [ebp + 8], ebx
je 0x485645
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.004949d3
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485661
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x508b96
call fcn.004d2c19
mov dword [ebp - 0x10], edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
push 0x38
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d3e90
mov edi, dword [ebp + 0xc]
mov eax, 0x400
mov esi, dword [ebx]
add esp, 0xc
test edi, edi
mov dword [ebp - 0x54], 0x3c
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, ebx
mov dword [ebp - 0x50], eax
call fcn.00470b30
test al, al
je 0x4856b3
add esi, 8
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x44], esi
sete al
mov dword [ebp - 0x48], str.open
mov ecx, dword [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x4856f5
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 0x18]
xor ebx, ebx
inc ebx
call fcn.0046f880
jmp 0x485701
push 2
pop ebx
push ecx
lea ecx, [ebp + 0x10]
call fcn.004073cf
push eax
lea ecx, [ebp + 0xc]
call fcn.004073cf
test bl, 2
je 0x485721
and ebx, 0xfffffffd
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
test bl, 1
je 0x485735
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00470b30
test al, al
je 0x485747
add esi, 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x48575c
xor ebx, ebx
jmp 0x48578c
test edi, edi
je 0x48577b
cmp dword [ebp - 0x1c], 0
je 0x48578a
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], 0
je 0x48578a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00406df6
mov al, bl
call fcn.004d2be2
ret
Function at 0x4859f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x485a2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x485ad0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x18]
mov esi, ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x485a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x485ac3
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0044ea25
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x485ac3
cmp dword [ebp - 0x10], ebx
je 0x485ac3
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x485ac9
push dword [ebp - 0x20]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x20]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x485ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.004d26a2
pop ecx
cmp dword [ebp - 0x18], 0
je 0x485adf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004d207d
mov esp, ebp
pop ebp
ret

Function at 0x485af1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x485b57
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x485b4b
cmp dword [ebp - 0x218], ebx
je 0x485b51
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x485b35
jmp 0x485b57
mov esi, dword [ebp - 0x228]
test edi, edi
je 0x485b62
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d207d
mov esp, ebp
pop ebp
ret
Function at 0x485e3d
Capabilities:
Read file on windows

Disassembly:
push 0x40c
mov eax, 0x508c72
call fcn.004d2c4d
mov edi, edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], ebx
mov esi, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x485e98
cmp eax, 0x400
jae 0x485eff
mov byte [ebp + eax - 0x410], 0
mov ecx, edi
lea eax, [ebp - 0x410]
push eax
call fcn.00471fc0
push 0
lea eax, [ebp - 0x414]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x485e79
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x485eee
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00444ed9
push eax
mov ecx, edi
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00406df6
test esi, esi
je 0x485ef9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004d2bf7
ret
call fcn.004d289c
int3

Function at 0x486b4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x486bb0
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00406a4a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.0041e683
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00406aa7
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret