joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401110
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x13], 0
mov eax, dword [edi + 0x44]
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x401154
push str.here_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [0x40dc9c]
test eax, eax
jne 0x4012c1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jbe 0x401173
lea eax, [edi + 0xb8]
jmp 0x40117e
mov byte [esp + 0x13], 1
lea eax, [edi + 0x88]
mov esi, dword [edi + 4]
xor ebx, ebx
test esi, esi
mov dword [esp + 0x14], ebx
jbe 0x4011b3
lea ecx, [eax + 0x38]
add eax, 0x34
mov ebp, esi
cmp dword [eax], 5
jne 0x40119e
cmp dword [ecx], 5
jne 0x40119e
inc ebx
mov dl, byte [esp + 0x13]
add eax, 0x40
add ecx, 0x40
dec ebp
jne 0x401193
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov al, byte [esp + 0x28]
test al, al
je 0x4011c4
cmp esi, ebx
jne 0x4011cc
jmp 0x401296
cmp esi, ebx
jne 0x401296
mov al, byte [esp + 0x13]
test al, al
lea eax, [edi + 0xb8]
je 0x4011e0
lea eax, [edi + 0x88]
test esi, esi
mov dword [esp + 0x1c], 0
jbe 0x401296
lea edi, [eax + 0x38]
lea ebx, [eax + 0x34]
lea ebp, [eax + 0x24]
mov ecx, dword [ebp]
push ecx
call section..text
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x401267
mov al, byte [esp + 0x28]
test al, al
je 0x401254
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40122b
cmp eax, 1
jne 0x401260
cmp dword [ebx], 5
jne 0x40122b
cmp dword [edi], 5
je 0x401260
lea edx, [esp + 0x18]
push edx
push esi
call dword [0x40dc94]
cmp dword [edi], 5
je 0x401260
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401260
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
inc edx
push eax
mov dword [esp + 0x18], edx
jmp 0x401259
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [0x40dc90]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add ebp, 0x40
mov ecx, dword [edx + 4]
add ebx, 0x40
add edi, 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x4011f9
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x28]
test al, al
je 0x4012b7
cmp dword [edi + 4], ebx
jne 0x4012b7
pop edi
pop esi
pop ebp
mov eax, 0x770
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov cl, byte [esp + 0x28]
push ebp
test cl, cl
je 0x4012ce
call eax
jmp 0x4012d4
call dword [0x40dc8c]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.here1_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401300
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 1
push 0x40a0bc
call fcn.00401e30
mov eax, dword [esp + 0x130]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 8
mov dword [eax], 0
push 0x40a0ac
push 0x40a030
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x40a09c
push 0x40a030
mov dword [0x40dc90], eax
call esi
push eax
call edi
push str.NtSuspendProcess
push 0x40a030
mov dword [0x40dc94], eax
call esi
push eax
call edi
push str.NtResumeProcess
push 0x40a030
mov dword [0x40dc9c], eax
call esi
push eax
call edi
mov ebp, dword [esp + 0x10]
mov dword [0x40dc8c], eax
xor ebx, ebx
mov eax, dword [0x40dc9c]
test eax, eax
je 0x401398
mov eax, 1
jmp 0x4013a5
mov eax, dword [esp + 0x11c]
and eax, 0xff
inc eax
cmp ebx, eax
jge 0x4014ee
call fcn.00401090
test eax, eax
je 0x4014de
mov ebp, 0x57
mov esi, eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40146d
xor eax, eax
cmp word [esi + 0x38], ax
jbe 0x4013ee
mov ecx, dword [esi + 0x3c]
inc eax
mov dl, byte [ecx + eax*2 - 2]
xor ecx, ecx
mov byte [esp + eax + 0x13], dl
mov cx, word [esi + 0x38]
cmp eax, ecx
jb 0x4013d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x120]
lea eax, [esp + 0x14]
not ecx
dec ecx
push ecx
push edx
push eax
call fcn.00408200
add esp, 0xc
test eax, eax
jne 0x40147b
mov edx, dword [esp + 0x120]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x14], 0x2e
je 0x40143e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x14]
test al, al
jne 0x40147b
mov ecx, dword [esp + 0x11c]
push ebx
push esi
push ecx
call fcn.00401110
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x401462
test ebx, ebx
jne 0x40147b
cmp ebp, 0x770
jne 0x40147b
mov eax, dword [esp + 0x128]
inc dword [eax]
jmp 0x40147b
mov edx, dword [esp + 0x124]
mov eax, dword [esi + 0x44]
cmp eax, edx
je 0x401488
mov eax, dword [esi]
test eax, eax
je 0x4014b9
add esi, eax
jmp 0x4013c1
mov eax, dword [esp + 0x11c]
push ebx
push esi
push eax
call fcn.00401110
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4014ac
test ebx, ebx
jne 0x4014b9
cmp ebp, 0x770
jne 0x4014b9
mov ecx, dword [esp + 0x128]
mov dword [ecx], 1
mov edx, dword [esp + 0x128]
cmp dword [edx], 0
je 0x4014ee
mov al, byte [esp + 0x11c]
test al, al
je 0x4014d8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x401388
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x128]
pop edi
pop esi
mov eax, dword [eax]
neg eax
sbb eax, eax
not eax
and eax, ebp
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401510
Capabilities:
Create service

Disassembly:
mov cl, byte [esp + 0x14]
mov eax, 0x10
test cl, cl
je 0x401522
mov eax, 0x110
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push 1
push 3
push eax
mov eax, dword [esp + 0x30]
push 0xf01ff
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401567
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x431
sete dl
mov eax, edx
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x401580
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
mov eax, dword [0x40d560]
test eax, eax
je 0x40159f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [0x40d560], eax
jne 0x4015c3
pop esi
pop ebx
add esp, 0x1c
ret
push ebp
push edi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4015e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x401621
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, 1
mov eax, dword [0x40d560]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
je 0x401621
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x401623
cmp eax, 1
je 0x401621
call esi
sub eax, ebx
cmp eax, 0xea60
jbe 0x4015ec
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x40d560]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [0x40d560], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401660
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
call ebx
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x30]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401692
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0xc]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
test edi, edi
je 0x4016d6
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4016d4
cmp dword [esp + 0x14], 1
je 0x4016d6
call ebx
sub eax, ebp
cmp eax, 0xea60
jbe 0x4016a7
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
cmp ebx, 0x834
mov edi, 0x1300
jb 0x401858
cmp ebx, 0xbb7
ja 0x401858
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x401858
mov edi, 0x1b00
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x40189a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x4018a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4018c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.BINRES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4018e1
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x40a130
push ecx
mov edi, eax
call fcn.00402c0c
mov esi, eax
add esp, 8
test esi, esi
jne 0x40191e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00402ae2
push esi
call fcn.00402a8c
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x401950
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x128
push esi
mov esi, dword [esp + 0x134]
mov byte [esp + 7], 0
cmp byte [esi], 0
jne 0x401972
xor al, al
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 0x130]
push edi
push eax
lea ecx, [esp + 0x30]
push str._sIPC_
push ecx
call fcn.00402a09
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0xb]
mov dword [esp + 0x1c], edx
push 0
mov dword [esp + 0x14], eax
push esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
call sub.MPR.dll_WNetAddConnection2A
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x128
ret
Function at 0x4019f0
Capabilities:
Delete file
Get common file path
Get hostname

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x310
push ebx
push ebp
push esi
xor esi, esi
test al, al
push edi
je 0x401ac8
mov eax, dword [esp + 0x32c]
mov edi, dword [esp + 0x328]
push eax
push edi
call fcn.004017e0
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x118]
mov dword [esp + 0x10], 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x118]
push edi
push eax
call fcn.00402c1f
add esp, 8
test eax, eax
jne 0x401a7f
lea ecx, [esp + 0x21c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x330]
lea eax, [esp + 0x21c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
jmp 0x401a92
mov edx, dword [esp + 0x330]
lea eax, [esp + 0x14]
push edx
push edi
push str._sADMIN_System32_s
push eax
call fcn.00402a09
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x401ac8
call ebx
cmp eax, 5
jne 0x401ac8
push 0x64
call edi
inc esi
cmp esi, 0xa
jb 0x401aac
mov edx, dword [esp + 0x328]
push edx
call fcn.00401940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x4069a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d338
cmp edx, dword [eax]
je 0x4069c7
add eax, 8
inc ecx
cmp eax, 0x40d3c8
jl 0x4069b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d338]
jne 0x406af5
mov eax, dword [0x40d7d0]
cmp eax, 1
je 0x406acf
test eax, eax
jne 0x4069f8
cmp dword [0x40b13c], 1
je 0x406acf
cmp edx, 0xfc
je 0x406af5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406a2f
lea eax, [ebp - 0x1a4]
push 0x409514
push eax
call fcn.00407ae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406a72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409510
push edi
call fcn.00407c60
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4094f4
push eax
call fcn.00407ae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407af0
lea eax, [ebp - 0xa0]
push 0x4094f0
push eax
call fcn.00407af0
push dword [esi + 0x40d33c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407af0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4094c8
push eax
call fcn.00407bd0
add esp, 0x2c
pop edi
jmp 0x406af5
lea eax, [ebp + 8]
lea esi, [esi + 0x40d33c]
push 0
push eax
push dword [esi]
call fcn.00407350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4074b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d4eb
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.00460411
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407532
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045dec7
mov eax, dword [eax]
push 0x6031d0
push eax
call fcn.00450c14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046069c
test bl, bl
je 0x407532
push 0x6031d0
lea ecx, [esp + 0xc]
call fcn.00460a78
push 0x606d18
lea ecx, [esp + 0xc]
call fcn.00460a78
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 0x40756e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046069c
jmp 0x407639
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 0x4075f2
lea edx, [esp + 0x7c]
push 0x606d14
push edx
call fcn.00450c14
add esp, 8
test eax, eax
je 0x4075f2
lea eax, [esp + 0x7c]
push 0x606d10
push eax
call fcn.00450c14
add esp, 8
test eax, eax
je 0x4075f2
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 0x407582
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.0046069c
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 0x407e30
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 0x407e92
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 0x407ea0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x60dc20]
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 0x407fd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407f06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046069c
xor eax, eax
jmp 0x40804f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460825
push esi
lea ecx, [esp + 0xc]
call fcn.00460ab4
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 0x40802d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00407e30
test eax, eax
jne 0x40802d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00407e30
test eax, eax
jne 0x40802d
lea eax, [esp + 0x14]
push 0x606d2c
push eax
call fcn.00451cf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40800c
lea ecx, [esp + 0x14]
push 0x606d28
push ecx
call fcn.00451c70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40800c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40800f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004607d5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407f1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046069c
xor eax, eax
jmp 0x40804f
mov byte [esi], 0
push 0x606d24
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.0046069c
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 0x4185f0
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 0x41865e
cmp si, 0x69
ja 0x41865e
add esi, 0xffd0
cmp si, 0x11
je 0x41862e
push 0x11
call edi
test ax, ax
jge 0x41862e
or esi, 0x2000
cmp si, 0x10
je 0x418643
push 0x10
call edi
test ax, ax
jge 0x418643
or esi, 0x4000
cmp si, 0x12
je 0x418658
push 0x12
call edi
test ax, ax
jge 0x418658
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41866b
mov esi, 0xbd
jmp 0x41861f
cmp si, 0x6e
jne 0x418678
mov esi, 0xbe
jmp 0x41861f
cmp si, 0x6f
jne 0x418619
mov esi, 0xbf
jmp 0x41861f

Function at 0x419cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x61e9a0]
xor edx, edx
cmp eax, edx
jne 0x419cf6
xor eax, eax
mov byte [eax + 0x61e8a0], al
inc eax
cmp eax, 0x100
jl 0x419cde
mov dword [0x61e9a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x61e8a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419d87
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 0x419d5a
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 0x419d28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419e00
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 0x419e53
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 0x419e3a
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