joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41457c
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x47abf8
call fcn.00478530
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, ecx
push 0x654
push dword [edi + 4]
call esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00427a90
and dword [ebp - 4], 0
push 0x61f
push dword [edi + 4]
call esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00427a90
lea ecx, [edi + 0x54]
mov byte [ebp - 4], 1
call fcn.0042809a
mov byte [ebp - 0xd], al
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
neg al
sbb eax, eax
and eax, 5
mov ebx, eax
push ebx
push dword [edi + 0x40]
call esi
push ebx
push dword [edi + 0x4c]
call esi
push ebx
push dword [ebp - 0x24]
call esi
push ebx
push dword [ebp - 0x18]
call esi
push ebx
push dword [edi + 0x70]
call esi
cmp byte [ebp - 0xd], 0
je 0x414610
lea ecx, [edi + 0x6c]
call fcn.0042809a
test al, al
je 0x414610
mov al, 1
jmp 0x414612
xor al, al
neg al
sbb eax, eax
and eax, 5
push eax
push dword [edi + 0x7c]
call esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00427abe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427abe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4157ff
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push str.http:__www.ammyy.com
push 0x493ee0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x417a12
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x47b16c
call fcn.00478530
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00427a90
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00427b7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00427abe
push 0
lea ecx, [ebp - 0x1c]
call fcn.00427a90
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 0xa2
push 0x7e
push ebx
push edi
push 7
push 0x39
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 1
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x15
add edi, 0xa
mov ecx, esi
push 0xa
push 0x71
push ebx
mov dword [ebp + 0x10], edi
push edi
mov edi, 0x10003
push edi
push 0xe
push dword [ebp + 8]
push esi
call fcn.00417957
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add ebx, 0x10
add eax, 0x17
push 0xa
push 0x5e
push ebx
push eax
push edi
push 0xf
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x18]
mov ecx, esi
push 0xa
push 0x5e
push ebx
push dword [ebp + 0xc]
push edi
push 0x10
push dword [ebp + 8]
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x10
push 0xa
push 0x5e
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x24]
mov ecx, esi
push edi
push 0x11
push dword [ebp + 8]
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x14
lea eax, [esi + 0x30]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x12
push dword [ebp + 8]
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x3c]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x13
push dword [ebp + 8]
push eax
call fcn.00417957
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x48]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x14
push dword [ebp + 8]
push eax
call fcn.00417957
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00427abe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x41978f
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x4197c2
push 0x4a73e0
lea ecx, [esi + 0x38]
mov byte [esi + 0x24], bl
call fcn.00428687
lea eax, [esp + 8]
push eax
push ebx
push esi
push 0x41981a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop esi
pop ebx
pop ecx
ret
Function at 0x41a01b
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 0x41a03b
xor eax, eax
jmp 0x41a08c
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x41a077
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 0x41a07d
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41a054
jmp 0x41a083
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 0x41a297
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
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 [0x4a7430], 0
je 0x41a3c9
mov ecx, 0x4a7544
call fcn.0041a090
cmp eax, edi
mov dword [esi + 4], eax
je 0x41a3c9
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x41a2f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_ImpersonateLoggedOnUser__
push str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
push edi
push 0x4a7870
jmp 0x41a3c1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80
push eax
lea eax, [ebp - 0xac]
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, 0x4a7870
jne 0x41a33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_GetUserName__
push ebx
push edi
push esi
call fcn.0041a43a
add esp, 0x14
and byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x41a35e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_RevertToSelf__
push ebx
push edi
push esi
call fcn.0041a43a
add esp, 0x14
cmp byte [ebp - 1], 0
je 0x41a3c9
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xac]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x20
push dword [edi + 4]
mov dword [ebp - 0x28], 1
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x41a3a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_LoadUserProfile__
jmp 0x41a3bd
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41a3b7
cmp eax, 0xffffffff
je 0x41a3b7
mov dword [edi], eax
jmp 0x41a3c9
push eax
push str.Invalid_profile_X
push ebx
push 0
push esi
call fcn.0041a43a
add esp, 0x14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a544
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47b430
call fcn.00478530
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x41a6b9
push str.Get_Router_IP
call fcn.0041b323
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004080e7
mov eax, dword [0x4a7448]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
call fcn.00407bb2
lea ecx, [ebp - 0x2c]
call fcn.00428c4a
test eax, eax
jne 0x41a5ed
lea eax, [ebp - 0x2c]
push str.NOT_FOUND
push eax
call fcn.00428d02
pop ecx
test al, al
pop ecx
je 0x41a5cb
push 7
mov ecx, 0x4a7558
call fcn.0041c972
push dword [esi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push str.Couldnt_get_router_ip__status_s
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x24]
call fcn.00428c4a
test eax, eax
jne 0x41a616
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push 0x4927d0
call fcn.00428c5a
push eax
push dword [0x4a7444]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
call fcn.00428c4a
test eax, eax
jne 0x41a63b
push 1
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00428c5a
push eax
push 0x493ee0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 0x18], bl
jne 0x41a68b
lea eax, [ebp - 0x24]
lea ecx, [ebp + 8]
push eax
call fcn.004281cd
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00428c4a
test eax, eax
je 0x41a669
push str.Access_denied_by_server.
lea ecx, [ebp + 8]
call fcn.00428687
lea ecx, [ebp + 8]
call fcn.00428c5a
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp byte [0x4a77d7], bl
je 0x41a6ad
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004281cd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408179
jmp 0x41a6c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408179
push dword [ebp + 8]
mov ecx, 0x4a7798
call fcn.0041ff47
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41a6d9
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x47b44f
call fcn.00478530
mov eax, 0x1de8
call fcn.004785f0
push ebx
push esi
push edi
mov esi, ecx
push 0x200
lea ecx, [ebp - 0x24]
call fcn.00426a4d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0044f0e7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 0x3d
mov edi, ebx
lea ecx, [ebp - 0x24]
shr edi, 7
call fcn.00426beb
push ebx
lea ecx, [ebp - 0x24]
call fcn.00426bfa
lea eax, [ebp - 0x3c]
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.00426bb3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
sete cl
inc cl
test al, al
mov byte [ebp - 0x28], cl
je 0x41a753
push 0x37
pop ebx
jmp 0x41a756
mov ebx, dword [esi + 8]
push edi
lea ecx, [ebp - 0x24]
call fcn.00426bfa
push 0
lea ecx, [ebp - 0x24]
call fcn.00426bfa
call fcn.0041faff
push eax
lea ecx, [ebp - 0x24]
call fcn.00426c09
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.00426beb
push dword [0x4a7448]
lea ecx, [ebp - 0x24]
call fcn.00426c09
push ebx
lea ecx, [ebp - 0x24]
call fcn.00426c09
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov ecx, dword [esi + 0xc]
push 1
push 0x4948b4
add ecx, 0xc
call fcn.00424f8e
lea ecx, [ebp - 0x1df4]
call fcn.0041b45b
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x1df4]
add eax, 0xc
mov byte [ebp - 4], 1
push eax
call fcn.004234a0
push 0x12
lea ecx, [ebp - 0x24]
call fcn.00422c4a
inc eax
lea ecx, [ebp - 0x1df4]
push eax
call fcn.00424e3e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
add eax, 0xffffffed
push eax
call fcn.00422c4a
mov ecx, dword [esi + 0xc]
add eax, 0x13
push eax
add ecx, 0xc
call fcn.00424e3e
push 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00422c4a
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
je 0x41a851
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.error_d__while_sending_Initial_msg
push eax
call fcn.0041b45e
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x486f80
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1df4]
call fcn.0042349f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00426ad9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41b282
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 0x41b2e3
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
ja 0x41b2c5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b297
lea eax, [ebp - 8]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.0041b45e
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x486f80
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 0x41b31c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ReadNonBlock___error_d
push eax
call fcn.0041b45e
add esp, 0xc
lea eax, [ebp - 8]
push 0x486f80
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41b3d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x41b44d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41b41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CreateThread___Error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41b44b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CloseHandle___Error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x41babe
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x3e8
push esi
div ecx
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x114]
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jne 0x41bb26
lea eax, [ebp - 8]
push str.AcceptSocket___timeout
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
jle 0x41bb6d
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41bb6d
push esi
push esi
push edi
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x41bb93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.accept___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.select___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
leave
ret

