joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b461
Capabilities:
Move file

Disassembly:
mov eax, 0x47d4fc
call fcn.0047bf20
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40b4da
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0042a9bc
mov esi, eax
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042a9bc
mov edi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042c635
push eax
mov ecx, edi
call fcn.0042c635
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.0042778f
add esp, 0x14
lea eax, [ebp - 0x18]
push 0x48e404
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 0x40b7b7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47d567
call fcn.0047bf20
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042bbba
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.0042c3bb
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40b824
push eax
lea eax, [ebp - 0x1c]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c491
lea eax, [ebp - 0x10]
push eax
call fcn.0040b32e
lea ecx, [ebp - 0x10]
mov dword [esp], str.AMMYY_
call fcn.0042c36a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042bbc6
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bebc
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 0x40b8ac
Capabilities:
Get hostname

Disassembly:
mov eax, 0x47d593
call fcn.0047bf20
sub esp, 0x14
and dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0042a608
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.0042adf1
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40b912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.GetComputerName___error_d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0042aec7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a614
mov dword [ebp - 0x18], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042a904
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40bec0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x47d6b6
call fcn.0047bf20
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00429e89
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.00422f7e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00422f7e
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 3
call fcn.00429e89
push edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 4
call fcn.00429e89
push edi
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 5
call fcn.00429e89
push edi
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.00429e89
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 0x40efd4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47dc63
call fcn.0047bf20
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042bbba
xor esi, esi
push 0x104
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0042c3bb
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40f033
push eax
lea eax, [ebp - 0x1c]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c491
lea eax, [ebp - 0x10]
push eax
call fcn.0040b32e
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0042bbc6
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bebc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413c79
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x47e70f
call fcn.0047bf20
sub esp, 0xf0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
jmp 0x413c99
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.0041ebcf
cmp byte [esi + 0x18], bl
je 0x413da8
push str.___NEED_UPDATE___
lea ecx, [esi + 0xb8]
call fcn.00429f6f
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040bb00
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.0040af40
pop ecx
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040ba48
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042bffd
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0042bebc
lea ecx, [ebp - 0x20]
call fcn.0042c635
push ebx
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0042c3bb
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 0x413d8c
lea ecx, [ebp - 0x14]
call fcn.0042c635
push eax
lea ecx, [ebp - 0x40]
call fcn.0042a9bc
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0042c635
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.0042778f
add esp, 0x10
lea eax, [ebp - 0x38]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0042bebc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0042bebc
jmp 0x413f39
mov eax, dword [0x4adee4]
push 0x4a0e5c
xor eax, 0xfe7ded7b
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b4ec
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0042c635
push eax
lea ecx, [esi + 0xb8]
call fcn.00429f6f
mov ecx, esi
call fcn.004134ad
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DrawMenuBar]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0042a904
jmp 0x413f39
or dword [ebp - 4], 0xffffffff
cmp byte [esi + 0x18], bl
push ebx
je 0x413f65
push ebx
push 0x10
mov byte [0x4adecc], 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, 0x4adf98
mov dword [ebp - 4], 0xc
call fcn.0040ab85
jmp 0x413f56
Function at 0x419dd7
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x47f1d4
call fcn.0047bf20
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00429e89
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00429f5f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00429eb7
push 0
lea ecx, [ebp - 0x1c]
call fcn.00429e89
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.00419d1c
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.00419d1c
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.00419d1c
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.00419d1c
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.00419d1c
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.00419d1c
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.00419d1c
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.00419d1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00429eb7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x41bbe9
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x41bc1c
push 0x4ade80
lea ecx, [esi + 0x38]
mov byte [esi + 0x24], bl
call fcn.0042aace
lea eax, [esp + 8]
push eax
push ebx
push esi
push 0x41bc74
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 0x41c475
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 0x41c495
xor eax, eax
jmp 0x41c4e6
lea eax, [ebp - 0x128]
mov dword [ebp - pe_nt_image_headers32], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x41c4d1
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 0x41c4d7
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41c4ae
jmp 0x41c4dd
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 0x41c6f1
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 [0x4adec4], 0
je 0x41c823
mov ecx, 0x4adfe4
call fcn.0041c4ea
cmp eax, edi
mov dword [esi + 4], eax
je 0x41c823
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x41c752
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_ImpersonateLoggedOnUser__
push str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
push edi
push 0x4ae550
jmp 0x41c81b
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, 0x4ae550
jne 0x41c797
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_GetUserName__
push ebx
push edi
push esi
call fcn.0041c894
add esp, 0x14
and byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x41c7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_RevertToSelf__
push ebx
push edi
push esi
call fcn.0041c894
add esp, 0x14
cmp byte [ebp - 1], 0
je 0x41c823
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 0x41c801
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_LoadUserProfile__
jmp 0x41c817
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41c811
cmp eax, 0xffffffff
je 0x41c811
mov dword [edi], eax
jmp 0x41c823
push eax
push str.Invalid_profile_X
push ebx
push 0
push esi
call fcn.0041c894
add esp, 0x14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c99e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47f4c0
call fcn.0047bf20
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
je 0x41cb18
push str.Get_Router_IP
call fcn.0041d7f1
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004088e8
mov eax, dword [0x4adee4]
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.004083b3
lea ecx, [ebp - 0x2c]
call fcn.0042b091
test eax, eax
jne 0x41ca4c
lea eax, [ebp - 0x2c]
push str.NOT_FOUND
push eax
call fcn.0042b146
pop ecx
test al, al
pop ecx
je 0x41ca2a
push 7
mov ecx, 0x4adff0
call fcn.0041ea6f
push dword [esi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e404
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.0042778f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x24]
call fcn.0042b091
test eax, eax
jne 0x41ca75
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push 0x49fc84
call fcn.0042c635
push eax
push dword [0x4adee0]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
call fcn.0042b091
test eax, eax
jne 0x41ca9a
push 1
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0042c635
push eax
push 0x4a1230
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 0x18], bl
jne 0x41caea
lea eax, [ebp - 0x24]
lea ecx, [ebp + 8]
push eax
call fcn.0042a614
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0042b091
test eax, eax
je 0x41cac8
push str.Access_denied_by_server.
lea ecx, [ebp + 8]
call fcn.0042aace
lea ecx, [ebp + 8]
call fcn.0042c635
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp byte [0x4ae4af], bl
je 0x41cb0c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0042a614
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040897a
jmp 0x41cb25
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040897a
push dword [ebp + 8]
mov ecx, 0x4ae470
call fcn.0042228f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41cb38
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x47f4df
call fcn.0047bf20
mov eax, 0x1de8
call fcn.0047bfe0
push ebx
push esi
push edi
mov esi, ecx
push 0x200
lea ecx, [ebp - 0x24]
call fcn.00428e45
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00452ad4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 0x3d
mov edi, ebx
lea ecx, [ebp - 0x24]
shr edi, 7
call fcn.00428fe3
push ebx
lea ecx, [ebp - 0x24]
call fcn.00428ff2
lea eax, [ebp - 0x3c]
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.00428fab
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 0x41cbb2
push 0x37
pop ebx
jmp 0x41cbb5
mov ebx, dword [esi + 8]
push edi
lea ecx, [ebp - 0x24]
call fcn.00428ff2
push 0
lea ecx, [ebp - 0x24]
call fcn.00428ff2
call fcn.00421e47
push eax
lea ecx, [ebp - 0x24]
call fcn.00429001
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.00428fe3
mov eax, dword [0x4adee4]
lea ecx, [ebp - 0x24]
xor eax, 0xfe7ded7b
push eax
call fcn.00429001
push ebx
lea ecx, [ebp - 0x24]
call fcn.00429001
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 0x4a1bcc
add ecx, 0xc
call fcn.0042737d
lea ecx, [ebp - 0x1df4]
call fcn.0042588c
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x1df4]
add eax, 0xc
mov byte [ebp - 4], 1
push eax
call fcn.0042588f
push 0x12
lea ecx, [ebp - 0x24]
call fcn.00429ebe
inc eax
lea ecx, [ebp - 0x1df4]
push eax
call fcn.0042722d
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
add eax, 0xffffffed
push eax
call fcn.00429ebe
mov ecx, dword [esi + 0xc]
add eax, 0x13
push eax
add ecx, 0xc
call fcn.0042722d
push 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00429ebe
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 0x41ccb5
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.0041d9c6
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.0047c57d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00428ed1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41d750
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 0x41d7b1
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
ja 0x41d793
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d765
lea eax, [ebp - 8]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.0041d9c6
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 0x41d7ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 8]
push str.ReadNonBlock___error_d
push eax
call fcn.0041d9c6
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 0x41d93f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x41d9b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41d985
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CreateThread___Error__d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.CloseHandle___Error__d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x41e18f
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 0x41e1fa
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 0x41e1e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x4ae550
call fcn.00428736
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.00428ff2
pop esi
leave
ret
Function at 0x41e543
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 0x4ae550
call fcn.0042874e
add esp, 0x10
test esi, esi
jle 0x41e57a
mov eax, esi
pop esi
ret
jge 0x41e58d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41e58d
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x41e592
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 0x41e5e9
mov eax, 0x4000
cmp edi, eax
jg 0x41e5b0
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 0x4ae550
call fcn.0042874e
add esp, 0x10
test ebp, ebp
jle 0x41e5fa
cmp ebp, edi
mov ecx, esi
jne 0x41e5f0
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.004290f8
jmp 0x41e5e9
jge 0x41e609
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41e5e9
xor al, al
jmp 0x41e5eb