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

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x561a50
lea eax, [esp + 0x10]
push eax
call fcn.006192f1
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x561979
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 0x561a50
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 0x5619bc
test ebx, ebx
jne 0x5619bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5619df
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0061a480
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x5619e4
jg 0x5619df
cmp eax, 0x4c4b40
jbe 0x5619e4
mov ebp, 1
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x561a4d
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 0x561a4d
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.00561720
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret

Function at 0x561a90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x561afb
lea eax, [esp + 4]
push eax
call fcn.006192f1
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.006186ab
lea eax, [esp + 0x28]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x561ad8
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.006157d3
add esp, 0x54
ret
Function at 0x561c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655d20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74d890]
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 0x561c73
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 0x561c9f
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 0x561c73
mov edi, esi
jmp 0x561c79
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 0x561c98
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 0x562030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x74d890]
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 0x562094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5621f1
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 0x562226
cmp dword [esp + 0x10], 4
jne 0x562226
lea ecx, [esp + 0x24]
push ecx
call fcn.0059fd30
add esp, 4
cmp eax, ebp
jbe 0x562226
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 0x562226
jg 0x562103
cmp ecx, ebp
jbe 0x562226
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 0x56212d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5621f1
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 0x562157
cmp dword [esp + 0x10], 0xc
jne 0x562226
cmp byte [esp + 0x38], 0
je 0x562165
cmp byte [esp + 0x24], 8
jmp 0x56217a
cmp byte [esp + 0x24], 9
jne 0x562060
mov cl, byte [esp + 0x2f]
and cl, 0xf0
cmp cl, 0x10
jne 0x562060
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x562060
lea edx, [esp + 0x28]
push edx
call fcn.00562000
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 0x56220f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x56220f
mov ecx, edi
call fcn.00561ed0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006157d3
add esp, 0x24
ret 0x10
mov ecx, edi
call fcn.00561ed0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006157d3
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.006157d3
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.006157d3
add esp, 0x24
ret 0x10
Function at 0x562240
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 0x56229c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
je 0x56229c
mov ecx, esi
call fcn.00561ed0
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 0x5622d4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
jne 0x5622d4
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 0x56231e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x56231e
mov ecx, esi
call fcn.00561ed0
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 0x5625a0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
jne 0x5625af
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 0x5625ee
cmp dword [esi + 4], 0
jne 0x5625ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5625ee
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.0061a480
add dword [esi], eax
mov eax, 1
adc dword [esi + 4], edx
pop esi
pop ecx
ret 4

Function at 0x562620
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
call fcn.00561ed0
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 0x562667
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x562766
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.005625a0
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x56269b
mov eax, dword [ebx]
cdq
cmp edx, dword [esi + 4]
jl 0x56269b
jg 0x562697
cmp eax, dword [esi]
jbe 0x56269b
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 0x5626d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x56272e
mov eax, dword [ebx]
test eax, eax
je 0x562741
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 0x56274d
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
jne 0x56274d
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 0x562741
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x562741
mov ecx, edi
call fcn.00561ed0
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.00561ed0
test esi, esi
jne 0x562735
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x10
ret 0xc
Function at 0x5628e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x74d890]
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 0x562a22
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 0x6a3448
push ecx
mov dword [esp + 0x3c], edx
call fcn.006186ab
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 0x56298b
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x3c]
push str.fn_d
push edx
call fcn.006186ab
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 0x562973
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 0x5629d6
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.006186ab
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 0x562a21
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.006186ab
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.006157d3
add esp, 0x3c
ret 8

Function at 0x562b70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x562b8b
mov edx, dword [esp + 8]
jmp 0x562b80
cmp edx, dword [eax + 0x38]
je 0x562b8e
mov eax, dword [eax]
test eax, eax
jne 0x562b80
ret 8
mov dword [eax + 0x44], 1
mov dword [esp + 8], eax
jmp fcn.005628e0
Function at 0x562be0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x562c99
push ebx
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x562c07
push ebx
push edi
mov ecx, esi
call fcn.005628e0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x562bf8
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x562c10
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 0x562ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x65c4bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x74d890]
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 0x564070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x74d890]
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 + 0xc0]
cmp dword [eax + 0x28], 2
je 0x56412d
mov ecx, dword [str.NOOP_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6a3650]
mov word [ebp - 0x18], dx
mov al, byte [0x6a3652]
mov byte [ebp - 0x16], al
push str.Sending_NOOP_n
mov ecx, esi
call fcn.00558e10
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5640e4
sub eax, edx
push str.send___NOOP
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00559750
test eax, eax
je 0x56411f
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x56415b
mov ecx, esi
call fcn.00563cf0
mov byte [esi + 0x321c], 1
xor eax, eax
jmp 0x56415b
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.006157d3
mov esp, ebp
pop ebp
ret

Function at 0x564340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656030
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74d890]
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 + 0x3204]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
push ecx
push edx
mov ecx, dword [esi + 0xc0]
cmp dword [ebp + 0xc], ebx
je 0x564398
call fcn.005c8c80
jmp 0x56439d
call fcn.005c6c70
mov eax, dword [esi + 0x3204]
mov ecx, dword [eax + 0xc8]
or ecx, dword [eax + 0xcc]
je 0x5643f2
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 [0x752bcc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5643e6
cmp dword [ebp + 0xc], ebx
je 0x5643e6
mov byte [ebp - 0x11], 1
jmp 0x5643f2
push ebx
mov ecx, dword [esi + 0x3204]
call fcn.0056f540
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 0x564860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656080
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74d890]
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 + 0x3234], 0
jne 0x5648b0
cmp dword [esi + 0x9c], 1
jne 0x56493d
lea edi, [esi + 0x31e8]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0059f5b0
test eax, eax
jne 0x5648cb
cmp dword [ebp - 0x24], 0x12
je 0x56493d
mov ecx, dword [str.QUIT_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6a37d8]
mov word [ebp - 0x18], dx
mov al, byte [0x6a37da]
mov byte [ebp - 0x16], al
push 1
mov ecx, dword [0x753ab0]
push ecx
mov ecx, esi
call fcn.00559660
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x564900
sub eax, edx
push str.send___QUIT
push 0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00559750
test eax, eax
jne 0x56496b
push 0x12
mov ecx, edi
call fcn.0059f480
mov ecx, esi
call fcn.00559070
xor eax, eax
jmp 0x56496b
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.006157d3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x656110
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x74d890]
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 [0x753ad4]
push eax
call fcn.00559660
push 0x67029c
push str.PASV_s
lea ecx, [ebp]
push ecx
call fcn.006186ab
add esp, 0xc
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x564eb1
sub eax, edx
push str.send___PASV
push 0
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00559750
test eax, eax
je 0x564eec
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x564f38
push 4
lea ecx, [esi + 0x31e8]
call fcn.0059f480
mov ecx, esi
call fcn.00559070
mov dword [esi + 0x9c], 4
xor eax, eax
jmp 0x564f38
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.006157d3
add ebp, 0x118
mov esp, ebp
pop ebp
ret
Function at 0x5651f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656170
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x74d890]
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 + 0x3230]
push edx
call sub.WS2_32.dll_accept
mov dword [esi + 0x31f8], eax
or ebx, 0xffffffff
cmp eax, ebx
jne 0x5652f8
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0x2733
je 0x5652d4
mov eax, dword [esi + 0x3230]
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3230], ebx
mov dword [esi + 0x323c], 0
push edi
push str.Error_code___ld_n
lea ecx, [ebp - 0x34]
push ecx
call fcn.006186ab
add esp, 0xc
push 1
mov edx, dword [0x753a38]
push edx
mov ecx, esi
call fcn.00559660
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00558e10
mov ecx, dword [0x753a38]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.00561de0
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], edi
mov eax, edi
jmp 0x565371
mov ecx, esi
call fcn.00559040
cmp eax, 0x1e
jle 0x5652f4
mov eax, dword [esi + 0x3204]
mov edi, 0x7533
mov dword [eax + 0x140], edi
mov dword [ebp - 0x4c], edi
mov eax, edi
jmp 0x565371
push 1
mov ecx, dword [0x753ae8]
push ecx
mov ecx, esi
call fcn.00559660
mov edx, dword [esi + 0x3230]
push edx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3230], ebx
mov dword [esi + 0x323c], edi
mov eax, 1
mov dword [esi + 0x3238], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0x8004667e
mov ecx, dword [esi + 0x31f8]
push ecx
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
jmp 0x565371
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.006157d3
mov esp, ebp
pop ebp
ret