joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a76f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47d2dc
call fcn.0047bfa0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.00429153
mov byte [esi + 0xc], al
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00429224
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x10]
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a8ed
mov ecx, edi
call fcn.0042917c
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.00429167
push eax
push dword [ebp + 8]
call fcn.00452a08
pop ecx
mov dword [esi + 0x18], eax
pop ecx
mov dword [esi + 0x1c], edx
mov ecx, edi
call fcn.0042917c
mov ecx, edi
call fcn.0042917c
mov ecx, edi
mov dword [esi + 0x20], eax
call fcn.0042917c
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00429224
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 1
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a8ed
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00429224
push eax
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 2
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
mov ecx, edi
call fcn.00429190
and dword [esi + 0x3c], 0
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.00429190
and dword [esi + 0x34], 0
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.00429190
mov ecx, dword [ebp - 0xc]
and dword [esi + 0x44], 0
mov dword [esi + 0x40], eax
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40b0dd
Capabilities:
Create directory

Disassembly:
mov eax, 0x47d45c
call fcn.0047bfa0
sub esp, 0xc
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.0042bbb2
call fcn.0040b03c
test al, al
pop ecx
jne 0x40b15d
mov ecx, dword [ebp + 8]
push 0
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b15d
mov ecx, dword [ebp + 8]
call fcn.0042b08a
push eax
lea ecx, [ebp + 8]
call fcn.0042a9a5
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042b08a
push eax
lea eax, [ebp - 0x18]
push str.cant_create_folder__s_error__d
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40b3e1
Capabilities:
Delete file

Disassembly:
mov eax, 0x47d510
call fcn.0047bfa0
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b43b
push esi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.0042a9a5
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042b08a
push eax
lea eax, [ebp - 0x14]
push str.Cant_delete_file__s_error_d
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40b46e
Capabilities:
Move file

Disassembly:
mov eax, 0x47d52c
call fcn.0047bfa0
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40b4e7
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0042a9a5
mov esi, eax
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042a9a5
mov edi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042b08a
push eax
mov ecx, edi
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.error_d_while_renaming__s_to__s
push eax
call fcn.0042777f
add esp, 0x14
lea eax, [ebp - 0x18]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40b7c4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47d597
call fcn.0047bfa0
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042bba6
mov esi, dword [ebp + 0xc]
xor edi, edi
inc edi
dec esi
neg esi
sbb esi, esi
push 0x104
and esi, 0xfffffff9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
add esi, 0x23
call fcn.0042c3a2
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40b831
push eax
lea eax, [ebp - 0x1c]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c478
lea eax, [ebp - 0x10]
push eax
call fcn.0040b33b
lea ecx, [ebp - 0x10]
mov dword [esp], str.AMMYY_
call fcn.0042c351
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042bbb2
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
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 0x40b8b9
Capabilities:
Get hostname

Disassembly:
mov eax, 0x47d5c3
call fcn.0047bfa0
sub esp, 0x14
and dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0042a5ec
xor esi, esi
lea ecx, [ebp - 0x14]
mov eax, 0x400
inc esi
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
call fcn.0042adda
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40b91f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.GetComputerName___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0042aeb0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a5f8
mov dword [ebp - 0x18], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40becd
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x47d6e6
call fcn.0047bfa0
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00429e6d
mov dword [esi], 0x483c14
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call fcn.00422f68
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00422f68
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 3
call fcn.00429e6d
push edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 4
call fcn.00429e6d
push edi
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 5
call fcn.00429e6d
push edi
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.00429e6d
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x84], edi
mov dword [esi], 0x483c00
mov dword [esi + 0xc], 0x64
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40efdc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47dc93
call fcn.0047bfa0
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042bba6
xor esi, esi
push 0x104
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0042c3a2
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40f03b
push eax
lea eax, [ebp - 0x1c]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c478
lea eax, [ebp - 0x10]
push eax
call fcn.0040b33b
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0042bbb2
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413c4c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x47e73f
call fcn.0047bfa0
sub esp, 0xf0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
jmp 0x413c6c
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.0041ebb9
cmp byte [esi + 0x18], bl
je 0x413d7b
push str.___NEED_UPDATE___
lea ecx, [esi + 0xb8]
call fcn.00429f4f
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040bb0d
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040af4d
pop ecx
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040ba55
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042bfe4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0042bea3
lea ecx, [ebp - 0x20]
call fcn.0042b08a
push ebx
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0042c3a2
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xfc]
push ecx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x413d5f
lea ecx, [ebp - 0x14]
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x40]
call fcn.0042a9a5
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0042b08a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x38]
push str.Cant_run__s_error_d
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 0x38]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0042bea3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0042bea3
jmp 0x413f0c
mov eax, dword [0x4adf14]
push 0x4a0e64
xor eax, 0xfe7ded7b
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b4f9
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0042b08a
push eax
lea ecx, [esi + 0xb8]
call fcn.00429f4f
mov ecx, esi
call fcn.00413480
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DrawMenuBar]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0042a8ed
jmp 0x413f0c
or dword [ebp - 4], 0xffffffff
cmp byte [esi + 0x18], bl
push ebx
je 0x413f38
push ebx
push 0x10
mov byte [0x4adefc], 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
mov ecx, 0x4adfd8
mov dword [ebp - 4], 0xc
call fcn.0040ab92
jmp 0x413f29
Function at 0x419daa
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x47f204
call fcn.0047bfa0
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00429e6d
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00429f3f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00429e9b
push 0
lea ecx, [ebp - 0x1c]
call fcn.00429e6d
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 0x3c
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 1
push eax
call fcn.00419cef
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.00419cef
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.00419cef
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.00419cef
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.00419cef
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.00419cef
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.00419cef
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.00419cef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00429e9b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x41bbd5
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x41bc08
push 0x4adf20
lea ecx, [esi + 0x38]
mov byte [esi + 0x24], bl
call fcn.0042aab7
lea eax, [esp + 8]
push eax
push ebx
push esi
push 0x41bc60
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 0x41c461
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 0x41c481
xor eax, eax
jmp 0x41c4d2
lea eax, [ebp - 0x128]
mov dword [ebp - pe_nt_image_headers32], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x41c4bd
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 0x41c4c3
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41c49a
jmp 0x41c4c9
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 0x41c6dd
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 [0x4adef4], 0
je 0x41c80f
mov ecx, 0x4ae024
call fcn.0041c4d6
cmp eax, edi
mov dword [esi + 4], eax
je 0x41c80f
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x41c73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_ImpersonateLoggedOnUser__
push str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
push edi
push 0x4ae590
jmp 0x41c807
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, 0x4ae590
jne 0x41c783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_GetUserName__
push ebx
push edi
push esi
call fcn.0041c880
add esp, 0x14
and byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x41c7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_RevertToSelf__
push ebx
push edi
push esi
call fcn.0041c880
add esp, 0x14
cmp byte [ebp - 1], 0
je 0x41c80f
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 0x41c7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_LoadUserProfile__
jmp 0x41c803
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41c7fd
cmp eax, 0xffffffff
je 0x41c7fd
mov dword [edi], eax
jmp 0x41c80f
push eax
push str.Invalid_profile_X
push ebx
push 0
push esi
call fcn.0041c880
add esp, 0x14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c98a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47f4f0
call fcn.0047bfa0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x41cb04
push str.Get_Router_IP
call fcn.0041d7d8
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004088f5
mov eax, dword [0x4adf14]
lea ecx, [ebp - 0x40]
xor eax, 0xfe7ded7b
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
call fcn.004083c0
lea ecx, [ebp - 0x2c]
call fcn.0042b07a
test eax, eax
jne 0x41ca38
lea eax, [ebp - 0x2c]
push str.NOT_FOUND
push eax
call fcn.0042b132
pop ecx
test al, al
pop ecx
je 0x41ca16
push 7
mov ecx, 0x4ae030
call fcn.0041ea59
push dword [esi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e0c0
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.0042777f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x24]
call fcn.0042b07a
test eax, eax
jne 0x41ca61
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push str.Ammyy_Admin
call fcn.0042b08a
push eax
push dword [0x4adf10]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
call fcn.0042b07a
test eax, eax
jne 0x41ca86
push 1
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0042b08a
push eax
push 0x4a1238
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 0x18], bl
jne 0x41cad6
lea eax, [ebp - 0x24]
lea ecx, [ebp + 8]
push eax
call fcn.0042a5f8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0042b07a
test eax, eax
je 0x41cab4
push str.Access_denied_by_server.
lea ecx, [ebp + 8]
call fcn.0042aab7
lea ecx, [ebp + 8]
call fcn.0042b08a
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp byte [0x4ae4ef], bl
je 0x41caf8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0042a5f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408987
jmp 0x41cb11
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408987
push dword [ebp + 8]
mov ecx, 0x4ae4b0
call fcn.00422279
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41cb24
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x47f50f
call fcn.0047bfa0
mov eax, 0x1de8
call fcn.0047c000
push ebx
push esi
push edi
mov esi, ecx
push 0x200
lea ecx, [ebp - 0x24]
call fcn.00428e25
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00452b07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 0x3d
mov edi, ebx
lea ecx, [ebp - 0x24]
shr edi, 7
call fcn.00428fc3
push ebx
lea ecx, [ebp - 0x24]
call fcn.00428fd2
lea eax, [ebp - 0x3c]
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.00428f8b
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 0x41cb9e
push 0x37
pop ebx
jmp 0x41cba1
mov ebx, dword [esi + 8]
push edi
lea ecx, [ebp - 0x24]
call fcn.00428fd2
push 0
lea ecx, [ebp - 0x24]
call fcn.00428fd2
call fcn.00421e31
push eax
lea ecx, [ebp - 0x24]
call fcn.00428fe1
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.00428fc3
mov eax, dword [0x4adf14]
lea ecx, [ebp - 0x24]
xor eax, 0xfe7ded7b
push eax
call fcn.00428fe1
push ebx
lea ecx, [ebp - 0x24]
call fcn.00428fe1
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 0x4a1bd4
add ecx, 0xc
call fcn.0042736d
lea ecx, [ebp - 0x1df4]
call fcn.0042587b
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x1df4]
add eax, 0xc
mov byte [ebp - 4], 1
push eax
call fcn.0042587f
push 0x12
lea ecx, [ebp - 0x24]
call fcn.004296bf
inc eax
lea ecx, [ebp - 0x1df4]
push eax
call fcn.0042721d
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
add eax, 0xffffffed
push eax
call fcn.004296bf
mov ecx, dword [esi + 0xc]
add eax, 0x13
push eax
add ecx, 0xc
call fcn.0042721d
push 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.004296bf
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 0x41cca1
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.0041d9ad
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x491e78
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1df4]
call fcn.0042587e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00428eb1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41d737
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 0x41d798
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
ja 0x41d77a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d74c
lea eax, [ebp - 8]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.0041d9ad
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x491e78
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 0x41d7d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ReadNonBlock___error_d
push eax
call fcn.0041d9ad
add esp, 0xc
lea eax, [ebp - 8]
push 0x491e78
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41d926
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x41d99f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41d96c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CreateThread___Error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CloseHandle___Error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x41e179
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 0x41e1e4
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 0x41e1ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x4ae590
call fcn.00428716
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.00428fd2
pop esi
leave
ret