joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4287f0
Capabilities:
Set current directory

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.Win9x_hOpenDriver_n
push ebx
call fcn.00444c70
push 0x474b1c
push 5
push 0x48b7f0
xor ebp, ebp
call fcn.004565a4
lea eax, [ebx + 0x410]
add esp, 0x14
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428820
mov edi, 0x48b7f0
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x428833
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x48b7f0
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x428853
mov ecx, dword [str..vxd]
mov dl, byte [0x474984]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebx + 0x210]
push eax
call edi
push 0x48b7f0
push str.Win9x_hOpenDriver_service___s_n
push ebx
call fcn.00444c70
add esp, 0xc
push 0
push 0x4000000
push 1
push 0
push 0
push 0
push 0x48b7f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4288c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebp, eax
push ebp
push str.Win9x_hOpenDriver_CreateFile_error___d__handle___X_n
push ebx
call fcn.00444c70
add esp, 0x10
mov ecx, dword [esp + 0x14]
add ebx, 4
push ebx
mov dword [ecx], ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x428a10
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x204
mov eax, dword [0x489e34]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
mov ebx, ecx
push esi
lea esi, [ebx + 0x210]
mov eax, esi
lea edx, [eax + 1]
jmp 0x428a40
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428a40
sub eax, edx
add eax, 1
push esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004565a4
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428a64
sub eax, edx
cmp byte [esp + eax + 0xb], 0x5c
lea eax, [esp + eax + 0xc]
je 0x428a80
mov byte [eax], 0x5c
mov byte [eax + 1], cl
lea eax, [ebx + 0x310]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428a88
push edi
lea edi, [esp + 0x10]
sub eax, esi
add edi, 0xffffffff
jmp 0x428aa0
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x428aa0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push str.WinNT_bCreateDriver_n
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00444c70
lea ecx, [esp + 0x18]
push ecx
push str.szDestName___s_n
push ebx
call fcn.00444c70
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 3
push 1
push 0xf01ff
lea eax, [ebx + 0x410]
push eax
push eax
mov eax, dword [ebx + 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
pop edi
jne 0x428b3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CreateService_
push ebx
call fcn.00444c70
mov eax, esi
add esp, 0xc
sub eax, 0x430
mov dword [ebp], esi
je 0x428b32
sub eax, 1
je 0x428b36
xor eax, eax
jmp 0x428b50
mov eax, 1
jmp 0x428b50
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov dword [ebp], eax
mov eax, esi
mov ecx, dword [esp + 0x20c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004563cf
add esp, 0x204
ret 4

Function at 0x428b70
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push str.WinNT_dwRemoveDriver_n
push esi
xor ebx, ebx
call fcn.00444c70
mov ecx, dword [esi + 0x208]
add esp, 8
push 0xf01ff
lea eax, [esi + 0x410]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x428bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.WinNT_dwRemoveDriver_:_Openservice_
push esi
call fcn.00444c70
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x428be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinNT_dwRemoveDriver_:_DeleteService_
push esi
call fcn.00444c70
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x428bf0
Capabilities:
Start service

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.WinNT_bStartDriver_n
push esi
call fcn.00444c70
mov ecx, dword [esi + 0x208]
add esp, 8
push 0xf01ff
lea eax, [esi + 0x410]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x428c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenService_
push esi
call fcn.00444c70
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
test edi, edi
jne 0x428c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.StartService_
push esi
call fcn.00444c70
mov eax, ebx
add esp, 0xc
sub eax, 2
je 0x428c82
sub eax, 0x41e
jne 0x428c82
mov edi, 1
jmp 0x428c84
xor edi, edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [edx], ebx
pop ebx
ret 4

Function at 0x428ca0
Capabilities:
Continue service
Stop service

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
push str.WinNT_dwStopDriver_n
push esi
mov dword [esp + 0x10], 0
call fcn.00444c70
mov ecx, dword [esi + 0x208]
add esp, 8
push 0xf01ff
lea eax, [esi + 0x410]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x428cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.WinNT_dwStopDriver_:_OpenService_
push esi
call fcn.00444c70
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea edx, [esp + 0x14]
push edx
push 1
push edi
call ebp
cmp dword [esp + 0x18], 3
mov ebx, eax
jne 0x428d48
mov eax, dword [esi + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
mov dword [esi + 0x204], 0xffffffff
call ebp
mov ebx, eax
push ebx
push str.WinNT_dwStopDriver_:_ControlService_
push esi
call fcn.00444c70
add esp, 0xc
test ebx, ebx
jne 0x428d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x474ccc
push esi
call fcn.00444c70
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x20
ret
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x428e10
Capabilities:
Get hostname

Disassembly:
sub esp, 0x20c
mov eax, dword [0x489e34]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
push edi
mov esi, ecx
push str.WinNT_bInstallDriver_n
push esi
call fcn.00444c70
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
mov dword [esp + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x428e60
lea edi, [esp + 0x14]
push edi
push str.szMachineName___s_n
push esi
call fcn.00444c70
add esp, 0xc
push 0xf003f
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esi + 0x208], eax
jne 0x428ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenSCManager_
push esi
call fcn.00444c70
add esp, 0xc
mov dword [ebx], edi
xor eax, eax
jmp 0x428f2c
cmp dword [esi + 0x20c], 0
je 0x428ee3
cmp dword [esi + 0x494], 0
mov ecx, esi
je 0x428ec2
call fcn.004297c0
jmp 0x428ec7
call fcn.004293e0
test eax, eax
jne 0x428ee3
push 0x474d9c
push esi
call fcn.00444c70
add esp, 8
mov dword [ebx], 0x5001
xor eax, eax
jmp 0x428f2c
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00428a10
mov edi, eax
test edi, edi
je 0x428f03
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00428bf0
mov edi, eax
mov eax, dword [esi + 0x208]
test eax, eax
je 0x428f14
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esi + 0x20c], 0
je 0x428f24
mov ecx, esi
call fcn.00429bf0
mov ecx, dword [esp + 0xc]
mov dword [ebx], ecx
mov eax, edi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004563cf
add esp, 0x20c
ret 4
Function at 0x429bf0
Capabilities:
Delete file

Disassembly:
push esi
lea eax, [ecx + 0x210]
mov esi, 0x48b7f0
push edi
sub esi, eax
nop
mov dl, byte [eax]
mov byte [esi + eax], dl
add eax, 1
test dl, dl
jne 0x429c00
mov edi, 0x48b7f0
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x429c14
mov ax, word [0x472770]
mov word [edi], ax
lea eax, [ecx + 0x310]
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x429c30
mov edi, 0x48b7f0
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x429c45
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x48b7f0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x438ab0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x438b32
push esi
push edi
call fcn.00447677
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x438b28
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x472770
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x438b28
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 0xa]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], edx
movzx edx, word [eax + 8]
mov dword [ecx + 4], edx
movzx edx, word [eax + 0xe]
mov dword [ecx + 8], edx
movzx eax, word [eax + 0xc]
mov dword [ecx + 0xc], eax
push esi
call fcn.004476a7
add esp, 4
pop esi
pop edi
pop ebx
add esp, 8
ret 8

Function at 0x44c2e7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44c320
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0044c2aa
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00408560
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x44de3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x44de7e
call fcn.004482c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44de7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44de99
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0044d9f2
test ebx, ebx
mov esi, eax
je 0x44de97
test edi, edi
je 0x44de97
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x452be8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x452c16
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x452c34
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00452b52
jmp 0x452c34
mov eax, dword [esi + 0x14]
test eax, eax
je 0x452c34
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00452b52
test edi, edi
mov eax, edi
jne 0x452c1e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48d578]
test ecx, ecx
je 0x452cf7
jmp 0x452be7
ret 8

Function at 0x4563cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x489e34]
jne 0x4563d9
repz ret
jmp fcn.0045d55c
Function at 0x4670e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045cfa2
xor ebx, ebx
cmp dword [0x48e290], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4671b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x467120
xor eax, eax
jmp 0x467279
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47c5bc
push edi
call esi
cmp eax, ebx
je 0x467119
push eax
call fcn.0045cf3f
mov dword [esp], 0x47c5ac
push edi
mov dword [0x48e290], eax
call esi
push eax
call fcn.0045cf3f
mov dword [esp], 0x47c598
push edi
mov dword [0x48e294], eax
call esi
push eax
call fcn.0045cf3f
mov dword [0x48e298], eax
lea eax, [ebp - 8]
push eax
call fcn.0045a07f
test eax, eax
pop ecx
pop ecx
je 0x467183
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045a945
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4671b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045cf3f
cmp eax, ebx
pop ecx
mov dword [0x48e2a0], eax
je 0x4671b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045cf3f
pop ecx
mov dword [0x48e29c], eax
mov eax, dword [0x48e29c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x46722e
cmp dword [0x48e2a0], esi
je 0x46722e
push eax
call fcn.0045cfab
pop ecx
call eax
cmp eax, ebx
je 0x4671fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x48e2a0]
call fcn.0045cfab
pop ecx
call eax
test eax, eax
je 0x4671fb
test byte [ebp - 0x18], 1
jne 0x46722e
lea eax, [ebp - 0xc]
push eax
call fcn.0045a0b6
test eax, eax
pop ecx
je 0x467216
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045a945
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x467225
or dword [ebp + 0x10], 0x200000
jmp 0x46725f
or dword [ebp + 0x10], 0x40000
jmp 0x46725f
mov eax, dword [0x48e294]
cmp eax, esi
je 0x46725f
push eax
call fcn.0045cfab
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46725f
mov eax, dword [0x48e298]
cmp eax, esi
je 0x46725f
push dword [ebp - 4]
push eax
call fcn.0045cfab
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 [0x48e290]
call fcn.0045cfab
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469cf2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x489e34]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00469c87
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004568e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x469d41
cmp dword [ebp - 0x1c], 5
jb 0x469d59
jmp 0x469d55
cmp dword [ebp - 0x10], 1
jne 0x469d59
cmp dword [ebp - 0x1c], 4
ja 0x469d55
jne 0x469d59
cmp dword [ebp - 0x18], 0
jbe 0x469d59
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47c62c
call fcn.00469b78
test eax, eax
jge 0x469d7a
mov byte [0x48b7d4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004563cf
add ebp, 0x78
leave
ret
Function at 0x407b10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x466dcb
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.0045bc08
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407b92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459b57
mov eax, dword [eax]
push 0x4ee1c0
push eax
call fcn.0044ca54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045be93
test bl, bl
je 0x407b92
push 0x4ee1c0
lea ecx, [esp + 0xc]
call fcn.0045c223
push 0x4f1d20
lea ecx, [esp + 0xc]
call fcn.0045c223
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 0x407bce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045be93
jmp 0x407c99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407c52
lea edx, [esp + 0x7c]
push 0x4f1d1c
push edx
call fcn.0044ca54
add esp, 8
test eax, eax
je 0x407c52
lea eax, [esp + 0x7c]
push 0x4f1d18
push eax
call fcn.0044ca54
add esp, 8
test eax, eax
je 0x407c52
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 0x407be2
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.0045be93
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 0x408490
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]
mov esi, eax
test esi, esi
jne 0x4084f2
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]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408500
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x466e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f85f0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408638
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408566
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045be93
xor eax, eax
jmp 0x4086af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045bfd0
push esi
lea ecx, [esp + 0xc]
call fcn.0045c25f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40868d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408490
test eax, eax
jne 0x40868d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00408490
test eax, eax
jne 0x40868d
lea eax, [esp + 0x14]
push 0x4f1d34
push eax
call fcn.0044da90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40866c
lea ecx, [esp + 0x14]
push 0x4f1d30
push ecx
call fcn.0044da10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40866c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40866f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045bf80
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40857e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045be93
xor eax, eax
jmp 0x4086af
mov byte [esi], 0
push 0x4f1d2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045be93
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x418b50
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x418bbe
cmp si, 0x69
ja 0x418bbe
add esi, 0xffd0
cmp si, 0x11
je 0x418b8e
push 0x11
call edi
test ax, ax
jge 0x418b8e
or esi, 0x2000
cmp si, 0x10
je 0x418ba3
push 0x10
call edi
test ax, ax
jge 0x418ba3
or esi, 0x4000
cmp si, 0x12
je 0x418bb8
push 0x12
call edi
test ax, ax
jge 0x418bb8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418bcb
mov esi, 0xbd
jmp 0x418b7f
cmp si, 0x6e
jne 0x418bd8
mov esi, 0xbe
jmp 0x418b7f
cmp si, 0x6f
jne 0x418b79
mov esi, 0xbf
jmp 0x418b7f

Function at 0x41a270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x508c28]
xor edx, edx
cmp eax, edx
jne 0x41a296
xor eax, eax
mov byte [eax + 0x508b28], al
inc eax
cmp eax, 0x100
jl 0x41a27e
mov dword [0x508c28], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x508b28
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a327
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41a2fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41a2c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41a3f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41a3da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret