joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa1b009
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0xa1b207
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0xa1b083
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0xa1b0c6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0xa1b0c6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0xa1b0ad
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.00a1adb7
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0xa1b0c6
mov ebx, eax
cmp ebx, 3
jb 0xa1b187
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.00a1a73e
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0xa1b154
cmp eax, 3
jb 0xa1b154
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0xa1b102
jmp 0xa1b1a7
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0xa1b1ad
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.00a1a73e
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0xa1b1e8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0xa1b1c6
lea edx, [ecx + esi + 0x1af70]
jmp 0xa1b1c8
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.00a1a5c1
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0xa1b1f9
call fcn.00a1aef8
cmp dword [esi + 0x6af90], 0
jne 0xa1b033
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0xa1b21a
lea edx, [ecx + esi + 0x1af70]
jmp 0xa1b21c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.00a1a5c1
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0xa1bdc4
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0xa1bdcf
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0xa1be83
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xa351a8]
add ecx, 8
sub edi, 8
dec esi
jne 0xa1bde6
pop ebx
test edi, edi
je 0xa1be9c
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0xa351a8]
inc ecx
dec edi
jne 0xa1be87
pop esi
not eax
pop edi
ret

Function at 0xa1bea1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0xa351a8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0xa351a8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0xa1c043
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0xa3c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
mov esi, edx
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], esi
call dword [0xa2f110]
test eax, eax
jne 0xa1c08b
mov eax, 0x200
jmp 0xa1c20f
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0xa1c0a1
mov dword [ebp - 0x3c], eax
test cl, 2
je 0xa1c0aa
or dword [ebp - 0x3c], 2
test cl, 4
je 0xa1c0b3
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0xa1c0be
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0xa1c0c7
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0xa1c0d4
or dword [ebp - 0x3c], 0x40000000
jmp 0xa1c0db
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0xa1c0ee
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [0xa2f0ec]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0xa1c192
mov esi, dword [0xa2f0f0]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [0xa2f068]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0xa1c18f
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0xa1c18f
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x58]
cmp eax, 0x5a4d
je 0xa1c188
cmp eax, 0x454e
je 0xa1c188
cmp eax, 0x454c
je 0xa1c188
cmp eax, 0x4550
jne 0xa1c18f
or dword [ebp - 0x3c], 0x400000
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0xa1c19e
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0xa1c1aa
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp esi, ebx
je 0xa1c1e3
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00a1bfb8
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
mov dword [esi + 4], edx
call fcn.00a1bfb8
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push dword [ebp - 0x34]
mov dword [esi + 0xc], edx
call fcn.00a1bfb8
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp dword [ebp - 0x4c], ebx
je 0xa1c20d
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.00a1bfdc
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a1d6e4
leave
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x7ffe5320
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
xor eax, ecx
xor eax, ecx
inc esi
dec esi
pushf
popf
inc esi
dec esi
xor eax, ecx
xor eax, ecx
inc esi
dec esi
pushf
popf
push es
pop ds
not eax
not eax
and al, 0xff
xor eax, ecx
xor eax, ecx
inc esi
dec esi
pushf
popf
push eax
pop eax
not eax
not eax
push es
pop ds
add al, 4
sub al, 4
and al, 0xff
push bx
inc esp
inc esp
push eax
pop eax
pushf
popf
push es
pop ds
xor eax, ecx
xor eax, ecx
push eax
pop eax
pushf
popf
add al, 0
pushf
popf
push eax
pop eax
add al, 4
sub al, 4
inc esi
dec esi
push bx
inc esp
inc esp
inc esi
dec esi
pushf
popf
push eax
pop eax
push bx
inc esp
inc esp
add al, 0
not eax
not eax
push eax
pop eax
xor eax, ecx
xor eax, ecx
inc esi
dec esi
push bx
inc esp
inc esp
and al, 0xff
pushal
inc eax
popal
call 0x7ffe53ac
pop edx
and al, 0xff
push bx
inc esp
inc esp
push es
pop ds
inc esi
dec esi
xor dx, dx
add al, 0
add al, 4
sub al, 4
cld
add edx, 0xd5e0
push bx
inc esp
inc esp
push eax
pop eax
not eax
not eax
add al, 0
xor ecx, ecx
push bx
inc esp
inc esp
stc
mov cl, 0x1e
xor eax, ecx
xor eax, ecx
add al, 0
not eax
not eax
inc esi
dec esi
xor byte [ecx + edx], 0x95
loop 0x7ffe53e8
lea esp, [esp]
push dword fs:[0x24]
and al, 0xff
add al, 4
sub al, 4
inc esi
dec esi
pushf
popf
pop dword [edx + 0xa]
push eax
pop eax
pushf
popf
cld
mov cl, 0xff
pushf
popf
push eax
pop eax
push edx
loop 0x7ffe5416
xor eax, ecx
xor eax, ecx
add al, 0
add al, 0
cld
mov dword [edx + 0x11], 0xffffacbb
push bx
inc esp
inc esp
push eax
pop eax
mov ecx, dword [eax + 0x2c]
add al, 4
sub al, 4
and al, 0xff
pushf
popf
stc
push eax
pop eax
mov dword [edx + 0x1b], ecx
inc esi
dec esi
push bx
inc esp
inc esp
inc esi
dec esi
push bx
inc esp
inc esp
mov dword [edx + 0x100], ecx
push es
pop ds
push eax
pop eax
nop
mov dword [eax + 0x2c], esp
add al, 4
sub al, 4
push es
pop ds
inc esi
dec esi
push 0
push eax
pop eax
push bx
inc esp
inc esp
add al, 0
and al, 0xff
cld
push 0
not eax
not eax
push es
pop ds
add al, 4
sub al, 4
push 0
push eax
pop eax
push bx
inc esp
inc esp
add al, 0
cld
push 0
push eax
pop eax
xor eax, ecx
xor eax, ecx
inc esi
dec esi
pushf
popf
push 0x30
add al, 0
cld
push 0x20
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push 0
push eax
pop eax
xor eax, ecx
xor eax, ecx
cld
push 0
push bx
inc esp
inc esp
push es
pop ds
inc esi
dec esi
add edx, 0xffff7f31
push es
pop ds
push bx
inc esp
inc esp
push es
pop ds
cld
push edx
add al, 0
not eax
not eax
push edx
inc esi
dec esi
cld
push eax
pop eax
push 0
xor eax, ecx
xor eax, ecx
call dword [edx + 0x8212]
push es
pop ds
pushf
popf
push es
pop ds
pushf
popf
nop
add esp, 0x3f8
push eax
pop eax
xor eax, eax
push es
pop ds
xor eax, ecx
xor eax, ecx
push eax
pop eax
clc
push es
pop ds
inc eax
xor eax, ecx
xor eax, ecx
push eax
pop eax
ret 0xc
Function at 0x401c30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
push 0
push 2
mov dword [ebp], 0
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401cad
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401cad
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401ca6
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x34]
push edx
push edi
call ebx
test eax, eax
je 0x401cba
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401c8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ebp], ecx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret

Function at 0x401ce0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20028
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x24]
push eax
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
je 0x401d67
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
add esp, 0x1c
ret
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x401d70
Capabilities:
Check if file exists
Copy file
Delete file
Query or enumerate registry value

Disassembly:
mov eax, dword [0x409db0]
sub esp, 0x41c
push edi
push str.GoogleUpdate
push eax
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x401d98
xor eax, eax
pop edi
add esp, 0x41c
ret
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push edx
push eax
push 1
push eax
push eax
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401de4
mov eax, 1
pop edi
add esp, 0x41c
ret
push ebx
push ebp
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x224]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x1c]
push str.GoogleUpdateGoogleUpdate.exe
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401ec1
lea eax, [esp + 0x10]
push eax
push str.GoogleUpdate.exe
call fcn.00401c30
add esp, 8
test eax, eax
je 0x401ea2
push 0xfa
call esi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00401ce0
add esp, 4
push 0xfa
call esi
lea edx, [esp + 0x10]
push edx
push str.GoogleUpdate.exe
call fcn.00401c30
add esp, 8
test eax, eax
jne 0x401e71
lea eax, [esp + 0x1c]
push eax
call ebp
mov edx, dword [0x408848]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401f09
lea eax, [esp + 0x224]
push str.clFlow
push eax
xor edi, edi
call ebx
push edi
push 0x20
push 2
push edi
push edi
lea ecx, [esp + 0x238]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401f0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call esi
lea edx, [esp + 0x224]
push edx
call ebp
mov edi, 1
pop esi
pop ebp
mov eax, edi
pop ebx
pop edi
add esp, 0x41c
ret
Function at 0x401f20
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40205c
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push 0x40873c
push edx
push eax
mov eax, dword [esp + 0x18]
push str.Common_AppData
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402051
push edi
or ecx, 0xffffffff
mov edi, 0x40873c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x408954
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40873c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x408634
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40873c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x409dd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40873c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x5c
mov dword [esp + 8], ecx
mov esi, 1
mov byte [ecx + 0x408954], al
mov byte [ecx + 0x408634], al
mov byte [ecx + 0x409dd8], al
mov dword [ecx + 0x408955], 0x2e6d6461
mov dword [ecx + 0x408635], 0x2e726964
mov dword [ecx + 0x409dd9], 0x2e72696c
mov dword [ecx + 0x408959], 0x69666132
mov dword [ecx + 0x408639], 0x69666133
mov dword [ecx + 0x409ddd], 0x73746162
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x402070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov ecx, dword [0x408b78]
push ebx
push esi
push edi
and eax, 0xffff
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40209e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x408b78]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x4020c1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x408b78]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
sub ebx, 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 8], eax
and ecx, 3
mov dword [ebp - 0xc], ebx
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + ebx]
mov ecx, 8
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edi, edi
xor ecx, ecx
mov cl, byte [ebp + esi - 0x2c]
add edi, ecx
inc esi
cmp esi, 0x20
jb 0x40210c
test edi, edi
je 0x40213f
xor edx, edx
xor esi, esi
test ebx, ebx
jbe 0x40213f
mov cl, byte [ebp + esi - 0x2c]
xor cl, byte [edx + eax]
xor cl, dl
inc esi
cmp esi, 0x10
mov byte [edx + eax], cl
jne 0x40213a
xor esi, esi
inc edx
cmp edx, ebx
jb 0x402126
mov eax, dword [eax]
mov dword [ebp + 8], eax
add eax, 0x100
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call section..text
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [edx], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret