joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4199bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x422480]
push edi
jae 0x419b92
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4224a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x419b92
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x419a68
test dl, 2
jne 0x419a68
test dl, 0x48
je 0x419a32
cmp byte [eax + 5], 0xa
je 0x419a32
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419a7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x419a63
mov dword [0x421fac], ecx
jmp 0x419b99
cmp eax, 0x6d
jne 0x419a6f
xor eax, eax
jmp 0x419ba6
push eax
call fcn.00417fb8
pop ecx
jmp 0x419ba3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x419b8d
test eax, eax
je 0x419aa2
cmp byte [ebx], 0xa
jne 0x419aa2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x419aab
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x419b87
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x419b77
cmp al, 0xd
je 0x419add
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x419b69
dec ecx
cmp dword [ebp - 8], ecx
jae 0x419af7
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x419af2
add dword [ebp - 8], 2
jmp 0x419b4b
mov dword [ebp - 8], eax
jmp 0x419b65
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419b65
cmp dword [ebp - 0x10], 0
je 0x419b65
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x419b40
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x419b4b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x419b68
cmp ebx, dword [ebp + 0xc]
jne 0x419b50
cmp byte [ebp - 1], 0xa
jne 0x419b50
mov byte [ebx], 0xa
jmp 0x419b68
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416442
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x419b69
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x419ac1
jmp 0x419b87
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x419b87
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x419ba6
and dword [0x421fac], 0
mov dword [0x421fa8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aba2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00417f10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ac3d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x421fb4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41ac3d
cmp eax, 1
je 0x41ac5e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ac3d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41ac0a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41ac39
xor eax, eax
inc eax
jmp 0x41ac7d
cmp edi, eax
jae 0x41ac41
xor eax, eax
jmp 0x41ac7d
cmp eax, esi
jae 0x41ac48
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421fb4]
jmp 0x41ac61
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ac85
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00417f10
mov eax, dword [0x421140]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x422480]
mov dword [ebp - 4], eax
jae 0x41adc8
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4224a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x41adc8
push 1
push esi
push ebx
call fcn.00416442
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x41add2
push 2
push esi
push ebx
call fcn.00416442
add esp, 0xc
cmp eax, 0xffffffff
je 0x41add2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41ad72
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00418db0
push 0x8000
push ebx
call fcn.0041b099
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x41ad31
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0041431d
add esp, 0xc
cmp eax, 0xffffffff
je 0x41ad4f
sub edi, eax
test edi, edi
jg 0x41ad26
jmp 0x41ad65
cmp dword [0x421fac], 5
jne 0x41ad62
mov dword [0x421fa8], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0041b099
pop ecx
pop ecx
jmp 0x41adb2
jge 0x41adb2
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00416442
push ebx
call fcn.004196b1
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x41adb2
mov dword [0x421fa8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x421fac], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00416442
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41add5
mov dword [0x421fa8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00412dca
leave
ret
Function at 0x4010a0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
mov edi, eax
test edi, edi
je 0x401245
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x401245
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x401245
cmp dword [esp + 0x20], 0
je 0x401245
push esi
xor esi, esi
cmp ebx, 2
jbe 0x40117c
lea ebp, [esi + 4]
mov al, byte [edi]
mov cl, byte [edi + 1]
sub ebx, 3
mov dword [esp + 0x1c], ebx
mov bl, al
shr bl, 2
inc edi
mov dl, byte [edi + 1]
mov byte [esp + 0x14], bl
mov bl, cl
and al, 3
inc edi
shr bl, 4
and cl, 0xf
shl al, 4
add al, bl
add cl, cl
mov bl, dl
add cl, cl
shr bl, 6
and dl, 0x3f
inc edi
add cl, bl
mov byte [esp + 0x17], dl
cmp ebp, dword [esp + 0x24]
ja 0x40122c
movzx edx, byte [esp + 0x14]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [esp + 0x20]
mov byte [esi + ebx], dl
movzx eax, al
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], dl
movzx edx, byte [esp + 0x17]
inc esi
movzx eax, cl
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
inc ebp
mov byte [esi + ebx], cl
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ebp
inc esi
inc ebp
mov byte [esi + ebx], al
mov ebx, dword [esp + 0x1c]
inc esi
inc ebp
cmp ebx, 2
ja 0x4010e2
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x401226
xor al, al
xor cl, cl
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], al
mov byte [esp + 0x10], cl
test ebx, ebx
jbe 0x4011b0
push ebx
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0040e2b0
mov al, byte [esp + 0x1d]
mov cl, byte [esp + 0x1c]
add esp, 0xc
mov dl, cl
shr dl, 2
mov byte [esp + 0x14], dl
mov dl, al
and cl, 3
shr dl, 4
and al, 0xf
shl cl, 4
add cl, dl
mov dl, byte [esp + 0x12]
add al, al
shr dl, 6
add al, al
add al, dl
lea edx, [esi + 4]
cmp edx, dword [esp + 0x24]
jbe 0x4011eb
pop esi
pop edi
pop ebp
mov eax, 0xffffffff
pop ebx
add esp, 8
ret
movzx edx, byte [esp + 0x14]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [esi + ebp], dl
inc esi
cmp ebx, 1
jne 0x401214
mov byte [esi + ebp], 0x3d
jmp 0x401220
movzx eax, al
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp], cl
inc esi
mov byte [esi + ebp], 0x3d
inc esi
cmp esi, dword [esp + 0x24]
jb 0x401237
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov byte [esi + ebp], 0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x401f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418b60
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
push eax
lea esi, [esp + 0x30]
call fcn.00403c00
mov dword [esp + 0x1c], 0
mov edx, dword [0x4200ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4200ac
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, dword [esp + 0x30]
mov edi, 0x41afd0
call fcn.00403e00
push ebp
lea ecx, [esp + 0x2c]
call fcn.00402380
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0xc
Function at 0x402520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4200ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4200ac
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x28]
push eax
mov ecx, str.AllRuns
mov edi, str.value
call fcn.00403e00
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x41b018
call fcn.00405380
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
mov byte [esp + 0x30], 1
call fcn.004052c0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x4025df
or eax, 0xffffffff
jmp 0x402601
cmp dword [esi - 0xc], 0
jge 0x4025ea
or eax, 0xffffffff
jmp 0x402601
push eax
push esi
call fcn.0040d39a
add esp, 8
test eax, eax
jne 0x4025fd
or eax, 0xffffffff
jmp 0x402601
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40262d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x402670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4200ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4200ac
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x28]
push eax
mov ecx, str.AllDelayed
mov edi, str.value
call fcn.00403e00
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x41b018
call fcn.00405380
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
mov byte [esp + 0x30], 1
call fcn.004052c0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40271e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x40272f
or eax, 0xffffffff
jmp 0x402751
cmp dword [esi - 0xc], 0
jge 0x40273a
or eax, 0xffffffff
jmp 0x402751
push eax
push esi
call fcn.0040d39a
add esp, 8
test eax, eax
jne 0x40274d
or eax, 0xffffffff
jmp 0x402751
sub eax, esi
sar eax, 1
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40277d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x403c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x38], ebx
push ebp
mov dword [esp + 0x20], ebx
call fcn.004056f0
mov dword [esp + 0x38], ebx
mov eax, dword [0x4200ac]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x4200ac
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x40]
push eax
mov ecx, str.DelayedService
mov edi, 0x41af7c
call fcn.00403e00
test eax, eax
je 0x403dc0
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x41b0e8
call fcn.00404df0
push ebp
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x44], 2
call fcn.00401980
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
cmp dword [ebp + 0xc], eax
jbe 0x403d6c
call fcn.0040ced9
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp]
mov dword [esp + 0x20], ecx
cmp dword [ebp + 0xc], ebx
jbe 0x403d80
call fcn.0040ced9
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x403d90
call fcn.0040ced9
mov eax, dword [ebp]
push ebx
push edi
push esi
push eax
lea ebx, [esp + 0x38]
call fcn.00408120
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
add esp, 0x10
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebp
lea ebx, [esp + 0x34]
call fcn.00405800
xor ebx, ebx
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403de4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x404070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
cmp dword [0x420cb8], 0
jne 0x4040bd
mov eax, 1
mov dword [0x420cb8], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push 0x420cc0
lea ecx, [esp + 0xc]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x18], 0x800
call dword [0x419180]
push esi
mov ecx, 0x420cc0
call fcn.00404df0
mov eax, esi
add esp, 8
ret
Function at 0x4041c0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x418cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x404346
lea eax, [esp + 0x18]
push eax
call fcn.00401b90
lea ebx, [ebp + 4]
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, ebp
mov dword [esp + 0x38], 0
call fcn.00401f70
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4042f9
lea ecx, [esp + 0x14]
push ecx
mov eax, 4
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.004051a0
push eax
mov ecx, 0x41b1dc
call fcn.00405550
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40427c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x34], 0
je 0x4042cc
mov ecx, 4
lea esi, [esp + 0x34]
lea edx, [esp + 0x14]
call fcn.00405180
lea edi, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.00405e50
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
call fcn.00404360
mov eax, dword [ebp]
add esp, 0xc
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun360Disabled
push esi
call dword [0x419184]
lea edx, [esp + 0x18]
mov edi, ebx
push edx
mov ebx, ebp
call fcn.00402120
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40431e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x404360
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
call fcn.00404df0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
lea ecx, [edx + edx + 2]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
push 1
push eax
push ecx
push edx
call dword [0x41917c]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x404530
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x418c98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
call fcn.00401b90
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
xor ebp, ebp
push edx
mov dword [esp + 0x50], ebp
call fcn.00403c90
mov byte [esp + 0x48], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, edx
sub eax, ecx
sar eax, 2
xor esi, esi
cmp eax, ebp
jbe 0x40464d
mov edi, dword [0x41917c]
lea ebx, [ebp + 2]
cmp esi, eax
jb 0x4045aa
call fcn.0040ced9
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ecx + esi*4]
push eax
call fcn.00405460
add esp, 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.Start
mov byte [esp + 0x4c], bl
call fcn.00404df0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push eax
push ecx
push 0x80000002
mov dword [esp + 0x3c], ebx
call edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404610
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x4045aa
mov byte [esp + 0x48], 0
cmp ecx, ebp
je 0x404692
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x404689
mov edi, edi
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40467e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x404660
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040ca95
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.0040ca95
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4046d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret