joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411ad5
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.00448216
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 0x411c9d
cmp word [ebp - 0x118], bx
jne 0x411b4e
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.00448216
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x411c60
dec eax
je 0x411c4e
dec eax
je 0x411c31
dec eax
je 0x411bbe
sub eax, 7
jne 0x411c80
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 0x411c80
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 0x411c80
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x411c80
push dword [ebp - 0x18]
call fcn.00411a7f
mov edi, eax
cmp edi, ebx
je 0x411c80
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x453ea8
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x453ea4
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x411c80
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00428306
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x411c70
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x411c70
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 0x411c9d
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040f67f
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x411d2a
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 0x411e70
cmp dword [ebp - 4], esi
je 0x411e70
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 0x411e64
cmp dword [ebp - 8], esi
je 0x411e64
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x411e64
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 0x411e5e
lea eax, [ebp - 0x250]
push eax
call fcn.00411ca6
test eax, eax
jne 0x411e5e
cmp dword [ebp - 0x14], esi
je 0x411e3a
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040f62c
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x411e4f
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040f67f
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.00411ad5
inc edi
cmp edi, dword [ebp - 8]
jb 0x411df3
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 0x411d9c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426fac
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x50a880
push 0x40
mov esi, 0x5016a0
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x4575f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x426ffd
add eax, 4
cmp eax, 0x5016e0
jl 0x426fd0
xor eax, eax
cmp dword [eax*4 + 0x5016a0], 0
je 0x426ff6
inc eax
cmp eax, 0x10
jl 0x426fe4
jmp 0x426ffd
mov dword [eax*4 + 0x5016a0], ecx
mov eax, dword [esp + 0x10]
push 0x50167c
mov dword [0x50167c], 0x24
mov dword [0x501680], eax
mov dword [0x501688], ecx
mov dword [0x50168c], esi
mov dword [0x501690], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x42703b
mov eax, dword [esp + 0x14]
jmp 0x427050
push 0x50a880
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x501688]
pop edi
pop esi
pop ebx
ret 8

Function at 0x427b0e
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 0x427b3f
mov eax, dword [esp + 0x14]
mov dword [eax], 0x453148
jmp 0x427bcf
call edi
push eax
mov edi, 0x501778
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jbe 0x427bcf
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 0x427bc2
lea edx, [ecx*2 + 0x501778]
cmp word [edx], 0x22
jne 0x427b96
movzx edx, word [ecx*2 + 0x50177a]
inc ecx
test dx, dx
je 0x427b89
cmp dx, 0x22
jne 0x427b75
lea edx, [ecx*2 + 0x501778]
cmp word [edx], 0
je 0x427bcf
cmp word [edx], 0x20
jne 0x427bbd
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x501778], 0x20
je 0x427ba1
mov edi, dword [esi]
lea edx, [ecx*2 + 0x501778]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jb 0x427b68
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x427bcf
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x427e3d
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 0x427e67
cmp eax, 5
je 0x427e67
xor eax, eax
jmp 0x427e6a
xor eax, eax
inc eax
ret 4

Function at 0x427e6d
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 0x427e8f
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x427e91
xor eax, eax
ret 4
Function at 0x427e94
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 0x427f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x427f30
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x427f30
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 0x427f30
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 0x427f32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427f22
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x428118
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.00448216
add esp, 0xc
mov edi, 0x5023d0
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42823d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x454f30
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42823d
cmp dword [ebp + 0xc], ebx
je 0x42823d
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 0x428238
cmp dword [ebp - 8], 4
jb 0x428238
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 0x428238
cmp dword [ebp + 0xc], 0x80
jae 0x428238
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x42823f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x428246
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 [0x5033d4], 1
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], edi
jne 0x42827f
or dword [0x5033d4], 1
mov eax, dword [0x50ac1c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x5033d0], eax
jmp 0x428284
mov eax, dword [0x5033d0]
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 0x4282ae
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x428300
cmp eax, edi
jne 0x4282f8
cmp dword [ebp + 0x18], edi
je 0x4282f8
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 0x4282f8
cmp dword [ebp + 0x14], 4
jne 0x4282f8
push dword [esi]
push 0x4560f8
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 0x428417
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 0x428480
cmp dword [ebp - 4], esi
je 0x428480
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 0x428487
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x428487
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 0x428494
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 0x4284f2
mov ecx, dword [0x50d7f4]
call fcn.00447cda
mov dword [ebp - 8], eax
test eax, eax
jne 0x4284e2
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42858b
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 0x4284fc
cmp edi, 2
jne 0x428537
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 0x428537
cmp dword [ebp - 8], 0
jne 0x42852b
mov ecx, dword [0x50d7f4]
call fcn.00447cda
mov dword [ebp - 8], eax
test eax, eax
je 0x4284d3
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x42856d
cmp dword [ebp - 4], esi
je 0x42856d
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 0x42857d
mov ecx, dword [0x50d7f4]
call fcn.00447d24
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 0x4285c9
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 0x428627
mov ecx, dword [0x50d7f4]
call fcn.00447cda
mov dword [ebp - 8], eax
test eax, eax
jne 0x428616
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x428686
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 0x428667
cmp dword [ebp - 4], ebx
je 0x428667
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x42865e
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.0044def7
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x428678
mov ecx, dword [0x50d7f4]
call fcn.00447d24
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 0x42868d
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 0x428706
cmp dword [ebp + 0x10], 0
je 0x4286d8
cmp dword [0x517934], 4
jl 0x4286f3
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.0044def7
add esp, 0x10
jmp 0x4286f3
cmp dword [0x517934], 4
jl 0x4286f3
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.0044def7
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 0x428708
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x42870d
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 0x42877a
cmp dword [ebp + 0x10], 0
je 0x428758
cmp dword [0x517934], 4
jl 0x428773
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.Thread__S_created__id_u
push 4
call fcn.0044def7
add esp, 0x10
jmp 0x428773
cmp dword [0x517934], 4
jl 0x428773
push dword [ebp - 4]
push str.Thread_id_u_created
push 4
call fcn.0044def7
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4289a6
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 0x428a05
test eax, eax
je 0x428a05
cmp eax, dword [ebp + 8]
ja 0x428a05
movzx ecx, word [edi]
movzx eax, word [ebx]
mov edx, ebx
mov esi, edi
cmp ax, cx
je 0x4289ef
movzx ecx, cx
movzx eax, ax
xor ecx, eax
test ecx, 0xffffffdf
jne 0x428a05
inc esi
inc esi
movzx ecx, word [esi]
xor eax, eax
cmp ax, cx
je 0x428a0e
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x4289da
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, ebx
jmp 0x428a07

Function at 0x428dc5
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 0x428e24
cmp dword [ebp - 4], ebx
je 0x428e24
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 0x428e2a
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 0x428e85
push eax
call fcn.004495cc
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 [0x4a2ab0]
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.0044ed70
xor eax, eax
jmp 0x428e88
xor eax, eax
inc eax
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.00450338
test eax, eax
je 0x429417
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00448216
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.00448216
mov eax, dword [0x50b228]
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], 0x47111c
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x429414
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x429416
xor eax, eax
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.00450338
test eax, eax
je 0x4294d1
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00448216
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.00448216
mov eax, dword [0x50b228]
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], 0x471188
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4294ce
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x4294d0
xor eax, eax
pop esi
leave
ret 8
Function at 0x4294d5
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
call fcn.00450338
test eax, eax
je 0x42958b
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.00448216
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.00448216
mov eax, dword [0x50b228]
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], 0x471188
mov dword [ebp - 0x40], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x429588
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
jmp 0x42958a
xor eax, eax
pop esi
leave
ret 8