joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1809fdab
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x1809fdbb
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x1809fdc1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x1809fde9
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x18168430]
test ax, ax
jne 0x1809fdd0
mov esi, ecx
jmp 0x1809fdec
movzx esi, si
pop edi
cmp cx, si
je 0x1809fe09
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x18168430]
test cx, cx
jne 0x1809fded
mov eax, 0x181588cc
jmp 0x1809fe11
imul eax, edx, 0x1a
add eax, 0x18168432
push eax
mov ecx, ebx
call fcn.1800585a
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x180a01fb
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push ecx
xor edi, edi
mov dword [esp + 0x18], edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
jne 0x180a0225
call fcn.18011439
jmp 0x180a02ac
call fcn.18002dd1
push eax
lea ecx, [esp + 0x10]
call fcn.18005b92
lea ecx, [esp + 0xc]
call fcn.1800f82a
test eax, eax
jns 0x180a024c
lea eax, [esp + 0xc]
push eax
call fcn.1800f76c
pop ecx
mov esi, dword [esp + 0xc]
mov eax, edi
mov dword [esp + 0x10], eax
cmp dword [esi - 0xc], edi
je 0x180a026b
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov eax, dword [esp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
push dword [ebp + 8]
push edi
push dword [esp + 0x30]
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x180a0291
call fcn.18011439
mov edi, eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [esi - 0x10]
call fcn.18003435
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x180a3061
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov bl, cl
mov dword [ebp - 0x18], edx
push edi
mov byte [ebp - 1], bl
call fcn.1809b5f0
call fcn.18002dd1
push eax
test bl, bl
je 0x180a30c5
lea ecx, [ebp - 0xc]
call fcn.18005b92
lea eax, [ebp - 0xc]
push eax
xor eax, eax
lea ecx, [ebp - 0x10]
inc eax
push eax
push str.GoogleCrashReports
mov dword [ebp - 0x14], eax
call fcn.1800585a
push 0x26
mov edx, eax
pop ecx
call fcn.1809af49
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov eax, dword [ebp - 0xc]
xor ebx, ebx
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
jmp 0x180a3108
lea ecx, [ebp - 8]
call fcn.18005b92
lea eax, [ebp - 8]
push eax
push 1
push str.GoogleCrashReports
lea ecx, [ebp - 0x14]
call fcn.1800585a
push 0x1c
mov edx, eax
pop ecx
call fcn.1809af49
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov edi, dword [ebp - 8]
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 2
lea ecx, [eax - 0x10]
call fcn.18005c0f
cmp dword [ebp - 0x10], 0
lea esi, [eax + 0x10]
mov dword [ebp - 8], esi
je 0x180a3124
lea ecx, [edi - 0x10]
call fcn.18003435
cmp dword [ebp - 0x14], 0
je 0x180a3135
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18003435
cmp byte [ebp - 1], 0
je 0x180a3156
cmp dword [esi - 0xc], ebx
je 0x180a315b
lea ecx, [ebp - 8]
call fcn.180a2ee4
mov esi, dword [ebp - 8]
test eax, eax
jns 0x180a3156
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi - 0xc], ebx
jne 0x180a3186
lea ecx, [ebp - 0x14]
call fcn.1800d18f
push eax
lea ecx, [ebp - 8]
call fcn.18005802
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
jne 0x180a3186
mov ebx, 0x8004fffc
jmp 0x180a3198
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x180a3198
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.18005802
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x180a3248
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, ecx
movzx ecx, byte [0x1819d65c]
neg ecx
mov dword [ebp - 0xc], ebx
push esi
sbb ecx, ecx
push edi
and ecx, 0x1819d030
je 0x180a3297
or dword [ebp - 0x1c], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call fcn.18004986
push dword [ebx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.18002f73
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1800dabf
push 0x18177438
lea ecx, [ebp - 8]
call fcn.1800585a
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.1800585a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.1808c463
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
xor esi, esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.1808c6ca
mov ebx, dword [ebp - 0x20]
test al, al
je 0x180a335b
cmp ebx, dword [ebp - 0x1c]
je 0x180a335b
push 0x40
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x44
push esi
push eax
call fcn.181237a0
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 0x34]
xor eax, eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800cca5
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push ebx
push 0x400
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180a335b
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
xor esi, esi
jmp 0x180a3362
call fcn.18011439
mov esi, eax
test ebx, ebx
je 0x180a3377
mov ecx, dword [ebp - 0x18]
sub ecx, ebx
and ecx, 0xfffffffe
push ecx
push ebx
call fcn.180090f0
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
call fcn.1800db38
push 0x18
push dword [ebp - 0x14]
call fcn.180090f0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x180ab727
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1819d230
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
push 0x1819d230
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jne 0x180ab769
test ebx, ebx
je 0x180ab7c7
lea ebx, [edi + 0x1c]
mov ecx, edi
push ebx
push str.Counts
call fcn.180ab6fe
test al, al
je 0x180ab7c7
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.1800cba9
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
xor edi, edi
mov edx, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.180ab9f0
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
adc dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
pop ecx
push 8
push eax
push 3
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180ab7ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x18195008]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x1819d230
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
pop ecx
lea eax, [esi + 0x18]
push 0x20
mov esi, eax
lea edi, [esp + 0x34]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.181237a0
add esp, 0xc
push 0x1819d230
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 0
je 0x180ab8ff
lea edi, [ebx + 0x28]
mov ecx, ebx
push edi
push str.Timings
call fcn.180ab6fe
test al, al
je 0x180ab8ff
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push dword [eax + 4]
call fcn.1800cba9
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov edx, esi
mov ecx, edi
call fcn.180aba3c
pop ecx
test al, al
jne 0x180ab87f
push 0x20
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.18124020
add esp, 0xc
jmp 0x180ab8e3
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
adc dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x24]
jg 0x180ab8ad
mov eax, dword [esp + 0x40]
jl 0x180ab8b5
cmp eax, dword [esp + 0x20]
jb 0x180ab8b5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], ecx
jg 0x180ab8d3
mov eax, dword [esp + 0x48]
jl 0x180ab8db
cmp dword [esp + 0x28], eax
jb 0x180ab8db
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push 0x20
lea eax, [esp + 0x14]
push eax
push 3
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.18003435
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18120ca0
mov esp, ebp
pop ebp
ret 4

Function at 0x180ab9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180aba29
cmp dword [ebp - 8], 3
jne 0x180aba29
test eax, eax
jne 0x180aba29
cmp dword [ebp - 4], esi
jne 0x180aba29
mov al, 1
jmp 0x180aba39
push esi
push 0
push dword [ebp + 8]
call fcn.181237a0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x180aba3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180aba75
cmp dword [ebp - 8], 3
jne 0x180aba75
test eax, eax
jne 0x180aba75
cmp dword [ebp - 4], esi
jne 0x180aba75
mov al, 1
jmp 0x180aba85
push esi
push 0
push dword [ebp + 8]
call fcn.181237a0
add esp, 0xc
xor al, al
pop esi
leave
ret

Function at 0x180ac95d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jg 0x180ac9d3
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180ac9ae
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18004986
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Google_Update_core_is_shutting_down..._
push eax
call fcn.18002f73
pop ecx
pop ecx
push 0
push 0
push 0x12
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x180ac9d3
push 0x80004004
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop esi
leave
ret
push esi
mov esi, ecx
call fcn.180ac643
mov ecx, esi
pop esi
test al, al
je 0x180ac95d
jmp fcn.180acb2f

Function at 0x180acb17
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jg 0x180ac9d3
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180ac9ae
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18004986
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Google_Update_core_is_shutting_down..._
push eax
call fcn.18002f73
pop ecx
pop ecx
push 0
push 0
push 0x12
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x180ac9d3
push 0x80004004
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop esi
leave
ret
push esi
mov esi, ecx
call fcn.180ac643
mov ecx, esi
pop esi
test al, al
je 0x180ac95d
jmp fcn.180acb2f
Function at 0x180acff0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1809b5f0
call fcn.1809bf04
mov dword [ebp - 0xc], eax
call fcn.1809bf04
mov edx, str.AuCheckPeriodMs
mov ecx, str.HKLMSoftwareGoogleUpdateDev_
mov esi, eax
call fcn.18010611
test al, al
jne 0x180ad048
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x180ad048
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x927c1
div ecx
lea esi, [edx + 0x493e0]
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x18186e1c
sub esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, esp
mov dword [ebp - 0x40], ebx
sub esp, 0x30
mov dword [ebp - 8], eax
mov edi, esp
and dword [edi + 0x24], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x180ad07d
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, eax
call fcn.180ad673
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.180ad5d7
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.180280b5
test esi, esi
jns 0x180ad0e2
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180ad0db
or dword [ebp - 0x14], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call fcn.18004986
push esi
push str._Failed_to_start_update_worker_scheduler__0x_08x_
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.18002f73
add esp, 0xc
mov eax, esi
jmp 0x180ad163
call fcn.1809bfba
push 1
sub esp, 0x28
mov dword [ebp - 0x44], 0x18186dec
mov esi, eax
mov dword [ebp - 0x40], ebx
mov edi, esp
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], eax
and dword [edi + 0x24], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x180ad116
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp + 8]
push esi
push esi
call fcn.180ad5d7
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.180280b5
test esi, esi
jns 0x180ad161
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180ad0db
or dword [ebp - 0x14], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call fcn.18004986
push esi
push str._Failed_to_start_code_red_scheduler__0x_08x_
jmp 0x180ad0cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180adb1c
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp ebx, 0x800c
je 0x180adb72
cmp ebx, 0x8004
je 0x180adb72
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180adcce
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push ebx
push str._VerifyInit__Invalid_signature_algorithm___d_
jmp 0x180adcbf
mov esi, dword [ebp + 0x10]
push esi
call fcn.180adde1
sub esi, 1
js 0x180adb96
mov ebx, dword [ebp + 0xc]
lea eax, [esi + ebx]
mov ecx, edi
push eax
call fcn.180ade35
sub esi, 1
jns 0x180adb83
mov ebx, dword [ebp + 8]
and dword [ebp + 0x10], 0
lea eax, [ebp - 8]
and dword [ebp - 8], 0
mov esi, 0x10001
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], 0xc
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x180adafc
push eax
push 0x8001
push dword [ebp + 0x18]
mov dword [ebp - 0xc], 0x180adb0c
push dword [ebp + 0x14]
push 8
push esi
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x180adc1b
call fcn.18011439
movzx ecx, byte [0x1819d65c]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180adcce
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push esi
push str._VerifyInit__CryptDecodeObjectEx_failed___x_
jmp 0x180adcbf
lea eax, [edi + 0x14]
push eax
push dword [ebp + 0x10]
push esi
push dword [edi + 0xc]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
push dword [ebp + 0x10]
mov esi, eax
call fcn.181275c6
pop ecx
test esi, esi
jne 0x180adc73
call fcn.18011439
movzx ecx, byte [0x1819d65c]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180adcce
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push esi
push str._VerifyInit__CryptImportPublicKeyInfo_failed___x_
jmp 0x180adcbf
lea eax, [edi + 0x10]
push eax
push 0
push 0
push ebx
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180adcd2
call fcn.18011439
movzx ecx, byte [0x1819d65c]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180adcce
push 9
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.18004986
push esi
push str._VerifyFinal__CryptVerifySignature_failed___x_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.18002f73
add esp, 0xc
xor al, al
jmp 0x180adcd4
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x180adcdb
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180add3c
call fcn.18011439
movzx ecx, byte [0x1819d65c]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180add3c
push 9
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.18004986
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._VerifyUpdate__CryptHashData_failed___x_
push eax
call fcn.18002f73
add esp, 0xc
pop esi
leave
ret 8

Function at 0x180adf79
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, edx
test esi, esi
jne 0x180adf8d
mov eax, 0x80070057
jmp 0x180adff7
push edi
xor eax, eax
mov dword [ebp - 0x54], 0x44
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
xor edi, edi
push edi
push eax
call fcn.181237a0
add esp, 0xc
mov dword [ebp - 0x28], 0x80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
jne 0x180adfe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180adff7
movzx eax, ax
or eax, 0x80070000
jmp 0x180adff7
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret
Function at 0x180ae251
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov bl, cl
mov esi, edx
mov ecx, dword [ebp + 0xc]
push edi
call fcn.18005904
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push dword [esi]
movzx eax, bl
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180ae29d
jle 0x180ae375
movzx eax, ax
or eax, 0x80070000
jmp 0x180ae375
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
push 0
push dword [edi]
push dword [ebp - 4]
call ebx
mov esi, eax
test esi, esi
je 0x180ae2e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x180ae373
movzx esi, si
or esi, 0x80070000
jmp 0x180ae373
cmp dword [ebp - 0x10], 1
je 0x180ae2f0
cmp dword [ebp - 0x10], 2
jne 0x180ae2f6
cmp dword [ebp - 8], 0
jne 0x180ae306
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x8007000d
jmp 0x180ae375
call fcn.18002dd1
push eax
lea ecx, [ebp - 0xc]
call fcn.18005b92
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
shr eax, 1
push eax
call fcn.18005a88
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0
push dword [edi]
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x180ae35d
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
shr eax, 1
push eax
call fcn.18005a5d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.18005802
test esi, esi
jle 0x180ae368
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18003435
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret