joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x408905
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x408920
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x134
ret
lea ecx, [esp + 0x2c]
push str.winlogon.exe
push ecx
call fcn.0045ebfd
add esp, 8
test eax, eax
jne 0x40893a
mov edi, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x408920
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045dc1f
add esp, 0x134
ret

Function at 0x408970
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
or ebx, 0xffffffff
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4089f7
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
cmp dword [esp + 0x14], esi
jbe 0x4089f0
jmp 0x4089b0
mov edx, dword [esi + eax + 8]
push str.winlogon.exe
push edx
call fcn.0045ebfd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4089cf
cmp ebp, dword [esi + eax]
je 0x4089e9
inc edi
add esi, 0x10
cmp edi, dword [esp + 0x14]
jb 0x4089b0
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
shl edi, 4
mov ebx, dword [edi + eax + 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x408fa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x408
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.winsta.dll
call esi
push str.user32.dll
mov edi, eax
call esi
mov ebx, eax
mov dword [esp + 0x10], ebx
xor esi, esi
xor ebp, ebp
call fcn.00408f00
test al, al
jne 0x40907f
test edi, edi
je 0x408ff7
push str.WinStationConnectW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test ebx, ebx
je 0x409009
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x409060
mov ecx, dword [0x4a77d4]
xor eax, eax
test ecx, ecx
je 0x409021
call ecx
push 0
push 0x47b580
push eax
push 0
push 0
call esi
push 0xbb8
call ebx
call ebp
test eax, eax
jne 0x409060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.LockWorkstation_failed_with_error_0x_0X
push eax
call fcn.0045ddbe
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x409074
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40907f
push eax
call esi
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x408
ret

Function at 0x4090a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x4090f2
cmp dword [esp + 4], 5
jne 0x4090f2
cmp dword [esp + 8], 0
jne 0x4090f2
mov al, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor al, al
call fcn.0045dc1f
add esp, 0x98
ret

Function at 0x409300
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x134
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push edi
mov ecx, 9
mov esi, str.Provides_secure_remote_desktop_sharing
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push str.uvnc_service
movsw word es:[edi], word [esi]
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x40]
push pe_nt_image_headers32
push eax
movsb byte es:[edi], byte [esi]
call fcn.0045e1bd
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x10]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409375
sub eax, edx
mov edx, dword [esp]
inc eax
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x134
ret
Function at 0x4093c0
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.00409600
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4093f0
push 0x10
push str.UltraVNC
push str.Failed_to_open_service_control_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop esi
ret
push edi
push 0
push 0
push 0
push 0
push 0
push 0x48de30
push 1
push 2
push 0x110
push 0xf01ff
push str.uvnc_service
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x40947c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409452
push 0x10
push str.UltraVNC
push str.Failed:_Permission_denied
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
cmp eax, 0x431
je 0x40946d
push 0x10
push str.UltraVNC
push str.Failed_to_create_a_new_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
call fcn.00409300
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x4094a0
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4094d1
push 0x10
push str.UltraVNC
push str.Failed_to_open_service_control_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop esi
add esp, 0x1c
ret
push edi
push 0x10004
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409544
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409517
push 0x10
push str.UltraVNC
push str.Failed:_Permission_denied
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0x1c
ret
cmp eax, 0x424
je 0x409532
push 0x10
push str.UltraVNC
push str.Failed_to_open_the_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40957e
push 0x10
push str.UltraVNC
push str.Failed_to_query_service_status
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0xc], 1
push edi
je 0x4095ac
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004094a0
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4095e0
push 0x10
push str.UltraVNC
push str.Failed_to_delete_the_service
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x409600
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x409630
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x409630
lea ecx, [esp]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x409655
mov byte [eax + 1], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40967d
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x20c
ret
mov eax, 0x22
mov word [0x48de30], ax
lea eax, [esp + 0x104]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409691
push esi
push edi
mov edi, 0x48de30
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4096a4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x48de30
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4096c2
mov ecx, dword [str.___service]
mov edx, dword [0x47b744]
mov dword [eax], ecx
mov cx, word [0x47b748]
mov dword [eax + 4], edx
mov dl, byte [0x47b74a]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x208]
mov byte [eax + 0xa], dl
xor ecx, esp
xor eax, eax
call fcn.0045dc1f
add esp, 0x20c
ret

Function at 0x409710
Capabilities:
Get hostname

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x4000
mov dword [esi], vtable.TextChat.0
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x30], bl
call fcn.0045e0f8
push 0x4000
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.00463710
push 0x4000
call fcn.0045e0f8
push 0x4000
push ebx
push eax
mov dword [esi + 0x18], eax
call fcn.00463710
push 0x4000
call fcn.0045e0f8
push 0x4000
push ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.00463710
push 0x80
call fcn.0045e0f8
push 0x80
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.00463710
add esp, 0x40
push 0x80
call fcn.0045e0f8
push 0x80
push ebx
push eax
mov dword [esi + 0x24], eax
call fcn.00463710
push 0x4000
call fcn.0045e0f8
push 0x4000
push ebx
push eax
mov dword [esi + 0x28], eax
call fcn.00463710
mov edx, dword [esi + 0x24]
add esp, 0x20
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0xc], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x409801
cmp dword [esp + 4], 0x80
jb 0x409801
mov ecx, dword [esi + 0x24]
mov al, 0x2e
mov byte [ecx + 0x7c], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7d], al
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x7e], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7f], bl
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x2c], eax
cmp eax, ebx
jne 0x409826
push 0x30
push 0x4a68f0
push 0x4a6e20
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop ebx
pop ecx
ret
Function at 0x409990
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 4]
mov ecx, 8
sub ecx, eax
push esi
lea eax, [esp + eax + 0xc]
push eax
mov eax, dword [edx + 0xec]
push eax
call fcn.0044b5d0
mov eax, dword [esp + 0x10]
mov esi, eax
and esi, 0xff0000
mov ecx, eax
mov edx, eax
and edx, 0xff00
shr ecx, 0x10
shl eax, 0x10
or esi, ecx
or edx, eax
shr esi, 8
shl edx, 8
or esi, edx
cmp esi, 0xffffffff
jne 0x409a0d
cmp byte [ebx + 0x10], 0
jne 0x409aca
lea eax, [esp + 8]
push eax
push 0
push ebx
push 0x409f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
add esp, 0xc
ret
cmp esi, 0xfffffffe
jne 0x409a35
cmp byte [ebx + 0x10], 0
je 0x409aca
mov ecx, dword [ebx + 0xc]
push 0
push 1
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ebx
add esp, 0xc
ret
cmp esi, 0xfffffffd
je 0x409aca
cmp esi, 0x4000
jg 0x409aca
test esi, esi
jne 0x409a7a
mov edx, dword [ebx + 0xc]
push 0x47b37f
push 0x475
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebx + 0x1c]
push 0x4000
push esi
push eax
call fcn.00463710
add esp, 0xc
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x1c]
push 0x4000
push 0
push ecx
call fcn.00463710
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xec]
add esp, 0xc
push edx
push ecx
mov ecx, esi
call fcn.0044b5d0
mov edx, dword [ebx + 0xc]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
push 0xff
push ecx
push edx
call fcn.00409b50
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x40c380
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video0.dat
call edi
mov esi, eax
test esi, esi
je 0x40c3ab
cmp esi, 0xffffffff
jne 0x40c3c3
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.c:_video1.dat
call edi
mov esi, eax
test esi, esi
je 0x40c40d
cmp esi, 0xffffffff
je 0x40c40d
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40c402
cmp edi, 0xffffffff
je 0x40c402
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebx, eax
call ebp
push esi
call ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.._videodriver.cpp_:_Error_video.dat__n
xor ecx, ecx
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x40ce20
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc4
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0xc0], eax
xor eax, eax
push esi
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.00463710
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call esi
test eax, eax
jne 0x40ceb0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call esi
test eax, eax
jne 0x40ceb0
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045dc1f
add esp, 0xc4
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ced4
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x40cedf
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
sub eax, 2
jne 0x40cf76
mov eax, dword [esp + 0x2c]
cmp eax, 6
jne 0x40cf12
cmp dword [esp + 0x30], 0
jne 0x40cf76
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045dc1f
add esp, 0xc4
ret
cmp eax, 5
jne 0x40cf76
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x40cf68
cmp byte [esp + 0xc2], 1
jne 0x40cf4d
cmp word [esp + 4], 9
jne 0x40cf4d
mov eax, 7
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045dc1f
add esp, 0xc4
ret
mov eax, 5
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045dc1f
add esp, 0xc4
ret
cmp eax, 1
je 0x40cf4d
test eax, eax
mov eax, 5
je 0x40cf7b
mov eax, 4
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.0045dc1f
add esp, 0xc4
ret

Function at 0x40d170
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
je 0x40d21a
push edi
lea eax, [esp + 0xc]
push eax
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40d196
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0045dd59
add esp, 4
mov esi, eax
push esi
push edi
push 0
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d1e2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.StringFileInfo000004b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d206
mov edx, dword [esp + 8]
push 0x200
push edx
push ebx
call fcn.0045e270
push esi
call fcn.0045dc91
add esp, 0x10
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
mov byte [ebx], 0
call fcn.0045dc91
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40e1e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 1
mov ecx, ebp
call fcn.004016d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
add esp, 4
test eax, eax
jle 0x40e24f
push ebx
lea ebx, [eax - 1]
shr ebx, 3
lea esi, [eax + edi]
inc ebx
mov eax, esi
call fcn.00401c90
movzx eax, byte [esi - 8]
movzx ecx, byte [esi - 7]
xor byte [esi], al
xor byte [esi + 1], cl
movzx edx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx ecx, byte [esi - 4]
xor byte [esi + 2], dl
xor byte [esi + 3], al
xor byte [esi + 4], cl
movzx edx, byte [esi - 3]
movzx eax, byte [esi - 2]
movzx ecx, byte [esi - 1]
xor byte [esi + 5], dl
xor byte [esi + 6], al
xor byte [esi + 7], cl
add esi, 0xfffffff8
sub ebx, 1
jne 0x40e208
pop ebx
mov esi, edi
mov eax, edi
call fcn.00401c90
movzx edx, byte [ebp]
xor byte [edi], dl
movzx eax, byte [ebp + 1]
xor byte [edi + 1], al
movzx ecx, byte [ebp + 2]
xor byte [edi + 2], cl
movzx edx, byte [ebp + 3]
xor byte [edi + 3], dl
movzx eax, byte [ebp + 4]
xor byte [edi + 4], al
movzx ecx, byte [ebp + 5]
xor byte [edi + 5], cl
movzx edx, byte [ebp + 6]
xor byte [edi + 6], dl
movzx eax, byte [ebp + 7]
xor byte [edi + 7], al
pop esi
pop ebp
ret
Function at 0x4113b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x128], eax
push 0x105
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00463710
push 0x104
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0045f548
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
add esp, 0x18
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 8], 3
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x128]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0045dc1f
add esp, 0x12c
ret
Function at 0x4137e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x100], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, bl
test byte [esp + ecx], 1
je 0x413821
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push ebx
call esi
push 0
push 3
push 0
push ebx
call esi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x104
ret

Function at 0x413840
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x10c], eax
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x413890
push pe_nt_image_headers32
push str.Host_name_unavailable
push edi
call fcn.0045e270
add esp, 0xc
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x110
ret
push ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x4138cb
push pe_nt_image_headers32
push str.IP_address_unavailable
push edi
call fcn.0045e270
add esp, 0xc
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x110
ret
mov byte [edi], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
mov dword [esp + 4], 0
je 0x41399e
push ebx
push esi
xor ebx, ebx
xor eax, eax
xor esi, esi
cmp ax, word [ebp + 0xa]
jge 0x41393a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + ecx]
movzx eax, byte [edx + esi]
push eax
lea ecx, [esp + 0x14]
push 0x47ce90
push ecx
call fcn.0045ddbe
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413912
sub eax, edx
mov edx, 0xff
sub edx, eax
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0045f1e0
movsx ecx, word [ebp + 0xa]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x4138f0
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413940
sub eax, edx
mov byte [edi + eax - 1], cl
mov edx, dword [ebp + 0xc]
cmp dword [ebx + edx + 4], 0
je 0x41397f
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413960
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x47ce94
push edi
call fcn.0045f1e0
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
inc eax
lea ebx, [eax*4]
cmp dword [ebx + edx], 0
mov dword [esp + 0xc], eax
jne 0x4138e6
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop ebp
xor ecx, esp
call fcn.0045dc1f
add esp, 0x110
ret