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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x388
push ebx
push esi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x17]
push ebx
push eax
mov byte [ebp - 0x18], bl
call fcn.00444396
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0x7c]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp + 0x68], 0x80
mov dword [ebp + 0x6c], ebx
call esi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x6c]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410f69
cmp word [ebp - 0x118], bx
jne 0x410e1a
push str._default_
lea eax, [ebp - 0x118]
push eax
call esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x318], ax
lea eax, [ebp - 0x316]
push ebx
push eax
call fcn.00444396
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x410f2c
dec eax
je 0x410f1a
dec eax
je 0x410efd
dec eax
je 0x410e8a
sub eax, 7
jne 0x410f4c
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_QWORD__08I64x___I64u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x410f4c
push dword [ebp - 0x18]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_DWORD__08x___u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x18], ebx
je 0x410f4c
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x410f4c
push dword [ebp - 0x18]
call fcn.00410d4b
mov edi, eax
cmp edi, ebx
je 0x410f4c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44fda8
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x44fda4
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x410f4c
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00427126
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x410f3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x410f3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_SZ___s_
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop edi
cmp word [ebp - 0x318], bx
je 0x410f69
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040e980
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x410ff6
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 0x41113c
cmp dword [ebp - 4], esi
je 0x41113c
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 0x411130
cmp dword [ebp - 8], esi
je 0x411130
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x411130
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 0x41112a
lea eax, [ebp - 0x250]
push eax
call fcn.00410f72
test eax, eax
jne 0x41112a
cmp dword [ebp - 0x14], esi
je 0x411106
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040e92d
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x41111b
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040e980
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.00410da1
inc edi
cmp edi, dword [ebp - 8]
jb 0x4110bf
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 0x411068
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425ee5
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x505358
push 0x40
mov esi, 0x4fc630
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x453138
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x425f36
add eax, 4
cmp eax, 0x4fc670
jl 0x425f09
xor eax, eax
cmp dword [eax*4 + 0x4fc630], 0
je 0x425f2f
inc eax
cmp eax, 0x10
jl 0x425f1d
jmp 0x425f36
mov dword [eax*4 + 0x4fc630], ecx
mov eax, dword [esp + 0x10]
push 0x4fc60c
mov dword [0x4fc60c], 0x24
mov dword [0x4fc610], eax
mov dword [0x4fc618], ecx
mov dword [0x4fc61c], esi
mov dword [0x4fc620], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x425f74
mov eax, dword [esp + 0x14]
jmp 0x425f89
push 0x505358
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x4fc618]
pop edi
pop esi
pop ebx
ret 8

Function at 0x426c66
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 0x426c90
cmp eax, 5
je 0x426c90
xor eax, eax
jmp 0x426c93
xor eax, eax
inc eax
ret 4

Function at 0x426c96
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 0x426cb8
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x426cba
xor eax, eax
ret 4

Function at 0x426cbd
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 0x426d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x426d59
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x426d59
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 0x426d59
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 0x426d5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426d4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x426f40
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.00444396
add esp, 0xc
mov edi, 0x4fcf48
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427065
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x450ce4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427065
cmp dword [ebp + 0xc], ebx
je 0x427065
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 0x427060
cmp dword [ebp - 8], 4
jb 0x427060
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 0x427060
cmp dword [ebp + 0xc], 0x80
jae 0x427060
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x427067
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42706e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
test byte [0x4fdf4c], 1
mov dword [ebp - 4], edi
jne 0x42709f
or dword [0x4fdf4c], 1
mov eax, dword [0x505634]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x4fdf48], eax
jmp 0x4270a4
mov eax, dword [0x4fdf48]
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [esi], cx
lea ecx, [ebp - 4]
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 0x4270ce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x427120
cmp eax, edi
jne 0x427118
cmp dword [ebp - 4], edi
je 0x427118
push ebx
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x427118
cmp dword [ebp + 0x14], 4
jne 0x427118
push dword [esi]
push 0x451c1c
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 0x427237
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 0x4272a0
cmp dword [ebp - 4], esi
je 0x4272a0
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 0x4272a7
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4272a7
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 0x4272b4
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 0x427312
mov ecx, dword [0x508070]
call fcn.00443d69
mov dword [ebp - 8], eax
test eax, eax
jne 0x427302
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4273ab
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 0x42731c
cmp edi, 2
jne 0x427357
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 0x427357
cmp dword [ebp - 8], 0
jne 0x42734b
mov ecx, dword [0x508070]
call fcn.00443d69
mov dword [ebp - 8], eax
test eax, eax
je 0x4272f3
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x42738d
cmp dword [ebp - 4], esi
je 0x42738d
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 0x42739d
mov ecx, dword [0x508070]
call fcn.00443db3
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 0x4273e9
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 0x427447
mov ecx, dword [0x508070]
call fcn.00443d69
mov dword [ebp - 8], eax
test eax, eax
jne 0x427436
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4274a6
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 0x427487
cmp dword [ebp - 4], ebx
je 0x427487
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x42747e
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.00449e4d
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x427498
mov ecx, dword [0x508070]
call fcn.00443db3
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 0x4274ad
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 0x427526
cmp dword [ebp + 0x10], 0
je 0x4274f8
cmp dword [0x512584], 4
jl 0x427513
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.00449e4d
add esp, 0x10
jmp 0x427513
cmp dword [0x512584], 4
jl 0x427513
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.00449e4d
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 0x427528
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x42752d
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 0x42759a
cmp dword [ebp + 0x10], 0
je 0x427578
cmp dword [0x512584], 4
jl 0x427593
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.00449e4d
add esp, 0x10
jmp 0x427593
cmp dword [0x512584], 4
jl 0x427593
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.00449e4d
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x4277c6
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 0x427825
test eax, eax
je 0x427825
cmp eax, dword [ebp + 8]
ja 0x427825
movzx ecx, word [edi]
movzx eax, word [ebx]
mov edx, ebx
mov esi, edi
cmp ax, cx
je 0x42780f
movzx ecx, cx
movzx eax, ax
xor ecx, eax
test ecx, 0xffffffdf
jne 0x427825
inc esi
inc esi
movzx ecx, word [esi]
xor eax, eax
cmp ax, cx
je 0x42782e
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x4277fa
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, ebx
jmp 0x427827

Function at 0x427b70
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 0x427bcf
cmp dword [ebp - 4], ebx
je 0x427bcf
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 0x427bd5
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 0x427c30
push eax
call fcn.004455fb
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 [0x49daa0]
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.0044acc6
xor eax, eax
jmp 0x427c33
xor eax, eax
inc eax
leave
ret 8
Function at 0x428110
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044c28d
test eax, eax
je 0x4281c6
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00444396
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.00444396
mov eax, dword [0x505c28]
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], 0x46ca34
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4281c3
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x4281c5
xor eax, eax
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044c28d
test eax, eax
je 0x428280
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00444396
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.00444396
mov eax, dword [0x505c28]
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], 0x46caa0
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x42827d
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42827f
xor eax, eax
pop esi
leave
ret 8
Function at 0x428284
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.0044c28d
test eax, eax
je 0x42833a
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00444396
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.00444396
mov eax, dword [0x505c28]
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], 0x46caa0
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x428337
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x428339
xor eax, eax
pop esi
leave
ret 8