joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427969
Capabilities:
Compare security identifiers

Disassembly:
push pe_nt_image_headers32
mov eax, 0x4697ee
call fcn.0046791c
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf4], 0x401648
xor bl, bl
call fcn.004233d4
xor eax, eax
mov dword [ebp - 0xf4], 0x401620
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
push eax
push 0x2001f
push 0x406968
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], eax
call fcn.00440148
test eax, eax
js 0x427adb
lea eax, [ebp - 0xf8]
xor edi, edi
push eax
push edi
push ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf8], edi
call fcn.00427af4
cmp eax, 0x7a
jne 0x427adb
push 0x407ffc
push dword [ebp - 0xf8]
call fcn.0042c568
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x427adb
lea eax, [ebp - 0xf8]
push eax
push esi
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00427af4
test eax, eax
jle 0x427a2a
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x427ad5
lea eax, [ebp - 0x104]
mov dword [ebp - 0xfc], edi
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x427acf
cmp dword [ebp - 0x108], edi
je 0x427ad5
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push 0x1a
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0x427acf
xor edi, edi
lea eax, [ebp - 0x100]
xor bl, bl
push eax
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
je 0x427ad5
mov eax, dword [ebp - 0x100]
add eax, 8
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
je 0x427ac8
mov eax, dword [ebp - 0x100]
mov ecx, 0xf003f
mov eax, dword [eax + 4]
and eax, ecx
cmp eax, ecx
je 0x427acb
inc edi
jmp 0x427a82
mov bl, 1
jmp 0x427ad5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push esi
call fcn.00432a48
lea ecx, [ebp - 0xf4]
call fcn.004233f9
mov al, bl
call fcn.004678b9
ret
Function at 0x428edc
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov ebx, edx
push eax
push 0x88
xor edi, edi
mov dword [ebp - 0xc], ebx
push ecx
mov dword [ebp - 8], edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x428f61
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 6
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x429018
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x428f67
push ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
lea esi, [eax + 0xc]
add esi, dword [ebp - 0x10]
mov eax, esi
mov dword [ebp - 0x10], esi
call fcn.00467bd0
mov ebx, esp
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push 6
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x428f7c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x42901d
movzx eax, ax
or eax, 0x80070000
jmp 0x42901d
cmp dword [ebx], edi
je 0x429018
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov ecx, dword [ebx]
movzx eax, ax
add eax, 8
mov dword [ebp - 0xc], edi
add word [ecx + 2], ax
lea eax, [ebp - 0x14]
push eax
push edi
jmp 0x428fc2
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x42901f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
inc eax
push ecx
mov dword [ebp - 0xc], eax
push eax
push dword [ebx]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
jne 0x428fa4
push esi
push 0x10000000
push 2
push dword [ebx]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x429001
push dword [ebx]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidAcl]
mov eax, dword [ebx]
movzx eax, word [eax + 2]
push eax
push ebx
push 6
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
test eax, eax
jne 0x42901f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x42901f
movzx edi, di
or edi, 0x80070000
jmp 0x42901f
mov eax, 0x80004005
mov edi, eax
lea ecx, [ebp - 8]
call fcn.0041c7e7
mov eax, edi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bef0
leave
ret
Function at 0x42c290
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x42c2cd
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x42c2c6
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x42c2d2
add edx, 0x28
cmp edx, esi
jne 0x42c2b7
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42c2cf

Function at 0x42cba2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x42cbe1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42cbe1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42cbe1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42cbe1
cmp dword [ecx + 0x74], 0xe
jbe 0x42cbe1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42f341
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, 0x104
push ecx
mov edx, edi
mov dword [ebx], esi
lea ecx, [ebp - 0x210]
mov dword [ebx + 4], esi
call fcn.0042f10c
push 0x405b9c
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0042f0c9
lea eax, [ebp - 0x210]
push eax
push esi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x42f3c4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x42f400
mov ecx, dword [ebp + 4]
lea edx, [edi - 0x3b]
push 0x405b38
call fcn.004743e0
mov esi, eax
jmp 0x42f400
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov ecx, eax
call fcn.0042b003
mov edi, eax
test edi, edi
jns 0x42f3f4
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push edi
push 0x405b38
call fcn.0047442c
mov esi, edi
jmp 0x42f400
mov eax, dword [ebp - 0x214]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ebp - 0x218]
call fcn.0042ab09
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret 8
Function at 0x42fb83
Capabilities:
Get disk information via ioctl

Disassembly:
push 0x54
mov eax, 0x46a4ed
call fcn.0046791c
mov dword [ebp - 0x5c], edx
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
call fcn.00431338
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.00420e14
mov edi, eax
test edi, edi
js 0x42fd3e
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
call fcn.0041ca08
test eax, eax
js 0x42fd34
or dword [ebp - 0x40], 0xffffffff
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.DEVOBJ.dll_DevObjCreateDeviceInfoList]
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00420e14
mov esi, dword [ebp - 0x40]
mov edi, eax
test edi, edi
js 0x42fd2b
push ebx
push ebx
push 0x12
push ebx
push 0x405494
push esi
call dword [sym.imp.DEVOBJ.dll_DevObjGetClassDevs]
mov ecx, eax
call fcn.0041cc93
mov edi, eax
jmp 0x42fd1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push ebx
push 0x405494
push 0
push esi
call dword [sym.imp.DEVOBJ.dll_DevObjEnumDeviceInterfaces]
mov ecx, eax
call fcn.0041cc93
mov edi, eax
cmp edi, 0x80070103
je 0x42fd29
test edi, edi
js 0x42fd1b
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
mov edx, esi
push eax
lea ecx, [ebp - 0x38]
call fcn.0041cafc
mov edi, eax
test edi, edi
js 0x42fd0f
xor ecx, ecx
mov dword [ebp - 0x44], ecx
push ecx
push ecx
push 3
push ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
push 1
add eax, 4
push ecx
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.00420e14
mov edi, eax
test edi, edi
js 0x42fd07
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor ecx, ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
push 0x2d1080
push dword [ebp - 0x44]
call dword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
mov ecx, eax
call fcn.0041cc93
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x50], ecx
test edi, edi
js 0x42fd07
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x58]
lea ebx, [eax + 8]
cmp ecx, dword [eax]
jae 0x42fd01
mov ecx, dword [ebx]
cmp ecx, dword [ebp - 0x18]
jne 0x42fcf3
mov ecx, dword [ebp - 0x5c]
push esi
call fcn.00430d9d
mov edi, eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
add ebx, 0x18
inc ecx
mov dword [ebp - 0x50], ecx
test edi, edi
jns 0x42fcda
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
call fcn.004215d8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041cd83
inc ebx
mov dword [ebp - 0x54], ebx
test edi, edi
jns 0x42fc16
jmp 0x42fd2b
xor edi, edi
push esi
call dword [sym.imp.DEVOBJ.dll_DevObjDestroyDeviceInfoList]
jmp 0x42fd36
mov edi, ebx
lea ecx, [ebp - 0x3c]
call fcn.0041cd99
lea ecx, [ebp - 0x4c]
call fcn.004215d8
mov eax, edi
call fcn.004678b9
ret
Function at 0x430c9a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40c278]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov ax, word [0x40c27c]
lea ecx, [ebp - 0x10]
xor edi, edi
mov word [ebp - 8], ax
mov ax, word [ebp + 8]
push dword [esi + 4]
mov word [ebp - 0xc], ax
mov eax, dword [esi]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push ecx
push dword [eax]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x430d7f
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push 4
push edi
push 0x405e4c
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [esi + 8]
mov ecx, 0x404fa0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x430d43
test dx, dx
je 0x430d3f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x430d43
add eax, 4
add ecx, 4
test dx, dx
jne 0x430d1d
mov eax, edi
jmp 0x430d48
sbb eax, eax
or eax, 1
test eax, eax
je 0x430d7f
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x430d56
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push 0x405e60
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea ecx, [ebp - 0x10]
call fcn.0041fe22
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042bef0
leave
ret 4

Function at 0x4311bb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0x407ffc
push 0x208
mov dword [ebp - 8], edi
and dword [ebx], 0
call fcn.0042c568
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x104
push esi
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
mov ecx, eax
call fcn.0041cc93
mov edi, eax
push 2
pop edx
cmp edi, 0x800700ea
jne 0x431254
mov eax, dword [ebp - 4]
xor ecx, ecx
mul edx
push 0x407ffc
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c568
push 2
push esi
mov edi, eax
call fcn.0042c527
add esp, 0x10
mov esi, edi
test edi, edi
jne 0x43123a
mov edi, 0x8007000e
jmp 0x43125e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
mov ecx, eax
call fcn.0041cc93
mov edi, eax
test edi, edi
js 0x43125e
mov eax, esi
xor esi, esi
mov dword [ebx], eax
push 2
push esi
call fcn.0042c527
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431bf7
Capabilities:
Set registry value

Disassembly:
push 0x234
mov eax, 0x46a7b0
call fcn.0046791c
mov dword [ebp - 0x22c], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
push ecx
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
mov esi, 0x405e78
mov dword [ebp - 4], ebx
push esi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], ebx
call fcn.00441375
test al, al
je 0x431c44
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x431d9e
cmp byte [ebp + 0xc], bl
je 0x431d61
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x431d56
push 4
pop esi
push esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 3
push eax
push esi
push ebx
push 0x405e4c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [ebp - 0x22c]
mov ecx, 0x404fa0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x431d06
test dx, dx
je 0x431d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x431d06
add eax, esi
add ecx, esi
test dx, dx
jne 0x431ce2
mov eax, ebx
jmp 0x431d0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x431d56
mov ecx, dword [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x431d18
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x220]
push 1
push ebx
push 0x405e60
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea ecx, [ebp - 0x21c]
call fcn.0041fe22
jmp 0x431d9e
lea ecx, [ebp - 0x21c]
call fcn.0041fe22
lea eax, [ebp - 0x224]
mov ecx, edi
mov dword [ebp - 0x240], eax
lea edx, [ebp - 0x240]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x234], eax
call fcn.0042fb55
lea ecx, [ebp - 0x224]
call fcn.0041fe22
call fcn.004678b9
ret 8
Function at 0x4354f5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x21c
mov eax, 0x46afc3
call fcn.0046791c
xor ebx, ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], 4
cmp byte [0x4a1948], bl
jne 0x435644
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
push eax
mov esi, 0x406320
mov edx, edi
push esi
call fcn.00441375
test al, al
je 0x435549
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x43556c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x435635
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push 0x40639c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jle 0x4355a7
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x435635
cmp dword [ebp - 0x220], 1
jne 0x435629
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x4355c5
call fcn.00431e5d
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
push eax
mov esi, 0x404a78
mov edx, edi
push esi
call fcn.00441375
test al, al
je 0x4355ea
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x21c]
push eax
push 2
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x43560a
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x435629
push 4
lea eax, [ebp - 0x220]
push eax
push 4
push ebx
push 0x40639c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov byte [0x4a1948], 1
jmp 0x4356c5
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x435644
call fcn.00431e5d
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
push eax
mov esi, 0x404a78
mov edx, edi
push esi
call fcn.00441375
test al, al
je 0x435669
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x43568c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4356d1
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push 0x40639c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jle 0x4356c3
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4356d1
xor ebx, ebx
cmp dword [ebp - 0x220], 1
sete bl
lea ecx, [ebp - 0x21c]
call fcn.0041fe22
mov eax, ebx
call fcn.004678b9
ret
Function at 0x4356ea
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x46b003
call fcn.0046791c
mov ebx, edx
mov dword [ebp - 0x228], ecx
mov edi, dword [ebp + 8]
mov byte [edi], 0
call fcn.0042d39b
test al, al
jne 0x43571a
mov esi, 0x80004001
jmp 0x43586c
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 0x410cb0
call fcn.00431166
lea ecx, [ebp - 0x224]
test al, al
je 0x435779
call fcn.00431b77
or dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x224]
or dword [ebp - 0x21c], 0xffffffff
push eax
push 0xffffffffffffffff
push 0x4400
push 0x4054c4
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov esi, eax
xor al, al
jmp 0x4357a9
call fcn.00431b77
or dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x224]
or dword [ebp - 0x21c], 0xffffffff
push eax
push 0xffffffffffffffff
push 0x4400
push 0x4054d4
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov esi, eax
mov al, 1
mov byte [edi], al
mov edi, 0x104
test esi, esi
js 0x4357f8
push dword [ebp - 0x224]
mov edx, edi
lea ecx, [ebp - 0x218]
call fcn.0042f10c
mov esi, eax
test esi, esi
js 0x4357f8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
test eax, eax
jne 0x435861
mov esi, 0x8007000e
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push eax
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004358fc
push dword [ebx + 8]
lea ecx, [ebp - 0x22c]
push dword [ebx + 4]
push 0x7de
call fcn.0043598b
lea ecx, [ebp - 0x22c]
mov dword [ebx + 0xc], eax
call fcn.0042b397
lea ecx, [ebp - 0x224]
call fcn.00431b77
mov eax, esi
call fcn.004678b9
ret 4
Function at 0x4359d7
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b093
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x3c], edx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov edi, 0x40000000
mov dword [ebp - 4], ebx
push edi
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x435a4a
mov ecx, dword [ebp + 4]
push 0x4063d8
push 0x2f
pop edx
call fcn.004743e0
mov esi, eax
jmp 0x435b32
push 0x4a
push 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 2
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
cmp esi, 0xc00004ae
je 0x435b30
or esi, 0x10000000
jge 0x435a90
mov ecx, dword [ebp + 4]
push esi
push 0x4063d8
push 0x44
pop edx
call fcn.0047442c
jmp 0x435b32
mov byte [ebp - 0x30], bl
lea edx, [ebp - 0x3c]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00432e20
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004332fa
lea ecx, [ebp - 0x2c]
call fcn.0042f512
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x435af0
mov ecx, dword [ebp + 4]
push 0x4063d8
push 0x4b
pop edx
call fcn.004743e0
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0041c7e7
lea ecx, [ebp - 0x2c]
call fcn.0042b8df
jmp 0x435b32
push 0x4a
push 4
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
or esi, 0x10000000
jge 0x435b20
mov ecx, dword [ebp + 4]
push esi
push 0x4063d8
push 0x54
pop edx
call fcn.0047442c
jmp 0x435ade
lea ecx, [ebp - 0x30]
call fcn.0041c7e7
lea ecx, [ebp - 0x2c]
call fcn.0042b8df
mov esi, ebx
lea ecx, [ebp - 0x34]
call fcn.0041c7e7
mov eax, esi
jmp 0x435b5a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bef0
leave
ret
Function at 0x439f6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x46b728
call fcn.00467994
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x439fce
call fcn.00478a37
mov esi, eax
jmp 0x43a0a7
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x439fed
call fcn.00478a37
jmp 0x43a09e
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x439fe3
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x43a020
mov esi, 0x8007000e
jmp 0x43a0a7
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00438c1e
jmp 0x43a046
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x43a05d
mov esi, 0x8007000e
jmp 0x43a0a0
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x439fe3
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00439e1e
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea ecx, [ebp - 0x418]
call fcn.0043807b
lea ecx, [ebp - 0x428]
call fcn.00479822
mov eax, esi
call fcn.004678ce
ret 0x10