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

Disassembly:
push 0x3c
mov eax, 0x4e9b73
call fcn.0044b05e
lea ecx, [ebp - 0x30]
call fcn.00426fa0
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004029a2
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
mov eax, ebx
call fcn.004183b9
test al, al
jne 0x405ca3
cmp dword [ebx + 0x14], 8
jb 0x405c6d
mov ecx, dword [ebx]
jmp 0x405c6f
mov ecx, ebx
call fcn.00418411
test al, al
jne 0x405c8d
push str.Failed_to_create_the_working_folder.
xor ecx, ecx
inc ecx
call fcn.00417f5f
pop ecx
xor al, al
jmp 0x405dbc
push ebx
call fcn.004188a7
pop ecx
test al, al
jne 0x405dab
push str.Failed_to_set_ownership_of_the_working_folder.
jmp 0x405c7d
push ebx
call fcn.00418cdf
pop ecx
test al, al
jne 0x405cb5
inc al
jmp 0x405dbc
call fcn.00418705
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, esi
jne 0x405cca
push str.GetLauncherToken___failed.
jmp 0x405c7d
cmp dword [ebx + 0x14], 8
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], esi
jb 0x405cdc
mov eax, dword [ebx]
jmp 0x405cde
mov eax, ebx
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405d8f
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x31]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
push eax
lea esi, [ebp - 0x24]
mov byte [ebp - 0x31], 0
call fcn.00419134
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 8
jb 0x405d28
mov eax, dword [ebx]
jmp 0x405d2a
mov eax, ebx
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x38]
push dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x405d4e
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x24]
call fcn.0041d4a8
jmp 0x405d8f
and dword [ebp - 0x40], 0
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x405d40
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [ebp - 0x31]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x24]
call fcn.0041d4a8
cmp byte [ebp - 0x31], 0
jne 0x405da2
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Wrong_owner_of_the_working_folder.
jmp 0x405c7d
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push ebx
call fcn.00405a6c
push ebx
call fcn.00405819
add esp, 0xc
call fcn.0044b0e1
ret
Function at 0x405dc2
Capabilities:
Delete file

Disassembly:
push 0x48
mov eax, 0x4e4feb
call fcn.0044b094
mov ebx, ecx
cmp dword [ebx + 0x10], 0
je 0x405e86
push ebx
lea esi, [ebp - 0x4c]
call fcn.0040529d
and dword [ebp - 4], 0
push ebx
lea esi, [ebp - 0x30]
call fcn.0040529d
mov esi, str..bak
push esi
mov byte [ebp - 4], 1
call fcn.00445853
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x30]
call fcn.00406556
mov eax, dword [ebp - 0x30]
push 8
pop esi
cmp dword [ebp - 0x1c], esi
jae 0x405e19
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x405e2b
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x405e36
lea eax, [ebp - 0x4c]
push ecx
push eax
call fcn.00448819
pop ecx
pop ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405e70
push str.WerRegisterFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405e70
cmp dword [ebx + 0x14], esi
jb 0x405e67
mov ecx, dword [ebx]
jmp 0x405e69
mov ecx, ebx
push 2
push 1
push ecx
call eax
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
push 1
lea esi, [ebp - 0x4c]
call fcn.00402a3c
mov esi, dword [0x5154cc]
push dword [esi]
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5154c0]
mov edx, dword [0x5154bc]
cmp edx, eax
je 0x405ec8
mov esi, eax
sub esi, eax
sar esi, 2
shl esi, 2
push esi
push eax
push edx
mov edi, edx
call fcn.004451a0
add esp, 0xc
add esi, edi
mov dword [0x5154c0], esi
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
push dword [esi]
mov dword [0x5154a0], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
mov dword [ebp - 4], 2
call fcn.00445be7
mov edi, eax
pop ecx
mov dword [ebp - 0x50], edi
test edi, edi
je 0x405f13
mov byte [ebp - 4], 4
and dword [edi + 4], 0
mov dword [edi], vtable.GFE::FileTraceHandler.0
cmp dword [ebx + 0x14], 8
jb 0x405f08
mov esi, dword [ebx]
jmp 0x405f0a
mov esi, ebx
mov ecx, edi
call fcn.0041813c
jmp 0x405f15
xor edi, edi
push edi
mov byte [ebp - 4], 2
call fcn.00417efa
or dword [ebp - 4], 0xffffffff
pop ecx
push str.START_UPDT
xor ecx, ecx
call fcn.00417f5f
pop ecx
call fcn.0044b0f0
ret

Function at 0x407a0a
Capabilities:
Initialize winsock library

Disassembly:
push 0
mov eax, 0x4ea740
call fcn.0044aff5
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.updtDaemonManager.0
call fcn.00427320
xor ebx, ebx
push 0x190
lea edi, [esi + 0xc]
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.004459b0
add esp, 0xc
push edi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb al, al
inc al
mov byte [edi + 0x190], al
lea eax, [esi + 0x1a4]
mov byte [ebp - 4], 1
push eax
mov dword [esi + 0x1a0], ebx
call fcn.004069b0
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2d0], ebx
mov eax, esi
call fcn.0044b0cd
ret 4
Function at 0x4183b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4183c1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x418411
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4944
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.0045eae0
mov eax, dword [0x50f634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x4fac48
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x2000
lea eax, [ebp - 0x2018]
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x2038], 0x5c
movsw word es:[edi], word [esi]
call fcn.004459b0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
lea eax, [ebp - 0x2018]
push 0x1000
push eax
call fcn.004485c0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.0044884c
add esp, 0x18
mov esi, eax
push 0x4f8ac0
lea eax, [ebp - 0x2034]
push eax
call fcn.0040525a
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
jmp 0x418564
push esi
call fcn.00445853
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x2034]
call fcn.00406556
cmp dword [ebp - 0x2024], 0
jbe 0x418534
lea eax, [ebp - 0x2034]
call fcn.004183b9
test al, al
mov eax, dword [ebp - 0x2034]
je 0x418518
cmp dword [ebp - 0x2020], 8
jae 0x4184ff
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418512
shr eax, 4
and al, bl
jmp 0x418514
xor al, al
test al, al
jmp 0x418532
cmp dword [ebp - 0x2020], 8
jae 0x418527
lea eax, [ebp - 0x2034]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41857e
lea eax, [ebp - 0x2038]
push eax
call fcn.00445853
pop ecx
lea ecx, [ebp - 0x2038]
mov edi, eax
push ecx
lea eax, [ebp - 0x2034]
call fcn.00406556
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0044884c
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x4184bd
push ebx
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00402a3c
mov al, bl
jmp 0x41858e
push ebx
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00402a3c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444c31
leave
ret
Function at 0x418cdf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f634]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x418cfd
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x418d5c
mov ecx, dword [0x4faecc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4faed0]
push pe_nt_image_headers32
mov dword [ebp - 8], ecx
add eax, 0x41
lea ecx, [ebp - 0x20c]
push ecx
mov word [ebp - 0xc], ax
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
push eax
push eax
push eax
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x418d5c
test byte [ebp - 0x210], 8
je 0x418d5c
mov al, 1
jmp 0x418d5e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444c31
leave
ret
Function at 0x41a411
Capabilities:
Create thread

Disassembly:
push 0xcc
mov eax, 0x4e5f60
call fcn.0044b05e
mov ebx, 0x511f68
push ebx
push 0x11c
call fcn.00446002
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x41a449
push 0x54485245
mov esi, eax
call fcn.00419c6e
mov dword [ebp - 0x30], eax
jmp 0x41a44c
mov dword [ebp - 0x30], edi
mov esi, dword [ebp - 0x30]
cmp esi, edi
jne 0x41a468
xor ecx, ecx
push str.Allocate_memory_for_CreateThread_failed_
inc ecx
call fcn.00417f5f
pop ecx
xor eax, eax
jmp 0x41a57e
push ebx
push 8
call fcn.00446002
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jne 0x41a48d
xor ecx, ecx
push str.Failed_to_allocate_memory_in_CreateThread
inc ecx
call fcn.00417f5f
pop ecx
call fcn.0041a584
jmp 0x41a461
mov eax, dword [ebp + 0xc]
push 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
pop esi
push esi
mov dword [ebx], eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004459b0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push 0x41a3f3
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebp - 0x40], esi
call fcn.00448d35
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov dword [ecx + 8], eax
cmp eax, edi
jne 0x41a576
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xd8]
push str.::CreateThread_failed__err_
push eax
mov dword [ebp - 4], edi
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xd8]
call fcn.00402860
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41a527
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00402a3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00402251
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.004441d6
mov esi, dword [ebp - 0x30]
pop ecx
call fcn.0041a584
push ebx
call fcn.00445b41
jmp 0x41a460
mov eax, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov eax, ecx
call fcn.0044b0e1
ret
Function at 0x41a5eb
Capabilities:
Check mutex on windows

Disassembly:
push 0xd0
mov eax, 0x4e7b48
call fcn.0044b05e
mov eax, dword [ebp + 8]
push 0x511f68
push 0x11c
mov ebx, ecx
mov dword [ebp - 0x44], eax
call fcn.00446002
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x41a62c
push 0x4d555458
mov esi, eax
call fcn.00419c6e
mov esi, eax
mov dword [ebp - 0x34], esi
jmp 0x41a631
mov dword [ebp - 0x34], edi
mov esi, edi
cmp esi, edi
jne 0x41a64a
xor ecx, ecx
push str.Allocate_memory_for_CreateMutex_failed_
inc ecx
call fcn.00417f5f
pop ecx
xor eax, eax
jmp 0x41a76c
mov edx, ebx
mov ecx, esi
call fcn.00419c92
test al, al
jne 0x41a65e
call fcn.0041a584
jmp 0x41a643
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
cmp ebx, edi
je 0x41a67a
lea eax, [ebp - 0x40]
push eax
call fcn.00419d8d
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x41a745
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xdc]
push eax
call fcn.004021e7
lea eax, [ebp - 0xdc]
push str.CreateMutex_failed__err_
push eax
mov byte [ebp - 4], 1
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xdc]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xdc]
call fcn.00402860
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41a6ea
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.00402251
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.004441d6
mov esi, dword [ebp - 0x34]
pop ecx
call fcn.0041a584
cmp dword [ebp - 0x3c], edi
je 0x41a643
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41a643
mov ebx, dword [ebp - 0x44]
cmp ebx, edi
je 0x41a75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov byte [ebx], al
cmp dword [ebp - 0x3c], edi
je 0x41a76a
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.0044b0e1
ret
Function at 0x41a772
Capabilities:
Check mutex on windows

Disassembly:
push 0xbc
mov eax, 0x4e689c
call fcn.0044b05e
push 0x511f68
push 0x11c
call fcn.00446002
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x41a7ae
push 0x434f4e44
call fcn.00419c6e
mov ebx, eax
jmp 0x41a7b0
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
jne 0x41a7cd
xor ecx, ecx
push str.Allocate_memory_for_CreateConditionVar_failed_
inc ecx
call fcn.00417f5f
pop ecx
xor eax, eax
jmp 0x41a943
push edi
push 0x7fffffff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [ebx + 8], eax
cmp eax, edi
jne 0x41a893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xc8]
push str.CreateConditionVar_failed__err_
push eax
mov dword [ebp - 4], 2
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xc8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xc8]
call fcn.00402860
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41a83f
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402a3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402251
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x78], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.004441d6
pop ecx
mov esi, ebx
call fcn.0041a584
jmp 0x41a7c6
push edi
push edi
push edi
mov dword [ebx + 0x114], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x10c], eax
cmp eax, edi
jne 0x41a941
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xc8]
push str.CreateMutex_failed_in_CreateConditionVar__err_
push eax
mov dword [ebp - 4], 7
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xc8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xc8]
call fcn.00402860
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41a909
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00402a3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402251
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x78], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
jmp 0x41a872
mov eax, ebx
call fcn.0044b0e1
ret
Function at 0x41b1f3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x4e57bf
call fcn.0044b094
mov edi, edx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], eax
cmp dword [ecx + 0x10], ebx
je 0x41b253
cmp dword [esi + 0x10], ebx
je 0x41b253
cmp eax, ebx
je 0x41b253
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0041b01c
pop ecx
pop ecx
cmp al, bl
jne 0x41b25b
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
xor al, al
call fcn.0044b0f0
ret
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41b267
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x40]
push ecx
or edi, 1
push edi
push ebx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b247
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x40]
push 4
pop edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], ebx
jb 0x41b295
mov esi, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41b2cb
cmp dword [ebp - 0x34], ebx
je 0x41b2bb
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
mov al, bl
jmp 0x41b255
cmp dword [ebp - 0x3c], edi
sete byte [ebp - 0x35]
cmp dword [ebp - 0x34], ebx
je 0x41b2e0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0x35]
jmp 0x41b2bb
Function at 0x41b2eb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c
mov eax, 0x4e5792
call fcn.0044b094
mov esi, edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], eax
cmp dword [ecx + 0x10], ebx
je 0x41b347
cmp dword [edi + 0x10], ebx
je 0x41b347
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0041b01c
pop ecx
pop ecx
cmp al, bl
jne 0x41b34f
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
xor al, al
call fcn.0044b0f0
ret
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41b35b
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x50]
push ecx
or esi, 1
push esi
push ebx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b33b
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
jb 0x41b38c
mov eax, dword [edi]
jmp 0x41b38e
mov eax, edi
lea ecx, [ebp - 0x38]
push ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41b3b1
cmp esi, ebx
je 0x41b33b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b33b
cmp dword [ebp - 0x3c], 1
jne 0x41b3a4
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x54]
shr eax, 1
push ecx
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040662f
mov byte [ebp - 4], 3
cmp dword [edi + 0x14], 8
jb 0x41b3e0
mov edi, dword [edi]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41b410
lea esi, [ebp - 0x4c]
call fcn.0041d4a8
cmp dword [ebp - 0x34], ebx
je 0x41b33b
push dword [ebp - 0x34]
jmp 0x41b3a9
cmp dword [ebp - 0x3c], 1
je 0x41b43f
lea esi, [ebp - 0x4c]
call fcn.0041d4a8
cmp dword [ebp - 0x34], ebx
je 0x41b42c
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
mov al, bl
jmp 0x41b349
mov eax, dword [ebp - 0x38]
shr eax, 1
lea ecx, [ebp - 0x4c]
call fcn.00412165
mov eax, dword [ebp - 0x48]
cmp word [eax - 2], bx
jne 0x41b460
cmp dword [ebp - 0x4c], eax
je 0x41b460
add eax, 0xfffffffe
mov dword [ebp - 0x48], eax
sub eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x58]
mov esi, eax
sar esi, 1
mov eax, esi
mov ecx, edi
call fcn.0041191a
cmp dword [edi + 0x14], 8
jb 0x41b47b
mov edi, dword [edi]
lea eax, [esi + esi]
push eax
push dword [ebp - 0x4c]
push edi
call fcn.004451a0
add esp, 0xc
lea esi, [ebp - 0x4c]
call fcn.0041d4a8
cmp dword [ebp - 0x34], ebx
je 0x41b4a1
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x41b42c
Function at 0x41b4ab
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x4e5755
call fcn.0044b094
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
cmp dword [ecx + 0x10], ebx
je 0x41b501
cmp dword [edi + 0x10], ebx
je 0x41b501
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0041b01c
pop ecx
pop ecx
cmp al, bl
jne 0x41b509
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
xor al, al
call fcn.0044b0f0
ret
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], ebx
jae 0x41b518
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push 0x202
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b4f5
cmp dword [esi + 0x14], 8
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], edx
jb 0x41b548
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41b552
mov ecx, dword [edi]
jmp 0x41b554
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41b58a
cmp dword [ebp - 0x34], ebx
je 0x41b577
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
mov al, bl
jmp 0x41b503
cmp dword [ebp - 0x34], ebx
je 0x41b598
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x41b577

Function at 0x41c402
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x4e9798
call fcn.0044b05e
push 0x4f8ac0
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.0041b82a
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0041b8e5
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041dbe3
pop ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041dfcd
lea eax, [ebp - 0x2c]
call fcn.0041df10
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x41c4e1
xor eax, eax
mov ecx, edi
and ecx, eax
mov dword [ebp - 0x50], edi
cmp ecx, 0xffffffff
je 0x41c4e1
mov ecx, edi
or ecx, eax
je 0x41c4e1
lea eax, [esi + 0x44]
cmp dword [eax + 0x14], 8
jb 0x41c478
mov eax, dword [eax]
push 0x4fac50
push eax
call fcn.004484c8
cmp dword [ebp - 0x18], 0x10
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x41c493
lea eax, [ebp - 0x2c]
push ebx
push edi
push 1
push eax
call fcn.00449193
push ebx
mov esi, eax
xor edi, edi
call fcn.0044854c
mov eax, esi
add esp, 0x14
or eax, edi
je 0x41c4dd
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x41c4dd
cmp esi, dword [ebp - 0x50]
jne 0x41c4dd
xor eax, eax
cmp edi, eax
jne 0x41c4dd
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040295e
push 1
lea esi, [ebp - 0x48]
call fcn.00402a3c
mov al, 1
jmp 0x41c4fa
push 0
jmp 0x41c4e2
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040295e
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00402a3c
xor al, al
call fcn.0044b0e1
ret