joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a450
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x558fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x50a500
mov eax, dword [0x12e50e0]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00548a8f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00548ade
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00548a3b
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x50a4e7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x50a4e7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005486ab
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x50d600
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x559470
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50d7a7
mov ecx, dword [0x12e50e0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x50d6fc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0050c320
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00548798
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005486ab
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x12d7e64
call fcn.00548719
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0050c6e0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00548798
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005486ab
lea ecx, [esp + 0xc]
call fcn.00548b73
mov ecx, dword [esp + 0xc]
push 0x12d88a4
push ecx
call fcn.00534064
add esp, 8
test eax, eax
je 0x50d724
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x50d65d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.005486ab
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005486ab
jmp 0x50d7ab
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0050d3a0
test eax, eax
push 0
je 0x50d78f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0050ba40
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x50d775
cmp eax, 0x64
jg 0x50d763
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d700
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d700
cmp eax, 0x64
jge 0x50d6fc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d700
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0050ba40
mov esi, eax
jmp 0x50d700
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x50d7b5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x51f160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x13409e8]
xor edx, edx
cmp eax, edx
jne 0x51f186
xor eax, eax
mov byte [eax + 0x13408e8], al
inc eax
cmp eax, 0x100
jl 0x51f16e
mov dword [0x13409e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x13408e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x51f217
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x51f1ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x51f1b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x51f290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x51f2e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x51f2ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x525c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55985e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005265b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x126fef4
call fcn.005483ec
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x525d23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005483ec
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x525d1c
push 0
mov ecx, eax
call fcn.0051cd90
mov dword [esi + 0xc], eax
jmp 0x525d25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x525d25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x536846
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x536866
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005355da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x536889
test byte [esp + 8], 2
je 0x536889
call fcn.0053564d
mov dword [eax], 0xd
call fcn.00535656
mov dword [eax], 5
jmp 0x536862
xor eax, eax
ret

Function at 0x54aab9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54aaf1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00548b06
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00548ade
jmp 0x54aafd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x54c1a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x54c1e9
call fcn.00551ffb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54c1e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54c1e0
xor eax, eax
jmp 0x54c1f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054c1f7
pop edi
pop esi
pop ebx
ret 4

Function at 0x55252b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x552559
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x552577
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00552491
jmp 0x552577
mov eax, dword [esi + 0x14]
test eax, eax
je 0x552577
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00552491
test edi, edi
mov eax, edi
jne 0x552561
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6b0f05c9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6274033a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401310
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 1
lea eax, [esi + esi*2]
cmp ecx, eax
seta dl
add eax, 2
cmp ecx, eax
movzx ebx, dl
sete byte [ebp - 2]
add ebx, esi
add ebx, ebx
add ebx, ebx
lea eax, [ebx + 3]
push edi
push eax
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], ebx
call fcn.00406b9c
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x4013d8
mov ecx, dword [ebp + 8]
add ecx, 2
lea edx, [edi + 2]
mov dword [ebp - 8], esi
mov eax, esi
lea ebx, [ebx]
movzx esi, byte [ecx - 2]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx - 2]
shr esi, 4
shl ebx, 4
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], bl
movzx ebx, byte [ecx - 1]
movzx esi, byte [ecx]
add ebx, ebx
shr esi, 6
add ebx, ebx
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], bl
movzx esi, byte [ecx]
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], bl
add ecx, 3
add edx, 4
dec dword [ebp - 8]
jne 0x401370
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
je 0x40145f
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
movzx ecx, byte [eax + edx]
lea esi, [eax + edx]
shr ecx, 2
cmp byte [ebp - 2], 0
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], dl
movzx edx, byte [esi]
je 0x401445
movzx ecx, byte [esi + 1]
shr ecx, 4
shl edx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx edx, byte [esi + 1]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and edx, 3
shl edx, 4
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
mov byte [edi + eax*4 + 2], 0x3d
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4017f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [esi + 0x18], 0x10
mov edi, eax
lea eax, [esi + 4]
jb 0x40181a
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
movzx ecx, word [esi]
mov eax, 2
push ecx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401864
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
push 0x401
mov dword [esi + 0x4c0], edi
lea edi, [esi + 0xb8]
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401853
mov ecx, dword [ebp - 4]
mov byte [esi + eax + 0xb8], 0
xor ecx, ebp
mov al, 1
pop edi
call fcn.00406bba
mov esp, ebp
pop ebp
ret

Function at 0x401910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0x401
lea esi, [edi + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
cmp eax, 0xffffffff
jne 0x401945
xor al, al
ret
mov byte [eax + edi + 0xb8], 0
mov al, 1
ret
Function at 0x401cd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4078a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push 0xc
mov eax, str.MAIL_FROM:__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004035b0
push esi
lea eax, [ebx + 0x20]
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.00403500
push 3
mov eax, 0x4082e8
mov ecx, edi
call fcn.004035b0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d45
mov eax, edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push esi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e72
push 0x401
lea edi, [ebx + 0xb8]
push esi
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push esi
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401e72
mov byte [ebx + eax + 0xb8], 0
push 0xa
mov eax, str.RCPT_TO:__
lea ecx, [ebp - 0x2c]
call fcn.004035b0
push esi
lea ecx, [ebx + 0x58]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.00403500
push 3
mov eax, 0x4082e8
mov ecx, edi
call fcn.004035b0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401dd3
mov eax, edi
mov edx, dword [ebp - 0x1c]
push esi
push edx
push eax
mov eax, dword [ebx + 0x4c0]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e66
mov edi, ebx
call fcn.00401910
test al, al
je 0x401e66
mov edi, 6
mov eax, str.DATA_r_n
lea esi, [ebp - 0x2c]
call fcn.00403bd0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401e13
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e5c
mov edi, ebx
call fcn.00401910
test al, al
je 0x401e5c
lea eax, [ebp - 0x2c]
mov ecx, ebx
call fcn.00401eb0
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.004018c0
lea esi, [ebp - 0x2c]
test al, al
je 0x401e5f
call fcn.00402810
mov al, 1
jmp 0x401e87
lea esi, [ebp - 0x2c]
call fcn.00402810
jmp 0x401e85
cmp dword [ebp - 0x18], 0x10
jb 0x401e85
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x401e7c
cmp dword [ebp - 0x18], 0x10
jb 0x401e85
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4077d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x2c]
call fcn.00403bd0
push 0x19
mov eax, str.Content_Type:_text_plain_
mov ecx, esi
call fcn.004035b0
push 0x14
mov eax, str.charset_gb2312__r_n_r_n
mov ecx, esi
call fcn.004035b0
push 0
lea eax, [ebx + 0x90]
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00403500
push 4
mov eax, str._r_n_r_n
mov ecx, esi
call fcn.004035b0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x40202b
mov eax, edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x18], esi
jb 0x402057
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret
Function at 0x4025f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4077d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop__
lea esi, [ebp - 0x2c]
call fcn.00403bd0
push 5
mov eax, str._r_n._r_n
mov ecx, esi
call fcn.004035b0
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x40265c
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x402713
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x402713
mov byte [ebx + eax + 0xb8], 0
mov edi, 6
mov eax, str.QUIT_r_n
lea esi, [ebp - 0x2c]
call fcn.00403bd0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x4026d3
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4026fb
mov edi, ebx
call fcn.00401910
test al, al
je 0x4026fb
mov bl, 1
jmp 0x4026fd
xor bl, bl
cmp dword [ebp - 0x18], esi
jb 0x40270f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x402727
cmp dword [ebp - 0x18], edi
jb 0x402725
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bba
mov esp, ebp
pop ebp
ret