joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412422
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
xor esi, esi
mov eax, str.SYSTEMCurrentControlSetControlStorageDevicePolicies
push edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], str.SYSTEMCurrentControlSetControlUsbFlags
mov dword [ebp - 0x40], str.SYSTEMCurrentControlSetControlUSB
mov dword [ebp - 0x3c], str.SYSTEMCurrentControlSetControlUSBAutomaticSurpriseRemoval
mov dword [ebp - 0x38], str.SYSTEMCurrentControlSetServicesUSB
mov dword [ebp - 0x34], str.SYSTEMCurrentControlSetServicesusbhubhubg
mov dword [ebp - 0x30], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices
mov dword [ebp - 0x2c], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x28], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56308_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x24], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56311_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x20], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDeviceseec5ad98_8080_425f_922a_dabf3de3f69a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412568
cmp dword [ebp - 4], esi
je 0x412568
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41255c
cmp dword [ebp - 8], esi
je 0x41255c
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x41255c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x412556
lea eax, [ebp - 0x250]
push eax
call fcn.0041239e
test eax, eax
jne 0x412556
cmp dword [ebp - 0x14], esi
je 0x412532
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040fd32
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x412547
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040fd85
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.004121cd
inc edi
cmp edi, dword [ebp - 8]
jb 0x4124eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x48]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x412494
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427bd7
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x50dcd0
push 0x40
mov esi, 0x5046e0
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x4598c8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x427c28
add eax, 4
cmp eax, 0x504720
jl 0x427bfb
xor eax, eax
cmp dword [eax*4 + 0x5046e0], 0
je 0x427c21
inc eax
cmp eax, 0x10
jl 0x427c0f
jmp 0x427c28
mov dword [eax*4 + 0x5046e0], ecx
mov eax, dword [esp + 0x10]
push 0x5046bc
mov dword [0x5046bc], 0x24
mov dword [0x5046c0], eax
mov dword [0x5046c8], ecx
mov dword [0x5046cc], esi
mov dword [0x5046d0], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x427c66
mov eax, dword [esp + 0x14]
jmp 0x427c7b
push 0x50dcd0
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x5046c8]
pop edi
pop esi
pop ebx
ret 8

Function at 0x42873b
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
and dword [esi], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
cmp eax, 0x200
jb 0x42876c
mov eax, dword [esp + 0x14]
mov dword [eax], 0x4551b0
jmp 0x4287fc
call edi
push eax
mov edi, 0x5047b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jbe 0x4287fc
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
mov dword [ebx + ecx*4], edi
inc dword [esi]
mov edi, dword [esi]
xor ecx, ecx
test eax, eax
jbe 0x4287ef
lea edx, [ecx*2 + 0x5047b8]
cmp word [edx], 0x22
jne 0x4287c3
movzx edx, word [ecx*2 + 0x5047ba]
inc ecx
test dx, dx
je 0x4287b6
cmp dx, 0x22
jne 0x4287a2
lea edx, [ecx*2 + 0x5047b8]
cmp word [edx], 0
je 0x4287fc
cmp word [edx], 0x20
jne 0x4287ea
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x5047b8], 0x20
je 0x4287ce
mov edi, dword [esi]
lea edx, [ecx*2 + 0x5047b8]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jb 0x428795
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x4287fc
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
pop esi
jne 0x428a94
cmp eax, 5
je 0x428a94
xor eax, eax
jmp 0x428a97
xor eax, eax
inc eax
ret 4

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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x428abc
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x428abe
xor eax, eax
ret 4
Function at 0x428ac1
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
mov edi, 0x40000000
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x428b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x428b5d
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x428b5d
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..tmp
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ebx
push 0x102
push 4
push ebx
push 7
push edi
lea eax, [ebp - 0x208]
push eax
call esi
cmp eax, 0xffffffff
je 0x428b5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x428b5f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428b4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x428d44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x13c
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00449c78
add esp, 0xc
mov edi, 0x505410
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x428e69
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x456f88
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428e69
cmp dword [ebp + 0xc], ebx
je 0x428e69
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [esi + 2], cx
mov cx, word [eax + 0xe]
mov word [esi + 4], cx
mov cx, word [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov word [esi + 6], cx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
movzx eax, cx
push eax
movzx eax, word [esi + 4]
push eax
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 0xc]
push str._u._u._u._u
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 8], 4
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428e64
cmp dword [ebp - 8], 4
jb 0x428e64
mov eax, dword [ebp - 0xc]
and dword [ebp + 8], 0
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x6c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call ebx
and dword [ebp + 0xc], 0
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428e64
cmp dword [ebp + 0xc], 0x80
jae 0x428e64
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x428e6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x428e72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push esi
push edi
add eax, eax
xor edi, edi
test byte [0x506414], 1
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], edi
jne 0x428eab
or dword [0x506414], 1
mov eax, dword [0x50e06c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x506410], eax
jmp 0x428eb0
mov eax, dword [0x506410]
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [esi], cx
lea ecx, [ebp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 5
jne 0x428eda
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x428f2c
cmp eax, edi
jne 0x428f24
cmp dword [ebp + 0x18], edi
je 0x428f24
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x428f24
cmp dword [ebp + 0x14], 4
jne 0x428f24
push dword [esi]
push 0x458144
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
cmp word [esi], di
setne al
pop edi
pop esi
leave
ret 0x14

Function at 0x429043
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x4290ac
cmp dword [ebp - 4], esi
je 0x4290ac
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x4290b3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4290b3
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret 0x10
Function at 0x4290c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
push 2
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call esi
mov edi, eax
cmp edi, 5
jne 0x42911e
mov ecx, dword [0x510c4c]
call fcn.0044973c
mov dword [ebp - 8], eax
test eax, eax
jne 0x42910e
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4291b7
lea eax, [ebp - 4]
push eax
push 2
push 0
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 3
je 0x429128
cmp edi, 2
jne 0x429163
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 5
jne 0x429163
cmp dword [ebp - 8], 0
jne 0x429157
mov ecx, dword [0x510c4c]
call fcn.0044973c
mov dword [ebp - 8], eax
test eax, eax
je 0x4290ff
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x429199
cmp dword [ebp - 4], esi
je 0x429199
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x4291a9
mov ecx, dword [0x510c4c]
call fcn.00449786
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4291f5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
mov edi, 0x20006
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 5
jne 0x429253
mov ecx, dword [0x510c4c]
call fcn.0044973c
mov dword [ebp - 8], eax
test eax, eax
jne 0x429242
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4292b2
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x429293
cmp dword [ebp - 4], ebx
je 0x429293
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x42928a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.RegDeleteValue__s___s___err_u
push 1
call fcn.0044fe2e
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4292a4
mov ecx, dword [0x510c4c]
call fcn.00449786
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4292b9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x429332
cmp dword [ebp + 0x10], 0
je 0x429304
cmp dword [0x51adac], 4
jl 0x42931f
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.0044fe2e
add esp, 0x10
jmp 0x42931f
cmp dword [0x51adac], 4
jl 0x42931f
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.0044fe2e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x429334
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x429339
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x4293a6
cmp dword [ebp + 0x10], 0
je 0x429384
cmp dword [0x51adac], 4
jl 0x42939f
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.0044fe2e
add esp, 0x10
jmp 0x42939f
cmp dword [0x51adac], 4
jl 0x42939f
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.0044fe2e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4295d2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push ebx
call esi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], 0
je 0x429631
test eax, eax
je 0x429631
cmp eax, dword [ebp + 8]
ja 0x429631
movzx ecx, word [edi]
movzx eax, word [ebx]
mov edx, ebx
mov esi, edi
cmp ax, cx
je 0x42961b
movzx ecx, cx
movzx eax, ax
xor ecx, eax
test ecx, 0xffffffdf
jne 0x429631
inc esi
inc esi
movzx ecx, word [esi]
xor eax, eax
cmp ax, cx
je 0x42963a
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x429606
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, ebx
jmp 0x429633

Function at 0x4299cd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x429a2c
cmp dword [ebp - 4], ebx
je 0x429a2c
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x429a32
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x429a8d
push eax
call fcn.0044b09e
push eax
lea eax, [ebp - 0x400]
push str.ShellExecute_failed:__S
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push dword [0x4a5ac8]
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.00450cc3
xor eax, eax
jmp 0x429a90
xor eax, eax
inc eax
leave
ret 8

Function at 0x429f69
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0045228a
test eax, eax
je 0x42a01f
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00449c78
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00449c78
mov eax, dword [0x50e67c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.Text_Files__.txt_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x4738d4
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x42a01c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42a01e
xor eax, eax
pop esi
leave
ret 8

Function at 0x42a023
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0045228a
test eax, eax
je 0x42a0d9
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00449c78
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00449c78
mov eax, dword [0x50e67c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.XML_Files__.xml_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x473940
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x42a0d6
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42a0d8
xor eax, eax
pop esi
leave
ret 8
Function at 0x42a0dd
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0045228a
test eax, eax
je 0x42a193
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00449c78
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x54
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00449c78
mov eax, dword [0x50e67c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x58]
inc esi
push eax
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], str.XML_Files__.xml_
mov dword [ebp - 0x24], 0x9080e
mov dword [ebp - 0x1c], 0x473940
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x42a190
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42a192
xor eax, eax
pop esi
leave
ret 8
Function at 0x42ca13
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
test byte [0x50be20], 1
jne 0x42ca3c
or dword [0x50be20], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x50be1c], eax
test byte [0x50be20], 2
jne 0x42ca62
or dword [0x50be20], 2
push str.GetModuleFileNameExW
push dword [0x50be1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50be18], eax
cmp dword [0x50be18], 0
jne 0x42ca72
xor eax, eax
jmp 0x42cbc0
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call edi
push 0
push 2
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x42ca99
xor eax, eax
jmp 0x42cbbf
push ebx
push esi
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42cba9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x42cb92
cmp dword [ebp + 0xc], 0xffffffff
je 0x42cb04
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42cb04
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x42cb92
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push eax
call fcn.00449c78
add esp, 0xc
push dword [ebp - 0x230]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
test eax, eax
je 0x42cb87
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push 0
push eax
call dword [0x50be18]
dec eax
cmp eax, 0x102
ja 0x42cb80
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x444]
push eax
je 0x42cb74
push dword [ebp + 8]
jmp 0x42cb7a
call edi
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x42cbad
push dword [ebp - 4]
call ebx
jmp 0x42cb92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42cbc4
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42cac6
xor esi, esi
jmp 0x42cbca
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0x230]
pop esi
pop ebx
pop edi
leave
ret 8
mov esi, dword [ebp - 0x230]
push dword [ebp - 8]
call ebx
mov eax, esi
jmp 0x42cbbd