joyce8/EMBER2024-capa huggingface dataset:
Function at 0x653d6670
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x653d682e
push 0x3d
push edi
call fcn.653d8190
mov esi, eax
add esp, 8
test esi, esi
je 0x653d682e
cmp edi, esi
je 0x653d682e
mov dl, byte [esi + 1]
mov ecx, dword [0x653dfa24]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x653dfa20]
cmp eax, ecx
jne 0x653d66c7
push eax
call fcn.653d6900
add esp, 4
mov dword [0x653dfa20], eax
test eax, eax
jne 0x653d6742
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653d66ee
mov eax, dword [0x653dfa28]
test eax, eax
je 0x653d66ee
call fcn.653d4860
test eax, eax
je 0x653d673d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x653d66fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.653d02a0
add esp, 4
mov dword [0x653dfa20], eax
test eax, eax
je 0x653d682e
mov dword [eax], 0
mov eax, dword [0x653dfa28]
test eax, eax
jne 0x653d673d
push 4
call fcn.653d02a0
add esp, 4
mov dword [0x653dfa28], eax
test eax, eax
je 0x653d682e
mov dword [eax], 0
mov eax, dword [0x653dfa20]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.653d6880
mov esi, eax
add esp, 8
test esi, esi
jl 0x653d683f
cmp dword [ebx], 0
je 0x653d683f
test ebp, ebp
je 0x653d6837
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.653d0050
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x653d6799
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x653d6788
lea eax, [esi*4]
push eax
push ebx
call fcn.653d0370
add esp, 8
test eax, eax
je 0x653d67b3
mov dword [0x653dfa20], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653d6826
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.653d02a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x653d6826
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.653d0050
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x653d67b7
test ebp, ebp
jne 0x653d6826
test esi, esi
jge 0x653d6849
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.653d0370
add esp, 8
test eax, eax
je 0x653d682e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x653dfa20], eax
jmp 0x653d67b7
Function at 0x653d99a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x653dfdb8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x653d99e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x653d99c8
mov eax, 2
jmp 0x653d99e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x653d9ac8
mov eax, 1
mov dword [0x653dfdb8], eax
cmp eax, 2
jne 0x653d9a08
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x653d9ada
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x653d9a23
mov ecx, dword [0x653dfd10]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x653d9a42
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.653d02a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x653d9a59
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x653d9abf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x653d9aa0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x653d9abf
push esi
call fcn.653d0050
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x653d9acf
push esi
call fcn.653d0050
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.653d0050
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], str.Usage:_eject___u____a____h___x:_..._n
call sym._wine_dbg_printf
mov dword [esp], str._____a__Eject_all_the_CD_drives_we_find_n
call sym._wine_dbg_printf
mov dword [esp], str._____h__Display_this_help_message_n
call sym._wine_dbg_printf
mov dword [esp], str._____u__Unmount_only__dont_eject_the_CD_n
call sym._wine_dbg_printf
mov dword [esp], str.____x:__Eject_drive_x:_n
call sym._wine_dbg_printf
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4014cb
cmp byte [esi + ebx - 1], 0xa
je 0x40149f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401e80
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
Function at 0xd04058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd041a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0406a
add dl, dl
jne 0xd04089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd040dc
xor eax, eax
add dl, dl
jne 0xd04096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0417d
add dl, dl
jne 0xd040a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd040b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd040bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd040c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd040d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd04075
mov eax, 1
add dl, dl
jne 0xd040ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd040f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd040e1
sub eax, ebx
mov ebx, 1
jne 0xd04128
mov ecx, 1
add dl, dl
jne 0xd0410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd04119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd04105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd04075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd04136
cmp eax, 0x7d00
jae 0xd0416d
cmp eax, 0x500
jb 0xd04168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd04075
cmp eax, 0x7f
ja 0xd04170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd04075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd04075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000ad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ce8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10023330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x163
mov ecx, esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0x163
call dword [sym.imp.mfc140.dll_Ordinal_5095]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0x10018ec4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ae22
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_12503]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
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
Function at 0x1000c270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e10
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c2b0
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e70
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c310
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018f08
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c370
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Current
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c4e7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c4c3
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f28b
mov esp, ebp
pop ebp
ret
Function at 0x10001320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100251c0]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.1000de40
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push str.Path
push 0x10020e88
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0xc]
call fcn.10002b80
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.1000c9cb
add esp, 0x214
ret
Function at 0x10002780
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 0x10002797
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100027c4
cmp esi, eax
jae 0x100027c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100027b4
cmp esi, eax
jb 0x100027ce
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 0x10002e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100251c0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x10027470]
test eax, eax
jne 0x10002ef4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000de40
add esp, 0xc
push str.BApi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002e89
push 0x104
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [esp + 8], 0
jne 0x10002edd
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.10001150
mov esi, eax
lea eax, [esp + 0xc]
call fcn.10002c30
mov dword [0x10027470], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000c9cb
add esp, 0x214
ret
Function at 0x100031b0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x100251c0]
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.1000de40
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 0x10003224
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 0x1000324b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000324b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100032a8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x10003267
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003230
jmp 0x100032a8
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 0x100032a8
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 0x100032bb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000c9cb
add esp, 0x218
ret
Function at 0x10004030
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001b985
mov eax, dword fs:[0]
push eax
push ebp
push esi
mov eax, dword [0x100251c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x20]
push 0x100276d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 0
mov eax, dword [0x10027468]
test eax, eax
jne 0x1000407e
call fcn.10001150
mov dword [0x10027468], eax
cmp dword [eax + 0x11c], 0
je 0x100040a0
mov eax, dword [eax + 0x110]
test eax, eax
je 0x100040a0
mov ecx, dword [esp + 0x1c]
push esi
push edi
push ebx
push 0
push ebp
push ecx
call eax
jmp 0x100040b1
mov edx, dword [esp + 0x1c]
push esi
push edi
push ebx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100276d8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0xc
ret 8

Function at 0x10004220
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 0x1000428e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1000425f
cmp eax, 2
jne 0x1000427a
mov eax, dword [esp]
test esi, esi
je 0x10004288
test eax, eax
je 0x10004283
test al, 1
jne 0x1000427a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10004288
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 0x100042a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001bb3b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x100251c0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x100251c0]
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.1000de40
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.1000de40
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0x4bc]
call fcn.10002620
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 0x10004398
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002b80
jmp 0x100044df
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000de40
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0xac]
call fcn.10002620
push str...360Safe.exe
lea ecx, [esp + 0xb0]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call edi
test eax, eax
je 0x10004404
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002b80
jmp 0x100044df
mov edx, dword [0x10021364]
mov ax, word [0x10021368]
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 0x100044c9
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.1000de40
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.10004220
test eax, eax
jne 0x100044c7
push ebx
mov ecx, esi
call fcn.10002b80
test ebp, ebp
jmp 0x100044d6
xor esi, esi
push ebx
mov ecx, 0x10021594
call fcn.10002b80
cmp ebp, esi
je 0x100044df
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.1000c9cb
add esp, 0x8cc
ret
Function at 0x10005b60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x100251c0]
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.100099f0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.10009a90
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1000c9cb
add esp, 0x68
ret