joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e554
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e5a1
xor ebx, ebx
jmp 0x40e596
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call 0x407af8
test eax, eax
jne 0x40e595
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e64b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e577
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e5ad
je 0x40e5b6
jmp 0x40e5bf
call fcn.0040bba4
mov esi, eax
jmp 0x40e5c1
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e5c1
xor esi, esi
test si, si
je 0x40e64b
xor ebx, ebx
jmp 0x40e5e7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e5e6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e64b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e5ce
xor ebx, ebx
jmp 0x40e640
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e63f
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e634
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e528
push eax
mov eax, esi
call fcn.0040e528
pop edx
cmp edx, eax
jne 0x40e63f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e64b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e5f6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40ea38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb28
push ebx
push 0x40eb38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eab8
mov al, 0x6a
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea0c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call 0x4068b4
cmp eax, 1
je 0x40eac1
call fcn.0040ea0c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb14
lea eax, [ebp - 4]
call fcn.00404c88
ret
Function at 0x40ec28
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call 0x406854
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call 0x40684c
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call 0x40684c
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call 0x406854
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401142
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
push str.SOFTWARE360Safe_safemon
sbb esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
neg esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40119c
test esi, esi
je 0x40119c
xor eax, eax
inc eax
jmp 0x40119e
xor eax, eax
pop esi
leave
ret 4

Function at 0x401226
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d287c
push str.SOFTWARE360Safe_setting
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
lea ecx, [eax - 1]
cmp ecx, 2
jbe 0x40126b
push 2
pop eax
leave
ret
Function at 0x401857
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
and dword [eax], 0
and dword [ebp - 0x6c], 0
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], 0x208
mov dword [ebp - 0x70], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4018c6
lea eax, [ebp - 0x68]
push eax
call fcn.0040110e
jmp 0x4018c8
xor eax, eax
test eax, eax
je 0x4019c2
push 0x4d29cc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4019c2
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4019c2
push str.AdLib_InitEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x4019b9
push ebx
push edi
mov ebx, 0x104
push ebx
lea edi, [esi + 4]
push 0
push edi
call fcn.00492200
push edi
mov dword [edi], ebx
call dword [ebp - 0x70]
add esp, 0x10
test eax, eax
je 0x4019b7
lea eax, [ebp - 0x70]
push eax
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x70], ebx
call fcn.004017e7
test eax, eax
je 0x4019b7
mov eax, dword [esi + 0x74]
xor edi, edi
test eax, eax
je 0x40195c
call eax
and dword [ebp - 0x6c], ebx
jmp 0x40198a
push dword [ebp - 0x74]
mov eax, esi
call fcn.00401818
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x24], 1
jne 0x40198a
cmp dword [eax + 4], 1
jne 0x40197d
inc ebx
jmp 0x40198a
push eax
mov eax, esi
call fcn.00401835
test eax, eax
jne 0x40198a
inc edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, esi
call fcn.00401802
test eax, eax
jne 0x401961
mov esi, dword [esi + 0x78]
test esi, esi
je 0x4019a6
call esi
mov eax, dword [ebp - 0x78]
mov dword [eax], ebx
mov eax, dword [ebp - 0x80]
mov dword [eax], edi
mov dword [ebp - 0x6c], 1
pop edi
pop ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x6c]
xor ecx, ebp
pop esi
call fcn.0048c64c
add ebp, 0x1a4
leave
ret 4
Function at 0x4029f2
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x18
mov eax, 0x4c76e1
call fcn.00492deb
mov edi, ecx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
jb 0x402a29
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bb6
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.00492200
add esp, 0xc
push str.__VerifyCodeKey__
lea eax, [ebp - 0x10]
push eax
call fcn.00408620
and dword [ebp - 4], 0
push 0x509ed4
lea eax, [ebp - 0x18]
push eax
call fcn.00408620
push 1
lea ecx, [ebp - 0x10]
lea ebx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00404316
mov esi, eax
push 1
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00404316
cmp dword [edi + 0x18], 8
jb 0x402aa1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
jmp 0x402aa4
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi]
mov eax, dword [eax]
push edx
push 0x103
lea edx, [ebp + 0x1c]
push edx
push 0x4d84dc
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00408396
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
test esi, esi
je 0x402bb6
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x224], ax
lea eax, [ebp + 0x226]
push eax
call fcn.00492200
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408620
mov esi, 0x104
lea ebx, [ebp + 0x224]
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 3
call fcn.004043cd
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
test esi, esi
je 0x402bb6
push dword [ebp - 0x20]
lea eax, [ebp]
push eax
call fcn.00402e49
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x402b6b
lea ecx, [ebp + 4]
lea eax, [ebp + 0x224]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x402b97
test dx, dx
je 0x402b93
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x402b97
add ecx, 4
add eax, 4
test dx, dx
jne 0x402b71
xor eax, eax
jmp 0x402b9c
sbb eax, eax
sbb eax, 0xffffffff
push 0
lea ecx, [ebp]
push 1
test eax, eax
jne 0x402bb1
call fcn.00405380
xor eax, eax
inc eax
jmp 0x402bb8
call fcn.00405380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x430
leave
ret
Function at 0x402bdb
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push ebx
mov ebx, ecx
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [eax]
push esi
push edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
lea edi, [ebp - 0x60]
lea esi, [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], eax
call fcn.0040501d
test al, al
jne 0x402d2f
mov esi, edi
call fcn.0040698b
cmp dword [eax + 0x3c], 0
je 0x402c63
call fcn.0040698b
add eax, 0x1c
push eax
call fcn.0040698b
mov edx, eax
mov ecx, ebx
call fcn.0040320f
lea esi, [ebp - 0x60]
call fcn.004069c2
mov eax, dword [ebp - 0x6c]
jmp 0x402c14
call fcn.0040698b
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx]
add eax, 0x1c
mov eax, dword [eax]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
lea esi, [ebp - 0x60]
call fcn.0040698b
mov ecx, dword [eax + 0x34]
add eax, 0x1c
mov eax, dword [eax]
lea edi, [ebp - 0x68]
lea esi, [ebp - 0x80]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], eax
call fcn.00405a07
test al, al
jne 0x402c56
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push eax
call fcn.00492200
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x402cc0
mov ebx, dword [ebx + 4]
jmp 0x402cc3
add ebx, 4
lea esi, [ebp - 0x68]
call fcn.00406a22
cmp dword [eax + 0x18], 8
jb 0x402cd6
mov edi, dword [eax + 4]
jmp 0x402cd9
lea edi, [eax + 4]
lea esi, [ebp - 0x60]
call fcn.0040698b
cmp dword [eax + 0x18], 8
jb 0x402cec
mov eax, dword [eax + 4]
jmp 0x402cef
add eax, 4
push ebx
push 0x103
lea ecx, [ebp - 0x58]
push ecx
push 0x4d84dc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402d1f
lea esi, [ebp - 0x68]
call fcn.00406a22
lea ecx, [ebp - 0x58]
add eax, 0x1c
push ecx
push eax
call fcn.00405355
lea esi, [ebp - 0x68]
call fcn.00406a6f
mov ebx, dword [ebp - 0x70]
jmp 0x402c78
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x1b4
leave
ret 4
Function at 0x4030d4
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3fef
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.004933d0
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1018], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1014], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x403129
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40315d
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00405380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c64c
leave
ret 0x24
xor eax, eax
push 0xffe
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push esi
push eax
call fcn.00492200
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], 8
jae 0x403187
lea eax, [ebp + 0xc]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, esi
jne 0x4031ae
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00405380
mov eax, esi
jmp 0x403141
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp - 0x1010]
mov eax, edi
push eax
jmp 0x403204
push edi
push dword [ebp - 0x1018]
call fcn.00404939
test eax, eax
je 0x4031fc
push edi
lea esi, [ebp - 0x1034]
call fcn.00404bbf
mov eax, esi
push eax
mov eax, dword [ebp - 0x1014]
mov byte [ebp - 4], 1
call fcn.004050e4
push 0
push 1
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00405380
push edi
call ebx
lea edi, [edi + eax*2 + 2]
push edi
call ebx
test eax, eax
jne 0x4031bf
xor esi, esi
inc esi
jmp 0x40319e
Function at 0x40320f
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2003c]
mov eax, 0x2003c
call fcn.004933d0
push 0xffffffffffffffff
push 0x4c75e7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x20038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20044]
mov dword [ebp - 0x14], eax
xor eax, eax
push 0x1fffe
push eax
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push eax
mov esi, ecx
mov edi, edx
call fcn.00492200
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40327c
mov esi, dword [esi + 4]
jmp 0x40327f
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x40328a
mov edi, dword [edi + 4]
jmp 0x40328d
add edi, 4
push esi
push 0x10000
lea eax, [ebp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x40339e
lea edi, [ebp + 0x38]
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x403396
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00408620
and dword [ebp - 4], 0
push 0x4d83d4
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00404aaa
mov ebx, eax
mov ecx, ebx
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00404b49
mov byte [ebp - 4], 1
push dword [eax]
lea esi, [ebp]
call fcn.00404bbf
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00408396
push 0
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.00405ecb
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jle 0x403348
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
sub ecx, ebx
push eax
dec ecx
lea eax, [ebp - 0x10]
call fcn.00404af9
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp + 0x1c]
push eax
call fcn.00405355
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00408396
mov ebx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.00404c65
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp + 0x1c]
call fcn.004052ce
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push ebx
push 1
lea ecx, [ebp + 0x1c]
lea edi, [edi + eax*2 + 2]
call fcn.00405380
push ebx
push 1
lea ecx, [ebp]
call fcn.00405380
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
push edi
call esi
test eax, eax
jne 0x4032b7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20038]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x2003c
leave
ret 4
Function at 0x4040d0
Capabilities:
Delete file

Disassembly:
push 0x40
mov eax, 0x4c7f96
call fcn.00492e54
mov eax, dword [ebp + 0xc]
push eax
lea esi, [ebp - 0x4c]
call fcn.00404bbf
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x4c]
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004028c7
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00405380
cmp dword [edi + 0x18], 8
jb 0x404114
mov eax, dword [edi + 4]
jmp 0x404117
lea eax, [edi + 4]
push eax
lea ebx, [ebp - 0x2c]
call fcn.00404284
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
cmp dword [edi + 0x38], esi
jne 0x404195
mov dword [edi + 0x38], ebx
call fcn.004029f2
test eax, eax
jne 0x404192
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404146
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x3c]
push eax
mov ecx, edi
call fcn.00402bdb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404164
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408620
lea eax, [ebp - 0x30]
push eax
push edi
mov byte [ebp - 4], 3
call fcn.00403f2a
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00408396
lea ecx, [ebp - 0x2c]
call fcn.00402d49
lea ecx, [ebp - 0x2c]
push esi
push ebx
call fcn.00405380
call fcn.00492ed7
ret 8

Function at 0x4045af
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c
mov eax, 0x4c1c03
call fcn.00492e54
mov edi, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov esi, 0x516a
push esi
mov dword [ebp - 0x30], eax
call fcn.0048bc2e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4046b8
push esi
push 0
push ebx
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push str.homepage
push str.Software360360se3
push SysReAllocString
mov dword [ebp - 0x38], 0x28b4
mov dword [ebp - 0x3c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4046ab
cmp ax, word [ebx]
je 0x4046ab
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00405ecb
and dword [ebp - 4], 0
push ebx
lea esi, [ebp - 0x58]
call fcn.00404bbf
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404844
push 0
push 1
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405380
test esi, esi
je 0x40469f
lea eax, [edi + edi]
push eax
push 0
push dword [ebp - 0x30]
call fcn.00492200
mov eax, dword [ebp - 0x18]
add esp, 0xc
inc eax
cmp eax, edi
jb 0x40467f
mov eax, edi
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x40468b
lea ecx, [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0x30]
call fcn.0048d090
add esp, 0xc
mov dword [ebp - 0x34], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405380
push ebx
call fcn.0048cd90
cmp dword [ebp - 0x34], 0
pop ecx
jne 0x4046e2
lea eax, [edi + edi]
push eax
push 0
push dword [ebp - 0x30]
call fcn.00492200
add esp, 0xc
cmp edi, 9
jbe 0x4046d1
push 9
pop edi
push edi
push str.se:blank
push dword [ebp - 0x30]
call fcn.0048d090
add esp, 0xc
xor eax, eax
inc eax
call fcn.00492ed7
ret 4
Function at 0x40816a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408181
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4081b6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4081b2
cmp edi, eax
jae 0x4081b6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4081a4
cmp edi, eax
jb 0x4081ba
xor eax, eax
jmp 0x4081c3
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x409ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409edf
sub eax, edx
push edi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0048d9cf
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x409f54
push ebx
push esi
test edi, edi
jle 0x409f15
mov ecx, dword [ebp + 8]
sub ecx, eax
mov esi, edi
mov dl, byte [ecx + eax]
xor dl, 0x13
mov byte [eax], dl
inc eax
dec esi
jne 0x409f09
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
call fcn.0048d9cf
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.00492200
add esp, 0x10
test ebx, ebx
je 0x409f47
push edi
push dword [ebp - 4]
mov ecx, ebx
call fcn.00409e5c
pop ecx
pop ecx
mov byte [esi + ebx], 0
push dword [ebp - 4]
call fcn.0048de66
pop ecx
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x409f57
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409f5c
sub eax, ecx
push edi
mov ecx, esi
mov edx, esi
mov edi, eax
call fcn.00409e99
mov eax, edi
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
pop edi
test eax, eax
jle 0x409f88
xor byte [ecx + esi], 0x13
inc ecx
cmp ecx, eax
jl 0x409f7f
mov byte [eax + esi], 0
ret

Function at 0x409f8d
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push esi
push edi
xor eax, eax
mov esi, 0x20a
push esi
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.00492200
xor eax, eax
push esi
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push edi
push eax
call fcn.00492200
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x4d854c
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40a019
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40a01e
mov eax, 0x7c1
mov ecx, dword [ebp + 0x3a4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048c64c
add ebp, 0x3a8
leave
ret