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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x420b14
xor eax, eax
jmp 0x420b65
lea eax, [ebp - 0x128]
mov dword [ebp - pe_nt_image_headers32], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x420b50
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x420b56
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x420b2d
jmp 0x420b5c
mov esi, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x420d94
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 8], esi
mov dword [esi], edi
mov dword [esi + 4], edi
cmp byte [0x4c1ecc], 0
je 0x420ecd
lea eax, [ebp - 0xc]
mov ecx, 0x4c2088
push eax
mov dword [ebp - 0xc], edi
call fcn.00420b69
cmp eax, edi
mov dword [esi + 4], eax
je 0x420ecd
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x420dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_ImpersonateLoggedOnUser__
push str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
push edi
push 0x4c2700
jmp 0x420ec5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x80
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
mov ebx, str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
mov esi, 0x4c2700
jne 0x420e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_GetUserName__
push ebx
push edi
push esi
call fcn.00420f3e
add esp, 0x14
and byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x420e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_RevertToSelf__
push ebx
push edi
push esi
call fcn.00420f3e
add esp, 0x14
cmp byte [ebp - 1], 0
je 0x420ecd
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x20
push dword [edi + 4]
mov dword [ebp - 0x2c], 1
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x420eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_LoadUserProfile__
jmp 0x420ec1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420ebb
cmp eax, 0xffffffff
je 0x420ebb
mov dword [edi], eax
jmp 0x420ecd
push eax
push str.Invalid_profile_X
push ebx
push 0
push esi
call fcn.00420f3e
add esp, 0x14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4212c5
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x20
pop ebx
cmp ax, bx
ja 0x4212d8
mov ebx, eax
mov edi, dword [ebp + 8]
sub eax, ebx
push 0x1c
mov dword [ebp + 0x14], eax
lea esi, [edi + 5]
push dword [ebp + 0xc]
mov dword [edi], 0x10316
mov word [esi], 1
add esi, 4
mov word [esi], 0x303
inc esi
inc esi
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add esi, 0x1c
mov eax, 0xccff0dee
xor ecx, ecx
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + ecx*4]
inc ecx
cmp ecx, 7
jl 0x421310
mov dword [esi], eax
add esi, 4
mov byte [esi], bl
inc esi
movzx ebx, bx
push ebx
mov dword [ebp + 8], ebx
push dword [ebp + 0x10]
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x14]
add esi, ebx
add eax, 0xc
xor ecx, ecx
mov dword [esi], 0x2fc00400
add esi, 4
mov cl, ah
mov ebx, 0x100
mov dword [esi], 0x13500
add esi, 4
movzx eax, ax
mov byte [esi], cl
mov ecx, ebx
cdq
idiv ecx
add esp, 0xc
inc esi
inc esi
xor eax, eax
mov al, byte [ebp + 0x15]
mov byte [esi - 1], dl
mov byte [esi], 0xfe
inc esi
mov byte [esi], 0xd
inc esi
mov byte [esi], al
movzx eax, word [ebp + 0x14]
mov dword [ebp + 0xc], eax
cdq
idiv ecx
inc esi
inc esi
cmp word [ebp + 0x14], 0
mov byte [esi - 1], dl
jbe 0x4213a3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
add eax, ecx
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi], 0x4000a00
add esi, 4
mov dword [esi], 0x17000200
sub esi, edi
add esi, 4
lea eax, [esi - 5]
mov cl, ah
movzx eax, ax
mov byte [edi + 3], cl
mov ecx, ebx
cdq
idiv ecx
lea eax, [esi - 9]
xor ecx, ecx
mov cl, ah
movzx eax, ax
mov byte [edi + 4], dl
mov byte [edi + 7], cl
cdq
idiv ebx
mov ax, si
mov byte [edi + 8], dl
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x422118
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 0x14]
mov ebx, eax
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp + 0x14], esi
jae 0x42217a
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
ja 0x42215c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42212e
lea eax, [ebp - 0xc]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.00422392
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x4a0cf0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
je 0x4221b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xc]
push str.ReadNonBlock___error_d
push eax
call fcn.00422392
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4a0cf0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x422308
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x422381
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42234e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.CreateThread___Error__d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42237f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.CloseHandle___Error__d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x4228c5
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x48b688
call fcn.004874e0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x422a7e
push str.Get_Router_IP
call fcn.004221ba
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00409b9d
mov eax, dword [0x4c1f90]
lea ecx, [ebp - 0x48]
xor eax, 0xfe7ded7b
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
call fcn.004096a5
lea ecx, [ebp - 0x34]
call fcn.00434560
test eax, eax
jne 0x422991
lea eax, [ebp - 0x34]
push str.NOT_FOUND
push eax
call fcn.00434615
pop ecx
test al, al
pop ecx
je 0x42296f
push edi
lea eax, [ebp + 8]
push 7
push eax
mov ecx, 0x4c2098
call fcn.00424671
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00435b75
lea ecx, [ebp + 8]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.004353fc
push dword [esi + 8]
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004134b6
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
push dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push str.Couldnt_get_router_ip__status_s
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x2c]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x10]
call fcn.004354bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00435b65
test eax, eax
jne 0x4229d5
push dword [ebp - 0x28]
mov ecx, 0x4c1ed4
call fcn.00435b75
push eax
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
push dword [0x4c1ee0]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x24]
call fcn.00434560
test eax, eax
jne 0x4229fa
push 1
push ebx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00435b75
push eax
push 0x4b4584
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 0x20], bl
jne 0x422a3a
lea ecx, [ebp - 0x10]
call fcn.00435b65
test eax, eax
je 0x422a18
push str.Access_denied_by_server.
lea ecx, [ebp - 0x10]
call fcn.004355f0
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004134b6
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp byte [0x4c2633], bl
je 0x422a67
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.00433a95
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409c2f
jmp 0x422a8b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409c2f
push dword [ebp + 8]
mov ecx, 0x4c25c8
call fcn.00429a4a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x423a3f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48b820
call fcn.004874e0
sub esp, 0x78
and byte [ebp - 0x4c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [esi + 0xc]
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.004320d4
mov eax, dword [edi + 0x14]
and dword [ebp - 4], 0
add eax, 0x400
lea ecx, [ebp - 0x48]
push eax
call fcn.004321e4
lea ecx, [ebp - 0x48]
call fcn.0042dacc
push 0x40
mov dword [ebp + 8], eax
pop ecx
mov eax, ebx
cmp esi, ecx
ja 0x423a97
mov ecx, esi
add ecx, ebx
cmp ebx, ecx
jae 0x423aa5
xor byte [eax], 0x7f
inc eax
cmp eax, ecx
jb 0x423a9d
lea eax, [esi + esi*4]
lea ecx, [ebp - 0x84]
shl eax, 2
push eax
push esi
push dword [ebp + 8]
push ebx
call fcn.00423b7e
mov esi, eax
mov eax, dword [edi + 0x14]
cmp esi, eax
push esi
je 0x423ae6
push eax
lea eax, [ebp - 0x20]
push str.NTS_filesize_shoule_be__u_instead_of__u
push eax
call fcn.00430892
add esp, 0x10
lea eax, [ebp - 0x20]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0045e0c3
lea eax, [edi + 0x18]
push 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x423b25
lea eax, [ebp - 0x20]
push str.NTS_MD5_error_for_new_downloaded_file
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x14]
call fcn.00430bbc
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00435b75
push eax
lea ecx, [ebp - 0x14]
call fcn.00430c01
push esi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00430cee
lea ecx, [ebp - 0x14]
call fcn.00430b6f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00430b3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00432196
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x423de5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x423e50
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 4
push eax
push 0xffffff7f
push 0xffff
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x423e36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi + 0x24], 0
push 0x18e
lea ecx, [esi + 4]
call fcn.004322bc
pop esi
leave
ret
Function at 0x424199
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0
push 0x4000
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push dword [esp + 0xc]
push str.ReTranslator::SimpleRead1__X__read__d_bytes
push 0x4c2700
call fcn.004319df
add esp, 0x10
test esi, esi
jle 0x4241d0
mov eax, esi
pop esi
ret
jge 0x4241e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4241e3
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 4]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
test edi, edi
jle 0x42423f
mov eax, 0x4000
cmp edi, eax
jg 0x424206
mov eax, edi
push 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
push ebp
push dword [ebx]
push str.ReTranslator::SimpleSend___X__send__d_bytes
push 0x4c2700
call fcn.004319df
add esp, 0x10
test ebp, ebp
jle 0x424250
cmp ebp, edi
mov ecx, esi
jne 0x424246
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push 0
call fcn.00432411
jmp 0x42423f
jge 0x42425f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42423f
xor al, al
jmp 0x424241
Function at 0x424263
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov eax, dword [esi]
mov ecx, dword [edi]
xor ebx, ebx
xor edx, edx
inc ebx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x208], ebx
cmp dword [ebp + edx*4 - 0x204], ecx
je 0x42429d
inc edx
cmp edx, ebx
jb 0x42428f
cmp edx, ebx
jne 0x4242b1
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x208], 2
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0x14]
je 0x4242c9
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], 1
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x38]
je 0x424301
mov edx, dword [ebp - 0x104]
xor eax, eax
test edx, edx
jbe 0x4242eb
cmp dword [ebp + eax*4 - 0x100], ecx
je 0x4242eb
inc eax
cmp eax, edx
jb 0x4242dd
cmp eax, edx
jne 0x424301
cmp edx, 0x40
jae 0x424301
mov dword [ebp + eax*4 - 0x100], ecx
inc dword [ebp - 0x104]
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x424385
cmp eax, 4
jg 0x424385
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424346
lea eax, [esi + 0x28]
push eax
push dword [esi]
call fcn.004243a4
pop ecx
test al, al
pop ecx
je 0x42439f
lea eax, [ebp - 0x208]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424369
lea eax, [esi + 4]
push eax
push dword [edi]
call fcn.004243a4
pop ecx
test al, al
pop ecx
je 0x42439f
mov ecx, edi
call fcn.004241e8
test al, al
je 0x42439f
mov ecx, esi
call fcn.004241e8
test al, al
jne 0x424274
jmp 0x42439f
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReTranslate__1_error_d__d
push 0x4c2700
call fcn.004319c7
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4243a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x4000
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4243e3
push eax
push 0
mov ecx, esi
call fcn.00432271
mov al, 1
jmp 0x424415
jge 0x424413
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4243df
cmp eax, 0x2746
je 0x424413
cmp eax, 0x2745
je 0x424413
push eax
push str.ReTranslator::SimpleRead__1_error_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
xor al, al
pop edi
pop esi
ret

Function at 0x424756
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
mov ecx, 0x4b65bc
and eax, edx
xor esi, esi
mov di, word [ecx]
and di, dx
cmp ax, di
je 0x42478c
add ecx, 0x18
inc esi
cmp ecx, 0x4b676c
jl 0x42476c
mov ax, word [0x4b65bc]
pop edi
pop esi
ret
lea eax, [esi + esi*2]
mov ax, word [eax*8 + 0x4b65bc]
jmp 0x424789
Function at 0x426f43
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
push edi
push 0xf003f
push ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
push ebx
mov edi, ecx
mov byte [eax], bl
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x426fd5
push 0xf01ff
lea ecx, [edi + 4]
call fcn.00435b75
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x426fca
lea eax, [ebp - 0x1c]
mov byte [esi], 1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426fc5
cmp dword [ebp - 0x18], 4
jne 0x426fb9
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp dword [ebp - 0x18], 1
jne 0x426fc5
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push edi
call ebx
jmp 0x426fd0
mov eax, dword [ebp + 8]
mov byte [eax], 1
push dword [ebp + 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x426fdc
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x48ba88
call fcn.004874e0
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
mov esi, ecx
call fcn.0040c503
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24]
push 0x4b6edc
push eax
call fcn.0043574b
push str.___service
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.004356e0
add esp, 0x20
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004353fc
mov ecx, esi
call fcn.00435b75
push eax
lea ecx, [ebp - 0x14]
call fcn.004354bc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.004358dd
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004353fc
lea ecx, [esi + 4]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x1c]
call fcn.004354bc
lea ecx, [esi + 8]
mov byte [ebp - 4], 5
call fcn.00435b75
push eax
lea ecx, [ebp - 0x18]
call fcn.004354bc
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00435b75
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x1c]
call fcn.00435b75
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
jne 0x427109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4270e9
lea eax, [ebp - 0x30]
push str.The_Ammyy_service_is_already_registered
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x30]
push str.ERROR__d_CreateServiceW___while_registering_the_Ammyy_service
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
mov ecx, esi
call fcn.00427158
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004353fc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004353fc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004353fc
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x427158
Capabilities:
Manipulate safe mode programs

Disassembly:
mov eax, 0x48baac
call fcn.004874e0
push ecx
push ecx
add ecx, 4
lea eax, [ebp - 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push eax
call fcn.004340cb
add esp, 0xc
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x4271db
lea ecx, [ebp + 8]
call fcn.004319fd
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00435b75
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp + 8]
call fcn.00431a66
push str.Service
lea ecx, [ebp - 0x14]
call fcn.00433dfd
push eax
push 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00431cdb
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00433d8a
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00431a03
jmp 0x4271f0
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
push reloc.WS2_32.dll_bind
call fcn.00431d2e
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00433d8a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42720a
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
push 0xf01ff
lea ecx, [ebx + 4]
call fcn.00435b75
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x42737e
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push edi
call esi
test eax, eax
jne 0x427276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0xc]
push str.ERROR__d_QueryServiceStatus__
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x24], 1
je 0x427304
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4272ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0xc]
push str.ERROR__d_ControlService__
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x24], 3
jne 0x4272d9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
push edi
call esi
test eax, eax
jne 0x4272c0
cmp dword [ebp - 0x24], 1
je 0x427304
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0xc]
push str.The_Ammyy_service_could_not_be_stopped
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x427370
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x427367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x430
lea eax, [ebp - 0xc]
jne 0x42734a
push str.The_Ammyy_service_is_already_marked_for_removing
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push str.The_Ammyy_service_could_not_be_removed__error_d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
mov ecx, ebx
call fcn.00427158
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0xc]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException