joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, 0x180
mov edx, 0x140
push esi
push edi
cmp dword [ebp], 0x495050
mov ecx, dword [ebp + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40fb98
mov byte [eax], 0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x8d8]
test esi, esi
je 0x40fd4c
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x49500c]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x40fbf1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x40fbfe
push dword [eax + 0x64]
call dword [0x49500c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x40fc06
mov edi, dword [esp + 0x30]
push edi
call dword [0x495004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1ca], 0
je 0x40fc1e
mov ecx, dword [eax + 0x440]
mov dword [esp + 0x14], ecx
jmp 0x40fc26
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x40fc3c
test byte [eax + 4], 0x10
je 0x40fc3c
lea edx, [eax + 0x78]
mov dword [esp + 0x2c], edx
jmp 0x40fc46
lea eax, [ebx + 0x8dc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x40fc93
mov eax, dword [ebx + 0x8d8]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
je 0x40fc8d
mov edi, dword [eax]
lea esi, [eax - 0x14]
cmp edi, edx
cmovge esi, dword [esp + 0x1c]
inc ecx
add eax, 0x60
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebx + 0x4a4]
jb 0x40fc60
mov eax, dword [ebx + 0x4a4]
cmp ecx, eax
jne 0x40fca2
push esi
call fcn.00410600
add esp, 4
jmp 0x40fcae
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebx + 0x8d8]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x495004]
push dword [esi + 4]
call dword [0x495004]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [eax + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
lea ebp, [esi + 0x20]
push ebp
push dword [esp + 0x30]
mov eax, dword [eax + 0x1e0]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.0040f3a0
add esp, 0x10
test al, al
jne 0x40fd41
push ebp
call fcn.0040f620
push edi
mov dword [esi + 0xc], 0
call dword [0x495004]
push ebx
call dword [0x495004]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40fd4c
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x410340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, 0x180
mov eax, dword [ecx]
cmp eax, 0x495050
mov edx, dword [ecx + 8]
push esi
mov esi, 0x140
mov dword [esp + 0x10], edx
cmovne ebx, esi
mov byte [esp + 0xf], 1
add ebx, dword [ecx + 0xc]
mov esi, 0x3cc
cmp eax, 0x495050
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
mov ecx, 0x434
cmovne ecx, esi
mov dword [eax], 0
add ecx, ebp
je 0x4104dd
cmp byte [ecx + 0x3c], 0
je 0x4104dd
cmp dword [ebp + 0x8d8], 0
je 0x4104dd
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x4103c2
test byte [eax + 4], 0x10
je 0x4103c2
add eax, 0x78
jmp 0x4103c8
lea eax, [ebp + 0x8dc]
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x4a4], edi
jbe 0x4104a6
xor ebx, ebx
nop dword [eax]
mov esi, dword [ebp + 0x8d8]
add esi, ebx
cmp dword [esi + 0xc], 0
je 0x410496
push dword [esi]
push dword [edx + 8]
call fcn.00419910
add esp, 8
test eax, eax
je 0x410492
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 4]
cmp byte [ecx + 0x1c9], 0
jne 0x410420
test eax, eax
je 0x410434
jmp 0x410492
test eax, eax
je 0x410492
push eax
push dword [ecx + 0x64]
call fcn.00419910
add esp, 8
test eax, eax
je 0x410492
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp byte [ecx + 0x1ca], 0
jne 0x41044e
cmp eax, 0xffffffff
je 0x41045b
jmp 0x410492
cmp eax, 0xffffffff
je 0x410492
cmp dword [ecx + 0x440], eax
jne 0x410492
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x30]
cmp eax, dword [esi + 0x18]
jne 0x410496
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call fcn.00419910
add esp, 8
test eax, eax
je 0x410492
lea eax, [esi + 0x20]
push eax
push dword [esp + 0x20]
call fcn.0040ff70
add esp, 8
test al, al
jne 0x4104b2
mov edx, dword [esp + 0x14]
inc edi
add ebx, 0x60
cmp edi, dword [ebp + 0x4a4]
jb 0x4103e0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4104d3
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x417ad0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x47dcb4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x417aea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x47dcd0
push esi
call fcn.004610c0
add esp, 8
test eax, eax
je 0x417b32
test ebp, ebp
je 0x417b23
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x417b58
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417b58
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x417c0f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417b75
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417c05
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x417c05
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417ba7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417bc0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x417bd0
test ebp, ebp
je 0x417bfc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x495004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x495004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x41cc20
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41cc5e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x41cc4f
push 0
call fcn.0041cc20
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xf8], cl
mov eax, dword [esi + 0x70]
pop esi
cmp byte [eax + 0xf8], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41cc73
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x4289d0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040b170
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0046a0fc
push dword [esp + 0x40]
mov edi, eax
call fcn.0046a0fc
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x428a65
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0040b170
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0040b220
add esp, 0x20
test edx, edx
ja 0x428a89
jb 0x428a57
cmp eax, 0x3e8
ja 0x428a89
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x428a20
test edi, edi
je 0x428a72
push edi
call fcn.0045ea3d
add esp, 4
test esi, esi
je 0x428a7f
push esi
call fcn.0045ea3d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x428a96
push edi
call fcn.0045ea3d
add esp, 4
test esi, esi
je 0x428aa3
push esi
call fcn.0045ea3d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x428ec0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x42904f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42903a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428f1c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428f10
sub eax, edx
inc eax
jmp 0x428f1e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x428f2f
lea ebp, [ecx + 0xe]
jmp 0x428f3b
cmp ecx, 0x17
jne 0x428fdc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x428fdc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x428fdc
cmp ecx, ebp
jb 0x428fdc
add eax, 0x20
add eax, ebp
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42902b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00457bb0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x428fc8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00457bb0
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x428fd8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x428f02
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x428ffc
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x429036
test edi, edi
je 0x42901b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x495004]
add esp, 4
mov edi, esi
test esi, esi
jne 0x429004
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x428feb
test edi, edi
jne 0x429046
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x429450
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.00467f7b
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x429476
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x4294c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x42956b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.00410730
add esp, 0xc
cmp eax, 4
jne 0x429526
cmp byte [0x495f08], 0
jne 0x429532
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x42956d
mov eax, dword [esp + 0x1c]
jmp 0x42954f
imul eax, dword [0x495f04], 0x41c64e6d
add eax, 0x3039
mov dword [0x495f04], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x429563
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x429553
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4294e0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x429580
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x49536c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x4296e9
test dl, 1
je 0x4296e9
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x429693
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.00410730
add esp, 0xc
cmp eax, 4
jne 0x429639
cmp byte [0x495f08], 0
jne 0x429649
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x4296d0
mov eax, dword [esp + 0x10]
jmp 0x429666
imul eax, dword [0x495f04], 0x41c64e6d
add eax, 0x3039
mov dword [0x495f04], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x429680
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x429670
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4295f0
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x4296d0
test edx, edx
je 0x4296ca
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x481c94]
mov byte [ebp], al
movzx eax, byte [ecx + 0x481c94]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x4296a0
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0045693d
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.0045693d
add esp, 0x8c
ret