Function at 0x41c0b9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x41c119
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 4
push ecx
push 0xffffff7f
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41c0ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x4a7870
call fcn.00426343
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi + 4], 0
push 0x18e
lea ecx, [esi + 0x2c]
call fcn.00426bfa
pop esi
leave
ret
Function at 0x41c43a
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.CReTranslator::SimpleRead1__X__read__d_bytes
push 0x4a7870
call fcn.0042635b
add esp, 0x10
test esi, esi
jle 0x41c471
mov eax, esi
pop esi
ret
jge 0x41c484
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41c484
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
test edi, edi
jle 0x41c4e2
mov eax, 0x4000
cmp edi, eax
jg 0x41c4a5
mov eax, edi
push 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
push ebx
push dword [esp + 0x14]
push str.CReTranslator::SimpleSend1__X__send__d_bytes
push 0x4a7870
call fcn.0042635b
add esp, 0x10
test ebx, ebx
jle 0x41c4f2
cmp ebx, edi
mov ecx, esi
jne 0x41c4e8
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebx
ret
push ebx
push 0
call fcn.00426d00
jmp 0x41c4e2
jge 0x41c501
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41c4e2
xor al, al
jmp 0x41c4e4
Function at 0x41c505
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x208], edi
cmp dword [ebp + edx*4 - 0x204], ecx
je 0x41c53c
inc edx
cmp edx, edi
jb 0x41c52e
cmp edx, edi
jne 0x41c550
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x208], 2
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x3c]
je 0x41c564
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], edi
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x24]
je 0x41c59c
mov edx, dword [ebp - 0x104]
xor eax, eax
test edx, edx
jbe 0x41c586
cmp dword [ebp + eax*4 - 0x100], ecx
je 0x41c586
inc eax
cmp eax, edx
jb 0x41c578
cmp eax, edx
jne 0x41c59c
cmp edx, 0x40
jae 0x41c59c
mov dword [ebp + eax*4 - 0x100], ecx
inc dword [ebp - 0x104]
push 0
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x41c630
cmp eax, 4
jg 0x41c630
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c5e2
lea eax, [esi + 0x14]
push eax
push dword [esi]
call fcn.0041c64e
pop ecx
test al, al
pop ecx
je 0x41c64a
lea eax, [ebp - 0x208]
push eax
push dword [esi + 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c607
lea eax, [esi + 0x2c]
push eax
push dword [esi + 4]
call fcn.0041c64e
pop ecx
test al, al
pop ecx
je 0x41c64a
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.0041c489
pop ecx
test al, al
pop ecx
je 0x41c64a
lea eax, [esi + 0x2c]
push eax
push dword [esi]
call fcn.0041c489
pop ecx
test al, al
pop ecx
jne 0x41c515
jmp 0x41c64a
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReTranslate__1_error_d__d
push 0x4a7870
call fcn.00426343
add esp, 0x10
pop edi
pop esi
leave
ret

Function at 0x41c64e
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 0x41c68d
push eax
push 0
mov ecx, esi
call fcn.00426bb3
mov al, 1
jmp 0x41c6bf
jge 0x41c6bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41c689
cmp eax, 0x2746
je 0x41c6bd
cmp eax, 0x2745
je 0x41c6bd
push eax
push str.CReTranslator::SimpleRead__1_error_d
push 0x4a7870
call fcn.00426343
add esp, 0xc
xor al, al
pop edi
pop esi
ret

Function at 0x41ca47
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
mov ecx, 0x4964d8
and eax, edx
xor esi, esi
mov di, word [ecx]
and di, dx
cmp ax, di
je 0x41ca7d
add ecx, 0x12
inc esi
cmp ecx, str.Finnish
jl 0x41ca5d
mov ax, word [0x4964d8]
pop edi
pop esi
ret
lea eax, [esi + esi*8]
mov ax, word [eax*2 + 0x4964d8]
jmp 0x41ca7a
Function at 0x41deee
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 0x41df80
push 0xf01ff
lea ecx, [edi + 4]
call fcn.00428c5a
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 0x41df75
lea eax, [ebp - 0x1c]
mov byte [esi], 1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41df70
cmp dword [ebp - 0x18], 4
jne 0x41df64
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp dword [ebp - 0x18], 1
jne 0x41df70
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push edi
call ebx
jmp 0x41df7b
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 0x41df87
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x47b86c
call fcn.00478530
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
mov esi, ecx
call fcn.0040b2bf
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24]
push 0x494ed4
push eax
call fcn.00429dc7
push str.___service
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00429d5c
add esp, 0x20
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00429a78
mov ecx, esi
call fcn.00428c5a
push eax
lea ecx, [ebp - 0x14]
call fcn.00429b38
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00429f59
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00429a78
lea ecx, [esi + 4]
call fcn.00428c5a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429b38
lea ecx, [esi + 8]
mov byte [ebp - 4], 5
call fcn.00428c5a
push eax
lea ecx, [ebp - 0x18]
call fcn.00429b38
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00428c5a
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.00428c5a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00428c5a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
jne 0x41e0b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x41e094
lea eax, [ebp - 0x28]
push str.The_Ammyy_service_is_already_registered
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x28]
push str.ERROR__d_CreateServiceW___while_registering_the_Ammyy_service
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
mov ecx, esi
call fcn.0041e103
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00429a78
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00429a78
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00429a78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00429a78
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4