joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40104b
Capabilities:
Delete registry key

Disassembly:
jmp 0x401f10
sub esp, 0x404
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004068a0
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x43b960
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401f52
lea edi, [esp + 8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401f64
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push str.Delect_Uninstall_Register_Path___s
push 0x43bba0
call fcn.0040103c
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
pop edi
pop esi
je 0x401fde
push str.Delect_Uninstall_Register_fail__
push 0x43bba0
call fcn.0040103c
add esp, 8
mov ecx, 0x43bba0
call fcn.00401032
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00406884
add esp, 0x404
ret
push str.Delect_Uninstall_Register_success__
push 0x43bba0
call fcn.0040103c
mov ecx, dword [esp + 0x408]
add esp, 8
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0x404
ret

Function at 0x401050
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
jmp 0x402de0
mov eax, 0x1110
call fcn.00406f00
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x110c], eax
lea eax, [esp + 4]
push eax
push 0x1000
lea ecx, [esp + 0x10]
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [esp + 4]
shr eax, 2
cmp eax, 0x400
mov dword [esp], 0x400
ja 0x402e24
mov dword [esp], eax
push ebp
xor ebp, ebp
cmp dword [esp + 4], ebp
jbe 0x402ece
push ebx
push esi
push edi
mov edx, dword [esp + ebp*4 + 0x18]
push edx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402eb7
push 0x104
lea eax, [esp + 0x101c]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x402eb7
mov esi, section..data
lea ebx, [ebx]
mov ecx, dword [esi]
push ecx
call fcn.00406ba4
push eax
call fcn.00406e99
lea edx, [esp + 0x1020]
push edx
mov ebx, eax
call fcn.00406ba4
push eax
call fcn.00406e99
push ebx
push eax
call fcn.00406200
add esp, 0x18
test eax, eax
jne 0x402eae
add esi, 4
cmp esi, str.USBVID_0ac8PID_0331MI_00
jl 0x402e70
jmp 0x402eb7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 1
cmp ebp, dword [esp + 0x10]
jb 0x402e34
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1110]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0x1110
ret
Function at 0x40105f
Capabilities:
Delete registry key

Disassembly:
jmp 0x403120
sub esp, 0x108
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push str.Enter_RemoveDevice__
push 0x43bba0
mov dword [esp + 0x10], 0
call fcn.0040103c
push esi
call fcn.00406ba4
push eax
call fcn.00406b20
mov dx, word [0x434b8c]
mov ecx, dword [str.Enum_]
mov word [esp + 0x20], dx
add esp, 0x10
mov dword [esp + 0xc], ecx
mov edx, eax
jmp 0x403180
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403180
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403192
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push str.EnumUSBVID_0000PID_0000
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000002
call esi
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x18]
push edx
push 0x80000002
call edi
test eax, eax
jne 0x4031f8
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x18]
push eax
push 0x80000002
call edi
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00406884
add esp, 0x108
ret
Function at 0x4010e1
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
jmp 0x4015d0
push ecx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x128
mov dword [esp + 0xc], esi
call fcn.00406c52
add esp, 4
mov edi, eax
push edi
push esi
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4016aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4016aa
push edi
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4016aa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00406ba4
push eax
call fcn.00406b20
mov esi, eax
lea eax, [edi + 0x24]
push eax
call fcn.00406ba4
push eax
call fcn.00406b20
add esp, 0x10
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401672
test dl, dl
je 0x40166e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401672
add ecx, 2
add eax, 2
test dl, dl
jne 0x401652
xor eax, eax
jmp 0x401677
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401695
mov eax, dword [edi + 8]
push eax
push 1
push 0x1f0fff
call ebx
test eax, eax
je 0x401695
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x10]
push edi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401630
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret
Function at 0x401cd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x401cd0
sub esp, 0x118
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x401d2f
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401d76
cmp eax, 2
jne 0x401d4b
push str.Key_not_found._n
push 0x43bba0
call fcn.0040103c
add esp, 8
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00406884
add esp, 0x118
ret
push str.Error_opening_key._n
push 0x43bba0
call fcn.0040103c
add esp, 8
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00406884
add esp, 0x118
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
cmp byte [esi - 1], 0x5c
je 0x401d91
mov byte [esi], 0x5c
add esi, 1
mov byte [esi], 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401e0b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x20]
push edx
push esi
call ebp
push edi
push ebx
call fcn.00401041
add esp, 8
test eax, eax
je 0x401e0a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401dc6
pop ebp
mov byte [esi - 1], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x120]
pop esi
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
add eax, 1
call fcn.00406884
add esp, 0x118
ret
Function at 0x401f10
Capabilities:
Delete registry key

Disassembly:
jmp 0x401f10
sub esp, 0x404
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004068a0
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x43b960
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401f52
lea edi, [esp + 8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401f64
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push str.Delect_Uninstall_Register_Path___s
push 0x43bba0
call fcn.0040103c
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
pop edi
pop esi
je 0x401fde
push str.Delect_Uninstall_Register_fail__
push 0x43bba0
call fcn.0040103c
add esp, 8
mov ecx, 0x43bba0
call fcn.00401032
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00406884
add esp, 0x404
ret
push str.Delect_Uninstall_Register_success__
push 0x43bba0
call fcn.0040103c
mov ecx, dword [esp + 0x408]
add esp, 8
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0x404
ret
Function at 0x402de0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
jmp 0x402de0
mov eax, 0x1110
call fcn.00406f00
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x110c], eax
lea eax, [esp + 4]
push eax
push 0x1000
lea ecx, [esp + 0x10]
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [esp + 4]
shr eax, 2
cmp eax, 0x400
mov dword [esp], 0x400
ja 0x402e24
mov dword [esp], eax
push ebp
xor ebp, ebp
cmp dword [esp + 4], ebp
jbe 0x402ece
push ebx
push esi
push edi
mov edx, dword [esp + ebp*4 + 0x18]
push edx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402eb7
push 0x104
lea eax, [esp + 0x101c]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x402eb7
mov esi, section..data
lea ebx, [ebx]
mov ecx, dword [esi]
push ecx
call fcn.00406ba4
push eax
call fcn.00406e99
lea edx, [esp + 0x1020]
push edx
mov ebx, eax
call fcn.00406ba4
push eax
call fcn.00406e99
push ebx
push eax
call fcn.00406200
add esp, 0x18
test eax, eax
jne 0x402eae
add esi, 4
cmp esi, str.USBVID_0ac8PID_0331MI_00
jl 0x402e70
jmp 0x402eb7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 1
cmp ebp, dword [esp + 0x10]
jb 0x402e34
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1110]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0x1110
ret
Function at 0x402f30
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x402f30
sub esp, 0x510
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x50c], eax
push esi
push edi
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x104
call fcn.004068a0
push str.X86_Plant
push 0x43bba0
call fcn.0040103c
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x43b960
add esp, 0x14
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402f91
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402fa3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.Delect_Uninstall_Register_Path___s
push 0x43bba0
call fcn.0040103c
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40301c
push str.No_Uninstall_Register
push 0x43bba0
call fcn.0040103c
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00406884
add esp, 0x510
ret
push str.Have_Uninstall_Register
push 0x43bba0
call fcn.0040103c
mov eax, dword [esp + 0x10]
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x414]
push edx
push 0
push 0
push str.ProductGuid
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40308b
push str.No_Product_GUID_Key
push 0x43bba0
call fcn.0040103c
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00406884
add esp, 0x510
ret
push str.Have_Product_GUID_Key
push 0x43bba0
call fcn.0040103c
mov ecx, dword [esp + 0x51c]
add esp, 8
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0x510
ret
Function at 0x403120
Capabilities:
Delete registry key

Disassembly:
jmp 0x403120
sub esp, 0x108
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push str.Enter_RemoveDevice__
push 0x43bba0
mov dword [esp + 0x10], 0
call fcn.0040103c
push esi
call fcn.00406ba4
push eax
call fcn.00406b20
mov dx, word [0x434b8c]
mov ecx, dword [str.Enum_]
mov word [esp + 0x20], dx
add esp, 0x10
mov dword [esp + 0xc], ecx
mov edx, eax
jmp 0x403180
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403180
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403192
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push str.EnumUSBVID_0000PID_0000
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000002
call esi
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x18]
push edx
push 0x80000002
call edi
test eax, eax
jne 0x4031f8
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x18]
push eax
push 0x80000002
call edi
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00406884
add esp, 0x108
ret
Function at 0x406884
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a070]
jne 0x40688e
repz ret
jmp fcn.0040b108

Function at 0x41a0e6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409569
xor ebx, ebx
cmp dword [0x43c6f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41a1bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41a126
xor eax, eax
jmp 0x41a27f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41a11f
push eax
call fcn.00409506
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c6f4], eax
call esi
push eax
call fcn.00409506
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c6f8], eax
call esi
push eax
call fcn.00409506
mov dword [0x43c6fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e138
test eax, eax
pop ecx
pop ecx
je 0x41a189
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b85
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41a1bb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409506
cmp eax, ebx
pop ecx
mov dword [0x43c704], eax
je 0x41a1bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409506
pop ecx
mov dword [0x43c700], eax
mov eax, dword [0x43c700]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41a234
cmp dword [0x43c704], esi
je 0x41a234
push eax
call fcn.00409572
pop ecx
call eax
cmp eax, ebx
je 0x41a201
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43c704]
call fcn.00409572
pop ecx
call eax
test eax, eax
je 0x41a201
test byte [ebp - 0x18], 1
jne 0x41a234
lea eax, [ebp - 0xc]
push eax
call fcn.0040e1e7
test eax, eax
pop ecx
je 0x41a21c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b85
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41a22b
or dword [ebp + 0x10], 0x200000
jmp 0x41a265
or dword [ebp + 0x10], 0x40000
jmp 0x41a265
mov eax, dword [0x43c6f8]
cmp eax, esi
je 0x41a265
push eax
call fcn.00409572
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41a265
mov eax, dword [0x43c6fc]
cmp eax, esi
je 0x41a265
push dword [ebp - 4]
push eax
call fcn.00409572
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43c6f4]
call fcn.00409572
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000a21f
pop dword [ebp - 0x50]
mov eax, 0x1000a21f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3750f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xce998b20
sub ecx, 0xce994201
xor edi, edi
add edi, eax
mov ebx, 0x10019800
add ebx, dword [ebp - 0x50]
mov esi, 0x19a7b6a7
sub esi, 0x7bf02def
xor dword [ebp - 0x14], 0x6c2f831d
mov edx, dword [ebx]
xor dword [ebp - 0x34], 0x720de86
add edx, esi
sub dword [ebp - 0x1c], 0x294391c1
mov dword [edi], edx
add dword [ebp - 0x4c], ecx
add edi, 4
add ebx, 0xb263e1fb
add ebx, 0x4d9c1e09
loop 0x1000a270
add eax, 0x63c5e1fc
sub eax, 0x63c4caad
mov ebx, eax
add eax, 0xcd6dcb67
sub eax, 0xcd6dcb62
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x104d0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104d01a8
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 0x104d007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d006a
add dl, dl
jne 0x104d0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d00dc
xor eax, eax
add dl, dl
jne 0x104d0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d017d
add dl, dl
jne 0x104d00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104d00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104d0075
mov eax, 1
add dl, dl
jne 0x104d00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d00e1
sub eax, ebx
mov ebx, 1
jne 0x104d0128
mov ecx, 1
add dl, dl
jne 0x104d010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104d0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104d013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104d014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d0136
cmp eax, 0x7d00
jae 0x104d016d
cmp eax, 0x500
jb 0x104d0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d0075
cmp eax, 0x7f
ja 0x104d0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104d019e
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 0x104d0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40a657
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov eax, str.Mozilla_5.0__Linux__U__Android_4.2.1__zh_cn__R815T_Build_JOP40D__AppleWebKit_533.1__KHTML__like_Gecko_Version_4.0_MQQBrowser_4.5_Mobile_Safari_533.1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a694
push ebx
call fcn.00421c9d
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x42c730
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x68860b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0067cb43
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42c7b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0067a61e
mov eax, dword [eax]
push 0x8562f4
push eax
call fcn.006695f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0067cdce
test bl, bl
je 0x42c7b2
push 0x8562f4
lea ecx, [esp + 0xc]
call fcn.0067d15e
push 0x859e54
lea ecx, [esp + 0xc]
call fcn.0067d15e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42c7ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0067cdce
jmp 0x42c8b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42c872
lea edx, [esp + 0x7c]
push 0x859e50
push edx
call fcn.006695f4
add esp, 8
test eax, eax
je 0x42c872
lea eax, [esp + 0x7c]
push 0x859e4c
push eax
call fcn.006695f4
add esp, 8
test eax, eax
je 0x42c872
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42c802
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0067cdce
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42d0b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA_1]
mov esi, eax
test esi, esi
jne 0x42d112
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc