joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aee
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x45dc04
call fcn.0045d320
sub esp, 0x1a4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 8], bl
jne 0x401b15
cmp byte [esi + 0xe], bl
mov dword [0x47a230], ebx
je 0x401b1f
mov dword [0x47a230], 1
cmp byte [esi + 8], bl
je 0x401b8a
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004023e6
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], ebx
call fcn.00401fbe
push str.AMMYY_service.log
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.00412faf
add esp, 0x1c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00412d67
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00412d67
lea ecx, [ebp - 0x18]
call fcn.00414407
push eax
mov ecx, 0x47a230
call fcn.00411312
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00412d67
jmp 0x401b97
push dword [esi + 0x28]
mov ecx, 0x47a230
call fcn.0041133b
mov ecx, esi
call fcn.0040167b
cmp dword [0x47a230], ebx
push 1
sete al
mov byte [0x47a528], al
call fcn.0041065f
pop ecx
mov edi, 0x46d10c
push edi
mov ecx, 0x47a524
call fcn.00412ee6
push edi
mov ecx, 0x47a4a0
call fcn.00412ee6
push 0x46d428
mov ecx, 0x47a498
call fcn.00412ee6
mov edi, 0x47a1b0
mov ecx, edi
call fcn.0040da7a
push eax
mov ecx, 0x47a49c
call fcn.00412ee6
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
cmp byte [esi + 8], bl
jne 0x401d03
lea eax, [ebp - 0x1b0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error_d_WSAStartup__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, edi
call fcn.0040d25c
cmp byte [0x47a228], bl
je 0x401c5c
mov ecx, 0x47a118
call fcn.0040167b
cmp dword [esi + 0x20], ebx
jbe 0x401d03
add esi, 0x14
mov ecx, esi
call fcn.00411e62
mov ecx, esi
mov byte [0x46ff88], al
call fcn.00411e39
mov word [0x47a53c], ax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00411eee
push eax
mov ecx, 0x47a538
mov dword [ebp - 4], 5
call fcn.00412e51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412d67
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00411eee
push eax
mov ecx, 0x47a530
mov dword [ebp - 4], 6
call fcn.00412e51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412d67
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00411eee
push eax
mov ecx, 0x47a52c
mov dword [ebp - 4], 7
call fcn.00412e51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00412d67
mov ecx, edi
call fcn.0040d897
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401d53
Capabilities:
Set current directory

Disassembly:
mov eax, 0x45dc30
call fcn.0045d320
sub esp, 0x10
push ebx
push esi
lea esi, [ecx + 4]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call fcn.00413381
test eax, eax
je 0x401e52
lea ecx, [ebp - 0x10]
call fcn.00412af0
cmp byte [0x47a124], bl
mov dword [ebp - 4], ebx
je 0x401dd7
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.004023e6
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00401fbe
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00412e51
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00412d67
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00412d67
lea eax, [ebp - 0x10]
push eax
call fcn.0040257a
pop ecx
jmp 0x401df9
lea eax, [ebp - 0x1c]
push eax
call fcn.00402a1c
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00412e51
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00412d67
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00412e51
lea ecx, [ebp - 0x10]
call fcn.00414407
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414407
push eax
lea eax, [ebp - 0x18]
push str.SetCurrentDirectory__s__error_u
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00412d67
mov ecx, dword [ebp + 8]
push esi
call fcn.00412afc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4020f7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push esi
call fcn.00412afc
call fcn.0040206d
test al, al
pop ecx
jne 0x402152
push 0
mov ecx, esi
call fcn.00414407
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402152
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push dword [esi]
push str.cant_create_folder__s_error__d
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret

Function at 0x40261f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40265a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push str.Cant_delete_file__s_error_d
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x402683
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4026c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.error_d_while_renaming__s_to__s
push eax
call fcn.004109c8
add esp, 0x14
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x402961
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45de27
call fcn.0045d320
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00412af0
mov esi, dword [ebp + 0xc]
push 1
dec esi
pop edi
neg esi
sbb esi, esi
push 0x105
and esi, 0xfffffff9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
add esi, 0x23
call fcn.004131b3
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, ebx
jge 0x4029ce
push eax
lea eax, [ebp - 0x1c]
push str.SHGetFolderPath___Error_X
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00413289
lea eax, [ebp - 0x10]
push eax
call fcn.0040257a
lea ecx, [ebp - 0x10]
mov dword [esp], str.AMMYY_
call fcn.00413176
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00412afc
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00412d67
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402a1c
Capabilities:
Create directory

Disassembly:
mov eax, 0x45de5b
call fcn.0045d320
sub esp, 0x1c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call fcn.00412af0
push 1
pop ebx
mov dword [ebp - 4], ebx
mov esi, ebx
cmp esi, 2
jg 0x402aff
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00402961
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00412e51
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00412d67
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00412afc
call fcn.0040206d
test al, al
pop ecx
jne 0x402b29
push 0
lea ecx, [ebp - 0x14]
call fcn.00414407
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.00414407
push eax
push str.CreateDirectory__s__error_u
push 0x47a230
call fcn.00411572
add esp, 0x10
jmp 0x402b3b
cmp esi, ebx
jne 0x402aff
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00414407
push eax
call fcn.00402793
pop ecx
jmp 0x402afc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00413381
test eax, eax
je 0x402b41
lea eax, [ebp - 0x28]
push str.Cant_find_any_writtable_folder
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp esi, ebx
jne 0x402aff
lea eax, [ebp - 0x14]
push eax
call fcn.00402471
test al, al
pop ecx
jne 0x402aff
inc esi
jmp 0x402a43
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00412afc
or dword [ebp - 0x18], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00412d67
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404882
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x45e23b
call fcn.0045d320
sub esp, 0x78
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.0040b634
cmp byte [esi + 0x18], bl
je 0x4049f5
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004023e6
pop ecx
pop ecx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401fbe
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00414407
push ebx
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.004131b3
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x40492e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 0x14]
push str.Cant_run__s_error_d
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00412d67
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00412d67
jmp 0x4049f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00412af0
lea edi, [esi + 0x1c]
mov dword [ebp - 4], 6
mov ecx, edi
call fcn.00414407
push eax
call dword [sym.imp.MSVCRT.dll_atol]
cmp eax, ebx
pop ecx
jbe 0x404a37
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004026cc
pop ecx
mov dword [ebp - 0x20], 1
pop ecx
mov byte [ebp - 4], 7
jmp 0x404a39
mov eax, edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00412e51
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 6
je 0x404a57
lea ecx, [ebp - 0x24]
call fcn.00412d67
lea ecx, [ebp - 0x18]
call fcn.00414407
push eax
push 0x5e7
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00412d67
cmp byte [esi + 0x18], bl
je 0x404a93
push ebx
push ebx
push 0x10
mov byte [0x47a118], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40595d
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push str.http:__www.ammyy.com
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x407cd4
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x407d07
push 0x47a148
lea ecx, [esi + 0x38]
mov byte [esi + 0x24], bl
call fcn.00412ee6
lea eax, [esp + 8]
push eax
push ebx
push esi
push 0x407d5f
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 0x40854e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 1
pop esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408592
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ERROR__d_of_creating_socket
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
call fcn.004086ac
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4085d1
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x4086a5
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp + 8]
push 4
push eax
push esi
push 6
push ebx
mov dword [ebp + 8], esi
call edi
test eax, eax
je 0x408617
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ERROR__d_disabling_Nagles_algorithm
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp + 8]
push 4
push eax
push 8
push 0xffff
push ebx
mov dword [ebp + 8], esi
call edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x408649
call edi
push eax
push str.ERROR__d_setsockopt_SO_KEEPALIVE_
push 0x47a230
call fcn.00411572
add esp, 0xc
xor eax, eax
lea ecx, [ebp + 8]
push eax
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x98000004
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0xea60
mov dword [ebp - 0xc], 0x7d0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4086a3
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call edi
push eax
lea eax, [ebp - 8]
push str.ERROR__d_while_setting_keepalive
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408791
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x47a15c], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x40893e
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x408e70
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.00408902
je 0x4087dd
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x46e014]
jmp 0x4088fe
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4088e6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x128]
push str.ws2_32
push eax
call sub.MSVCRT.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x408855
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x408851
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x4088a4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x128]
push str.wship6
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4088e6
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4088a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4088e6
and dword [ebp - 4], 0
lea edi, [ebp - 0x18]
push dword [edi - 4]
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x4088c5
inc dword [ebp - 4]
add edi, 8
cmp dword [ebp - 4], 3
jl 0x4088ab
jmp 0x4088ce
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4088e6
xor eax, eax
mov ecx, dword [ebp + eax - 0x18]
mov dword [eax + 0x46e014], ecx
add eax, 8
cmp eax, 0x18
jl 0x4088d4
movzx eax, word [ebp + 8]
pop edi
pop esi
mov eax, dword [eax*8 + 0x46e014]
mov dword [0x47a15c], 1
pop ebx
leave
ret 4

Function at 0x408d89
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x408e03
cmp word [ebx + 8], 2
jne 0x408de4
cmp word [ebx + 0xa], 4
jne 0x408de4
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x408de4
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408c22
test eax, eax
mov dword [edi], eax
je 0x408ddf
lea edi, [eax + 0x1c]
add esi, 4
jmp 0x408dbb
push 8
pop eax
jmp 0x408e29
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x408e29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x408e29
dec ecx
je 0x408e24
dec ecx
je 0x408e1d
dec ecx
jmp 0x408e29
mov eax, 0x2afb
jmp 0x408e29
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x40933f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x45e884
call fcn.0045d320
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x409497
mov eax, dword [esi]
push str.Get_Router_IP
push esi
call dword [eax + 0x14]
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040fbc7
mov eax, dword [esi + 4]
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.0040f0ac
lea ecx, [ebp - 0x2c]
call fcn.00413381
test eax, eax
jne 0x4093fb
lea eax, [ebp - 0x2c]
push str.NOT_FOUND
push eax
call fcn.00413425
pop ecx
test al, al
pop ecx
je 0x4093d9
lea eax, [ebp + 8]
push 0x5f5
push eax
mov ecx, 0x47a1a0
call fcn.0041174d
push dword [esi + 8]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00414407
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x465b58
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.004109c8
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x24]
call fcn.00413381
test eax, eax
jne 0x409421
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push 0x46d10c
call fcn.00414407
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
call fcn.00413381
test eax, eax
jne 0x409446
push 1
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00414407
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 0x18], bl
jne 0x409469
lea eax, [ebp - 0x14]
push str.Access_denied_by_server.
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp byte [0x47a1f7], bl
je 0x40948b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00412afc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004094b7
jmp 0x4094a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004094b7
push dword [ebp + 8]
mov ecx, 0x47a1b0
call fcn.0040dd35
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4099c5
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 esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 1
jae 0x409a08
call esi
sub eax, edi
cmp eax, 0xbb8
ja 0x409a6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4099d7
push 0
lea eax, [ebp + 8]
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
je 0x409a44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xc]
push str.error_d_while_reading_Initial_reply
push eax
call fcn.00409d8b
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x467118
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp + 8]
cmp al, byte [0x46dad8]
je 0x409a8b
lea eax, [ebp - 0xc]
push str.Routers_Initial_reply_is_invalid
push eax
call fcn.00409d8b
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x467118
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0xc]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.00409d8b
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x467118
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
leave
ret 4
Function at 0x409eb5
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x45e984
call fcn.0045d320
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
cmp dword [esi + 0x2c], edi
mov dword [ebp - 0x18], esi
jne 0x409f93
push 1
call fcn.0040a017
lea ecx, [ebp - 0x14]
call fcn.00412af0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x14]
push str.GlobalAmmyy.Target.Mutex__X_
push eax
call fcn.00413c31
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00414407
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi + 0x28], eax
call fcn.00412d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x409fdb
cmp ebx, 5
je 0x409fdb
mov edi, dword [esi + 0x28]
test edi, edi
je 0x409fb3
test ebx, ebx
jne 0x409fb3
mov eax, dword [esi]
push 1
pop edi
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 4]
mov eax, dword [esi]
push edi
mov ecx, esi
mov word [esi + 0x20], 6
call dword [eax + 0x2c]
push esi
call fcn.004338c7
test eax, eax
pop ecx
je 0x409f90
push eax
lea eax, [ebp - 0x20]
push str.Error__d_was_occur_while_calling_Start__
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, esi
call fcn.00409e91
push ebx
push edi
lea eax, [ebp - 0x28]
push str.CInteropTarget::Start__1__d__d
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00409e91
lea eax, [ebp - 0x30]
push str.Other_instance_of_Ammyy_target_is_running
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov esi, ecx
call fcn.00409e91
mov eax, dword [esi]
push str.Stopped
push esi
call dword [eax + 0x14]
pop ecx
pop ecx
pop esi
ret