joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11059000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
je 0x11059033
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x54]
je 0x11059033
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x54]
jne 0x11059043
jmp 0x11059190
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x54], 0
je 0x110590c0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0x14
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x54]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x108]
call eax
push 0
push 0
push 0
push str.killfocus
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x54]
push edx
mov ecx, dword [ebp - 0x48]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x54], 0
cmp dword [ebp + 8], 0
jne 0x110590cb
jmp 0x11059190
cmp dword [ebp + 8], 0
je 0x11059190
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 0x48]
jne 0x11059190
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xc8]
call eax
movzx ecx, al
test ecx, ecx
je 0x11059190
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xd4]
call edx
movzx eax, al
test eax, eax
je 0x11059190
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x54], edx
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], 0x15
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x54]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x108]
call eax
push 0
push 0
push 0
push str.setfocus
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x54]
push edx
mov ecx, dword [ebp - 0x48]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov esp, ebp
pop ebp
ret 4
Function at 0x11067296
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x110a4e1c]
jne 0x110672a0
repz ret
jmp fcn.1106c91c

Function at 0x11072481
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.1106c297
and dword [ebp - 4], 0
cmp dword [0x110a714c], 0
mov ebx, eax
jne 0x11072532
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x110725e3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x110725e3
push eax
call fcn.1106c225
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x110a714c], eax
call esi
push eax
call fcn.1106c225
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x110a7150], eax
call esi
push eax
call fcn.1106c225
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x110a7154], eax
call esi
push eax
call fcn.1106c225
pop ecx
mov dword [0x110a715c], eax
test eax, eax
je 0x11072532
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1106c225
pop ecx
mov dword [0x110a7158], eax
mov eax, dword [0x110a7158]
cmp eax, ebx
je 0x1107258a
cmp dword [0x110a715c], ebx
je 0x1107258a
push eax
call fcn.1106c2a0
push dword [0x110a715c]
mov esi, eax
call fcn.1106c2a0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1107258a
test edi, edi
je 0x1107258a
call esi
test eax, eax
je 0x11072581
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x11072581
test byte [ebp - 0xc], 1
jne 0x1107258a
or dword [ebp + 0x10], 0x200000
jmp 0x110725c3
mov eax, dword [0x110a7150]
cmp eax, ebx
je 0x110725c3
push eax
call fcn.1106c2a0
pop ecx
test eax, eax
je 0x110725c3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x110725c3
mov eax, dword [0x110a7154]
cmp eax, ebx
je 0x110725c3
push eax
call fcn.1106c2a0
pop ecx
test eax, eax
je 0x110725c3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x110a714c]
call fcn.1106c2a0
pop ecx
test eax, eax
je 0x110725e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x110725e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40132c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x406158
call fcn.0040169c
mov edi, 0x94
mov eax, edi
call fcn.00402690
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408914], ecx
mov eax, dword [esi + 4]
mov dword [0x408920], eax
mov edx, dword [esi + 8]
mov dword [0x408924], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408918], esi
cmp ecx, 2
je 0x40138c
or esi, 0x8000
mov dword [0x408918], esi
shl eax, 8
add eax, edx
mov dword [0x40891c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4013c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4013c5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4013dd
cmp eax, 0x20b
je 0x4013ca
mov dword [ebp - 0x1c], edi
jmp 0x4013f1
cmp dword [ecx + 0x84], 0xe
jbe 0x4013c5
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4013eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4013c5
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00402630
pop ecx
test eax, eax
jne 0x401405
push 0x1c
call fcn.00401308
pop ecx
call fcn.00402527
test eax, eax
jne 0x401416
push 0x10
call fcn.00401308
pop ecx
call fcn.004022c1
mov dword [ebp - 4], edi
call fcn.004020c3
test eax, eax
jge 0x40142f
push 0x1b
call fcn.004012e3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409134], eax
call fcn.00401fa1
mov dword [0x408900], eax
call fcn.00401eff
test eax, eax
jge 0x401455
push 8
call fcn.004012e3
pop ecx
call fcn.00401ccc
test eax, eax
jge 0x401466
push 9
call fcn.004012e3
pop ecx
push 1
call fcn.0040184b
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40147c
push eax
call fcn.004012e3
pop ecx
mov eax, dword [0x408934]
mov dword [0x408938], eax
push eax
push dword [0x40892c]
push dword [0x408928]
call fcn.00401000
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4014ab
push esi
call fcn.00401978
call fcn.0040199a
jmp 0x4014dd
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004016d7
ret
Function at 0x4018b5
Capabilities:
Terminate process

Disassembly:
push 8
push 0x406378
call fcn.0040169c
push 8
call fcn.00402ef6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x408954], esi
jne 0x4018e9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x408950], esi
mov al, byte [ebp + 0x10]
mov byte [0x40894c], al
cmp dword [ebp + 0xc], edi
jne 0x401933
cmp dword [0x409128], edi
je 0x401923
mov eax, dword [0x409124]
sub eax, 4
mov dword [0x409124], eax
cmp eax, dword [0x409128]
jb 0x401923
mov eax, dword [eax]
cmp eax, edi
je 0x401904
call eax
jmp 0x401904
push 0x408020
mov eax, 0x40801c
call fcn.00401833
pop ecx
push 0x408028
mov eax, 0x408024
call fcn.00401833
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401964
cmp dword [ebp + 0x10], edi
jne 0x401972
mov dword [0x408954], esi
push dword [ebp + 8]
call fcn.004017f1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x401971
push 8
call fcn.00402e41
pop ecx
ret
call fcn.004016d7
ret

Function at 0x4019b8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408040]
je 0x4019ed
inc eax
cmp eax, 0x13
jb 0x4019de
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x401b13
mov eax, dword [0x408908]
cmp eax, 1
je 0x401aeb
cmp eax, edx
jne 0x401a1d
cmp dword [0x408038], 1
je 0x401aeb
cmp ecx, 0xfc
je 0x401b13
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401a53
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004027d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402a00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401a87
mov eax, edi
push eax
call fcn.00402a00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40619c
push edi
call fcn.004028d0
add esp, 0x10
push edi
call fcn.00402a00
push dword [esi + 0x408044]
mov ebx, eax
call fcn.00402a00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402690
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004027d0
push edi
push ebx
call fcn.004027e0
push 0x406198
push ebx
call fcn.004027e0
push dword [esi + 0x408044]
push ebx
call fcn.004027e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004026cd
add esp, 0x2c
jmp 0x401b13
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.00402a00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004012d5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4026cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408a7c], ebx
push esi
push edi
jne 0x40274d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402788
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408a7c], eax
je 0x402788
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408a80], eax
call esi
cmp dword [0x408914], 2
mov dword [0x408a84], eax
jne 0x40274d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408a8c], eax
je 0x40274d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408a88], eax
mov eax, dword [0x408a88]
test eax, eax
je 0x402792
call eax
test eax, eax
je 0x402779
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408a8c]
test eax, eax
je 0x402779
test byte [ebp - 8], 1
jne 0x402792
cmp dword [0x408920], 4
jb 0x40278c
or byte [ebp + 0x12], 0x20
jmp 0x4027b1
xor eax, eax
jmp 0x4027c1
or byte [ebp + 0x12], 4
jmp 0x4027b1
mov eax, dword [0x408a80]
test eax, eax
je 0x4027b1
call eax
mov ebx, eax
test ebx, ebx
je 0x4027b1
mov eax, dword [0x408a84]
test eax, eax
je 0x4027b1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408a7c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b7a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402ba8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402baf
cmp ebx, dword [eax + 4]
jae 0x402baf
xor eax, eax
jmp 0x402d9f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402bc0
xor eax, eax
inc eax
jmp 0x402d9e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402bd6
cmp ecx, edx
jae 0x402d1b
cmp dword [eax + 4], 0
je 0x402bdf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402bc7
cmp dword [ebp + 8], 0
je 0x402c01
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402d1b
cmp eax, esi
jae 0x402d1b
mov eax, dword [0x408a90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402c26
cmp dword [esi*4 + 0x408a98], edi
je 0x402d1f
inc esi
cmp esi, eax
jl 0x402c14
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402d9b
cmp dword [ebp - 8], 0x1000000
jne 0x402d9b
test byte [ebp - 0xc], 0xcc
je 0x402ca4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402d9b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402d9b
cmp word [eax + 0x18], 0x10b
jne 0x402d9b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402d9b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402ca4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402ca4
test byte [ecx + 0x27], 0x80
jne 0x402d1b
push 1
push 0x408ad8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402bb8
mov ecx, dword [0x408a90]
test ecx, ecx
mov edx, ecx
jle 0x402cd8
lea eax, [ecx*4 + 0x408a94]
cmp dword [eax], edi
je 0x402cd8
dec edx
sub eax, 4
test edx, edx
jg 0x402ccc
test edx, edx
jne 0x402d09
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402ce5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402cfd
lea eax, [edx*4 + 0x408a98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402ceb
cmp ecx, 0x10
jge 0x402d09
inc ecx
mov dword [0x408a90], ecx
push 0
push 0x408ad8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402bb8
xor eax, eax
jmp 0x402d9e
test esi, esi
jle 0x402bb8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408ad8
call ebx
test eax, eax
jne 0x402bb8
cmp dword [esi*4 + 0x408a98], edi
je 0x402d75
mov eax, dword [0x408a90]
lea esi, [eax - 1]
test esi, esi
jl 0x402d63
cmp dword [esi*4 + 0x408a98], edi
je 0x402d5f
dec esi
jns 0x402d53
test esi, esi
jge 0x402d73
cmp eax, 0x10
jge 0x402d6e
inc eax
mov dword [0x408a90], eax
lea esi, [eax - 1]
jmp 0x402d75
je 0x402d8d
xor ecx, ecx
test esi, esi
jl 0x402d8d
lea eax, [ecx*4 + 0x408a98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402d7b
push 0
push 0x408ad8
call ebx
jmp 0x402bb8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a09
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.00402690
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405aa4
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 [0x408914]
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 0x405aa4
cmp eax, 1
je 0x405ac5
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 0x405aa4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405a71
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405aa0
xor eax, eax
inc eax
jmp 0x405ae4
cmp edi, eax
jae 0x405aa8
xor eax, eax
jmp 0x405ae4
cmp eax, esi
jae 0x405aaf
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 [0x408914]
jmp 0x405ac8
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 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 [0x1004f1b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x10051498]
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 [0x10051498], 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 [0x1004f1b0]
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 [0x1004f1b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x10051708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x10051490]
test eax, eax
jne 0x10004149
call fcn.10001420
mov dword [0x10051490], 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 0x10051708
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