joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5017e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x501886
push ebx
push esi
call fcn.005017b2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004fdccc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x501833
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x501885
push edi
push eax
call fcn.004fbd39
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x501853
call fcn.004fbcff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x501884
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004fdccc
add esp, 0x20
test eax, eax
jne 0x501872
push edi
call fcn.004fbcff
jmp 0x50187a
push ebx
call fcn.004fbcff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x507717
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507693
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x50788f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x50788f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x50783e
jg 0x507770
test eax, eax
je 0x507834
push 1
push 0x1000
call fcn.004fcf49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x507796
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x50782b
push 0x8000
push ebx
call fcn.004f8a25
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5077c2
jg 0x5077bd
cmp ecx, 0x1000
jb 0x5077c2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004fa010
add esp, 0x10
cmp eax, 0xffffffff
je 0x507807
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5077bd
jl 0x5077ee
test ecx, ecx
jne 0x5077af
push dword [ebp - 0xc]
push ebx
call fcn.004f8a25
push esi
call fcn.004fbcff
add esp, 0xc
xor edi, edi
jmp 0x5078a0
cmp byte [edi + 0x24], 0
je 0x50781e
cmp dword [edi + 0x20], 5
jne 0x50781e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x507829
mov edi, dword [edi + 0x18]
jmp 0x50782b
xor edi, edi
push esi
call fcn.004fbcff
pop ecx
jmp 0x5078a0
test ecx, ecx
jg 0x507800
jl 0x50783e
test eax, eax
jae 0x507800
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fbb7c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x507861
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x507800
jmp 0x507898
push ebx
call fcn.00501fdb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x507800
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5078a0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x50789d
mov edi, dword [edi + 0x18]
jmp 0x5078a0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004fbb7c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x507d70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x507d9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x507d9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x427dff
Capabilities:
Encode data using xor

Disassembly:
or dword [edx + ebp*4 + 0x6673b88a], ebx
std
mov byte [ebx + 0x6eb3b344], cl
nop
xchg ebx, eax
test dword [edi - 0x37], ebp
jno fcn.00427dff
inc ebp
movsb byte es:[edi], byte [esi]
adc dword [ebp + ebp - 0x4c], ebp
jg 0x427e85
push cs
ljmp 0xed3
or eax, 0x925337fe
mov al, 0x2c
arpl word [esi], sp
popfd
dec eax
outsd dx, dword [esi]
sar byte [eax - 0x19497f54], cl
les ebx, [ebp + 0x19]
daa
sbb dl, byte [edi]
pop es
adc edx, ebx
pop ecx
xlatb
push es
inc eax
rcl byte ss:[edi + 0x16e28faa], cl
invalid

Function at 0x4b984f
Capabilities:
Encode data using xor

Disassembly:
bound eax, qword [ebx + 0x15]
pop ecx
sub dword [ebp + 0x33f9b533], edi
adc esi, dword [ecx - 0x704c9863]
insb byte es:[edi], dx
movsd dword es:[edi], dword [esi]
enter 0xffffffffffffbd76, 0x57
xor esi, dword [esi]
and ecx, dword [esi + ebp - 0x61]
xor edi, dword [ecx + 0x76]
jo 0x4b9868
test dword [esi + 0x15], ebx
enter 0x4672, 0x45
mov dword [0x8204b94e], eax
mov ah, 0xd2
add al, 0x4b
cdq
jo 0x4b9854
mov byte [0x45143d39], al
dec ebp
inc esp
jle 0x4b98cd
adc edx, dword [ecx - 0x2f]
iretd
add dword [eax + 0x10b92933], ecx
aam 0xd8
mov dl, 0xd0
mov edx, 0xfbb024c8
sar byte [edx - 0x44fdb38], 1
add ah, dh
je 0x4b98d6
jmp 0xc270fceb

Function at 0x4c7738
Capabilities:
Encode data using xor

Disassembly:
loop 0x4c779b
call [edi - 0x79b1ee9b]
fmulp st(6)
sub al, 0xf9
invalid
invalid

Function at 0x50da23
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
push esp
inc ecx
ljmp 0x913e

Function at 0x558a73
Capabilities:
Encode data using xor

Disassembly:
dec eax
and dl, byte [eax - 0x467a3412]
push ss
invalid
add esp, dword [edx - 0x33401207]
jns 0x558a4e
push edi
jae 0x558aca
retf
and al, byte [edi]
push ebp
push es
or al, 0x77
out dx, al
pop esi
add bl, byte [eax + 0x51]
jg 0x558a0b
xchg ebp, eax
jmp 0x558a45
mov ecx, 0x669267e6
outsd dx, dword [esi]
inc esi
arpl di, ax
insd dword es:[edi], dx
in al, dx
test ecx, edx
xor dword [edi + 0x1906fa5e], 0xffffffb2
jecxz 0x558a6c
sbb edi, ebp
mov al, 0x17
pop ss
mov ebx, 0x99067a7a
sal dword [ebp - 0x5a12d53f], 0xbd
xlatb
mov bh, 0xfa
cmpsb byte [esi], byte es:[edi]
mov ch, 0xc1
sub ch, ch
movsd dword es:[edi], dword [esi]
mov ebp, 0xa6fab7d7
fcomp dword [ebp - 1]
sahf
sub edi, dword [ebp - 0x1fd0afd5]
stc
outsb dx, byte [esi]
test dword [esi - 0x33], 0x9030615e
jp 0x558b0b
fsubr st(1), st(0)
insb byte es:[edi], dx
add ah, cl
mov dl, ah
cmpsd dword [esi], dword es:[edi]
jne 0x558ad1
scasb al, byte es:[edi]
or ebx, dword [ebp - 0x42a0b23d]
pop es
jle 0x558b1c
inc ebp
sub al, 0x75
sbb cl, byte [0xfd3bd8ca]
cmp edi, ebp
xchg ebx, eax
int 0xb9
push ecx
push ds
mov edi, 0xa1746f95
out 0x81, eax
jl 0x558ab1
daa
dec ecx
aam 0x67
cmp dh, byte [eax + 0x1ebfe6c]
xlatb
sal byte [ebp + 2], 1
or byte [esi], ch
stosb byte es:[edi], al
rcl byte [eax - 0x2a728872]
sal dword [edi - 0x59363aa3], cl
mov esi, 0xa1c0cdb5
mov ch, 0x53
invalid
Function at 0x55b265
Capabilities:
Encode data using xor

Disassembly:
fsub dword [edx + 0x302d076a]
push 0xffffffffffffffd2
mov ch, 0x2e
fisttp qword [esp + ecx*8 - 0x4541a53a]
push es
lcall 0x4b5e, 0xa50d3fec
xor byte [ebp + 0x53], 0x68
inc esp
fdivr qword [esi - 9]
dec esp
push cs
invalid

Function at 0x5ec6b7
Capabilities:
Encode data using xor

Disassembly:
fmul dword [edx + 0x513a7efb]
or eax, 0xedef72fa
sar byte [ebp + 0xe], cl
cdq
xor eax, 0x40f0385d
loop 0x5ec6f5
push esp
inc edx
stc
inc edx
xchg ecx, eax
inc eax
sub eax, 0x206b53cb
rcl byte [edx - 0xf991bb0]
stc
invalid
invalid
test byte ds:[edi + 0x7ab25fcf], bh
and byte [eax + edx + 0x7c], bh
bsr edx, dword [eax]
ja 0x5ec689
scasb al, byte es:[edi]
jo 0x5ec66f
imul ebx, esi, 0x2a
lahf
jo 0x5ec6f8
pushfd
sbb ebx, dword [edx - 0x49]
mov edi, 0xb30cac1c
mov ecx, 0x70a6a4be
xchg ecx, eax
jge 0x5ec6fc
xchg byte [eax], bl
je 0x5ec74e
lodsb al, byte [esi]
bound edi, qword [edx]
int1
fst qword [esi + edi + 0x2bbe124c]
sar ebp, 1
aaa
sbb eax, 0xa97f2f4d
das
jg 0x5ec6a1
mov al, 0x31
iretd
dec dword [ebx + edi*8]
invalid
cmp byte [esi], cl
insd dword es:[edi], dx
out dx, al
push edi
adc dword [ebx - 0x53], edi
sub dword [esi], eax
push cs
mov ch, 0x51
xor byte [ebx], ah
pushfd
daa
cmp byte [ebp + 0x4b3bb020], 0xfe
out 0x27, al
and byte [eax - 0x1901b4c5], dh
daa
xor byte [eax], 0x77
xlatb
clc
aas
jp 0x5ec748
in al, dx
adc al, ch
sbb edi, dword [ecx - 0x11]
popal
out dx, eax
nop
cmp dword [edi], 0xca82dc55
jo 0x5ec73b
lahf
or eax, 0x8f806860
fidivr word [edx]
pop edi
invalid

Function at 0x637552
Capabilities:
Encode data using xor

Disassembly:
test al, 0xa8
ficomp dword [eax + 0x3331dffb]
pushfd
sbb byte [eax + esi*2 + 0x49], 0xb7
test al, 0xda
cwde
sti
fbstp tbyte [ecx]
xor ebx, dword [eax + eax*4 - 0x48b68fa4]
push cs
mov dword [ebp - 0x201ec321], 0x3400cc0c
salc
or eax, 0x26e01d37
xchg ebx, eax
xor al, 0x8c
sahf
cmp al, 0xe9
jge 0x6374f8
jo 0x63753e
int3
test al, 0xa6
invalid
or byte [edi + 0x6d8a3cfd], ah
das
jmp 0x6374f7

Function at 0x639b07
Capabilities:
Encode data using xor

Disassembly:
and dword [edx + 0x26eb43ef], 0xffffff92
xchg edx, eax
or al, 0x45
jge 0x639a11
sub eax, 0xe25142b0
je 0x639a6a
adc byte [ebx + 0x7d14bc02], cl
stosb byte es:[edi], al
xor byte [esi], dh
mov cl, 0xa5
lcall 0x3f8f, 0x3c2c30e2
rol dword [ebx - 0x74], 0xc6
test eax, 0xf420bba6
aam 0x86
int3
mov edx, 0x6c927f6b
or ebp, dword [0xd5ec2c03]
mov al, 0xa
and byte [edx - 0x1e], al
hlt
jle 0x639a64
lcall 0x920c, 0xe7934d97
cld
invalid
jp 0x639aa0
imul eax, dword [esp + edi*2], 0xa63baec2
jae 0x639a95
in eax, dx
loopne 0x639ad1
adc bh, bh
xor byte [eax - 0x619b0f4f], bh
sub eax, 0x89a271e1
int3
Function at 0x42f230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pop ebp
fcmovne st(0), st(1)
in al, 0x8c
push 0xed0d4c37
or eax, 0x664ca6ed
scasb al, byte es:[edi]
in al, dx
jg 0x42f276
push ebp
adc al, 0xe2
push edi
jecxz 0x42f266
push esp
int 0x20
and dl, bl
pop ecx
invalid
jecxz 0x42f26d
cmp ah, byte [edi - 0x3b869558]
sahf

Function at 0x45d318
Capabilities:
Encode data using xor

Disassembly:
xor byte [ecx], dh
sbb ch, byte [eax + ebp - 0x2e53bf9e]
sal dword [edx - 0xb], 1
add byte [edx + ecx + 0x7a13f7f0], bh
adc dword [edx + 0x4c], esi
push ebp
fprem1
cmc
Function at 0x4747a4
Capabilities:
Encode data using xor

Disassembly:
int 0xe
sub eax, 0xa8dc6b6a
push 0x6b
invalid
test al, 0x8f
cwde
ret 0x8083
js 0x474791
retf 0xd874
std
push ss
sub eax, 0xb2dd9a06
mov dl, 0x46
cmp edx, dword [edi]
pushfd
js 0x474757
imul edi, dword [esi], 0x73
nop
xchg edi, eax
xor al, ah
xor dl, byte [ecx + 0x11c36f9c]
pushfd
outsd dx, dword [esi]
ret
adc dword [ecx + 0x787efb82], eax
js 0x47476d
mov dl, 0x69
push ds
pop ecx
jle 0x4747d1
adc esi, dword [edx + 0x6c591e69]
insb byte es:[edi], dx
fld xword [edx + 0x49]
sti
lea edx, [eax - 0x783ff117]
jg 0x47474b
and eax, 0x1b6a4a02
ja 0x47470d
push 0x16
mov dh, 0x58
sbb dword [ecx + 0x17], 0xaec35983
jb 0x4747d3
jp 0x474727
stosb byte es:[edi], al
outsb dx, byte [esi]
ror eax, cl
jmp edx
enter 0xffffffffffffe2ff, 0xffffffffffffff89
cmp bl, byte [ecx]
mov ds, word [ecx - 0x65]
wait
push esi
js 0x474808
xchg esp, eax
jno 0x47471a
adc al, al
pushal
dec ecx
out 0xef, eax
xchg edi, eax
or esp, ecx
adc al, 0x59
mov byte [0xb0078779], al
scasb al, byte es:[edi]
sbb eax, 0x50783a29
imul edi, dword [ebx], 0xb6075faa
jno 0x47473a
mov dh, 0x71
xor ebp, 0x7183e2e5
cmpsd dword [esi], dword es:[edi]
add ch, byte [ebx]
pop edi
retf
cmc
in eax, 0xe2
xor dword [ecx - 0x59], 2
sub ebx, dword [edi - 0x35]
ficomp word [ecx]
ja 0x474784
imul ecx, dword [eax + 0x66], 0x53
enter 0x30b6, 0xffffffffffffffa2
push eax
fst dword [edx + 0x14d56e92]
xchg edx, eax
xchg edx, eax
outsb dx, byte [esi]
aad 0x14
push cs
sal dword [esi + ebx - 0x3a184928], cl
or bl, byte [ecx]
sbb bl, byte [edx + 0xd64025b]
dec edx
adc ebp, dword [ebx]
jne 0x474863
push 0xe0450113
sti
in al, dx
int1
test al, 0xe4
test ah, cl
cmp byte [edi - 0x7d61a81c], dh
jl 0x4747b6
sbb dword [ebp + ebp*2], esp
or byte [edx], dh
test eax, 0x6ac0aec2
mov dl, bh
cli
scasb al, byte es:[edi]
shr byte [edx - 0x78], 0xfa
cli
inc dword [ebp - 0xc]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov al, byte [edx + eax + 0x13d]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, 5
movzx eax, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov al, byte [edx + eax + 0x13d]
mov edx, dword [ebp + 8]
mov byte [edx], al
inc dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 3
movzx eax, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov al, byte [edx + eax + 0x13d]
mov edx, dword [ebp + 8]
mov byte [edx], al
inc dword [ebp + 8]
mov eax, dword [ebp - 8]
inc eax
movzx eax, byte [eax]
add bh, bh
inc ebp
or byte [ebx + 0xf40f845], cl
mov dh, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov al, byte [edx + eax + 0x13d]
mov edx, dword [ebp + 8]
mov byte [edx], al
inc dword [ebp + 8]
add dword [ebp - 8], 6
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x4747d4
mov esp, ebp
pop ebp
ret 8
Function at 0x100027a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100027b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100027e4
cmp esi, eax
jae 0x100027e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100027d4
cmp esi, eax
jb 0x100027ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10002f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x1006c1b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1006e498]
test eax, eax
jne 0x10002fd4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000e610
add esp, 0xc
push str.BApi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002f69
push 0x104
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [esp + 8], 0
jne 0x10002fbd
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x207
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.deepscan_bapi.dll
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.10001420
mov esi, eax
lea eax, [esp + 0xc]
call fcn.10002d10
mov dword [0x1006e498], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d1df
add esp, 0x214
ret
Function at 0x10003320
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006c1b0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1000e610
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Wtsapi32.dll
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebp, ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x10003394
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x100033bb
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x100033bb
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x10003418
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x100033d7
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x100033a0
jmp 0x10003418
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x80000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10003418
lea ecx, [esp + 0x10]
push ecx
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x1000342b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000d1df
add esp, 0x218
ret
Function at 0x10004130
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001c1c5
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1006c1b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x1006e708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x1006e490]
test eax, eax
jne 0x10004179
call fcn.10001420
mov dword [0x1006e490], eax
cmp dword [eax + 0x11c], 0
je 0x1000419c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1000419c
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call eax
jmp 0x100041ae
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1006e708
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret

Function at 0x100043c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000442e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x100043ff
cmp eax, 2
jne 0x1000441a
mov eax, dword [esp]
test esi, esi
je 0x10004428
test eax, eax
je 0x10004423
test al, 1
jne 0x1000441a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10004428
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x10004440
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001c3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x1006c1b0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x1006c1b0]
xor eax, esp
push eax
lea eax, [esp + 0x8d0]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2be]
mov dword [esp + 0x1c], 0
push ecx
mov word [esp + 0x2c0], ax
call fcn.1000e610
add esp, 0xc
push 0x104
lea edx, [esp + 0x2b8]
push edx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2b4]
push eax
call ebp
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4c6]
push edx
mov word [esp + 0x4c8], cx
call fcn.1000e610
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0x4bc]
call fcn.100026c0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe.exe
lea eax, [esp + 0x4c0]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x4bc]
push ecx
call edi
test eax, eax
je 0x10004538
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002be0
jmp 0x1000467f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000e610
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0xac]
call fcn.100026c0
push str...360Safe.exe
lea ecx, [esp + 0xb0]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call edi
test eax, eax
je 0x100045a4
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002be0
jmp 0x1000467f
mov edx, dword [0x10068898]
mov ax, word [0x1006889c]
mov ecx, 0x20
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.Path]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x8e8], esi
push 0x80000002
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004669
mov ebp, dword [esp + 0x14]
push 0x206
lea ecx, [esp + 0x6ca]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x6d0], ax
call fcn.1000e610
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x6cc]
mov dword [esp + 0x1c], 0x104
call fcn.100043c0
test eax, eax
jne 0x10004667
push ebx
mov ecx, esi
call fcn.10002be0
test ebp, ebp
jmp 0x10004676
xor esi, esi
push ebx
mov ecx, 0x10068858
call fcn.10002be0
cmp ebp, esi
je 0x1000467f
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x8d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8bc]
xor ecx, esp
call fcn.1000d1df
add esp, 0x8cc
ret
Function at 0x100063e0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x1006c1b0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.1000a270
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.1000a310
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1000d1df
add esp, 0x68
ret