joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000afe0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023555
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x1000b19e
cmp word [esi], 0
je 0x1000b19e
lea ecx, [ebp - 0x38]
call fcn.10001cd0
mov dword [ebp - 4], 0
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x1000b177
cmp word [esi + 2], 0
je 0x1000b088
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b044
sub ecx, edi
mov eax, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x1000b088
cmp word [esi + ecx*2 - 4], 0x3a
je 0x1000b088
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.1000d270
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x1000b085
cmp dword [ebp - 0x14], esi
je 0x1000b177
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi]
movzx eax, ax
test ax, ax
je 0x1000b177
cmp eax, 0x5c
jne 0x1000b0a4
cmp word [esi + 2], 0
je 0x1000b177
cmp word [esi + 2], 0x3a
jne 0x1000b0c8
movzx eax, word [esi + 4]
test ax, ax
je 0x1000b177
cmp eax, 0x5c
jne 0x1000b0c8
cmp word [esi + 6], 0
je 0x1000b177
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x1000b177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000b177
cmp eax, 3
jne 0x1000b173
push 0x5c
push esi
call fcn.1000eba7
mov edx, eax
add esp, 8
test edx, edx
je 0x1000b173
cmp word [edx + 2], 0
jne 0x1000b125
sub edx, 2
cmp edx, esi
jb 0x1000b173
cmp word [edx], 0x5c
je 0x1000b125
sub edx, 2
cmp edx, esi
jae 0x1000b114
xor esi, esi
jmp 0x1000b17c
lea ecx, [ebp - 0x64]
call fcn.10001cd0
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.1000d270
lea ecx, [ebp - 0x64]
call fcn.1000cf50
mov ecx, eax
call fcn.1000afe0
test eax, eax
je 0x1000b167
push 0
push esi
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100019c0
jmp 0x1000b17c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100019c0
xor esi, esi
jmp 0x1000b17c
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100019c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002209d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x1000b631
cmp word [edx], 0
je 0x1000b631
lea ecx, [ebp - 0x38]
call fcn.10001cd0
mov dword [ebp - 4], 0
cmp word [edx], 0
je 0x1000b600
cmp word [edx + 2], 0
je 0x1000b600
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b5c0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1000b600
cmp word [edx + ecx*2 - 4], 0x3a
je 0x1000b600
lea eax, [ecx - 1]
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.1000d270
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x1000b600
cmp dword [ebp - 0x14], 0
mov edx, 0x1002a464
cmovne edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100019c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002364d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x1000b7a9
cmp word [esi], 0
je 0x1000b7a9
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.1000f000
or dword [ebp - 0x50], 1
xor eax, eax
mov dword [ebp - 0x38], 0x10029e70
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
push esi
call fcn.1000c170
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000b719
xor esi, esi
jmp 0x1000b739
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1000b774
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x1000b76f
mov ecx, 0x10030a58
call fcn.1000ca30
jmp 0x1000b774
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10010e40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010e7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010e7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010e7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010e7f
cmp dword [ecx + 0x74], 0xe
jbe 0x10010e7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001906b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100304b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100190ab
cmp byte [ebx], 0xa
jne 0x100190ab
or byte [edi + eax + 0x28], 4
jmp 0x100190b0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100191af
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10019192
inc eax
cmp dl, 0xd
je 0x100190dc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10019102
cmp eax, ecx
jae 0x10019110
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100190c4
jmp 0x100191af
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001918d
cmp dword [ebp - 0x10], 0
je 0x1001918d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100304b8]
test byte [eax + edi + 0x28], 0x48
je 0x10019167
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10019152
mov byte [esi], dl
jmp 0x10019163
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100304b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100191af
cmp byte [ebp - 1], 0xa
jne 0x10019176
cmp esi, ebx
jne 0x10019176
mov byte [esi], 0xa
jmp 0x100191ae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10016ce9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100191af
mov byte [esi], 0xd
jmp 0x100191ae
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100304b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100191ac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100191af
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100191b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100304b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100191fe
cmp word [ebx], dx
jne 0x100191fe
or byte [eax + edi + 0x28], 4
jmp 0x10019203
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10019366
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10019346
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10019244
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001927a
cmp eax, edx
jae 0x10019288
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001921f
jmp 0x10019366
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019341
cmp dword [ebp - 0x18], 0
je 0x10019341
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100304b8]
test byte [eax + edi + 0x28], 0x48
je 0x10019317
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100192db
mov word [esi], cx
jmp 0x10019312
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100304b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100304b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100304b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10019366
pop eax
cmp word [ebp - 4], ax
jne 0x10019327
cmp esi, ebx
jne 0x10019327
mov word [esi], ax
jmp 0x10019363
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10016ce9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10019366
push 0xd
pop eax
jmp 0x10019322
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100304b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10019360
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10019366
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019acf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026f70
push 0x10026f68
push 0x10024df0
push 0x1f
call fcn.100199eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019b03
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024250]
call esi
jmp 0x10019b09
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10019b4d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026f80
push 0x10026f78
push 0x10024e14
push 0x21
call fcn.100199eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019b84
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10019b8c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026f88
push 0x10026f80
push 0x10024e28
push 0x22
call fcn.100199eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019bc6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024250]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b1a1
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 0x1001b23e
push ebx
push esi
call fcn.1001b16a
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.1001b0fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001b1eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b23d
push edi
push eax
call fcn.10017dbf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001b20b
call fcn.100162ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b23c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b0fe
add esp, 0x20
test eax, eax
jne 0x1001b22a
push edi
call fcn.100162ed
jmp 0x1001b232
push ebx
call fcn.100162ed
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 0x10020463
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100203df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100205d2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100205d2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10020587
jg 0x100204bf
test eax, eax
je 0x1002057d
push 1
push 0x1000
call fcn.10019d65
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100204e2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10020574
push 0x8000
push ebx
call fcn.10020310
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002050b
jg 0x10020506
cmp ecx, 0x1000
jb 0x1002050b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10017824
add esp, 0x10
cmp eax, 0xffffffff
je 0x10020550
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 0x10020506
jl 0x10020537
test ecx, ecx
jne 0x100204f8
push dword [ebp - 0xc]
push ebx
call fcn.10020310
push esi
call fcn.100162ed
add esp, 0xc
xor ebx, ebx
jmp 0x100205e0
cmp byte [edi + 0x24], 0
je 0x10020567
cmp dword [edi + 0x20], 5
jne 0x10020567
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10020572
mov ebx, dword [edi + 0x18]
jmp 0x10020574
xor ebx, ebx
push esi
call fcn.100162ed
pop ecx
jmp 0x100205e0
test ecx, ecx
jg 0x10020549
jl 0x10020587
test eax, eax
jae 0x10020549
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016ce9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100205a7
cmp byte [edi + 0x1c], 0
je 0x10020549
jmp 0x100205d8
push ebx
call fcn.1001cdb7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10020549
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100205e0
cmp byte [edi + 0x1c], 0
je 0x100205dd
mov ebx, dword [edi + 0x18]
jmp 0x100205e0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10016ce9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
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 [0x100491b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x1004b498]
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 [0x1004b498], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d1af
add esp, 0x214
ret
Function at 0x100032e0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x100491b0]
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 0x10003354
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 0x1000337b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000337b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100033d8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x10003397
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003360
jmp 0x100033d8
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 0x100033d8
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 0x100033eb
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 [0x100491b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x1004b708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x1004b490]
test eax, eax
jne 0x10004149
call fcn.10001420
mov dword [0x1004b490], 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 0x1004b708
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