Function at 0x429710
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00457920
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x42c480
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x495008]
mov edi, eax
add esp, 8
test edi, edi
je 0x42c4d7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x42c4ef
cmp esi, ebx
je 0x42c4ef
cmp esi, 0x8000
ja 0x42c4ef
cmp esi, ebx
jb 0x42c4e8
push esi
push edi
call dword [0x495008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x42c4a0
push ebp
call dword [0x495004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x495004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42da0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00415d30
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0042d5e0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x42db60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x42dcb3
push esi
lea ecx, [ebp + 0x1cb4]
push edi
lea edi, [ebp + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x42db9d
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x42dbb1
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dbb1
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42dc1b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0042d6e0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x120]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x42dc73
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00415d30
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.0042da30
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x120]
call edi
test eax, eax
jns 0x42dcb1
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00415d30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42dcc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x49536c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x124]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.0042d6e0
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x42de98
cmp cl, 0x23
je 0x42de75
cmp cl, 0x27
jne 0x42df20
push edi
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00425ab0
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x42ddf5
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42dd80
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edi
cmp eax, 0x7fa
jae 0x42dde6
push 0x2c
push edx
call fcn.00457a80
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x42ddc7
push dword [esi]
push eax
push str._c_s
push ebx
push ebp
call fcn.00425ab0
add esp, 0x14
jmp 0x42dde4
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push str._c_.s_c_s
push ebx
push ebp
call fcn.00425ab0
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x42dd74
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.00425ab0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42de4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00415d30
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.0042d6e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0045693d
add esp, 0x80c
ret
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42de80
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x42deb9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42dea3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00425ab0
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42df0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00415d30
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.0042d6e0
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045693d
add esp, 0x80c
ret