joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bc21
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x25
jne 0x45bdce
mov dword [esp], ebx
call fcn.0047b003
mov dword [esp], ebx
call fcn.00459ca8
mov edi, eax
test eax, eax
jne 0x45bc6a
add esp, 0x1c
mov eax, ebx
mov ecx, str.xmlParsePEReference:_no_name_n
mov edx, 0x44
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00455f95
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x3b
jne 0x45bdb9
mov dword [esp], ebx
call fcn.0047b003
mov eax, dword [ebx]
test eax, eax
je 0x45bca0
mov eax, dword [eax + 0x60]
test eax, eax
je 0x45bca0
mov dword [esp + 4], edi
mov edx, dword [ebx + 4]
mov dword [esp], edx
call eax
mov esi, eax
test eax, eax
jne 0x45bcf3
cmp dword [ebx + 0x1c], 1
je 0x45bcb2
cmp dword [ebx + 0x58], 0
jne 0x45bccb
cmp dword [ebx + 0x5c], 0
jne 0x45bccb
mov ecx, str.PEReference:____s__not_found_n
mov edx, 0x1a
mov eax, ebx
mov dword [esp], edi
call fcn.00455d2a
jmp 0x45bdb0
mov ecx, str.PEReference:____s__not_found_n
mov edx, 0x1b
mov eax, ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00455ecb
mov dword [ebx + 0x64], 0
jmp 0x45bdb0
mov eax, dword [eax + 0x30]
sub eax, 4
cmp eax, 1
jbe 0x45bd1f
mov ecx, str.Internal:____s__is_not_a_parameter_entity_n
mov edx, 0x1b
mov eax, ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00455ecb
jmp 0x45bdb0
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0x28], 0x4551c5
je 0x45bd42
mov edx, esi
mov eax, ebx
call fcn.00457282
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00456e7d
jmp 0x45bdb0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00479f68
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00456e7d
cmp dword [esi + 0x30], 5
jne 0x45bdb0
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x3c
jne 0x45bdb0
cmp byte [eax + 1], 0x3f
jne 0x45bdb0
cmp byte [eax + 2], 0x78
jne 0x45bdb0
cmp byte [eax + 3], 0x6d
jne 0x45bdb0
cmp byte [eax + 4], 0x6c
jne 0x45bdb0
mov al, byte [eax + 5]
lea edx, [eax - 9]
cmp dl, 1
jbe 0x45bd96
cmp al, 0x20
je 0x45bd96
cmp al, 0xd
jne 0x45bdb0
mov dword [esp], ebx
call fcn.0045b462
cmp dword [ebx + 0x54], 0x20
jne 0x45bdb0
mov dword [ebx + 0xac], 0xffffffff
jmp 0x45bdce
mov dword [ebx + 0x5c], 1
jmp 0x45bdce
add esp, 0x1c
mov eax, ebx
xor ecx, ecx
mov edx, 0x17
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00455def
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x46f06c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
test ebx, ebx
je 0x46f0c3
test eax, eax
je 0x46f0c3
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x1c], ecx
call fcn.00476365
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x46f0c3
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], esi
mov edx, eax
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0046ea95
add esp, 0x2c
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x472c0b
Capabilities:
Query environment variable

Disassembly:
push ebp
or eax, 0xffffffff
mov ebp, esp
sub esp, 0x18
cmp dword [0x696ac8], 0
jne 0x472c87
mov dword [0x696ac8], 1
call fcn.00490096
mov dword [esp], str.XML_MEM_BREAKPOINT
mov dword [0x696ad8], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x472c59
mov dword [esp + 8], 0x696ae8
mov dword [esp + 4], 0x656980
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
mov dword [esp], str.XML_MEM_TRACE
call sub.msvcrt.dll_getenv
mov edx, eax
xor eax, eax
test edx, edx
je 0x472c87
mov dword [esp + 8], 0x696af8
mov dword [esp + 4], 0x656992
mov dword [esp], edx
call sub.msvcrt.dll_sscanf
xor eax, eax
leave
ret
Function at 0x49d475
Capabilities:
Parse credit card information
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 1
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], ebx
pop ebx
pop ebx
pop ebp
jmp fcn.0049b626

Function at 0x49d5ee
Capabilities:
Parse credit card information
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ebx
pop ebx
pop ebx
pop ebp
jmp fcn.0049b626
Function at 0x4ba29a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov esi, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
test byte [edx + 0x20], 1
je 0x4ba2e4
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4ba2d2
mov dword [esp], eax
call dword [0x5dd270]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4ba2f2
mov dword [esp], eax
call dword [0x5dd270]
jmp 0x4ba2eb
mov dword [edx + 0xc], 0
mov dword [esi + 0x10], 0
test byte [esi + 0x20], 2
je 0x4ba308
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ba30f
mov dword [esp], eax
call dword [0x5dd270]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4ba325
mov dword [esp], eax
call fcn.004977b5
mov dword [esi + 0x18], 0
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4ba3e2
mov dword [ebp - 0x1c], esi
mov esi, ebx
xor eax, eax
mov ebx, dword [edi + 8]
cmp dword [edi + 0x18], 0
jne 0x4ba366
jmp 0x4ba36b
mov edx, dword [edi + 0x18]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x4ba365
mov dword [esp], edx
mov dword [ebp - 0x20], eax
call dword [0x5dd270]
mov edx, dword [edi + 0x18]
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], 0
inc eax
cmp eax, dword [edi + 0x1c]
jl 0x4ba342
cmp dword [edi + 0x20], 0
je 0x4ba3b9
xor eax, eax
cmp dword [edi + 0x14], 0x18
jne 0x4ba3aa
jmp 0x4ba3a2
mov edx, dword [edx]
mov dword [ebp - 0x20], eax
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x24], edx
mov ecx, dword [edx + 4]
mov dword [esp], ecx
call dword [0x5dd270]
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call dword [0x5dd270]
mov eax, dword [ebp - 0x20]
inc eax
mov edx, dword [edi + 0x20]
cmp eax, dword [edx + 4]
jl 0x4ba37b
mov eax, dword [edi + 0x20]
call fcn.004b734f
mov dword [edi + 0x20], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4ba3ca
mov dword [edi + 0xc], eax
mov dword [esi + 0x78], edi
test ebx, ebx
je 0x4ba3d8
mov edi, ebx
jmp 0x4ba335
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4ba3fd
mov ebx, dword [eax]
call fcn.004b785c
mov eax, ebx
test ebx, ebx
jne 0x4ba3e9
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ba413
mov dword [esp], eax
call fcn.004afb03
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4ba438
mov dword [esp], eax
call dword [0x5dd270]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d52b6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
or eax, 0xffffffff
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d5344
lea ebx, [ebp - 0xe0]
mov dword [esp + 8], str.QUIT_r_n
mov dword [esp + 4], 0xc8
mov dword [esp], ebx
mov edi, ebx
call sub.msvcrt.dll__snprintf
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
test eax, eax
js 0x4d531c
xor eax, eax
jmp 0x4d5344
mov dword [ebp - 0xec], eax
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.004772c8
mov eax, dword [ebp - 0xec]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d539a
Capabilities:
Receive data
Receive data on socket
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
test eax, eax
je 0x4d5582
lea esi, [eax + 0x3c]
mov eax, dword [ebx + 0x440]
cmp eax, 0x400
ja 0x4d5582
mov edx, dword [ebx + 0x444]
cmp edx, 0x400
ja 0x4d5582
cmp eax, edx
jg 0x4d5582
test eax, eax
je 0x4d540a
sub edx, eax
lea eax, [esi + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x440]
mov dword [ebx + 0x440], 0
sub dword [ebx + 0x444], eax
mov edx, 0x400
xor eax, eax
sub edx, dword [ebx + 0x444]
je 0x4d558d
mov eax, dword [ebx + 0x440]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea eax, [ebx + eax + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
test eax, eax
jns 0x4d547d
mov dword [esp + 8], str.recv_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.004772c8
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
mov dword [ebx + 0x2c], 0xffffffff
push esi
jmp 0x4d5582
mov edx, dword [ebx + 0x444]
add edx, eax
mov dword [ebx + 0x444], edx
mov byte [ebx + edx + 0x3c], 0
jmp 0x4d558d
mov eax, dword [ebx + 0x440]
mov edi, edx
lea ecx, [ebx + eax + 0x3c]
lea eax, [ebx + edx + 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x4d5574
mov eax, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 2
jle 0x4d555f
mov al, byte [ecx]
mov dl, al
mov byte [ebp - 0x29], al
sub edx, 0x30
cmp dl, 9
ja 0x4d555f
mov dl, byte [ecx + 1]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x4d555f
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov al, byte [ecx + 2]
mov byte [ebp - 0x1d], al
sub eax, 0x30
cmp al, 9
ja 0x4d555f
mov eax, dword [ebp - 0x24]
cmp byte [eax + 1], 0x2d
je 0x4d555f
movsx eax, byte [ebp - 0x29]
sub eax, 0x30
imul eax, eax, 0xa
movsx edx, dl
lea eax, [edx + eax - 0x30]
imul eax, eax, 0xa
movsx edx, byte [ebp - 0x1d]
lea eax, [edx + eax - 0x30]
test eax, eax
je 0x4d555f
add ecx, 3
mov edx, ecx
sub edx, esi
mov dword [ebx + 0x448], edx
jmp 0x4d5528
inc ecx
cmp ecx, dword [ebp - 0x1c]
jae 0x4d5532
cmp byte [ecx], 0xa
jne 0x4d5527
xor edx, edx
cmp byte [ecx], 0xa
sete dl
add ecx, edx
xor edx, edx
cmp byte [ecx], 0xd
sete dl
add ecx, edx
mov edx, 0x64
sub ecx, esi
mov dword [ebx + 0x440], ecx
mov ecx, edx
cdq
idiv ecx
jmp 0x4d5585
cmp ecx, dword [ebp - 0x1c]
jae 0x4d5569
cmp byte [ecx], 0xa
lea ecx, [ecx + 1]
jne 0x4d555a
jmp 0x4d5574
mov dword [ebx + 0x440], edi
jmp 0x4d53b0
cmp ecx, dword [ebp - 0x1c]
jb 0x4d54ad
jmp 0x4d53b0
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x444]
test eax, eax
jne 0x4d5495
test edx, edx
je 0x4d5582
jmp 0x4d5495
Function at 0x4d5655
Capabilities:
Get socket status

Disassembly:
push ebp
or eax, 0xffffffff
mov ebp, esp
push ebx
sub esp, 0x234
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4d5724
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xf
push ecx
mov dword [ebx + 0x30], 0xffffffff
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x218]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x214], eax
mov dword [esp + 0xc], edx
inc eax
lea edx, [ebp - 0x114]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x218], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
cmp eax, 0
jl 0x4d570e
jne 0x4d56fe
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
xor eax, eax
push edx
mov dword [ebx + 0x2c], 0xffffffff
jmp 0x4d5724
mov eax, ebx
call fcn.004d539a
mov edx, eax
xor eax, eax
cmp edx, 2
je 0x4d5724
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
push eax
mov dword [ebx + 0x2c], 0xffffffff
or eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4d591c
xor eax, eax
test edx, edx
je 0x4d591f
lea ebx, [ebp - 0x1a8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.CWD__s_r_n
mov dword [esp + 4], 0x190
mov dword [esp], ebx
mov edi, ebx
call sub.msvcrt.dll__snprintf
mov byte [ebp - 0x19], 0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
test eax, eax
jns 0x4d5905
mov dword [ebp - 0x1ac], eax
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.004772c8
mov eax, dword [ebp - 0x1ac]
jmp 0x4d591f
mov eax, esi
call fcn.004d539a
cmp eax, 4
je 0x4d591c
cmp eax, 2
sete al
movzx eax, al
jmp 0x4d591f
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d5c66
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4d5dd3
cmp dword [ebp + 0xc], 0
jne 0x4d5c8d
cmp dword [ebx + 0xc], 0
je 0x4d5dd3
mov dword [esp], ebx
call fcn.004d5927
mov dword [ebx + 0x30], eax
inc eax
je 0x4d5dd3
lea esi, [ebp - 0x144]
mov dword [esp + 8], str.TYPE_I_r_n
mov dword [esp + 4], 0x12c
mov dword [esp], esi
mov edi, esi
call sub.msvcrt.dll__snprintf
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov edi, eax
test eax, eax
js 0x4d5d7b
mov eax, ebx
call fcn.004d539a
mov edi, eax
cmp eax, 2
je 0x4d5d17
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
push edx
mov dword [ebx + 0x30], 0xffffffff
jmp 0x4d5dcf
cmp dword [ebp + 0xc], 0
jne 0x4d5d22
mov eax, dword [ebx + 0xc]
jmp 0x4d5d25
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.RETR__s_r_n
mov dword [esp + 4], 0x12c
mov dword [esp], esi
call sub.msvcrt.dll__snprintf
lea edx, [ebp - 0x144]
mov byte [ebp - 0x19], 0
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov edi, eax
test eax, eax
jns 0x4d5dac
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.004772c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
push eax
mov dword [ebx + 0x30], 0xffffffff
jmp 0x4d5dd6
mov eax, ebx
call fcn.004d539a
mov edi, dword [ebx + 0x30]
mov esi, eax
cmp eax, 1
je 0x4d5dd6
mov dword [esp], edi
call sub.WS2_32.DLL_closesocket
push edi
mov dword [ebx + 0x30], 0xffffffff
mov edi, esi
neg edi
jmp 0x4d5dd6
or edi, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d6f5e
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
cmp dword [0x6974c8], 0
jne 0x4d7027
lea eax, [ebp - 0x198]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call sub.WS2_32.DLL_WSAStartup
test eax, eax
push ecx
push ecx
jne 0x4d7027
mov dword [0x697488], 0x15
mov dword [esp], 0x670476
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4d6fb9
cmp byte [eax], 0x2a
jne 0x4d6fb9
cmp byte [eax + 1], 0
je 0x4d7027
mov dword [esp], str.ftp_proxy
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x4d6fd9
mov dword [esp], str.FTP_PROXY
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4d6fe1
mov dword [esp], eax
call fcn.004d6d4a
mov dword [esp], str.ftp_proxy_user
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4d6fff
mov dword [esp], eax
call dword [0x5dd280]
mov dword [0x697498], eax
mov dword [esp], str.ftp_proxy_password
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4d701d
mov dword [esp], eax
call dword [0x5dd280]
mov dword [0x6974a8], eax
mov dword [0x6974c8], 1
leave
ret
Function at 0x4d7188
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, eax
jmp 0x4d7376
cmp dword [ebx + 0x24], 0
jne 0x4d71d4
mov dword [esp], 0xfde8
call dword [0x5dd278]
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x4d71c4
mov eax, str.allocating_input
call fcn.004d7158
jmp 0x4d725e
mov dword [ebx + 0x34], 0xfde8
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x30]
lea eax, [edi + 0x1000]
cmp esi, eax
jbe 0x4d7204
mov eax, dword [ebx + 0x2c]
mov dword [esp], edi
sub eax, esi
sub edi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_memmove
add dword [ebx + 0x30], edi
add dword [ebx + 0x28], edi
add dword [ebx + 0x2c], edi
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x34]
mov edi, dword [ebx + 0x2c]
lea ecx, [esi + eax]
lea edx, [edi + 0x1000]
cmp ecx, edx
jae 0x4d728a
add eax, eax
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], ecx
mov dword [ebx + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [0x5dd27c]
mov edx, dword [ebp - 0x130]
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x4d726d
mov eax, str.allocating_input_buffer
call fcn.004d7158
mov dword [esp], esi
call dword [0x5dd270]
mov dword [ebx + 0x38], 0xffffffff
or esi, 0xffffffff
jmp 0x4d7382
sub edx, esi
sub edi, esi
lea edx, [eax + edx]
lea edi, [eax + edi]
mov dword [ebx + 0x28], edx
mov edx, dword [ebp - 0x12c]
sub edx, esi
mov dword [ebx + 0x2c], edi
add eax, edx
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], 0x1000
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov esi, eax
mov dword [ebx + 0x38], eax
cmp eax, 0
jle 0x4d72c1
add dword [ebx + 0x2c], eax
jmp 0x4d7382
je 0x4d7382
cmp eax, 0xffffffff
jne 0x4d731a
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2734
jg 0x4d72e6
cmp eax, 0x2733
jge 0x4d731a
cmp eax, 0xb
jne 0x4d72fc
jmp 0x4d731a
cmp eax, 0x2746
je 0x4d7380
cmp eax, 0x274a
je 0x4d7380
mov dword [esp + 8], str.recv_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.004772c8
jmp 0x4d7382
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x120], eax
lea edx, [ebp - 0x124]
inc eax
mov dword [ebp - 0x20], 0x3c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x124], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
test eax, eax
jg 0x4d7376
call sub.msvcrt.dll__errno
cmp dword [eax], 4
jne 0x4d7380
test byte [ebx + 0x18], 2
jne 0x4d719b
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d7674
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov esi, eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d76c9
mov dword [esp + 8], str.socket_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.004772c8
jmp 0x4d7886
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [esp], ebx
call sub.WS2_32.DLL_ioctlsocket
sub esp, 0xc
inc eax
setne al
movzx eax, al
dec eax
mov dword [esp + 8], 0x10
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.DLL_connect
sub esp, 0xc
inc eax
jne 0x4d772b
call sub.WS2_32.DLL_WSAGetLastError
sub eax, 0x2733
cmp eax, 1
jbe 0x4d772b
mov dword [esp + 8], str.error_connecting_to_HTTP_server
jmp 0x4d7866
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x234]
mov dword [esp + 0x10], eax
lea edi, [ebp - 0x130]
lea eax, [ebx + 1]
mov dword [ebp - 0x2c], 0x3c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
cmp eax, 0xffffffff
je 0x4d77a0
test eax, eax
jne 0x4d77ad
mov dword [esp + 8], str.Connect_attempt_timed_out
jmp 0x4d7866
mov dword [esp + 8], str.Connect_failed
jmp 0x4d7866
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.WS2_32.DLL___WSAFDIsSet
test eax, eax
push edi
push edi
jne 0x4d77d5
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.DLL___WSAFDIsSet
test eax, eax
push ecx
push ecx
je 0x4d785e
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1007
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.DLL_getsockopt
sub esp, 0x14
test eax, eax
jns 0x4d7827
mov dword [esp + 8], str.getsockopt_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.004772c8
jmp 0x4d7883
cmp dword [ebp - 0x1c], 0
je 0x4d7886
mov dword [esp + 8], str.Error_connecting_to_remote_host
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.004772c8
mov dword [esp], ebx
call sub.WS2_32.DLL_closesocket
push edx
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x4d7883
mov dword [esp + 8], str.select_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.004772c8
mov dword [esp], ebx
call sub.WS2_32.DLL_closesocket
push eax
or ebx, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret