joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404131
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040305b
xor ebx, ebx
cmp dword [0x410704], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404206
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404171
xor eax, eax
jmp 0x4042ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40416a
push eax
call fcn.00402ff8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410704], eax
call esi
push eax
call fcn.00402ff8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410708], eax
call esi
push eax
call fcn.00402ff8
mov dword [0x41070c], eax
lea eax, [ebp - 8]
push eax
call fcn.004022b1
test eax, eax
pop ecx
pop ecx
je 0x4041d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a23
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404206
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402ff8
cmp eax, ebx
pop ecx
mov dword [0x410714], eax
je 0x404206
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ff8
pop ecx
mov dword [0x410710], eax
mov eax, dword [0x410710]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40427f
cmp dword [0x410714], esi
je 0x40427f
push eax
call fcn.00403064
pop ecx
call eax
cmp eax, ebx
je 0x40424c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x410714]
call fcn.00403064
pop ecx
call eax
test eax, eax
je 0x40424c
test byte [ebp - 0x18], 1
jne 0x40427f
lea eax, [ebp - 0xc]
push eax
call fcn.004022e8
test eax, eax
pop ecx
je 0x404267
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a23
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404276
or dword [ebp + 0x10], 0x200000
jmp 0x4042b0
or dword [ebp + 0x10], 0x40000
jmp 0x4042b0
mov eax, dword [0x410708]
cmp eax, esi
je 0x4042b0
push eax
call fcn.00403064
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4042b0
mov eax, dword [0x41070c]
cmp eax, esi
je 0x4042b0
push dword [ebp - 4]
push eax
call fcn.00403064
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x410704]
call fcn.00403064
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408610
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [0x49c01c]
mov esp, ebp
pop ebp
ret 4

Function at 0x408640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 0
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
call dword [0x49c014]
test eax, eax
jne 0x4086b4
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x408699
cmp ecx, 3
jne 0x4086af
cmp dword [esp + 8], 4
jne 0x4086af
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x4086c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004824e0
mov eax, dword [0x4f8d30]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x18], 0
push eax
mov eax, dword [ecx]
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x800
call dword [0x49c014]
mov esi, eax
test esi, esi
jne 0x4087da
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x408767
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408733
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004089a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x4087d5
push 0x400
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x18]
push eax
call dword [0x49c0ec]
mov dword [esp + 8], eax
test eax, eax
je 0x4087ba
cmp eax, 0x400
ja 0x4087ba
lea ecx, [esp + 0x810]
push ecx
mov ecx, edi
call fcn.00408970
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret 8

Function at 0x4087f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
jmp 0x408810
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408810
mov edx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [section..rdata]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x408840
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
call dword [0x49c020]
test eax, eax
jne 0x40888a
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [0x49c018]
mov ecx, dword [esi]
test eax, eax
je 0x40889f
push ecx
call dword [0x49c028]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x4088d3
test eax, eax
js 0x4088d3
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [0x49c024]
test eax, eax
je 0x4088d9
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40b8c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4f8d30]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
lea edx, [esp + 8]
xor esi, esi
mov dword [esp + 4], esi
push edx
xor eax, eax
push 3
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], esi
mov word [esp + 0x10], ax
call fcn.00403b40
add esp, 8
cmp dword [esp + 0x18], esi
je 0x40b938
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
jae 0x40b916
lea eax, [esp + 8]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 4]
mov esi, eax
push edx
push edi
mov ecx, esi
call fcn.0040abc0
push esi
call dword [0x49c0c8]
cmp dword [esp + 0x1c], 8
jb 0x40b94c
mov eax, dword [esp + 8]
push eax
call fcn.0047d6df
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret

Function at 0x40de70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
push esi
jb 0x40de83
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
push ebx
call dword [0x49c384]
mov esi, eax
test esi, esi
jne 0x40de9a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call fcn.0047f35b
mov edi, eax
add esp, 8
test edi, edi
je 0x40df11
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call dword [0x49c388]
test eax, eax
je 0x40df08
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x4f2490
push edi
mov dword [ebp + 8], 0
call dword [0x49c38c]
test eax, eax
je 0x40df08
cmp dword [ebp + 8], 0
je 0x40df08
push 0x14
call fcn.0047e0c9
mov esi, eax
add esp, 4
test esi, esi
je 0x40df11
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
call fcn.0040dcb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0047e08f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410990
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x4f8d30]
xor eax, esp
mov dword [esp + 0x178], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
call fcn.004103f0
call fcn.00410310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x17c]
pop esi
xor ecx, esp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
Function at 0x416af0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push esi
push edi
xor edi, edi
push 0x44
mov esi, eax
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x18], edi
call fcn.0047e160
add esp, 0xc
cmp byte [esi + 8], 0
mov dword [esp + 0x20], 0x44
je 0x416b29
mov dword [esp + 0x28], 0x4e850c
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [esp + 0x4c], 1
setne cl
dec ecx
and ecx, 5
mov word [esp + 0x50], cx
cmp dword [esi + 0xc], edi
je 0x416b4c
mov edi, 0x1000004
cmp byte [esi + 0x10], 0
je 0x416b58
or edi, 0x1000000
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x416c3b
push 0
push eax
lea edx, [esp + 0x14]
push edx
or edi, 0x400
mov dword [esp + 0x18], 0
call dword [0x49c378]
test eax, eax
jne 0x416bc6
mov eax, dword [esp + 0x14]
mov esi, dword [0x49c318]
test eax, eax
je 0x416baa
push eax
call esi
test eax, eax
je 0x416bc1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416cb2
push eax
call esi
test eax, eax
jne 0x416cb2
call fcn.004138f0
cmp dword [ebx + 0x14], 8
jb 0x416bd0
mov eax, dword [ebx]
jmp 0x416bd2
mov eax, ebx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
movzx edx, byte [esi + 2]
push 0
push ecx
push edi
push edx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [0x49c038]
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call dword [0x49c37c]
test edi, edi
jne 0x416c6c
mov eax, dword [esp + 0x14]
mov esi, dword [0x49c318]
test eax, eax
je 0x416c20
push eax
call esi
test eax, eax
je 0x416bc1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416cb2
push eax
call esi
test eax, eax
je 0x416bc1
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], 8
jb 0x416c45
mov eax, dword [ebx]
jmp 0x416c47
mov eax, ebx
lea edx, [esp + 0x10]
push edx
movzx edx, byte [esi + 2]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push edx
push 0
push 0
push eax
push 0
call dword [0x49c314]
test eax, eax
jmp 0x416c09
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
je 0x416cc5
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [0x49c174]
test eax, eax
jne 0x416cba
mov eax, dword [esp + 0x10]
push 1
push eax
mov esi, eax
call dword [0x49c324]
test eax, eax
setne al
test al, al
je 0x416ca9
push 0xea60
push esi
call dword [0x49c0a8]
lea ecx, [esp + 0x10]
call fcn.0041f070
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
call dword [0x49c184]
cmp byte [esi], 0
je 0x416cd7
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [0x49c0a8]
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x416cec
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov esi, dword [0x49c318]
cmp eax, edi
je 0x416d05
push eax
call esi
test eax, eax
je 0x416bc1
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x416d18
push eax
call esi
test eax, eax
je 0x416bc1
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004824e0
mov eax, dword [0x4f8d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00413e40
mov esi, eax
test esi, esi
jne 0x416eac
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10008]
push 1
push eax
call fcn.004816f5
add esp, 0x10
test eax, eax
je 0x416ef5
test edi, edi
je 0x416eda
push eax
lea ecx, [ebp - 0x10008]
push ecx
mov ecx, edi
call fcn.00406b00
push esi
push 0x10000
lea edx, [ebp - 0x10008]
push 1
push edx
call fcn.004816f5
add esp, 0x10
test eax, eax
jne 0x416ec7
push esi
call fcn.004819eb
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
Function at 0x4178f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f8d30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x417a2a
cmp byte [edi + 0x49], bl
je 0x417a2a
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x417938
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x41795a
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, eax
cmp ebx, 0x10
jae 0x417970
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4179af
dec eax
je 0x4179b3
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x417a12
call fcn.00401980
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x4179c3
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x4179ec
cmp ebx, 0x10
jae 0x4179d2
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00481904
add esp, 0x10
cmp esi, eax
jne 0x417a0a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x417a0f
test esi, esi
jne 0x417964
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00402d10
jmp 0x41795e
lea ecx, [ebp - 0x20]
jmp 0x417997
lea ecx, [ebp - 0x20]
call fcn.00401980
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0047e30d
mov esp, ebp
pop ebp
ret
Function at 0x4223c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x422410
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x422410
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4223fa
add ecx, edx
cmp ecx, ebx
ja 0x42240a
mov ebx, dword [eax + 8]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
ja 0x422412
inc edi
add esi, 0x28
jmp 0x4223d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4225d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4225e7
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [edi]
mov edx, dword [edx]
push esi
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x42268c
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x42261f
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [esi + 0x18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x42268c
jmp 0x422643
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [edi]
mov edx, dword [edx]
sar eax, 1
lea esi, [ebx + eax*4]
mov eax, dword [esi]
push eax
mov ecx, edi
call edx
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x422671
cmp dl, byte [eax]
jne 0x422671
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x422664
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x422696
test eax, eax
jle 0x422684
lea ebx, [esi + 4]
jmp 0x422687
mov dword [ebp - 4], esi
cmp ebx, dword [ebp - 4]
jne 0x422640
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [ebx + 0x10]
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4226d0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4226e0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4226dd
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4226dd
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret
Function at 0x4251c4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f8d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x24], eax
call fcn.0042707d
movzx eax, al
pop ecx
neg eax
sbb eax, eax
push 1
add eax, 0x80000002
push edi
push eax
lea ecx, [ebp - 0x2c]
xor bl, bl
call fcn.00408430
cmp dword [ebp - 0x2c], 0
je 0x425273
push esi
lea ecx, [ebp - 0x20]
call fcn.00409480
push str.new_chrome.exe
lea ecx, [ebp - 0x20]
call fcn.0040cb40
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x42522c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42524f
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x49d6cc
call fcn.004086c0
test eax, eax
jne 0x42524f
mov bl, 1
jmp 0x425267
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x49d78c
call fcn.004086c0
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00402b00
lea ecx, [ebp - 0x2c]
call fcn.004085e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0047e30d
leave
ret

Function at 0x426194
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
add ecx, ecx
cmp dword [eax + 0x14], 8
jb 0x4261a7
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x4261b2
mov edx, dword [edx]
push ecx
push eax
push 1
push 0
push edx
push dword [ebp + 8]
call dword [section..rdata]
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x42707d
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f8d30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x248], esi
call fcn.0047e160
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x427149
xor eax, eax
mov word [ebp - 0x228], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], esi
call fcn.00408970
push edi
lea ecx, [ebp - 0x244]
call fcn.00409480
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00401820
add esp, 0xc
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x244]
inc bl
call fcn.00402b00
push esi
push 1
lea ecx, [ebp - 0x228]
call fcn.00402b00
mov al, bl
pop ebx
jmp 0x42714b
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047e30d
leave
ret
Function at 0x42cb62
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 0x49f638
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 0xc], ebx
push 0x4f17c4
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x42cb9d
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x42cb99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x42cc18
push esi
mov esi, dword [ebp - 8]
push 0x49f648
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.00418220
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00418240
cmp esi, ebx
pop esi
jge 0x42cbe2
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x42cb8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x42cb8c
cmp byte [ebp + 8], bl
je 0x42cbfe
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x42cbd3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x42cc16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
pop ebx
leave
ret