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

Disassembly:
sub esp, 0x8c
push esi
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x94]
push edi
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x26], eax
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x2e], eax
push edx
push esi
mov word [esp + 0x3a], ax
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
cmp eax, 0xffffffff
je 0x1000398d
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x22]
mov dword [esp + 0x3c], eax
push ecx
call edi
mov word [esp + 0x42], ax
xor edx, edx
lea eax, [esp + 0x1c]
mov dword [esp + 0xa], edx
lea ecx, [esp + 8]
mov dword [esp + 0xe], edx
push eax
mov dword [esp + 0x16], edx
push ecx
push esi
mov word [esp + 0x14], 0
mov word [esp + 0x22], dx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x100039e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa]
push eax
call edi
mov word [esp + 0x40], ax
mov eax, dword [esp + 0xa]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call edi
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, 0x101ecd28
call fcn.100129f0
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x5c], eax
mov ax, word [esp + 0xb4]
mov word [esp + 0x60], ax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x50], edx
mov dx, word [esp + 0xbc]
test eax, eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x64], ecx
mov word [esp + 0x62], dx
je 0x10003aa5
mov ecx, eax
lea esi, [esp + 0xc4]
mov edx, ecx
lea edi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x34]
push eax
call fcn.10003320
pop edi
pop esi
add esp, 0x8c
ret 0x34
Function at 0x10004400
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10189140
push eax
mov eax, dword [0x10201328]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
test eax, eax
push edi
je 0x10004445
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 0x10200a94
call fcn.1008b760
add esp, 0x18
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebp, ebp
jle 0x100044b4
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x1000445d
mov esi, 0x64
mov eax, dword [0x10201328]
test eax, eax
je 0x100044ae
lea ecx, [edi + ebx]
push esi
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.1008f6d0
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 0x10200a94
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.10077520
add edi, esi
cmp edi, ebp
jl 0x1000444f
test ebp, ebp
jle 0x100044dc
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 0x100044c7
mov eax, dword [0x10201328]
test eax, eax
je 0x10004504
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push str.XORALG__ret__len__lu__key__lu_
push str.DataProc
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
xor edi, edi
test ebp, ebp
jle 0x10004573
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x10004518
mov esi, 0x64
mov eax, dword [0x10201328]
test eax, eax
je 0x1000456d
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x30]
lea eax, [edi + edx]
push eax
push ecx
call fcn.1008f6d0
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 0x10200a94
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call fcn.10077520
add edi, esi
cmp edi, ebp
jl 0x1000450a
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x10004590
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10189160
push eax
mov eax, dword [0x10201328]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
test eax, eax
push edi
je 0x100045d5
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 0x10200a94
call fcn.1008b760
add esp, 0x18
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebp, ebp
jle 0x10004644
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x100045ed
mov esi, 0x64
mov eax, dword [0x10201328]
test eax, eax
je 0x1000463e
lea ecx, [edi + ebx]
push esi
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.1008f6d0
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 0x10200a94
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.10077520
add edi, esi
cmp edi, ebp
jl 0x100045df
test ebp, ebp
jle 0x10004661
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 0x10004652
mov eax, dword [0x10201328]
test eax, eax
je 0x10004689
mov edx, dword [esp + 0x2c]
push edx
push ebp
push str.XORALGDefault__ret__len__lu__key__lu_
push str.DataProc
push 1
push 0x10200a94
call fcn.1008b760
add esp, 0x18
xor edi, edi
test ebp, ebp
jle 0x100046f8
mov esi, ebp
sub esi, edi
cmp esi, 0x64
jle 0x1000469d
mov esi, 0x64
mov eax, dword [0x10201328]
test eax, eax
je 0x100046f2
mov eax, dword [esp + 0x24]
push esi
lea edx, [esp + 0x30]
lea ecx, [edi + eax]
push ecx
push edx
call fcn.1008f6d0
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 0x10200a94
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call fcn.10077520
add edi, esi
cmp edi, ebp
jl 0x1000468f
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x10005b10
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x101ebb18
jmp 0x1003e6c0
push 0xffffffffffffffff
push 0x1018de49
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.100835e0
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0
call fcn.10083ae0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.1003da70
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 2
call fcn.1003de20
mov ecx, esi
mov byte [esp + 0x10], 3
call fcn.1003e900
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000a230
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x10189aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
push 0x101ec534
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call fcn.10076d80
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0xc]
push eax
push str.TEC_OCULAR__AGENT_V3_SCI_MAILRULE
push str._s__08x
push ecx
mov dword [esp + 0x230], ebx
call fcn.1007a4a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0x104
push edx
push eax
call fcn.1004e7e0
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a2e7
lea edx, [esp + 0x10]
push esi
push edx
push str.HasSCImailPolicy_x1__wszMutex__s___hMutex__lu_
push str.MailSCI
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
test esi, esi
je 0x1000a319
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000a306
cmp eax, 0x80
je 0x1000a306
xor ebx, ebx
jmp 0x1000a30b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.10077520
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a350
push ebx
push str.HasSCImailPolicy_bRet__d_
push str.MailSCI
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x1000a370
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x10189b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
push 0x101ec534
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call fcn.10076d80
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0xc]
push eax
push str.TEC_OCULAR__AGENT_V3_DWM_MAILRULE
push str._s__08x
push ecx
mov dword [esp + 0x230], ebx
call fcn.1007a4a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0x104
push edx
push eax
call fcn.1004e7e0
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a427
lea edx, [esp + 0x10]
push esi
push edx
push str.HasDWMmailPolicy_x1__wszMutex__s___hMutex__lu_
push str.MailDWM
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
test esi, esi
je 0x1000a459
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000a446
cmp eax, 0x80
je 0x1000a446
xor ebx, ebx
jmp 0x1000a44b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.10077520
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a490
push ebx
push str.HasDWMmailPolicy_bRet__d_
push str.MailDWM
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x1000a4b0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x10189b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
push 0x101ec534
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call fcn.10076d80
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0xc]
push eax
push str.TEC_OCULAR__AGENT_V3_MAILCTRL_RULE
push str._s__08x
push ecx
mov dword [esp + 0x230], ebx
call fcn.1007a4a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0x104
push edx
push eax
call fcn.1004e7e0
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a567
lea edx, [esp + 0x10]
push esi
push edx
push str.HasMailCtrlPolicy_x1__wszMutex__s___hMutex__lu_
push str.MailCtrl
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
test esi, esi
je 0x1000a599
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000a586
cmp eax, 0x80
je 0x1000a586
xor ebx, ebx
jmp 0x1000a58b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.10077520
mov eax, dword [0x10201328]
test eax, eax
je 0x1000a5d0
push ebx
push str.HasMailCtrlPolicy_bRet__d_
push str.MailCtrl
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x1000d2f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10189fbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1019b4e4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1019b4e4]
lea ebx, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x1019b4e4]
lea ebp, [esi + 8]
mov dword [ebp], edx
mov eax, dword [0x1019b4e4]
mov dword [esi + 0xc], eax
mov ecx, dword [0x1019b4e4]
mov dword [esi + 0x10], ecx
mov edx, dword [0x1019b4e4]
mov dword [esi + 0x14], edx
mov eax, dword [0x1019b4e4]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1019b4e4]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1019b4e4]
mov dword [esi + 0x28], edx
mov eax, dword [0x1019b4e4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1019b4e4]
mov dword [esi + 0x34], ecx
mov edx, dword [0x1019b4e4]
mov dword [esi + 0x38], edx
mov eax, dword [0x1019b4e4]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x1019b4e4]
mov dword [esi + 0x40], ecx
mov edx, dword [0x1019b4e4]
mov dword [esi + 0x48], edx
mov eax, dword [0x1019b4e4]
mov dword [esi + 0x4c], eax
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x20], 0xf
call fcn.100776b0
lea ecx, [edi + 4]
push ecx
mov ecx, ebx
call fcn.100776b0
lea edx, [edi + 8]
mov ecx, ebp
push edx
call fcn.100776b0
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
call fcn.100776b0
lea ecx, [edi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call fcn.100776b0
lea edx, [edi + 0x14]
lea ecx, [esi + 0x14]
push edx
call fcn.100776b0
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
call fcn.100776b0
mov ecx, dword [edi + 0x1c]
lea eax, [edi + 0x24]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
push eax
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], edx
call fcn.100776b0
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x28]
call fcn.100776b0
lea edx, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push edx
call fcn.100776b0
mov ax, word [edi + 0x30]
lea ecx, [edi + 0x34]
push ecx
lea ecx, [esi + 0x34]
mov word [esi + 0x30], ax
call fcn.100776b0
lea edx, [edi + 0x38]
lea ecx, [esi + 0x38]
push edx
call fcn.100776b0
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
call fcn.100776b0
lea ecx, [edi + 0x48]
push ecx
lea ecx, [esi + 0x48]
call fcn.100776b0
lea edx, [edi + 0x40]
lea ecx, [esi + 0x40]
push edx
call fcn.100776b0
mov ax, word [edi + 0x44]
lea ecx, [edi + 0x4c]
push ecx
lea ecx, [esi + 0x4c]
mov word [esi + 0x44], ax
call fcn.100776b0
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov dx, word [edi + 0x5c]
mov ecx, dword [esp + 0x14]
mov word [esi + 0x5c], dx
mov eax, dword [edi + 0x60]
pop edi
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1000e270
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
lea ecx, [esp]
push 0xffffffffffffffff
call fcn.10029d10
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
call fcn.10029e70
add esp, 0x1c
ret 4
Function at 0x1000e960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018a098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.10029d10
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], 0
mov eax, dword [edi + 0x48]
lea esi, [edi + 0x48]
push eax
call fcn.10099e80
mov eax, dword [edi + 0x4c]
add edi, 0x4c
push eax
call fcn.1009db30
mov eax, dword [0x10201328]
add esp, 8
test eax, eax
je 0x1000ea10
push edi
lea ecx, [esp + 0xc]
call fcn.10076b20
mov edi, eax
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.10076b20
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
push 0x101c4220
push str.CSMTPHandler
push 4
push 0x10200a94
mov byte [esp + 0x48], 2
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.10077520
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.10077520
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.10029e70
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x100101e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x1018a298
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.10071a40
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.100721a0
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 0x100102f5
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [0x10201328]
test eax, eax
je 0x100102e1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x2c]
call fcn.10076c20
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 0x10200a94
call fcn.1008b760
add esp, 0x1c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10077520
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov eax, dword [0x10201328]
test eax, eax
je 0x10010317
push str.MailSender::ConnectServer:_Connect_to_the__server_successfully__r_n
push str.MailSender
push 4
push 0x10200a94
call fcn.1008b760
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 0x10010330
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 0x100103d5
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.10010780
test eax, eax
je 0x100103c3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100103b8
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push 0x400
push edx
push eax
call ebx
test eax, eax
je 0x100103c3
cmp eax, 0xffffffff
je 0x100103c3
call ebp
mov edi, eax
jmp 0x1001037d
call ebp
sub eax, edi
cmp eax, 0xea60
jbe 0x1001037d
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 0x100103e0
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 0x10010428
mov eax, dword [0x10201328]
test eax, eax
je 0x10010423
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 0x10200a94
call fcn.1008b760
add esp, 0x14
xor eax, eax
ret 8
mov eax, 1
ret 8

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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1018a2bb
push eax
mov eax, 0x203c
mov dword fs:[0], esp
call fcn.1005ffe0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2058]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
jne 0x10010469
xor eax, eax
jmp 0x1001057a
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.1009f8b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], ebp
mov dword [esp + 0x24], getsockname
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 3
call fcn.100a0110
test eax, eax
jne 0x100104f5
cmp dword [0x10201328], ebp
je 0x100104da
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 0x10200a94
call fcn.1008b760
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f930
xor eax, eax
jmp 0x1001057a
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
call fcn.1009fbf0
cmp eax, ebp
mov dword [esp + 0x14], eax
jbe 0x10010558
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.100a0340
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 0x10010595
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x10010511
lea ecx, [esp + 0x18]
call fcn.100a0160
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f930
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 [0x10201328]
test eax, eax
je 0x100105be
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 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f930
xor eax, eax
jmp 0x1001057a