joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100037d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov dword [esp + 0x20], ecx
push edi
xor ebx, ebx
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x16], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a], eax
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x22], eax
push edx
push edi
mov word [esp + 0x20], bx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100039c3
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call ebp
mov ecx, dword [esp + 0x16]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push ecx
mov dword [esp + 0x34], eax
call esi
mov word [esp + 0x36], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push edi
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x100039ad
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x16]
mov dword [esp + 0x2c], eax
push edx
call esi
mov edx, dword [esp + 0x16]
mov ecx, dword [esp + 0x124]
mov word [esp + 0x34], ax
mov eax, dword [esp + 0x120]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, 0x102f7048
call fcn.10016470
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x40], eax
mov ax, word [esp + 0x128]
mov ebp, 1
cmp ax, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x54], bp
mov dword [esp + 0x58], 0xff
mov word [esp + 0x56], ax
mov dword [esp + 0x5c], ecx
je 0x1000390e
cmp ax, 5
jne 0x10003924
push ecx
lea ecx, [esp + 0x8c]
push 0x102fb3d8
push ecx
call fcn.10047100
add esp, 0xc
mov eax, dword [esp + 0x130]
cmp eax, ebx
mov eax, dword [esp + 0x134]
je 0x10003951
mov ecx, eax
lea esi, [esp + 0x130]
mov edx, ecx
lea edi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x138]
or edx, 0xffffffff
mov dword [esp + 0x7c], ebx
cmp eax, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
je 0x10003992
mov ecx, dword [esp + 0x13c]
cmp ecx, edx
je 0x10003992
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
call fcn.10003370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x24
cmp dword [0x1030ceb0], ebx
je 0x100039eb
push 0x9d
push 0xffffffffffffffff
push str.AddTableItem_getpeername_fail_____Ret:_d__Line:_d_
jmp 0x100039d7
cmp dword [0x1030ceb0], ebx
je 0x100039eb
push 0x8f
push 0xffffffffffffffff
push str.AddTableItem_getsockname_fail_____Ret:_d__Line:_d_
push str.CConnTrack
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x24
Function at 0x100046f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10259a10
push eax
mov eax, dword [0x1030ceb0]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
test eax, eax
push edi
je 0x10004735
mov eax, dword [esp + 0x2c]
push eax
push ebp
push str.XORALG__begin__len__lu__key__lu__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebp, ebp
jle 0x100047a4
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x1000474d
mov esi, 0x64
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000479e
lea ecx, [edi + ebx]
push esi
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.100aa790
add esp, 0xc
mov eax, dword [eax]
mov dword [esp + 0x18], 0
push eax
push esi
push str.XORALG__begin__src__lu____s__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
add edi, esi
cmp edi, ebp
jl 0x1000473f
test ebp, ebp
jle 0x100047cc
mov eax, dword [esp + 0x24]
mov cx, word [esp + 0x2e]
mov esi, ebx
mov edi, ebp
sub esi, eax
mov bl, byte [esi + eax]
mov edx, dword [esp + 0x2c]
xor bl, dl
xor bl, dh
xor bl, cl
xor bl, ch
mov byte [eax], bl
inc eax
dec edi
jne 0x100047b7
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x100047f4
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push str.XORALG__ret__len__lu__key__lu_
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
xor edi, edi
test ebp, ebp
jle 0x10004863
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x10004808
mov esi, 0x64
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000485d
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x30]
lea eax, [edi + edx]
push eax
push ecx
call fcn.100aa790
add esp, 0xc
mov edx, dword [eax]
mov dword [esp + 0x18], 1
push edx
push esi
push str.XORALG__ret__dst__lu____s__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
add edi, esi
cmp edi, ebp
jl 0x100047fa
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x10004880
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10259a30
push eax
mov eax, dword [0x1030ceb0]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
test eax, eax
push edi
je 0x100048c5
mov eax, dword [esp + 0x2c]
push eax
push ebp
push str.XORALGDefault__begin__len__lu__key__lu__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebp, ebp
jle 0x10004934
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x100048dd
mov esi, 0x64
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1000492e
lea ecx, [edi + ebx]
push esi
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.100aa790
add esp, 0xc
mov eax, dword [eax]
mov dword [esp + 0x18], 0
push eax
push esi
push str.XORALGDefault__begin__src__lu____s__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
add edi, esi
cmp edi, ebp
jl 0x100048cf
test ebp, ebp
jle 0x10004951
mov eax, dword [esp + 0x24]
mov esi, ebx
sub esi, eax
mov edi, ebp
mov cl, byte [esi + eax]
mov bl, byte [esp + 0x2c]
xor cl, bl
mov byte [eax], cl
inc eax
dec edi
jne 0x10004942
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10004979
mov edx, dword [esp + 0x2c]
push edx
push ebp
push str.XORALGDefault__ret__len__lu__key__lu_
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
xor edi, edi
test ebp, ebp
jle 0x100049e8
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x1000498d
mov esi, 0x64
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x100049e2
mov eax, dword [esp + 0x24]
push esi
lea edx, [esp + 0x30]
lea ecx, [edi + eax]
push ecx
push edx
call fcn.100aa790
add esp, 0xc
mov eax, dword [eax]
mov dword [esp + 0x18], 1
push eax
push esi
push str.XORALGDefault__ret__dst__lu____s__r_n
push str.DataProc
push 1
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
add edi, esi
cmp edi, ebp
jl 0x1000497f
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x10006290
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x102f5e30
jmp 0x1004f1e0
push 0xffffffffffffffff
push 0x1025f3a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.1009e460
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0
call fcn.1009e960
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.1004e580
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 2
call fcn.1004e940
mov ecx, esi
mov byte [esp + 0x10], 3
call fcn.1004f420
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000a770
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1025a402
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov ecx, dword [0x1026e87c]
lea ebp, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebp], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0xc], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 4
call fcn.10096510
push 0x102f684c
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 5
mov dword [esi], 0x1026ba90
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.10090e70
push 0x102f684c
mov ecx, ebx
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0xc]
call fcn.10090e70
push 0x102f684c
mov ecx, ebp
mov dword [esi + 0x1c], edi
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x30]
call fcn.10090e70
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0xea60
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000a880
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1025a452
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1026ba90
mov dword [esp + 0x10], 5
call fcn.1000ad00
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 4
call fcn.10096520
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.10090bf0
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 2
call fcn.10090bf0
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.10090bf0
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.10090bf0
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000ff40
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1025ac18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1026e87c]
lea ebx, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x1026e87c]
lea ebp, [esi + 8]
mov dword [ebp], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0xc], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x10], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x14], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x28], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x34], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x38], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x40], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x48], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x64], ecx
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x20], 0x10
call fcn.10090d80
lea edx, [edi + 4]
mov ecx, ebx
push edx
call fcn.10090d80
lea eax, [edi + 8]
mov ecx, ebp
push eax
call fcn.10090d80
lea ecx, [edi + 0xc]
push ecx
lea ecx, [esi + 0xc]
call fcn.10090d80
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.10090d80
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
push eax
call fcn.10090d80
lea ecx, [edi + 0x18]
push ecx
lea ecx, [esi + 0x18]
call fcn.10090d80
mov edx, dword [edi + 0x1c]
lea ecx, [edi + 0x24]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], eax
call fcn.10090d80
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
call fcn.10090d80
lea eax, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push eax
call fcn.10090d80
mov cx, word [edi + 0x30]
lea edx, [edi + 0x34]
mov word [esi + 0x30], cx
push edx
lea ecx, [esi + 0x34]
call fcn.10090d80
lea eax, [edi + 0x38]
lea ecx, [esi + 0x38]
push eax
call fcn.10090d80
lea ecx, [edi + 0x3c]
push ecx
lea ecx, [esi + 0x3c]
call fcn.10090d80
lea edx, [edi + 0x48]
lea ecx, [esi + 0x48]
push edx
call fcn.10090d80
lea eax, [edi + 0x40]
lea ecx, [esi + 0x40]
push eax
call fcn.10090d80
mov cx, word [edi + 0x44]
lea edx, [edi + 0x4c]
mov word [esi + 0x44], cx
push edx
lea ecx, [esi + 0x4c]
call fcn.10090d80
mov eax, dword [edi + 0x50]
add edi, 0x64
mov dword [esi + 0x50], eax
mov ecx, dword [edi - 0x10]
mov dword [esi + 0x54], ecx
mov edx, dword [edi - 0xc]
mov dword [esi + 0x58], edx
mov ax, word [edi - 8]
mov word [esi + 0x5c], ax
mov ecx, dword [edi - 4]
mov dword [esi + 0x60], ecx
push edi
lea ecx, [esi + 0x64]
call fcn.10090d80
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10010f30
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
lea ecx, [esp]
push 0xffffffffffffffff
call fcn.10038610
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
call fcn.10038770
add esp, 0x1c
ret 4
Function at 0x100131e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x1025af38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x28]
mov word [esp + 8], 2
call fcn.1008b110
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x24]
mov dword [esp + 8], eax
call fcn.1008b870
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor edx, edx
push 6
mov dword [esp + 0x10], edx
push 1
push 2
mov word [esp + 0x12], ax
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 4]
push 0x10
push ecx
push eax
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100132f5
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x100132e1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x2c]
call fcn.100902f0
mov esi, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 6]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esi]
and eax, 0xffff
push eax
push edx
push str.MailSender::ConnectServer:_Connect_to_server__s___d__failed__errno__d__r_n
push str.MailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x1c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10090bf0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10013317
push str.MailSender::ConnectServer:_Connect_to_the__server_successfully__r_n
push str.MailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x10013330
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100133d5
push ebx
push ebp
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.10013780
test eax, eax
je 0x100133c3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100133b8
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push 0x400
push edx
push eax
call ebx
test eax, eax
je 0x100133c3
cmp eax, 0xffffffff
je 0x100133c3
call ebp
mov edi, eax
jmp 0x1001337d
call ebp
sub eax, edi
cmp eax, 0xea60
jbe 0x1001337d
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebp
mov dword [esi], 0xffffffff
pop ebx
pop esi
add esp, 0x404
ret
Function at 0x100133e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10013428
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10013423
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CMailSender::SendCommand_failed__errno__d__r_n
push str.MailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
xor eax, eax
ret 8
mov eax, 1
ret 8

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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1025af5b
push eax
mov eax, 0x203c
mov dword fs:[0], esp
call fcn.10079660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2058]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
jne 0x10013469
xor eax, eax
jmp 0x1001357a
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x1c]
call fcn.100acaa0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], ebp
mov dword [esp + 0x24], getsockopt
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 3
call fcn.100ad300
test eax, eax
jne 0x100134f5
cmp dword [0x1030ceb0], ebp
je 0x100134da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CMailSender::SendFile:_Open_file__s_failed__errno__d__r_n
push str.CMailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100acb20
xor eax, eax
jmp 0x1001357a
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
call fcn.100acde0
cmp eax, ebp
mov dword [esp + 0x14], eax
jbe 0x10013558
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x48]
push 0x2000
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x1c]
push eax
call fcn.100ad530
mov edx, dword [ebx]
mov esi, eax
push 0
lea ecx, [esp + 0x4c]
push esi
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x10013595
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x10013511
lea ecx, [esp + 0x18]
call fcn.100ad350
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100acb20
mov eax, 1
mov ecx, dword [esp + 0x204c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2048
ret 4
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x100135be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMailSender::SendFile:_Send_file_failed__errno__d__r_n
push str.CMailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100acb20
xor eax, eax
jmp 0x1001357a
Function at 0x100135e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1025af86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esi]
push 0x400
push edx
push 0x102bad20
lea eax, [esp + 0x30]
push 0x400
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.100137f0
cmp eax, ebx
jne 0x10013655
xor eax, eax
jmp 0x10013765
cmp dword [esp + 0xc], ebx
jne 0x100136d4
lea edi, [esi + 8]
lea edx, [esp + 0x1c]
push edi
push 0x102bad1c
push edx
call fcn.1007968f
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xc]
push eax
call fcn.1008bad0
cmp dword [0x1030ceb0], ebx
je 0x10013755
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100902f0
mov edx, dword [eax]
mov dword [esp + 0x424], ebx
push edx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call fcn.10090bf0
jmp 0x10013755
cmp dword [0x1030ceb0], ebx
je 0x10013725
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.100902f0
mov ecx, dword [eax]
mov dword [esp + 0x424], 1
push ecx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.10090bf0
mov edx, dword [esp + 0xc]
lea edi, [esi + 8]
push edi
push 0x102bad1c
push edx
call fcn.1007968f
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.1008bad0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1024cbfa
add esp, 4
mov edx, dword [edi]
mov ecx, dword [esp + 0x42c]
xor eax, eax
cmp edx, ecx
sete al
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret 4

Function at 0x10013780
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100137cf
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x114]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8