joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1808e7ba
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x94], edx
push edi
push eax
mov byte [ebp - 0x79], al
mov edi, eax
mov dword [ebp - 0x68], eax
mov esi, ecx
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x88], esi
push eax
push 5
push esi
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x64], 0xf
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x1808e835
push 0xa
lea eax, [ebp - 0x48]
mov byte [ebp - 0x79], bl
push edi
push eax
call fcn.1812d1e9
add esp, 0xc
lea ecx, [ebp - 0x78]
mov edi, eax
push edi
call fcn.1808f256
xor eax, eax
push eax
push eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x80]
push eax
push esi
jmp 0x1808e8ad
cmp dword [ebp - 0x80], 0
jbe 0x1808e8dc
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x54]
call fcn.1808c3fa
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x54]
push dword [ebp - 0x88]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x1808e8d4
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x1808e8d4
add dword [ebp - 0x84], eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x54]
call fcn.18049e6c
lea ecx, [ebp - 0x54]
call fcn.18009eb8
push 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov esi, eax
test esi, esi
jne 0x1808e846
xor bl, bl
lea ecx, [ebp - 0x78]
call fcn.1800ce55
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
lea ecx, [ebp - 0x54]
call fcn.18009eb8
test esi, esi
je 0x1808e8b9
cmp byte [ebp - 0x79], 0
je 0x1808e8ee
cmp dword [ebp - 0x84], edi
jne 0x1808e8b9
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x1808e8bb
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.1808e43a
push eax
mov ecx, esi
call fcn.1802f877
lea ecx, [ebp - 0x60]
call fcn.18023340
jmp 0x1808e8bb
Function at 0x1808f964
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1808f987
xor eax, eax
jmp 0x1808fa4d
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1808f9b3
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1808f9b3
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x1808fa45
cmp dword [esi + 0x4c], 0
je 0x1808fa49
mov ecx, esi
call fcn.180900d4
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1808f9d0
movsx eax, bl
jmp 0x1808fa08
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x1808fa49
cmp eax, 1
jle 0x1808fa1c
cmp eax, 3
jne 0x1808fa49
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call fcn.18135a2e
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1808fa45
or ebx, eax
jmp 0x1808fa45
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1808fa39
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1814661b
add esp, 0x10
cmp edi, eax
jne 0x1808fa49
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1808fa49
mov eax, ebx
jmp 0x1808fa4c
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret 4

Function at 0x1809015c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x180901b5
cmp byte [esi + 0x3d], bl
je 0x180901b5
push 0xffffffffffffffff
call fcn.1808f964
cmp eax, 0xffffffff
je 0x180901ee
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x180901c6
sub eax, 1
je 0x180901c9
dec eax
sub eax, 1
jne 0x180901ee
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x180901e6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1814661b
add esp, 0x10
cmp edi, eax
jne 0x180901ee
cmp byte [esi + 0x3d], bl
sete al
jmp 0x180901b7
xor al, al
jmp 0x180901b7
Function at 0x18092609
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov dword [ebp - 0xc], ebx
push edi
mov edx, esi
mov byte [ebx], 0
lea ecx, [ebp - 8]
call fcn.18092753
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
push dword [esi]
lea eax, [ebp - 4]
push 0xbf7
push eax
call fcn.18018d42
xor eax, eax
mov dword [ebp - 0x44], 0x1817648c
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.18106c43
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x148]
call fcn.18106d52
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
test eax, eax
jns 0x180926ac
push 4
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete cl
test eax, eax
mov byte [ebx], cl
setne bl
jmp 0x180926d9
push 0
lea ecx, [ebp - 0x144]
call fcn.18006a1c
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x44]
call fcn.18092268
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x58]
mov byte [ecx], al
lea ecx, [ebp - 0x148]
call fcn.18106ced
lea ecx, [ebp - 0x44]
call fcn.1801af6a
lea ecx, [edi - 0x10]
call fcn.18003435
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x1809360c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.1809b5f0
mov edi, eax
call fcn.1800a8bd
xor ebx, ebx
push ebx
push 0x989680
push edx
push eax
call fcn.181435b0
mov ecx, str.HKLMSoftwareGoogleUpdate_
lea esi, [eax + 0x49ef6f00]
cmp byte [ebp - 0xc], bl
jne 0x18093648
mov ecx, str.HKCUSoftwareGoogleUpdate_
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 4
mov edx, str.RetryAfter
call fcn.1800ffa8
mov ecx, dword [ebp - 8]
add esp, 0xc
test eax, eax
jns 0x18093668
mov ecx, ebx
cmp esi, ecx
jae 0x18093676
lea eax, [esi + 0x15180]
cmp ecx, eax
jbe 0x180936c4
lea eax, [ebp - 2]
mov byte [ebp - 2], bl
push eax
mov ecx, edi
call fcn.1809bb43
mov esi, eax
test esi, esi
jne 0x180936cb
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x180936c4
push 7
pop edx
inc eax
mov dword [ebp - 0x20], ecx
push eax
push edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
call fcn.18004986
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._ShouldCheckForUpdates_returned_0__checks_disabled_
push eax
call fcn.18002f73
pop ecx
pop ecx
xor al, al
jmp 0x18093773
push dword [ebp - 0xc]
call fcn.1809bd22
mov edi, eax
call fcn.1809b5f0
lea ecx, [ebp - 1]
mov dword [ebp - 0x10], ebx
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], ebx
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], bl
push ecx
mov ecx, eax
call fcn.1809c72b
test eax, eax
js 0x18093706
cmp byte [ebp - 1], bl
jne 0x18093771
cmp edi, esi
jl 0x18093771
lea eax, [esi + 0xe10]
cmp edi, eax
jge 0x1809376f
cmp byte [ebp - 2], bl
jne 0x1809376f
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 4
mov edx, str.DisableUpdateAppsHourlyJitter
mov ecx, str.HKLMSoftwareGoogleUpdateDev_
call fcn.1800ffa8
add esp, 0xc
test eax, eax
js 0x18093741
cmp dword [ebp - 0xc], ebx
setne al
jmp 0x18093743
mov al, bl
test al, al
jne 0x1809376f
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
neg eax
push 0x64
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 0xc]
pop ecx
div ecx
cmp edx, 0x5a
setb bl
jmp 0x18093771
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18097c55
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x18195008]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.181237a0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18097cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18097d10
movzx eax, ax
or eax, 0x80070000
jmp 0x18097d10
lea ecx, [esp + 0x10]
call fcn.18006c4e
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800731f
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x18097d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18097d05
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.18006c77
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18120ca0
mov esp, ebp
pop ebp
ret

Function at 0x18097d55
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10814
call fcn.18143810
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x10814], esi
mov ecx, dword [edi]
call fcn.1800943d
test al, al
jne 0x18097d91
mov eax, 0x80070002
jmp 0x18097e8a
mov ecx, esi
call fcn.18011c85
push 0x10000
lea eax, [ebp - 0x10804]
push 0
push eax
call fcn.181237a0
add esp, 0xc
lea eax, [ebp - 0x10804]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x1080c], 0
mov dword [ebp - 0x10810], eax
test eax, eax
je 0x18097e88
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.181237a0
mov eax, dword [ebp - 0x1080c]
lea ecx, [ebp - 0x10804]
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10808]
call fcn.1800585a
push dword [edi]
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push dword [ebp - 0x10808]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10808]
mov ecx, esi
push eax
call fcn.18098d4f
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call fcn.1812b770
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.18005b15
mov eax, dword [ebp - 0x10808]
mov esi, dword [ebp - 0x1080c]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x1080c], esi
call fcn.18003435
cmp esi, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
jb 0x18097ddd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
Function at 0x18097e99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
push ebx
xor ebx, ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jne 0x18097eb9
xor eax, eax
inc eax
jmp 0x18097f99
push esi
mov edx, 0x18182b28
lea ecx, [ebp - 8]
call fcn.180084e6
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
jne 0x18097edb
call fcn.18011439
mov ebx, eax
jmp 0x18097f8e
push edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x18097f06
call fcn.18011439
mov ebx, eax
jmp 0x18097f8d
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call fcn.1800b09a
push dword [eax]
lea eax, [ebp - 4]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.1800dbf8
mov ecx, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18003435
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18097f6f
call fcn.18011439
mov ebx, eax
jmp 0x18097f7b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.18005802
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
lea ecx, [esi - 0x10]
call fcn.18003435
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x180987de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov bl, cl
push esi
push edi
test bl, bl
je 0x18098800
call fcn.18096c53
test al, al
je 0x18098800
mov eax, 0x80004005
jmp 0x18098930
xor esi, esi
mov dword [ebp - 0xc], 0x181741f8
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
mov cl, bl
call fcn.180983cd
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 4]
mov dword [ebp - 0x18], 0x181739c8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x200
call fcn.1809b5f0
mov eax, str.HKLMSoftwareGoogleUpdate_
test bl, bl
jne 0x18098843
mov eax, str.HKCUSoftwareGoogleUpdate_
push esi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1800fce8
mov edi, eax
test edi, edi
js 0x1809890e
push esi
push esi
push esi
push esi
push 0x1817cb2c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1809887c
mov edi, esi
jmp 0x1809890e
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
lea ecx, [ebp - 4]
call fcn.1800848d
mov esi, dword [ebp - 4]
test eax, eax
js 0x18098904
xor edi, edi
lea ecx, [ebp - 0x18]
inc edi
push edi
push esi
push 0x1817cb2c
call fcn.1801040f
test eax, eax
js 0x18098904
mov ecx, 0x18198198
call fcn.1801441f
lea ecx, [ebp - 0x18]
call fcn.18098787
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.18098149
test eax, eax
js 0x180988fa
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x180988fa
sub esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.1802976e
mov cl, bl
call fcn.1809842e
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 0x24]
call fcn.18009f23
jmp 0x18098906
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18003435
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x181739c8
call fcn.1800fc3d
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 8]
lea ecx, [ebp - 0xc]
call fcn.1800d545
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1809915f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x18099224
mov edi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.18002dd1
push eax
lea ecx, [esp + 0x18]
call fcn.18005b92
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.1800dbe3
lea ecx, [esp + 0x24]
call fcn.1800d9bb
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
add esp, 0xc
mov cl, bl
push eax
call fcn.180a339b
cmp byte [edi + 1], 0
pop ecx
pop ecx
je 0x1809920f
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.1800dbe3
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.1800d9bb
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.1800943d
test al, al
je 0x18099213
mov dl, byte [edi]
lea eax, [esp + 0x14]
push ecx
push eax
mov cl, bl
call fcn.180a339b
pop ecx
pop ecx
jmp 0x18099213
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x18099d93
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, ecx
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
push str.430FD4D0_B729_4F61_AA34_91526481799D
lea ecx, [ebp - 8]
call fcn.1800585a
mov cl, byte [esi]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
call fcn.180a0aa1
pop ecx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
lea ecx, [ebp - 4]
call fcn.18006c93
cmp edx, 0x10003
ja 0x18099df3
jb 0x18099de9
test eax, eax
jae 0x18099df3
mov ebx, 0x80004001
jmp 0x18099ee4
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.1800b09a
call fcn.18002dd1
push eax
lea ecx, [ebp + 8]
call fcn.18005b92
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.1800b996
push 0x1e
lea ecx, [ebp - 0x3c]
call fcn.1809cf51
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
mov edx, edi
push dword [edi - 0xc]
call fcn.1800b1bc
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.18005802
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1809d0b7
mov cl, byte [esi]
lea eax, [ebp + 8]
mov edx, dword [ebp - 8]
and dword [ebp + 8], 0
push eax
call fcn.180972eb
mov esi, dword [ebp + 8]
mov ebx, eax
pop ecx
test ebx, ebx
js 0x18099eb3
cmp dword [ebp + 0xc], 0
je 0x18099eb1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp + 0xc], 0
test eax, eax
jne 0x18099e9a
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x18099eaa
mov ebx, dword [ebp + 0xc]
jmp 0x18099eb3
cmp eax, 0x102
jne 0x18099eaa
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x80004005
jmp 0x18099eb3
xor ebx, ebx
test esi, esi
je 0x18099ebe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
lea ecx, [ebp - 0x3c]
call fcn.1809cfe9
lea ecx, [edi - 0x10]
call fcn.18003435
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18003435
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.18003435
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1809bb43
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
lea eax, [esp + 0x14]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x1c], esi
push 4
mov edx, str.LastCheckPeriodSec
mov ecx, str.HKLMSoftwareGoogleUpdateDev_
call fcn.1800ffa8
add esp, 0xc
test eax, eax
js 0x1809bb84
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [esp + 0x14]
jmp 0x1809bc59
mov eax, dword [edi + 8]
mov ebx, 0x80004005
mov ecx, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x10], esi
cmp eax, 8
jb 0x1809bc30
mov ecx, dword [ecx + esi*8]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x1809bbbc
mov eax, dword [edi + 8]
inc esi
mov ecx, dword [edi + 4]
sub eax, ecx
sar eax, 3
cmp esi, eax
jne 0x1809bb9e
jmp 0x1809bc30
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax + esi*8]
mov eax, dword [ecx]
call dword [eax + 0xc]
movzx ecx, byte [0x1819d65c]
mov ebx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1809bc30
push 7
pop eax
push 5
pop edx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
call fcn.18004986
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*8]
mov eax, dword [eax]
cmp dword [eax + 4], 0x1809adcf
mov eax, str.GroupPolicyManager
je 0x1809bc19
mov eax, str.DeviceManagement
push dword [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push str._GetLastCheckPeriodMinutes___s___d_
push eax
call fcn.18002f73
add esp, 0x10
mov eax, dword [ebp + 8]
shr ebx, 0x1f
xor bl, 1
mov byte [eax], bl
je 0x1809bd03
cmp dword [esp + 0x10], 0x4444444
jbe 0x1809bc50
or eax, 0xffffffff
jmp 0x1809bc55
imul eax, dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1809bca6
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1809bca2
push 5
push 7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 5
call fcn.18004986
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._GetLastCheckPeriodSec__0__policy_period_sec_
push eax
call fcn.18002f73
pop ecx
pop ecx
xor eax, eax
jmp 0x1809bd19
mov esi, SysReAllocString
cmp eax, esi
ja 0x1809bcb8
mov esi, eax
push 0x3c
pop eax
cmp esi, eax
jl 0x1809bd19
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1809bcff
push 5
push 7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 5
call fcn.18004986
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._GetLastCheckPeriodSec__period_sec___d_
push eax
call fcn.18002f73
add esp, 0xc
mov eax, esi
jmp 0x1809bd19
call fcn.1809c1d4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffc8b0
add eax, 0x4524
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1809bf5b
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 4
mov edx, str.AutoUpdateJitterMs
mov ecx, str.HKLMSoftwareGoogleUpdateDev_
call fcn.1800ffa8
add esp, 0xc
test eax, eax
js 0x1809bf93
mov eax, dword [ebp - 4]
cmp eax, 0xea60
jb 0x1809bfb8
mov eax, 0xea5f
leave
ret
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
mov ecx, 0xea60
neg eax
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 8]
div ecx
mov eax, edx
leave
ret

Function at 0x1809c1d4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.181237a0
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x1809c23b
push ebx
mov edx, str..google.com
lea ecx, [ebp - 0x204]
call fcn.1800b627
pop ecx
test al, al
jne 0x1809c280
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push esi
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x1809c276
cmp dword [esi + 8], eax
je 0x1809c276
push str.google
push dword [esi + 8]
call fcn.1812b867
pop ecx
pop ecx
test eax, eax
je 0x1809c278
xor bl, bl
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret