joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5072c4
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x587d6a
call fcn.00531c83
mov ebx, ecx
mov dword [ebp - 0x230], ebx
call fcn.005188e7
push 0x1c4
call fcn.00415572
pop ecx
mov dword [ebp - 0x22c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x507307
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.00518ef8
jmp 0x507309
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00517d31
call fcn.0041789d
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x8c]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.0055b73b
mov esi, eax
pop ecx
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
mov dword [ebp - 0x22c], esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x507520
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x228], eax
test edi, edi
je 0x50751a
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x50751a
call fcn.00417f76
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413ed1
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x218]
push esi
push ecx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x5074fe
push 0x59a510
mov esi, 0x59a518
lea ecx, [ebp - 0x21c]
push esi
call fcn.00441b2f
push esi
push 0x5c3144
lea ecx, [ebp - 0x21c]
call fcn.00441b2f
push esi
push 0x59a510
lea ecx, [ebp - 0x21c]
call fcn.00441b2f
call fcn.00417f76
push eax
lea ecx, [ebp - 0x220]
call fcn.00413ed1
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x507434
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__Ts
push eax
call fcn.00416839
add esp, 0xc
jmp 0x507466
jge 0x507454
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__Ts
push eax
call fcn.00416839
add esp, 0x10
jmp 0x507466
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00416688
push 0x1c4
call fcn.00415572
pop ecx
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x507490
mov ecx, eax
call fcn.004bb7da
mov ecx, eax
mov dword [ebp - 0x224], eax
jmp 0x507498
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x220]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x224]
lea eax, [ebx + 0xe110]
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push ebx
mov ecx, edi
call fcn.0042a7b4
mov ecx, dword [ebp - 0x224]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.00517d31
inc dword [ebp - 0x228]
lea ecx, [esi - 0x10]
call fcn.0041447f
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0041447f
inc ebx
cmp ebx, dword [edi + 4]
jl 0x507389
call fcn.00531c2d
ret
call fcn.0053189e
int3
Function at 0x534919
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x568d90
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005686fe

Function at 0x568d9b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568939

Function at 0x5703b7
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x58acb1
call fcn.00531c83
mov edi, ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push 0x5c2d2c
call fcn.004035c2
and dword [ebp - 4], 0
xor bl, bl
cmp dword [edi + 0x238], 0
je 0x570449
test esi, esi
je 0x5703fe
cmp byte [edi + 0x228], bl
je 0x5703fe
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0057045d
mov bl, al
xor edx, edx
test esi, esi
je 0x57040c
mov ecx, dword [esi]
test ecx, ecx
je 0x57040c
mov edx, dword [ecx]
test bl, bl
je 0x57041d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x57041f
xor eax, eax
push eax
push edx
push dword [ebp + 8]
call dword [edi + 0x238]
add esp, 0xc
test bl, bl
je 0x570449
cmp dword [ebp - 0x18], 0
je 0x570449
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403a16
call fcn.00531c2d
ret 8
Function at 0x57045d
Capabilities:
Get common file path

Disassembly:
push 0x260
mov eax, 0x58acec
call fcn.00531c83
mov edi, ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054ae60
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x248], esi
je 0x57061f
cmp dword [edi + 0x24c], esi
je 0x57061f
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x57061f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004035c2
push str.crashdump.dmp
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.0040404c
pop ecx
xor eax, eax
mov byte [ebp - 4], 2
push esi
inc eax
lea ecx, [ebp - 0x26c]
push eax
call fcn.00403a16
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push esi
cmovae eax, dword [ebp - 0x238]
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5705fe
test esi, esi
je 0x5705fe
push 6
pop eax
mov word [ebp - 0x220], ax
xor eax, eax
inc eax
mov word [ebp - 0x21e], ax
push 0xb
pop eax
mov word [ebp - 0x21c], ax
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x220]
push eax
call dword [edi + 0x248]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], eax
xor eax, eax
inc eax
mov dword [ebp - 0x240], 0x570673
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x240]
push eax
push 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x23c], edi
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [edi + 0x24c]
lea ecx, [ebp - 0x238]
test eax, eax
je 0x570604
mov eax, dword [ebp - 0x254]
cmp eax, ecx
je 0x5705f1
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403330
xor eax, eax
lea ecx, [ebp - 0x238]
inc eax
mov bl, al
jmp 0x570607
lea ecx, [ebp - 0x238]
xor eax, eax
inc eax
push 0
push eax
call fcn.00403a16
cmp esi, 0xffffffff
je 0x57061f
test esi, esi
je 0x57061f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
call fcn.00531c2d
ret 8
Function at 0x570ae4
Capabilities:
Create thread

Disassembly:
push 0x48
mov eax, 0x58adcf
call fcn.00531c83
call fcn.005706fa
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x38], ebx
push str.package
call fcn.004036c4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
xor ecx, ecx
call fcn.005786e9
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.005785fa
push eax
mov edx, 0x5c2f88
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004043ac
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00403a16
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x2001f
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push eax
push SysReAllocString
call fcn.00403182
test eax, eax
jne 0x570b99
lea eax, [ebp - 0x38]
push eax
push str.CrashMe
lea ecx, [ebp - 0x1c]
call fcn.004045b3
mov ecx, dword [ebp - 0x38]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x570b9c
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x570bb0
push ebx
push ebx
push ecx
push 0x570bdc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00403a16
lea ecx, [ebp - 0x1c]
call fcn.004031fc
call fcn.00531c2d
ret
Function at 0x57128a
Capabilities:
Download url
Receive data

Disassembly:
push 0x2c
mov eax, 0x58af30
call fcn.00531c83
mov esi, ecx
xor eax, eax
lea edi, [ebp - 0x26]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x28], ax
stosd dword es:[edi], eax
push 0xa
push 0xc
mov dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x30], vtable.MyCallback.0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00554ad1
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add esi, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x5712e9
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
mov esi, ebx
cmovne esi, eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.urlDownloadToFile
call fcn.004036c4
mov dl, bl
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00571a9e
add esp, 0x48
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.00403a16
mov eax, esi
call fcn.00531c2d
ret 0x18
Function at 0x572945
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5ee10c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x5c]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3a]
push eax
lea eax, [ebp - 0x38]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.004036c4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00531192
mov esp, ebp
pop ebp
ret
Function at 0x57316d
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b558
mov eax, dword fs:[0]
push eax
mov eax, 0x2b38
call fcn.00531f80
mov eax, dword [0x5ee10c]
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 dword [ebp - 0x2b44], edx
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor bl, bl
test esi, esi
jne 0x5731b8
xor al, al
jmp 0x573357
and dword [ebp - 0x2b14], 0
xor eax, eax
mov dword [ebp - 0x2b10], 7
mov word [ebp - 0x2b24], ax
and dword [ebp - 4], eax
mov edi, str..PhysicalDrive
push edi
call fcn.0040359b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2b24]
call fcn.00403522
push ecx
push ecx
lea ecx, [ebp - 0x2b3c]
call fcn.00408ab3
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2b24]
mov byte [ebp - 4], 1
call fcn.00404125
push 0
push 1
lea ecx, [ebp - 0x2b3c]
mov byte [ebp - 4], 0
call fcn.00403a16
cmp dword [ebp - 0x2b10], 8
lea eax, [ebp - 0x2b24]
cmovae eax, dword [ebp - 0x2b24]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2b40], eax
cmp eax, 0xffffffff
je 0x573346
xor eax, eax
lea edi, [ebp - 0x2b30]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x2b0c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2b08]
mov edi, 0x2710
mov dword [ebp - 0x2b30], ecx
push edi
push ecx
push eax
mov dword [ebp - 0x2b2c], ecx
call fcn.0054ae60
add esp, 0xc
lea eax, [ebp - 0x2b0c]
push 0
push eax
push edi
mov edi, dword [ebp - 0x2b40]
lea eax, [ebp - 0x2b08]
push eax
push 0xc
lea eax, [ebp - 0x2b30]
push eax
push 0x2d1400
push edi
call esi
test eax, eax
je 0x57333f
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0054ae60
mov edx, dword [ebp - 0x2af0]
add esp, 0xc
test edx, edx
je 0x5732f9
mov byte [ebp - 0x3f8], 0
js 0x5732f9
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x2b08]
call fcn.00573373
pop ecx
movsx eax, byte [ebp - 0x3f8]
push eax
call fcn.005550e4
pop ecx
test eax, eax
jne 0x57331d
movsx eax, byte [ebp - 0x3e5]
push eax
call fcn.005550e4
pop ecx
test eax, eax
je 0x57333f
lea eax, [ebp - 0x3f8]
push eax
call fcn.004036a7
pop ecx
mov ecx, dword [ebp - 0x2b44]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.0040362e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x2b24]
call fcn.00403a16
mov al, bl
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.00531192
mov esp, ebp
pop ebp
ret
Function at 0x573a9e
Capabilities:
Get mac address on windows

Disassembly:
push 0x74
mov eax, 0x58b6e2
call fcn.00531c83
mov ebx, ecx
mov dword [ebp - 0x78], ebx
xor esi, esi
mov dword [ebp - 4], esi
push 0x5c2d2e
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], esi
call fcn.004036c4
mov eax, 0x288
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], eax
call fcn.0041559f
mov esi, eax
pop ecx
test esi, esi
je 0x573b95
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x78]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x573b13
push esi
call fcn.004155a8
push dword [ebp - 0x78]
call fcn.0041559f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x573b95
lea eax, [ebp - 0x78]
push eax
push esi
call edi
test eax, eax
jne 0x573b8a
mov edi, esi
test esi, esi
je 0x573b95
cmp dword [edi + 0x1a0], 6
jne 0x573b84
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x74]
push 0x5c3814
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x74]
push eax
call fcn.004036a7
add esp, 0x24
mov ecx, ebx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00404ee2
mov edi, dword [edi]
test edi, edi
jne 0x573b24
test esi, esi
je 0x573b95
push esi
call fcn.004155a8
pop ecx
mov eax, ebx
call fcn.00531c2d
ret

Function at 0x573d49
Capabilities:
Get hostname

Disassembly:
push 0x22c
mov eax, 0x58b787
call fcn.00531c83
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c2d2c
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035c2
mov eax, 0x102
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.0054ae60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp dword [ebp - 0x218], edi
jbe 0x573de8
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035c2
push eax
mov ecx, esi
call fcn.00402048
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a16
mov eax, esi
call fcn.00531c2d
ret

Function at 0x573df0
Capabilities:
Get session user name

Disassembly:
push 0x22c
mov eax, 0x58b7d1
call fcn.00531c83
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c2d2c
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035c2
mov eax, 0x102
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.0054ae60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 0x218], edi
jbe 0x573e8f
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035c2
push eax
mov ecx, esi
call fcn.00402048
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a16
mov eax, esi
call fcn.00531c2d
ret
Function at 0x573e97
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xc0
mov eax, 0x58b840
call fcn.00531c83
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push 0xf0000000
xor edi, edi
mov dword [ebp - 0xcc], ebx
push 0x18
push edi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc8], edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x573ee6
push 0x5c2d2e
mov ecx, ebx
call fcn.004036c4
jmp 0x574085
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push edi
test eax, eax
jne 0x573f1c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5c2d2e
mov ecx, ebx
call fcn.004036c4
jmp 0x574085
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x573f39
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
jmp 0x573f02
push 4
pop ecx
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x573f2d
push dword [ebp - 0x2c]
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004054c1
xor edi, edi
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push edi
push eax
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x573fb1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5c2d2e
mov ecx, ebx
call fcn.004036c4
jmp 0x57407d
push 0x98
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0054ae60
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.004055f8
mov byte [ebp - 4], 2
jmp 0x574032
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x84], 0x30
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa4], 2
mov dword [ebp + eax - 0xa0], edi
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xb0]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ebp + ecx - 0xb0], eax
lea ecx, [ebp - 0xc4]
movzx eax, byte [esi]
push eax
call fcn.00405c18
inc esi
cmp esi, dword [ebp - 0x24]
jne 0x573fd5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
lea ecx, [ebp - 0xc4]
call fcn.00405599
mov dword [ebp - 0xc8], 1
lea ecx, [ebp - 0x74]
call fcn.004055b5
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0052f2ea
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004068ad
mov eax, ebx
call fcn.00531c2d
ret
Function at 0x575714
Capabilities:
Set registry value

Disassembly:
push 0x24c
mov eax, 0x58bb9f
call fcn.00531c83
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x238], esp
mov esi, ebx
push 0x5c3148
call fcn.004036c4
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
xor ecx, ecx
call fcn.005786e9
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.005785fa
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push ebx
push eax
call fcn.0054ae60
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x238], esp
push str.package
call fcn.004036c4
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
xor ecx, ecx
call fcn.005786e9
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.005785fa
cmp dword [eax + 0x14], 8
jb 0x5757ab
mov eax, dword [eax]
push eax
push str.Software_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040533a
add esp, 0x10
lea ecx, [ebp - 0x258]
push ebx
push 1
call fcn.00403a16
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
add eax, eax
push eax
push ecx
push 1
push ebx
push str.AppInstanceUid
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x57587a
push dword [ebp - 0x234]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0x5c3cc4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055477b
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0x234]
call esi
xor ecx, ecx
call fcn.005786e9
mov ecx, eax
call fcn.00577ef7
mov esi, eax
xor ecx, ecx
call fcn.005786e9
call fcn.0057a377
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x238], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x23c], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.PreInstallActions
call fcn.004036c4
mov dl, bl
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00571a9e
add esp, 0x48
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.00403a16
mov eax, esi
call fcn.00531c2d
ret