joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404500
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004fe380
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.....360Base.dll
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x404560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404560
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x404587
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x4045f7
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40463f
push str.360Base.dll
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4045d6
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x40463f
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
je 0x40463f
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404600
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push ebx
call fcn.004f6a8c
add esp, 0x10
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004f673f
add esp, 0x218
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x218
ret

Function at 0x404ae0
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
jne 0x404b0d
push ecx
mov eax, esp
mov dword [esp + 0xc], esp
push eax
mov ecx, str.Q360MobileSrvCustomMutex
call fcn.004066b0
call fcn.00404020
add esp, 4
test eax, eax
je 0x404b14
mov eax, 1
pop esi
ret
mov ecx, str.QH360MobileLoaderMutex:6204C166_114C_4ba5_9F5D_0CD255B1A8E2
jmp 0x404b19
mov ecx, str.QH360MobileLoaderMutex:7304C166_114C_4ba5_9F5D_0CD255B1A9F1
lea edx, [esp + 8]
push edx
call fcn.004066b0
mov eax, dword [esp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x404b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404b6c
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
ret
mov dword [0x65d95c], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
ret
Function at 0x404ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004fe380
mov eax, dword [0x628530]
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.....360Common.dll
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x10]
push edx
call fcn.00404460
add esp, 4
test eax, eax
jne 0x404c1c
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004f673f
add esp, 0x220
ret
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.0049d331
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
add esp, 0xc
cmp ecx, 7
ja 0x404c73
cmp ax, 3
ja 0x404c73
mov eax, dword [esp + 4]
mov edx, eax
shr edx, 0x10
test edx, edx
ja 0x404c73
mov ecx, 0xc08
cmp ax, cx
jb 0x404cb8
mov eax, 4
lea edx, [esp + 8]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.360Modulelize_Uninstall_MobileMgr
push str.SOFTWARE360SafeModularize
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404cb6
cmp dword [esp + 4], eax
jne 0x404cb8
xor esi, esi
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f673f
add esp, 0x220
ret
Function at 0x407de0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x428
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0x10], 0
push ecx
mov word [esp + 0x1c], ax
call fcn.004fe380
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x407ecb
push str.mobilemgr
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call ebx
test esi, esi
je 0x407eb5
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x222]
push edx
mov word [esp + 0x224], cx
call fcn.004fe380
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x10]
mov word [esp + eax + 0x218], cx
add eax, 2
test cx, cx
jne 0x407e90
push esi
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ecb
lea eax, [esp + 0x10]
push eax
jmp 0x407f3a
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test esi, esi
je 0x407f35
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.004fe380
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x10]
mov word [esp + eax + 0x218], cx
add eax, 2
test cx, cx
jne 0x407f10
push esi
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push str.GetMobileMgrFilePath__s.
call fcn.0049d036
add esp, 8
push edi
lea ecx, [esp + 0x14]
call fcn.004066b0
mov ecx, dword [esp + 0x424]
pop ebx
xor ecx, esp
mov eax, edi
call fcn.004f673f
add esp, 0x428
ret

Function at 0x408000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x244], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x46]
push ecx
mov word [esp + 0x48], ax
call fcn.004fe380
add esp, 0xc
push 0x104
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.004fe380
mov edx, dword [esp + 0x258]
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x440
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004f673f
add esp, 0x248
ret
Function at 0x408250
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a0e08
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408300
push 1
push 0x5d7f80
push str.b_rN0R3
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8
mov eax, dword [esp + 0x24]
push 0
push 5
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2c], 1
call fcn.0049daf3
mov esi, eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40836f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8

Function at 0x4083b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0x10]
push eax
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4083d4
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
call fcn.004f6dde
mov edi, eax
add esp, 4
test edi, edi
jne 0x4083ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408427
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x5d7f4c
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push edi
call fcn.004f6d01
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x408440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x597d48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00408560
mov byte [esp + 0x24], 2
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push 0x5d7fec
lea edi, [esp + 0x1c]
call fcn.00407710
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
call fcn.004a0b20
add esp, 4
mov byte [esp + 0x24], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408515
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40853d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x408860
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2214
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x2210], eax
push edi
lea eax, [esp + 4]
push eax
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4088fd
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.004f7f30
add esp, 8
xor ecx, ecx
push 0x1000
lea edx, [esp + 0x218]
mov word [eax + 2], cx
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4088fd
lea edx, [esp + 0xc]
call fcn.00406780
mov eax, 1
pop edi
mov ecx, dword [esp + 0x2210]
xor ecx, esp
call fcn.004f673f
add esp, 0x2214
ret
mov ecx, dword [esp + 0x2214]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x2214
ret
Function at 0x408ad0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x597138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x408b37
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x408c11
push esi
call fcn.004f499a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push edx
mov dword [esp + 0x2c], edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408bec
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x5d7f4c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408bec
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 0xe]
movzx ebp, word [eax + 0xc]
push edx
call fcn.004f744f
push ebp
push ebx
push edi
mov edi, dword [esp + 0x48]
push esi
push 0x5d7f50
call fcn.00407710
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push edi
call fcn.004f744f
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x408ce0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x59d312
mov eax, dword fs:[0]
push eax
sub esp, 0x530
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x538]
mov dword fs:[0], eax
mov dword [esp + 0x540], 0
push esi
mov ecx, 0x5d74e0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004066b0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12e]
mov dword [esp + 0x548], 0
push ecx
mov dword [esp + 0x14], 1
mov word [esp + 0x130], ax
call fcn.004fe380
push 0x110
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004fe380
add esp, 0x18
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x336]
push edx
mov word [esp + 0x338], cx
call fcn.004fe380
add esp, 0xc
push 1
push 0x1a
lea eax, [esp + 0x334]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360mobilemgr
lea ecx, [esp + 0x330]
push ecx
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408e01
push eax
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x124]
lea edx, [eax + 2]
jmp 0x408e10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e10
sub eax, edx
sar eax, 1
lea edx, [esp + 0x124]
mov ebx, eax
push edx
mov eax, esi
call fcn.004072f0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408e44
mov ecx, dword [esi]
call fcn.00408c40
mov eax, esi
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x52c]
xor ecx, esp
call fcn.004f673f
add esp, 0x53c
ret
Function at 0x408e70
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x180]
sub esp, 0x180
push 0xffffffffffffffff
push 0x597c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x17c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push esi
mov dword [ebp - 0x18], esi
mov edi, edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408ed3
push esi
push 0x5d81a8
call fcn.0049d036
add esp, 8
xor eax, eax
jmp 0x40904a
lea ecx, [ebp]
mov dword [ebp - 0x14], 1
call fcn.0051ffd0
xor ebx, ebx
push ebx
push 3
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0051ce60
cmp al, bl
jne 0x408f1f
push esi
push 0x5d81f0
call fcn.0049d036
add esp, 8
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0051fb80
xor eax, eax
jmp 0x40904a
mov ecx, dword [ebp + 0xdc]
cmp ecx, ebx
jne 0x408f2d
xor eax, eax
jmp 0x408f36
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
movzx eax, ax
push eax
push 0x5d8280
call fcn.0049d036
add esp, 8
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp + 0xdc]
cmp ecx, ebx
jne 0x408f5e
xor eax, eax
jmp 0x408f67
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
movzx ecx, ax
cmp esi, ecx
jge 0x408f9a
push 0x10000
push ebx
push ebx
push 1
push edi
push esi
lea ecx, [ebp]
call fcn.0051ef20
cmp al, bl
jne 0x408f97
push esi
push 0x5d82d8
call fcn.0049d036
add esp, 8
xor esi, esi
jmp 0x408f9d
inc esi
jmp 0x408f50
mov esi, dword [ebp - 0x14]
push ebx
push ebx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp]
call fcn.0051fd80
cmp dword [ebp - 0x1c], 8
jb 0x408fbd
mov eax, dword [ebp - 0x30]
push eax
call fcn.004f6734
add esp, 4
mov dword [ebp - 4], ebx
cmp esi, 1
jne 0x409039
mov eax, dword [ebp - 0x18]
push eax
push 0x5d837c
call fcn.0049d036
add esp, 8
jmp 0x409039
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0051fb80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x17c]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x180
mov esp, ebp
pop ebp
ret
Function at 0x4091f0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x592cc8
mov eax, dword fs:[0]
push eax
mov eax, 0x1218
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x1214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x122c]
mov dword fs:[0], eax
xor edi, edi
push 0xffc
lea eax, [esp + 0x28]
push edi
mov dword [esp + 0x123c], edi
push eax
mov dword [esp + 0x2c], edi
call fcn.004fe380
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x20], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4092a0
mov dword [esp + 0x1234], 0xffffffff
mov eax, dword [esp + 0x123c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4093a5
mov ebp, dword [esp + 0x14]
shr ebp, 2
xor ebx, ebx
cmp ebp, edi
jle 0x409372
mov eax, dword [esp + ebx*4 + 0x20]
cmp eax, edi
je 0x409369
mov ecx, dword [esp + 0x1244]
cmp ecx, edi
je 0x4092d0
cmp ecx, eax
jne 0x409369
push eax
push edi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x409369
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x409362
push 0x206
lea ecx, [esp + 0x1026]
xor eax, eax
push edi
push ecx
mov word [esp + 0x102c], ax
call fcn.004fe380
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0x104
lea edx, [esp + 0x1024]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov edx, dword [esp + 0x123c]
lea ecx, [esp + 0x1020]
push ecx
push edx
call fcn.004f69f9
add esp, 8
cmp eax, edi
jne 0x409362
cmp dword [esp + 0x1240], edi
jne 0x4093cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, ebp
jl 0x4092b1
mov dword [esp + 0x1234], 0xffffffff
mov eax, dword [esp + 0x123c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x122c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1214]
xor ecx, esp
call fcn.004f673f
add esp, 0x1224
ret 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x123c]
call fcn.00406760
mov eax, edi
jmp 0x4093a5