joyce8/EMBER2024-capa huggingface dataset:
Function at 0x574148
Capabilities:
Get mac address on windows

Disassembly:
push 0x74
mov eax, 0x58d679
call fcn.00532017
mov ebx, ecx
mov dword [ebp - 0x78], ebx
xor esi, esi
mov dword [ebp - 4], esi
push 0x5c4ffe
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], esi
call fcn.004036e4
mov eax, 0x288
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], eax
call fcn.00415936
mov esi, eax
pop ecx
test esi, esi
je 0x57423f
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x78]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x5741bd
push esi
call fcn.0041593f
push dword [ebp - 0x78]
call fcn.00415936
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x57423f
lea eax, [ebp - 0x78]
push eax
push esi
call edi
test eax, eax
jne 0x574234
mov edi, esi
test esi, esi
je 0x57423f
cmp dword [edi + 0x1a0], 6
jne 0x57422e
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 0x5c5aec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x74]
push eax
call fcn.004036c7
add esp, 0x24
mov ecx, ebx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00404f02
mov edi, dword [edi]
test edi, edi
jne 0x5741ce
test esi, esi
je 0x57423f
push esi
call fcn.0041593f
pop ecx
mov eax, ebx
call fcn.00531fc1
ret

Function at 0x5743f3
Capabilities:
Get hostname

Disassembly:
push 0x22c
mov eax, 0x58d71e
call fcn.00532017
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c4ffc
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035e2
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.0054b1f0
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 0x574492
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035e2
push eax
mov ecx, esi
call fcn.00402068
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a36
mov eax, esi
call fcn.00531fc1
ret

Function at 0x57449a
Capabilities:
Get session user name

Disassembly:
push 0x22c
mov eax, 0x58d768
call fcn.00532017
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c4ffc
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035e2
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.0054b1f0
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 0x574539
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035e2
push eax
mov ecx, esi
call fcn.00402068
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a36
mov eax, esi
call fcn.00531fc1
ret
Function at 0x574541
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xc0
mov eax, 0x58d7d7
call fcn.00532017
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 0x574590
push 0x5c4ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x57472f
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 0x5745c6
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5c4ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x57472f
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5745e3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
jmp 0x5745ac
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 0x5745d7
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.004054e1
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 0x57465b
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 0x5c4ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x574727
push 0x98
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0054b1f0
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.00405618
mov byte [ebp - 4], 2
jmp 0x5746dc
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.00405c38
inc esi
cmp esi, dword [ebp - 0x24]
jne 0x57467f
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.004055b9
mov dword [ebp - 0xc8], 1
lea ecx, [ebp - 0x74]
call fcn.004055d5
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0052f67d
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004068cd
mov eax, ebx
call fcn.00531fc1
ret
Function at 0x575f47
Capabilities:
Set registry value

Disassembly:
push 0x24c
mov eax, 0x58db84
call fcn.00532017
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x238], esp
mov esi, ebx
push 0x5c5424
call fcn.004036e4
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
xor ecx, ecx
call fcn.005795a4
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.005794b5
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push ebx
push eax
call fcn.0054b1f0
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x238], esp
push str.package
call fcn.004036e4
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
xor ecx, ecx
call fcn.005795a4
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.005794b5
cmp dword [eax + 0x14], 8
jb 0x575fde
mov eax, dword [eax]
push eax
push str.Software_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040535a
add esp, 0x10
lea ecx, [ebp - 0x258]
push ebx
push 1
call fcn.00403a36
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 0x5c5fa0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x5760ad
push dword [ebp - 0x234]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0x5c5fc0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554b3f
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.005795a4
mov ecx, eax
call fcn.00578d24
mov esi, eax
xor ecx, ecx
call fcn.005795a4
call fcn.0057c294
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x238], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x23c], esp
push 0x5c4ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.PreInstallActions
call fcn.004036e4
mov dl, bl
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00572131
add esp, 0x48
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.00403a36
mov eax, esi
call fcn.00531fc1
ret
Function at 0x5774b4
Capabilities:
Persist via run registry key

Disassembly:
push 0x26c
mov eax, 0x58e042
call fcn.00532017
mov esi, ecx
mov dword [ebp - 0x240], esi
xor ebx, ebx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.004035e2
mov dword [ebp - 4], 1
lea edi, [ebp - 0x224]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
push 0x5c4ffc
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004035e2
xor edi, edi
lea eax, [ebp - 0x23c]
inc edi
lea ecx, [ebp - 0x224]
cmp dword [ebp - 0x228], 8
push 0x2001f
cmovae eax, dword [ebp - 0x23c]
push eax
push SysReAllocString
mov dword [ebp - 0x244], edi
call fcn.004031a2
test eax, eax
jne 0x57762d
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0054b1f0
add esp, 0xc
mov dword [ebp - 0x240], 0x104
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Local_AppData
call fcn.00412c17
test eax, eax
jne 0x57762d
lea eax, [ebp - 0x218]
push eax
call fcn.004035bb
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403542
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push str.package
call fcn.004036e4
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
xor ecx, ecx
call fcn.005795a4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005794b5
push eax
mov edx, 0x5c5388
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.004043cc
pop ecx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404145
push ebx
push edi
lea ecx, [ebp - 0x260]
call fcn.00403a36
push ebx
push edi
lea ecx, [ebp - 0x278]
call fcn.00403a36
lea ecx, [ebp - 0x224]
call fcn.0040321c
push ebx
push edi
lea ecx, [ebp - 0x23c]
call fcn.00403a36
mov eax, esi
call fcn.00531fc1
ret
Function at 0x5776f1
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x860
mov eax, 0x58e0f4
call fcn.00532017
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x834], esp
push str.autolaunch
call fcn.004036e4
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
call fcn.005795a4
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00579433
mov edi, eax
test edi, edi
je 0x577954
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x834], esp
push str.package
call fcn.004036e4
xor esi, esi
lea eax, [ebp - 0x854]
inc esi
xor ecx, ecx
push eax
mov dword [ebp - 4], esi
call fcn.005795a4
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.005794b5
push eax
mov edx, 0x5c5258
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x82c]
call fcn.004043cc
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 4
call fcn.00403a36
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0054b1f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x830]
add esp, 0xc
mov dword [ebp - 0x814], 0x400
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push ecx
push eax
push SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x5778f1
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
xor eax, eax
push eax
push eax
push str.InstallerSuccessLaunchCmdLine
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x5778f1
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x830]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x5778f1
push str.____location0
mov esi, 0x400
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00554b3f
add esp, 0xc
cmp edi, 1
jne 0x577870
push str.____no_startup_window
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00554b3f
add esp, 0xc
lea ecx, [ebp - 0x810]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x57787b
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x810]
push eax
push 1
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x834], esp
push str.package
call fcn.004036e4
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 5
push eax
xor ecx, ecx
call fcn.005795a4
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.005794b5
cmp dword [eax + 0x14], 8
jb 0x5778d2
mov eax, dword [eax]
push eax
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 1
lea ecx, [ebp - 0x86c]
mov esi, eax
call fcn.00403a36
jmp 0x5778f3
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x834], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x838], esp
push 0x5c4ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
push str.addToSystemStart
call fcn.004036e4
mov dl, bl
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00572131
add esp, 0x48
lea ecx, [ebp - 0x82c]
push ebx
push 1
call fcn.00403a36
mov eax, esi
call fcn.00531fc1
ret
Function at 0x5789f7
Capabilities:
Get geographical location

Disassembly:
push 0x54
mov eax, 0x58e57e
call fcn.00532017
sub esp, 0xc
mov dword [ebp - 0x38], 0x5fe760
mov ebx, 0x5fe768
mov dword [0x5fe760], 0x5c7f2c
mov ecx, ebx
call fcn.004090b5
push ecx
push ecx
xor edi, edi
mov ecx, 0x5fe7a8
mov dword [ebp - 4], edi
call fcn.0057081c
push str.AddShortCuts
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004130e8
push str.AppInstanceUid
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004130e8
push str.Birthdate
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004130e8
push str.ConfigurationFields
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004130e8
push str.CountryCode
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004130e8
push str.Distribution
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.004130e8
push str.Lang
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.004130e8
push str.RefererId
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.004130e8
push str.Refid
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.004130e8
push str.Mydistributionoption
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004130e8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x38]
push dword [ebp - 0x38]
mov ecx, 0x5fe7d0
mov dword [0x5fe7d0], edi
push eax
lea eax, [ebp - 0x60]
mov dword [0x5fe7d4], edi
push eax
mov dword [0x5fe7d8], edi
call fcn.004135f3
push 0x413866
push 0xa
mov byte [ebp - 4], 0xd
push 4
lea eax, [ebp - 0x60]
push eax
call fcn.00531537
mov esi, str.__refererid_:_2276____visible_:_1___url_:_http:__www.1stbrowser.com_en_US_Corporate_installer____urldev_:_http:__www.qa.1stbrowser.com__LANG__Corporate_Installer____ConfigurationFields_:_10627___AddShortCuts_:0___AppInstanceUid_:_0____package_:_1stbrowser____CountryCode_:_ZX____CurrentLcid_:0___lang_:_en_US____mydistributionoption_:0___source_:_0____configjson_:__1sttool.js__
lea ecx, [ebp - 0x34]
push esi
call fcn.004036e4
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push edx
mov ecx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00409863
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00403ae2
mov eax, 0x5fe760
call fcn.00531fc1
ret
Function at 0x578d24
Capabilities:
Set registry value

Disassembly:
push 0x148
mov eax, 0x58e5ef
call fcn.00532017
mov ebx, ecx
mov dword [ebp - 0x150], ebx
push str.Software_
lea ecx, [ebp - 0x148]
call fcn.004036e4
and dword [ebp - 4], 0
lea edi, [ebx + 8]
push str.package
mov ecx, edi
call fcn.004093b8
mov esi, eax
test dword [esi + 0x10], 0x400000
jne 0x578d6b
mov esi, dword [esi]
push esi
call fcn.004036c7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x148]
call fcn.00404f02
cmp dword [ebp - 0x134], 0x10
lea ecx, [ebp - 0x14c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x578dfe
and dword [ebp - 0x118], eax
mov ebx, str.lang
push ebx
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
call fcn.004131ca
imul eax, dword [edi + 4], 0x30
mov ecx, dword [ebp - 0x118]
add eax, dword [edi]
cmp ecx, eax
je 0x578dfe
add ecx, 0x18
mov edx, ecx
test dword [ecx + 0x10], 0x400000
jne 0x578de6
mov edx, dword [ecx]
call fcn.00409a57
push eax
push edx
push 1
push 0
push ebx
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, str.InitPrefs
push ebx
call fcn.004036c7
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x148]
call fcn.00404f02
cmp dword [ebp - 0x134], 0x10
lea ecx, [ebp - 0x14c]
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
push SysReAllocString
call esi
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x578f7a
imul ecx, dword [edi + 4], 0x30
mov esi, dword [edi]
add ecx, esi
cmp esi, ecx
je 0x578f7a
lea ebx, [esi + 0x18]
test dword [ebx - 8], 0x400000
mov eax, esi
jne 0x578e74
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004036e4
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x130]
push eax
call fcn.005785eb
cmp dword [ebp - 0x120], 0
je 0x578f57
mov eax, dword [ebx + 0x10]
shr eax, 0x14
test al, 1
je 0x578eea
test dword [ebx + 0x10], 0x400000
je 0x578eb9
mov dword [ebp - 0x118], ebx
jmp 0x578ec1
mov eax, dword [ebx]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x11c], 0x10
lea edx, [ebp - 0x130]
mov ecx, ebx
cmovae edx, dword [ebp - 0x130]
call fcn.00409a57
push eax
push dword [ebp - 0x118]
push 1
push 0
push edx
jmp 0x578f4b
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0054b1f0
push dword [ebx]
lea eax, [ebp - 0x114]
push 0x5c7f24
push 0x104
push eax
call fcn.00413782
lea ecx, [ebp - 0x114]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x578f21
sub ecx, edx
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
push ecx
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x114]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.00403ae2
imul eax, dword [edi + 4], 0x30
add esi, 0x30
add ebx, 0x30
add eax, dword [edi]
cmp esi, eax
jne 0x578e67
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.00403ae2
mov eax, dword [ebp - 0x154]
call fcn.00531fc1
ret
Function at 0x579143
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa4c
mov eax, 0x58e6ac
call fcn.00532017
mov esi, ecx
push str.package
lea ecx, [esi + 8]
call fcn.004093b8
test dword [eax + 0x10], 0x400000
jne 0x57916c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa34]
call fcn.004036e4
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0054b1f0
cmp dword [ebp - 0xa20], 0x10
lea ecx, [ebp - 0xa34]
mov eax, dword [ebp - 0xa24]
cmovae ecx, dword [ebp - 0xa34]
add eax, ecx
cmp dword [ebp - 0xa20], 0x10
lea ecx, [ebp - 0xa34]
cmovae ecx, dword [ebp - 0xa34]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0xa58]
call fcn.00405296
cmp dword [eax + 0x14], 8
jb 0x5791d7
mov eax, dword [eax]
push eax
push str.Software_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040535a
add esp, 0x10
lea ecx, [ebp - 0xa58]
push ebx
push 1
call fcn.00403a36
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5792b7
push 0x800
lea eax, [ebp - 0xa18]
push ebx
push eax
call fcn.0054b1f0
add esp, 0xc
mov dword [ebp - 0xa1c], 0x400
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xa18]
push eax
push ebx
push ebx
push str.appinstanceuid
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5792ab
sub esp, 0x18
lea eax, [ebp - 0xa18]
mov ecx, esp
mov dword [ebp - 0xa40], esp
push eax
call fcn.004035e2
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x5c5424
call fcn.004036e4
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0057903e
sub esp, 0x18
mov ecx, esp
push str.reinstall
call fcn.004036e4
push 1
jmp 0x5792f4
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa3c], esp
call fcn.0057ab99
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x5c5424
call fcn.004036e4
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0057903e
sub esp, 0x18
mov ecx, esp
push str.reinstall
call fcn.004036e4
push ebx
mov ecx, esi
call fcn.0057935f
push ebx
push 1
lea ecx, [ebp - 0xa34]
call fcn.00403ae2
call fcn.00531fc1
ret

Function at 0x5795a4
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x58e7bf
call fcn.00531fe3
mov esi, ecx
mov eax, dword fs:[0x2c]
mov ebx, 0x5fe760
mov edx, dword [eax]
mov eax, dword [0x5fe758]
cmp eax, dword [edx + 4]
jle 0x579610
mov edi, 0x5fe758
push edi
call fcn.00531a0b
cmp dword [0x5fe758], 0xffffffff
pop ecx
jne 0x579610
and dword [ebp - 4], 0
push 0x80
push 0
push ebx
call fcn.0054b1f0
add esp, 0xc
call fcn.005789f7
push 0x58f6c8
call fcn.005318a5
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
call fcn.005319cc
pop ecx
cmp byte [0x5fe360], 0
jne 0x579637
call fcn.005786ad
test esi, esi
jne 0x57962a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call fcn.005788ff
mov byte [0x5fe360], 1
mov eax, ebx
call fcn.00531fac
ret
Function at 0x5799c8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e8da
mov eax, dword fs:[0]
push eax
mov eax, 0x1000c
call fcn.00532310
mov eax, dword [0x5f1114]
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, ecx
mov dword [ebp - 0x10014], esi
push 7
xor ebx, ebx
mov dword [ebp - 0x10018], esi
pop edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 8
jb 0x579a1d
mov eax, dword [esi]
jmp 0x579a1f
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ebx
cmp edx, 8
jb 0x579a39
mov eax, dword [edi]
jmp 0x579a3b
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 0xfffe
lea eax, [ebp - 0x10010]
push ebx
push eax
call fcn.0054b1f0
add esp, 0xc
mov dword [ebp - 0x10014], 0x7fff
lea eax, [ebp - 0x10014]
push eax
lea eax, [ebp - 0x10010]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x579ab3
lea eax, [ebp - 0x10010]
push eax
call fcn.004035bb
pop ecx
push eax
lea eax, [ebp - 0x10010]
mov ecx, edi
push eax
call fcn.00403542
mov eax, esi
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.00531526
mov esp, ebp
pop ebp
ret