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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1018c630]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
mov esi, 0x200
mov dword [esp + 0x10], ecx
mov ecx, esi
lea ebx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
call fcn.100dee20
push edi
push esi
push 1
push eax
call fcn.1010ae0c
add dword [esp + 0x28], eax
add esp, 0x10
cmp eax, esi
jb 0x100f157a
lea ecx, [ecx]
cmp esi, 0x3fffffff
ja 0x100f155a
add esi, esi
mov ecx, esi
lea ebx, [esp + 0x10]
call fcn.100dee20
push edi
push esi
push 1
push eax
call fcn.1010ae0c
add dword [esp + 0x28], eax
add esp, 0x10
cmp eax, esi
jae 0x100f1550
lea edi, [esp + 0x10]
call fcn.100deea0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010ccf3
add esp, 0x21c
ret

Function at 0x100f15a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1018c630]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push edi
mov ecx, esi
lea ebx, [esp + 0x10]
mov edi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x200
call fcn.100dee20
push edi
push esi
push 1
push eax
call fcn.1010ae0c
mov esi, eax
add dword [esp + 0x28], esi
add esp, 0x10
mov edi, ebx
call fcn.100deea0
mov ecx, dword [esp + 0x224]
xor edx, edx
cmp edx, esi
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.1010ccf3
add esp, 0x21c
ret

Function at 0x100f15bc
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1018c630]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push edi
mov ecx, esi
lea ebx, [esp + 0x10]
mov edi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x200
call fcn.100dee20
push edi
push esi
push 1
push eax
call fcn.1010ae0c
mov esi, eax
add dword [esp + 0x28], esi
add esp, 0x10
mov edi, ebx
call fcn.100deea0
mov ecx, dword [esp + 0x224]
xor edx, edx
cmp edx, esi
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.1010ccf3
add esp, 0x21c
ret
Function at 0x100f1d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
mov ecx, dword [ebx + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [ebx + 8]
sub eax, dword [ecx]
mov esi, 1
sub eax, 8
sar eax, 3
sub eax, edi
mov dword [esp + 0x2c], esi
je 0x100f1eca
jmp 0x100f1d44
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
dec eax
mov dword [esp + 0x30], eax
test edi, edi
jle 0x100f1da3
mov eax, dword [edx]
lea eax, [eax + edi*8]
cmp eax, dword [ebx + 8]
jb 0x100f1de1
lea eax, [esp + 0x34]
push eax
mov eax, ebx
call fcn.100dcc80
add esp, 4
test eax, eax
je 0x100f1ed5
test esi, esi
je 0x100f1eb4
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x34]
push ecx
push esi
push 1
push eax
call fcn.1010d131
add esp, 0x10
cmp eax, esi
jne 0x100f1eb4
mov esi, 1
jmp 0x100f1eb6
cmp edi, 0xfff0b9d8
jle 0x100f1db3
mov ecx, dword [ebx + 8]
lea eax, [ecx + edi*8]
jmp 0x100f1de1
jne 0x100f1dbd
mov eax, dword [ebx + 0xc]
add eax, 0x28
jmp 0x100f1de1
mov ecx, dword [edx]
mov eax, 0xfff0b9d8
sub eax, edi
cmp dword [ecx + 4], 0x7ff7a516
je 0x100f1d5e
mov ecx, dword [ecx]
movzx esi, byte [ecx + 6]
cmp eax, esi
mov esi, dword [esp + 0x2c]
jg 0x100f1d5e
lea eax, [ecx + eax*8 + 8]
cmp eax, 0x1016b560
je 0x100f1d5e
mov eax, dword [eax + 4]
mov ecx, eax
and ecx, 0x7fffff00
cmp ecx, 0x7ff7a500
je 0x100f1e06
mov eax, 3
jmp 0x100f1e0b
and eax, 0xff
and eax, 0xf
cmp eax, 3
jne 0x100f1d5e
test esi, esi
je 0x100f1eb4
test edi, edi
jle 0x100f1e2f
mov edx, dword [edx]
lea eax, [edx + edi*8]
cmp eax, dword [ebx + 8]
jae 0x100f1e69
jmp 0x100f1e6e
cmp edi, 0xfff0b9d8
jle 0x100f1e3f
mov eax, dword [ebx + 8]
lea eax, [eax + edi*8]
jmp 0x100f1e6e
jne 0x100f1e49
mov eax, dword [ebx + 0xc]
add eax, 0x28
jmp 0x100f1e6e
mov ecx, dword [edx]
mov eax, 0xfff0b9d8
sub eax, edi
cmp dword [ecx + 4], 0x7ff7a516
je 0x100f1e69
mov ecx, dword [ecx]
movzx edx, byte [ecx + 6]
cmp eax, edx
lea eax, [ecx + eax*8 + 8]
jle 0x100f1e6e
mov eax, 0x1016b560
mov ecx, dword [eax + 4]
and ecx, 0x7fffff00
cmp ecx, 0x7ff7a500
jne 0x100f1e90
lea esi, [esp + 0x38]
call fcn.100e1520
test eax, eax
jne 0x100f1e90
fldz
jmp 0x100f1e92
fld qword [eax]
mov edx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
push str._.14g
push edx
call fcn.1010f05d
add esp, 0x10
test eax, eax
jle 0x100f1eb4
mov esi, 1
jmp 0x100f1eb6
xor esi, esi
inc edi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
jne 0x100f1d40
test esi, esi
je 0x100f1ee3
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.string]
push edx
mov eax, ebx
call fcn.100de610
call fcn.1010f014
mov eax, dword [eax]
mov ecx, dword [ebx + 8]
mov dword [ecx + 4], 0x7ff7a500
mov esi, 8
add dword [ebx + 8], esi
push eax
mov dword [esp + 0x38], eax
call fcn.1010ef66
add esp, 4
mov edi, ebx
call fcn.100dcf30
fild dword [esp + 0x34]
mov edx, dword [ebx + 8]
pop edi
fstp qword [edx]
add dword [ebx + 8], esi
lea eax, [esi - 5]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1010a99d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1010a9ce
call fcn.1010f027
mov dword [eax], esi
call fcn.1010f014
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10108a15
add esp, 0x14
push 0x16
pop eax
jmp 0x1010aa23
test dword [ebp + 0xc], 0xfffffff9
jne 0x1010a9aa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1010a9fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1010f03a
pop ecx
call fcn.1010f014
mov eax, dword [eax]
jmp 0x1010aa23
test al, 0x10
jne 0x1010aa21
test al, 1
je 0x1010aa21
test byte [ebp + 0xc], 2
je 0x1010aa21
call fcn.1010f027
mov dword [eax], 5
call fcn.1010f014
mov dword [eax], 0xd
jmp 0x1010a9f2
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1010ccf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1018c630]
jne 0x1010ccfd
repz ret
jmp fcn.1011cc0e

Function at 0x101289fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101168ee
and dword [ebp - 4], 0
cmp dword [0x101bd100], 0
mov ebx, eax
jne 0x10128aab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10128b5c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101679c8
push edi
call esi
test eax, eax
je 0x10128b5c
push eax
call fcn.1011687c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101bd100], eax
call esi
push eax
call fcn.1011687c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101bd104], eax
call esi
push eax
call fcn.1011687c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101bd108], eax
call esi
push eax
call fcn.1011687c
pop ecx
mov dword [0x101bd110], eax
test eax, eax
je 0x10128aab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1011687c
pop ecx
mov dword [0x101bd10c], eax
mov eax, dword [0x101bd10c]
cmp eax, ebx
je 0x10128b03
cmp dword [0x101bd110], ebx
je 0x10128b03
push eax
call fcn.101168f7
push dword [0x101bd110]
mov esi, eax
call fcn.101168f7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10128b03
test edi, edi
je 0x10128b03
call esi
test eax, eax
je 0x10128afa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10128afa
test byte [ebp - 0xc], 1
jne 0x10128b03
or dword [ebp + 0x10], 0x200000
jmp 0x10128b3c
mov eax, dword [0x101bd104]
cmp eax, ebx
je 0x10128b3c
push eax
call fcn.101168f7
pop ecx
test eax, eax
je 0x10128b3c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10128b3c
mov eax, dword [0x101bd108]
cmp eax, ebx
je 0x10128b3c
push eax
call fcn.101168f7
pop ecx
test eax, eax
je 0x10128b3c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101bd100]
call fcn.101168f7
pop ecx
test eax, eax
je 0x10128b5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10128b5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x40ae3073
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3430794c
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10038031
Capabilities:
Resolve function by parsing pe exports

Disassembly:
repne scasb al, byte es:[edi]
pushfd
push dword [esp + 0x18]
lea esp, [esp + 0x50]
jne 0x1006c87c
not al
bswap eax
movzx eax, al
mov byte [edi - 1], 0
cwde
js 0x1003977e
movzx eax, bl
pushal
mov dword [esp + 0x1c], ebx
movsx ax, al
bswap ax
jmp 0x1003be4e
test byte [ebx - 0x2b4dc390], 0xf8
mov dword [esp + 0x18], 0x100396a2
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
push 0xb2736bea
pushfd
pushal
mov dword [esp], esi
push dword [esp + 0x3c]
ret 0x40
push esi
call fcn.1004011d
mov fs, word [ecx - 0x17]
jne 0x10039716
stc
sub eax, 0xc77804b3
jmp 0xb1b92b1
lea eax, [0x104ab1b6]
jmp 0x10039749
Function at 0x10017020
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x10017189
mov dword [ebp - 8], 0x200
js 0x10017052
nop
xchg ebx, ebx
jg 0x10017057
xchg edi, edi
jle 0x10017057
je 0x10017054
js 0x10017049
adc ecx, dword [ebp + 0x6a51f04d]
add byte [edx], ch
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x14], eax
jbe 0x10017083
nop
nop
jmp 0x10017091
je 0x1001708c
xchg eax, eax
ja 0x1001708c
xchg edx, edx
nop
jbe 0x1001707f
je 0x100170a3
add byte [ebx + 0xf00ec7d], 0x85
retf 0
cmp dword [ebp - 0x14], 0
jne 0x10017165
mov dword [ebp - 0x218], 0x104
add byte [eax], al
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10017270
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x100170d2
mov ecx, ecx
jae 0x100170d5
nop
jb 0x100170d5
jmp 0x100170cb
jo 0x100170e2
ja 0x100170e0
xchg ecx, ecx
je 0x100170e0
xchg ebx, ebx
nop
jmp 0x100170e5
jo 0x100170d7
add byte [ebx + 0x7500ec7d], 0x78
cmp dword [ebp - 0x14], 0
jne 0x10017163
mov ecx, dword [ebp - 0x218]
mov byte [ebp + ecx - 0x31c], 0
jae 0x10017106
je 0x10017104
xchg ebx, ebx
ja 0x10017104
xchg esi, esi
nop
jmp 0x10017109
jae 0x100170fb
xor ecx, dword [ebp - 0x31b6b]
call dword [edx - 0x18]
mov eax, dword [eax]
add byte [eax], al
lea edx, [ebp - 0x31c]
push edx
call 0x100171a0
add esp, 4
and eax, 0xffff
test eax, eax
je 0x10017163
jne 0x10017128
mov edi, edi
nop
jmp 0x10017135
nop
nop
je 0x10017130
xchg esi, esi
ja 0x10017130
jne 0x10017123
xchg ebx, ebx
add ecx, dword [ebx - 0x3899f3bb]
add byte [ecx], al
add byte [eax + 0xb], dh
mov eax, dword [ebp + 0xc]
mov word [eax], 1
jo 0x1001714a
ja 0x10017148
xchg ebp, ebp
je 0x10017148
xchg eax, eax
nop
jmp 0x1001714d
jo 0x1001713f
or dword [ebx + 4], edi
jnp 0x10017153
mov edx, edx
jmp 0x10017161
nop
nop
ja 0x1001715c
xchg edi, edi
je 0x1001715c
nop
jnp 0x1001714f
xchg ecx, ecx
sbb ebx, ebp
jmp 0x10017167
jmp 0x10017189
jmp 0x10017167
jmp 0x10017189
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jnp 0x10017178
mov ecx, ecx
nop
nop
jmp 0x10017184
ja 0x1001717f
xchg ebx, ebx
je 0x1001717f
nop
jnp 0x10017172
xchg esi, esi
shr ecx, 1
stosb byte es:[edi], al
invalid
jmp 0x10017033
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b9b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x1001b9c5
mov eax, eax
js 0x1001b9c8
nop
jns 0x1001b9c8
jmp 0x1001b9be
jg 0x1001b9d3
nop
xchg ebp, ebp
js 0x1001b9d8
xchg eax, eax
jns 0x1001b9d8
ja 0x1001b9d5
jg 0x1001b9ca
add ecx, dword [ebx - 0xdaf7bb]
add byte [eax], al
add byte [ebx - 0x1e7ef3b3], cl
inc dword [eax]
add byte [eax], al
mov eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
xor eax, ecx
mov byte [ebp - 4], al
jl 0x1001b9f9
nop
nop
ja 0x1001b9f7
xchg ebp, ebp
nop
jmp 0x1001ba02
je 0x1001b9fd
xchg edi, edi
jl 0x1001b9f0
ja 0x1001ba14
add byte [edx + 0x5e5ffc45], cl
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
adc dword [edx + 0xf], edi

Function at 0x1001fc70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x1001fcbf
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1001fcbf
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ax, ax
je 0x1001fcbf
cmp dword [esp + 0xc], edi
jne 0x1001fcbf
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x1001fcd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x1001fd1f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1001fd1f
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ax, ax
je 0x1001fd1f
cmp dword [esp + 0xc], edi
jne 0x1001fd1f
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x100200b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [ebp], al
mov al, byte [ecx]
test al, al
je 0x100200e2
push esi
mov esi, ebp
sub esi, ecx
mov dl, byte [ecx + 1]
mov al, byte [esi + ecx]
inc edi
inc ecx
dec dl
xor al, dl
mov byte [esi + ecx], al
mov al, byte [ecx]
test al, al
jne 0x100200cc
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret
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 [0x100581b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1005a498]
test eax, eax
jne 0x10002fd4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000e5e0
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 [0x1005a498], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d1af
add esp, 0x214
ret
Function at 0x100032f0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x100581b0]
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.1000e5e0
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 0x10003364
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 0x1000338b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000338b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100033e8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x100033a7
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003370
jmp 0x100033e8
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 0x100033e8
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 0x100033fb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000d1af
add esp, 0x218
ret
Function at 0x10004100
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001c195
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100581b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x1005a708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x1005a490]
test eax, eax
jne 0x10004149
call fcn.10001420
mov dword [0x1005a490], eax
cmp dword [eax + 0x11c], 0
je 0x1000416c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1000416c
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call eax
jmp 0x1000417e
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1005a708
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 0x10004390
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 0x100043fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x100043cf
cmp eax, 2
jne 0x100043ea
mov eax, dword [esp]
test esi, esi
je 0x100043f8
test eax, eax
je 0x100043f3
test al, 1
jne 0x100043ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x100043f8
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 0x10004410
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001c38b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x100581b0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x100581b0]
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.1000e5e0
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.1000e5e0
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 0x10004508
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002be0
jmp 0x1000464f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000e5e0
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 0x10004574
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002be0
jmp 0x1000464f
mov edx, dword [0x100552d0]
mov ax, word [0x100552d4]
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 0x10004639
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.1000e5e0
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.10004390
test eax, eax
jne 0x10004637
push ebx
mov ecx, esi
call fcn.10002be0
test ebp, ebp
jmp 0x10004646
xor esi, esi
push ebx
mov ecx, 0x10055290
call fcn.10002be0
cmp ebp, esi
je 0x1000464f
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.1000d1af
add esp, 0x8cc
ret