joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46204b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ee1b0]
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 0x407d98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407cc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457093
xor eax, eax
jmp 0x407e0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004571d0
push esi
lea ecx, [esp + 0xc]
call fcn.0045745f
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 0x407ded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00407bf0
test eax, eax
jne 0x407ded
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.00407bf0
test eax, eax
jne 0x407ded
lea eax, [esp + 0x14]
push 0x5e7d2c
push eax
call fcn.00448c90
mov esi, eax
add esp, 8
test esi, esi
jne 0x407dcc
lea ecx, [esp + 0x14]
push 0x5e7d28
push ecx
call fcn.00448c10
mov esi, eax
add esp, 8
test esi, esi
jne 0x407dcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407dcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00457180
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407cde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457093
xor eax, eax
jmp 0x407e0f
mov byte [esi], 0
push 0x5e7d24
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.00457093
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 0x418400
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 0x41846e
cmp si, 0x69
ja 0x41846e
add esi, 0xffd0
cmp si, 0x11
je 0x41843e
push 0x11
call edi
test ax, ax
jge 0x41843e
or esi, 0x2000
cmp si, 0x10
je 0x418453
push 0x10
call edi
test ax, ax
jge 0x418453
or esi, 0x4000
cmp si, 0x12
je 0x418468
push 0x12
call edi
test ax, ax
jge 0x418468
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41847b
mov esi, 0xbd
jmp 0x41842f
cmp si, 0x6e
jne 0x418488
mov esi, 0xbe
jmp 0x41842f
cmp si, 0x6f
jne 0x418429
mov esi, 0xbf
jmp 0x41842f

Function at 0x419ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5fe7e8]
xor edx, edx
cmp eax, edx
jne 0x419b06
xor eax, eax
mov byte [eax + 0x5fe6e8], al
inc eax
cmp eax, 0x100
jl 0x419aee
mov dword [0x5fe7e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5fe6e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419b97
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 0x419b6a
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 0x419b38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419c10
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 0x419c63
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 0x419c4a
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
Function at 0x42b900
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463ef8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00426200
test eax, eax
je 0x42ba08
lea ecx, [esp + 0xc]
call fcn.00402410
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00426200
mov ecx, eax
call fcn.004239c0
test eax, eax
je 0x42b9ef
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42b9ef
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42b9ef
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00402610
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42b9d1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42b9ef
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x5fec38]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x5d5a48
call fcn.00402610
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42ba50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00426200
test eax, eax
je 0x42bb3f
mov ecx, edi
call fcn.00426200
mov ecx, eax
call fcn.00423870
test eax, eax
jne 0x42bb3f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42bb3f
mov eax, dword [0x5fec38]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42bab2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00426200
mov ecx, eax
call fcn.00423aa0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42bb3f
cmp ebx, eax
jne 0x42bb3f
cmp dword [esp + 0x10], eax
jne 0x42bb25
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42e770
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464188
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42e7a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e8bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42e7bd
mov eax, 0xffffffc7
jmp 0x42e8be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42e7ce
cmp dword [esi + 8], eax
jne 0x42e7bd
cmp dword [esi + 8], eax
jne 0x42e7e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e7e7
mov eax, 0xffffffc7
jmp 0x42e8be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e7fb
push eax
mov ecx, ebx
call fcn.0042dfa0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402410
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e82c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402430
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d710
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e85f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d5a48
call fcn.00402610
mov eax, dword [esp + 0x38]
jmp 0x42e8be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042e5d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e8a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042e5f0
mov esi, eax
test esi, esi
jne 0x42e8d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042e5d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e875
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d5a48
call fcn.00402610
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5d5a48
call fcn.00402610
mov eax, esi
jmp 0x42e8be

Function at 0x4319a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431a00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431a00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431a00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431a00
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431a40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x469b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x2003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x469bbd
xor eax, eax
pop esi
add esp, 0xc
ret 4
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push 0x5c45f4
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x469c07
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
call fcn.0045acce
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret 4

Function at 0x46b3c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x46b3e8
mov dword [eax], 0x50ca94
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x46b3ea
xor edi, edi
push edi
push 0x46b450
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x46b43f
cmp dword [edi + 8], ebx
jle 0x46b432
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x46b426
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x46b405
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x46b43f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4
Function at 0x46f280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dccf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
mov dword [esi], 0x4ec018
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 8]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x24], 2
mov byte [esi + 0x48], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ebx
mov cl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x28], 3
mov byte [esi + 0x54], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ebx
push str.Control
mov ecx, edi
mov byte [esp + 0x24], 4
mov dword [esi], fcn.0045a400
call fcn.0045acce
push 0x5e2540
mov ecx, ebp
call fcn.0045acce
push 0x5e2540
lea ecx, [esi + 0xc]
call fcn.0045acce
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, 0x51
mov ecx, 0x21
mov dword [esi + 0x1c], eax
push 8
mov byte [esi + 0x10], 1
mov byte [esi + 0x11], 1
mov byte [esi + 0x12], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
mov byte [esi + 0x46], 1
mov eax, esi
pop edi
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x470730
Capabilities:
Create thread
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x28]
jmp 0x476080
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4760c1
call fcn.00476bd0
test eax, eax
je 0x4760c8
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x4764f0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x4760c1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4760c1
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x4760c1
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x47ad70
Capabilities:
Log keystrokes

Disassembly:
push 1
push 1
call fcn.0047ad90
add esp, 4
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret

Function at 0x47ae00
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x47ae59
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
je 0x47ae55
call esi
push eax
push str.failure:_CreateService__error_code:_u_n
push 0x6194c0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x47af00
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x47af24
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x47c840
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x47c85b
cmp ebx, 8
jg 0x47c85b
mov eax, 1
jmp 0x47c85d
xor eax, eax
mov esi, dword [esp + 0x14]
push 0x5da21c
push eax
push esi
call fcn.0047b0b0
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x47c894
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x52266a]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x522668]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x52266c]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x52266e]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x47c8f5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x47c901
cmp ebx, 8
jl 0x47c901
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x47c97a
cmp eax, 0xffffffff
je 0x47c97a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x47c945
push esi
call fcn.0047cb90
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x47c94d
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x9cadc6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
push word [esp + 1]
lea esp, [esp + 9]
jmp 0x9cae10
mov byte [esp + 1], bh
lea esp, [esp + 3]
mov dword [esp + 0x40], esi
pushal
push word [esp + 0x1f]
push word [esp + 9]
jmp 0x9cae29
push edx
lea esp, [esp + 2]
push word [esp + 2]
mov word [esp + 2], dx
pop word [esp]
mov byte [esp + 1], ah
jmp 0x9cade4
mov word [esp + 0x12], sp
pushal
lea esp, [esp + 0x44]
call fcn.009cafb6
mov byte ss:[0x14a25730], al
je 0x9cae27
ja 0x9cae54
loope 0x9cae95
lcall 0x8960, 0x7e17e4f5
dec esp
and al, 5
pushal
xchg di, ax
xchg edx, ecx
pop edi
jmp 0x9cae80
mov dx, word [esp]
lea ecx, [eax - 0x51faaabf]
mov si, 0x396b
lea esi, [eax + ebx]
lea esi, [esp]
jmp 0x9cae53
sub esp, 0xa4
mov edi, esp
bswap ecx
sub esp, 0x12
jmp 0x9caebd
scasb al, byte es:[edi]
cmp al, 0x5b
mov dh, 5
and al, 0xc3
push ebx
lds eax, ss:[esi]
push es
mov cl, 0xb0
mov bl, 0xaa
lea ebx, [ebx*4]
lea eax, [ebp + 0xaf]
bswap ecx
mov ecx, eax
mov ebp, dword [esp + 0x28]
jmp 0x9cae6a
js 0x9caedd
rdtsc
setae dh
call fcn.009caf3f
fld dword [ebp - 0x2b]
mov esp, 0xf669f84f
add edi, esi
cmp edi, dword [ecx - 0x15]
jnp 0x9caef7
in eax, dx
das
mov ds, word [ecx]
rdtsc
setae dh
lea esp, [esp + 2]
mov esp, 0x1246c89
mov word [esp + 4], bx
mov dword [esp + 0x44], edi
lea esp, [esp + 0x44]
pushfd
jmp 0x9caea6

Function at 0x9cafb6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 1], ebp
mov word [esp], dx
push dword [esp]
mov dword [esp + 3], esi
jmp 0x9caef8

Function at 0x9cc3d5
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 3]
lea esp, [esp + 3]
add esp, 0
jnp 0x9cc4a4
jp 0x9cc48e
lea ebx, [edi + ebp*2]
lea esp, [esp + 3]
jmp 0x9cc4dd
lea esp, [esp + 3]
jmp 0x9cc4dd
sub eax, ecx
call 0x9cc4c2
invalid
Function at 0x9cc4c2
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap eax
jmp 0x9cc2bf
xchg dword [esp + 0xd], ecx
mov dword [esp + 3], esi
jmp 0x9cc47c
sub esp, 0x1e
jnp 0x9cc2a6
xchg dword [esp + 0xd], ecx
mov dword [esp + 3], esi
lea esp, [esp + 2]
jmp 0x9cc480
jg 0x9cc31a
stc
jmp 0x9cc31b
stc
mov edx, edi
mov al, 0xc
jmp 0x9cc38f
cmp esi, edx
ja fcn.009caff7
mov al, 0x2e
xchg ah, ch
inc edx
jmp 0x9cc304
lea eax, [esp + ebx]
xchg al, ah
mov eax, 0xcfd77398
mov al, byte [esp]
jmp 0x9cc376
lea ecx, [edi + 0x40]
jmp 0x9cc340
lea eax, [esi - 0x80]
sub esp, 0x16
jb 0x9cc39b
pop word [esp + 0xb]
mov word [esp + 8], sp
jmp 0x9cc3f0
sub ecx, edx
push esp
pop word [esp]
push word [esp + 1]
mov al, ah
jmp 0x9cc35e
mov ch, bh
mov cx, dx
neg ax
jne 0x9cc359
je 0x9cc359
pop word [esp + 0xb]
jmp 0x9cc3a6
mov word [esp + 8], sp
sub esp, 0xa
lea esp, [esp + 2]
call fcn.009cc426
loope 0x9cc432
jmp 0xc2573f46
jg 0x9cc441
push dword [esp + 0xa]
push dword [esp]
jmp 0x9cc448
jmp 0x9cc4bb
sub esp, 0xa
lea esp, [esp + 2]
jmp 0x9cc3d0
lea esp, [esp + 3]
xchg dword [esp + 4], ebp
sub esp, 0x1c
pushal
pop word [esp + 0x31]
pop dword [esp + 0x1e]
jmp 0x9cc465
jmp 0x9cc3fd
push dword [esp + 0xa]
push dword [esp]
jmp 0x9cc331
lea esp, [esp]
lea esp, [esp]
lea esp, [esp + 1]
xchg dword [esp + 0x38], ebp
pushal
jmp 0x9cc4f4
mov byte [esp + 0x11], ah
lea esp, [esp + 2]
lea ebp, [ebp + 0x19]
push esp
add esp, 3
stc
jmp 0x9cc44d
lea esp, [esp + 2]
lea edx, [edi + 0x50]
mov ch, byte [esp]
sub esp, 0xc
jmp 0x9cc3c5
and al, 0xfc
call fcn.009cc3d5
mov word [esp], di
cmc
jl 0x9cc530
jge 0x9cc50f
adc al, 0x95
add eax, 0x862c9f6c
push es
xchg esp, eax
push cs
mov eax, 0x88691e37
sub eax, dword [edx + 0x2b]
shr eax, 0xde
invalid
push word [esp + 1]
lea esp, [esp + 5]
mov dword [esp + 0x18], esi
add esp, 6
lea esp, [esp + 3]
push dword [esp + 0x4c]
ret 0x50
push word [esp + 1]
lea esp, [esp + 2]
jmp 0x9cc539
pushfd
jmp 0x9cc58c
push word [esp + 1]
lea esp, [esp + 2]
mov esp, eax
jmp 0x9cc51a
cld
rep movsb byte es:[edi], byte [esi]
pop ecx
jmp 0x9cc594
pop esi
popfd
jmp fcn.009caff7
mov ecx, ecx
jmp 0x9cc53d
push ecx
mov esi, edx
mov edi, eax
jmp 0x9cc55c
lea edi, [eax + ecx - 0x40]
push esi
push edi
jmp 0x9cc573
pop edi
jmp 0x9cc543

Function at 0x9d5e89
Capabilities:
Encode data using xor

Disassembly:
jmp 0x9bfaa6
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x9bfac2
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x9bfaae
jmp 0x9bfacd
ret
push word [esp]
jmp 0x9d5e07
mov word [esp + 2], bx
pop dword [esp]
call 0x9d5e89
pop ds
pushfd
xor dl, byte [ebp - 0x5c]
adc eax, 0x1879e96b
jmp 0x9d5e7f
lea esp, [esp + 0xc]
jmp 0x9bfa9b
mov ah, 0x70
xor byte [ecx + 0x7cbb4829], bh
sbb byte [ebx + 0x66], bh
push dword [esp + 5]
push esp
mov byte [esp + 0xb], ah
lea esp, [esp + 3]
jmp 0x9d5e6c