joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a980
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x56aa90
lea eax, [esp + 0x10]
push eax
call fcn.00623c91
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x56a9b9
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x420], ecx
pop esi
add esp, 0x18
ret
lea edx, [eax + 5]
mov eax, dword [esp + 0x10]
cmp edx, eax
jge 0x56aa90
mov ecx, dword [esi + 0x41c]
push ebx
push ebp
push edi
mov dword [esi + 0x420], eax
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x56a9fc
test ebx, ebx
jne 0x56a9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56aa1f
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.00624ab0
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x56aa24
jg 0x56aa1f
cmp eax, 0x4c4b40
jbe 0x56aa24
mov ebp, 1
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x56aa8d
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x56aa8d
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.0056a760
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret

Function at 0x56aad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x56ab3b
lea eax, [esp + 4]
push eax
call fcn.00623c91
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
lea eax, [esp + 0x20]
push str.Time:__ld._ld_n
push eax
call fcn.0062304b
lea eax, [esp + 0x28]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56ab18
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 0x41c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.0062016f
add esp, 0x54
ret
Function at 0x56ac40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660c10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x56acb3
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x56acdf
mov dword [ebp - 0x14], ebx
push 2
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
je 0x56acb3
mov edi, esi
jmp 0x56acb9
mov edi, dword [edi + 0x41c]
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x56acd8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56b040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebp
sub eax, 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
sbb ecx, ebp
push eax
mov dword [esp + 0x2c], ecx
call ebx
cmp eax, 0xffffffff
jne 0x56b0a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x56b201
mov eax, dword [edi + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56b236
cmp dword [esp + 0x10], 4
jne 0x56b236
lea ecx, [esp + 0x24]
push ecx
call fcn.005aa330
add esp, 4
cmp eax, ebp
jbe 0x56b236
xor edx, edx
mov ecx, 0xfffffffc
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
add dword [esi], ecx
mov ecx, dword [esi]
adc dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebp
jl 0x56b236
jg 0x56b113
cmp ecx, ebp
jbe 0x56b236
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x56b13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x56b201
mov eax, dword [edi + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x56b167
cmp dword [esp + 0x10], 0xc
jne 0x56b236
cmp byte [esp + 0x38], 0
je 0x56b175
cmp byte [esp + 0x24], 8
jmp 0x56b18a
cmp byte [esp + 0x24], 9
jne 0x56b070
mov cl, byte [esp + 0x2f]
and cl, 0xf0
cmp cl, 0x10
jne 0x56b070
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x56b070
lea edx, [esp + 0x28]
push edx
call fcn.005aa300
movsx ecx, byte [esp + 0x2f]
mov edx, dword [esp + 0x24]
add esp, 4
shl ecx, 0x18
or ecx, eax
push 2
lea eax, [esp + 0x18]
push eax
mov dword [edx], ecx
mov ecx, dword [edi + 0x14]
push ebp
push ecx
mov dword [esp + 0x24], ebp
call ebx
cmp eax, 0xffffffff
jne 0x56b21f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x56b21f
mov ecx, edi
call fcn.0056af10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0062016f
add esp, 0x24
ret 0x10
mov ecx, edi
call fcn.0056af10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0062016f
add esp, 0x24
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0062016f
add esp, 0x24
ret 0x10
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0062016f
add esp, 0x24
ret 0x10
Function at 0x56b250
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov byte [eax], 0
mov edx, dword [esi + 0x14]
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x56b2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
je 0x56b2ac
mov ecx, esi
call fcn.0056af10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56b2e4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
jne 0x56b2e4
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
push 0
adc ecx, ebx
add eax, 4
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x56b32e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x56b32e
mov ecx, esi
call fcn.0056af10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18
Function at 0x56b5b0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
jne 0x56b5bf
xor eax, eax
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp eax, 0xffffffff
jne 0x56b5fe
cmp dword [esi + 4], 0
jne 0x56b5fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x56b5fe
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.00624ab0
add dword [esi], eax
mov eax, 1
adc dword [esi + 4], edx
pop esi
pop ecx
ret 4

Function at 0x56b630
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
call fcn.0056af10
mov eax, dword [esp + 0x18]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x56b677
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56b776
mov eax, 1
pop edi
add esp, 0x10
ret 0xc
push ebx
push esi
lea esi, [edi + 8]
push esi
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056b5b0
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x56b6ab
mov eax, dword [ebx]
cdq
cmp edx, dword [esi + 4]
jl 0x56b6ab
jg 0x56b6a7
cmp eax, dword [esi]
jbe 0x56b6ab
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx]
mov ecx, dword [esi]
cdq
sub ecx, eax
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sbb eax, edx
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x56b6e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x56b73e
mov eax, dword [ebx]
test eax, eax
je 0x56b751
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [edi + 0x14]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56b75d
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
jne 0x56b75d
mov eax, dword [edi + 0x14]
push 2
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x56b751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x56b751
mov ecx, edi
call fcn.0056af10
pop ebp
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret 0xc
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.0056af10
test esi, esi
jne 0x56b745
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x10
ret 0xc
Function at 0x56b940
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x4c]
mov ebp, ecx
test edi, edi
je 0x56ba82
mov eax, dword [esi + 0x3c]
fld qword [esi + 0x28]
mov ecx, dword [esi + 0x40]
fstp qword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x3c]
push 0x6aeb78
push ecx
mov dword [esp + 0x3c], edx
call fcn.0062304b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
push 0x18
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
cmp dword [ebp + 0x54], 0
je 0x56b9eb
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x3c]
push str.fn_d
push edx
call fcn.0062304b
mov edx, dword [esi + 0x48]
mov eax, edx
add esp, 0xc
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56b9d3
sub eax, ebp
inc eax
push eax
push edx
push 1
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, eax
or edx, ecx
je 0x56ba36
mov edx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x3c]
push str.fl_d
push eax
mov dword [esp + 0x20], ecx
call fcn.0062304b
add esp, 0xc
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x48]
push edx
push edi
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, eax
or edx, ecx
je 0x56ba81
mov edx, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x3c]
push str.fse_d
push ecx
mov dword [esp + 0x20], edx
call fcn.0062304b
add esp, 0xc
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0062016f
add esp, 0x3c
ret 8

Function at 0x56bbd0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x56bbeb
mov edx, dword [esp + 8]
jmp 0x56bbe0
cmp edx, dword [eax + 0x38]
je 0x56bbee
mov eax, dword [eax]
test eax, eax
jne 0x56bbe0
ret 8
mov dword [eax + 0x44], 1
mov dword [esp + 8], eax
jmp fcn.0056b940
Function at 0x56bc40
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x56bcf9
push ebx
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x56bc67
push ebx
push edi
mov ecx, esi
call fcn.0056b940
mov ebx, dword [ebx]
test ebx, ebx
jne 0x56bc58
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x56bc70
sub eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push str.f_templ
push edi
call ebx
mov eax, dword [esi + 0x10]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.f_tfc
push edi
mov dword [esp + 0x28], eax
call ebx
xor edx, edx
cmp byte [esi + 0xc], dl
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.f_uf
push edi
mov dword [esp + 0x28], edx
call ebx
push 8
lea ecx, [esi + 0x18]
push ecx
push 0
push 0
push str.f_td
push edi
call ebx
xor edx, edx
cmp dword [esi + 0x54], edx
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.f_uu
push edi
mov dword [esp + 0x28], edx
call ebx
pop ebx
pop edi
pop esi
ret 4

Function at 0x56bd00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66743b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CFragmentsList.0
call fcn.00402500
xor eax, eax
mov dword [esp + 0x14], eax
fldz
fstp qword [esi + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0xc], al
mov byte [esi + 0x20], al
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x56d0e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc8]
cmp dword [eax + 0x28], 2
je 0x56d19d
mov ecx, dword [str.NOOP_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6aed80]
mov word [ebp - 0x18], dx
mov al, byte [0x6aed82]
mov byte [ebp - 0x16], al
push str.Sending_NOOP_n
mov ecx, esi
call fcn.00561d20
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56d154
sub eax, edx
push str.send___NOOP
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x3204]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562640
test eax, eax
je 0x56d18f
mov ecx, dword [esi + 0x3214]
mov dword [ecx + 0x14c], eax
jmp 0x56d1cb
mov ecx, esi
call fcn.0056cd60
mov byte [esi + 0x322c], 1
xor eax, eax
jmp 0x56d1cb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret

Function at 0x56d3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660f20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3214]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
push ecx
push edx
mov ecx, dword [esi + 0xc8]
cmp dword [ebp + 0xc], ebx
je 0x56d408
call fcn.005d3440
jmp 0x56d40d
call fcn.005d13e0
mov eax, dword [esi + 0x3214]
mov ecx, dword [eax + 0xc8]
or ecx, dword [eax + 0xcc]
je 0x56d462
mov byte [ebp - 0x11], bl
mov dword [ebp + 8], 4
lea edx, [ebp + 8]
push edx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push str.bIgnMTCh
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x56d456
cmp dword [ebp + 0xc], ebx
je 0x56d456
mov byte [ebp - 0x11], 1
jmp 0x56d462
push ebx
mov ecx, dword [esi + 0x3214]
call fcn.005785c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56d8d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660f70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x3244], 0
jne 0x56d920
cmp dword [esi + 0xa4], 1
jne 0x56d9ad
lea edi, [esi + 0x31f8]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.005a9b80
test eax, eax
jne 0x56d93b
cmp dword [ebp - 0x24], 0x12
je 0x56d9ad
mov ecx, dword [str.QUIT_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6aef08]
mov word [ebp - 0x18], dx
mov al, byte [0x6aef0a]
mov byte [ebp - 0x16], al
push 1
mov ecx, dword [0x75eb08]
push ecx
mov ecx, esi
call fcn.00562550
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56d970
sub eax, edx
push str.send___QUIT
push 0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0x3204]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562640
test eax, eax
jne 0x56d9db
push 0x12
mov ecx, edi
call fcn.005a9a50
mov ecx, esi
call fcn.00561f50
xor eax, eax
jmp 0x56d9db
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x661000
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x114], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 1
mov eax, dword [0x75eb2c]
push eax
call fcn.00562550
push 0x67b29c
push str.PASV_s
lea ecx, [ebp]
push ecx
call fcn.0062304b
add esp, 0xc
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56df21
sub eax, edx
push str.send___PASV
push 0
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi + 0x3204]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562640
test eax, eax
je 0x56df5c
mov ecx, dword [esi + 0x3214]
mov dword [ecx + 0x14c], eax
jmp 0x56dfa8
push 4
lea ecx, [esi + 0x31f8]
call fcn.005a9a50
mov ecx, esi
call fcn.00561f50
mov dword [esi + 0xa4], 4
xor eax, eax
jmp 0x56dfa8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x118
mov esp, ebp
pop ebp
ret
Function at 0x56e260
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661060
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x50], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [esi + 0x3240]
push edx
call sub.WS2_32.dll_accept
mov dword [esi + 0x3208], eax
or ebx, 0xffffffff
cmp eax, ebx
jne 0x56e368
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0x2733
je 0x56e344
mov eax, dword [esi + 0x3240]
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3240], ebx
mov dword [esi + 0x324c], 0
push edi
push str.Error_code___ld_n
lea ecx, [ebp - 0x34]
push ecx
call fcn.0062304b
add esp, 0xc
push 1
mov edx, dword [0x75ea90]
push edx
mov ecx, esi
call fcn.00562550
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00561d20
mov ecx, dword [0x75ea90]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056ae20
mov edx, dword [esi + 0x3214]
mov dword [edx + 0x14c], edi
mov eax, edi
jmp 0x56e3e1
mov ecx, esi
call fcn.005619e0
cmp eax, 0x1e
jle 0x56e364
mov eax, dword [esi + 0x3214]
mov edi, 0x7533
mov dword [eax + 0x14c], edi
mov dword [ebp - 0x4c], edi
mov eax, edi
jmp 0x56e3e1
push 1
mov ecx, dword [0x75eb40]
push ecx
mov ecx, esi
call fcn.00562550
mov edx, dword [esi + 0x3240]
push edx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3240], ebx
mov dword [esi + 0x324c], edi
mov eax, 1
mov dword [esi + 0x3248], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0x8004667e
mov ecx, dword [esi + 0x3208]
push ecx
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
jmp 0x56e3e1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret