joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a00c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x50
call fcn.006149d0
mov eax, dword [0x6ae280]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x68]
mov eax, dword [ebx + 0x198]
and eax, 0xfffffffb
mov dword [ebx + 0x198], eax
push edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x10], edi
test al, 0x20
jne 0x5a010b
test al, 8
jne 0x5a02aa
test ebp, ebp
je 0x5a02aa
mov eax, dword [ebx + 0x14]
mov ecx, 8
mul ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x38], xmm0
push esi
mov dword [esp + 0x1c], eax
lea esi, [ebx + 0x98]
mov dword [esp + 0x20], edx
mov eax, ebp
mul ecx
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x5c]
push eax
push esi
mov dword [esp + 0x30], edx
call fcn.005b32d0
mov ecx, dword [ebx + 8]
add esp, 8
test ecx, ecx
je 0x5a016d
mov eax, dword [ebx + 0x14]
add eax, 0xf
and eax, 0xfffffff0
push eax
push ecx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.005b3170
add esp, 0x10
mov eax, ebp
and eax, 0xfffffff0
jbe 0x5a0184
push eax
push edi
lea eax, [esp + 0x44]
push eax
push esi
call fcn.005b3170
add esp, 0x10
mov eax, ebp
and eax, 0xf
je 0x5a01bb
push eax
mov eax, ebp
xorps xmm0, xmm0
and eax, 0xfffffff0
add eax, edi
push eax
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x58], xmm0
call sub.VCRUNTIME140.dll_memcpy
push 0x10
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x50]
push eax
push esi
call fcn.005b3170
add esp, 0x1c
push 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call fcn.005b3170
add esp, 0x10
lea eax, [esp + 0x3d]
lea edx, [ebx + 0x8d]
mov esi, 2
nop
movzx ecx, byte [edx - 1]
lea eax, [eax + 6]
xor byte [eax - 7], cl
lea edx, [edx + 6]
movzx ecx, byte [edx - 6]
xor byte [eax - 6], cl
movzx ecx, byte [edx - 5]
xor byte [eax - 5], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub esi, 1
jne 0x5a01e0
and byte [esp + 0x4b], 0x7f
lea eax, [esp + 0x3c]
push 0x10
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea esi, [ebx + 0x6c]
push esi
push dword [ebx]
call fcn.00499cf0
movups xmm0, xmmword [esi]
push ebp
push dword [esp + 0x2c]
movups xmmword [esp + 0x48], xmm0
mov edi, eax
lea eax, [esp + 0x48]
push dword [esp + 0x34]
psrldq xmm0, 0xc
movd ecx, xmm0
push eax
push ebx
shr ecx, 0x18
or cl, 0x80
mov byte [esp + 0x63], cl
call fcn.0059fde0
add esp, 0x28
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
test edi, edi
pop esi
setne cl
and eax, ecx
mov ecx, dword [ebx + 0x198]
and ecx, 0xfffffffb
pop edi
pop ebp
lea edx, [eax*4]
or edx, ecx
or edx, 8
mov dword [ebx + 0x198], edx
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00614242
add esp, 0x50
ret
mov ecx, dword [esp + 0x58]
xor eax, eax
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00614242
add esp, 0x50
ret
Function at 0x5a0410
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
cmp dword [ebx + 0x84], 0xffffffff
je 0x5a04e4
push dword [ebx]
call fcn.00486c30
mov esi, eax
add esp, 4
test esi, esi
js 0x5a04e4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5a0441
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x5a04db
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x5a047a
test esi, esi
jle 0x5a04b9
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5a0464
jmp 0x5a04b9
mov eax, esi
mov byte [ecx + ebx + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x5a049a
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jle 0x5a04b9
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5a04a5
push esi
push ebp
push ebp
push dword [ebx]
call fcn.00487580
add esp, 0x10
pop edi
test eax, eax
jg 0x5a04db
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop ebp
pop esi
pop ebx
ret
pop ebp
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
Function at 0x5a9160
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x5a9178
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5a917d
mov ebx, 0x68add0
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5a9255
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x5a91e9
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x5a9235
shl eax, 0x10
cmp esi, 2
jne 0x5a91f9
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x5a921c
mov al, 0x3d
jmp 0x5a9225
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x5a9193
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x5ad520
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.006149d0
mov edx, dword [esp + 0x18]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
or ecx, 0xffffffff
push ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 1
push esi
mov esi, dword [edx]
setne al
add eax, ebx
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x5ad559
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebp, 1
je 0x5ad624
mov ecx, dword [esp + 0x2c]
dec ecx
add ecx, esi
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], ecx
mov cl, byte [ecx]
mov byte [esp + 0xf], cl
movzx ebp, cl
je 0x5ad590
sub esi, ebp
mov eax, 1
sub esi, ebx
dec esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [eax + ebp]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
push edi
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x5ad607
mov esi, dword [esp + 0x14]
mov edx, ebp
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, ebp
lea esi, [esi - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x13]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x5ad5c7
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
not ebx
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x3c]
movzx ecx, bl
mov ebx, dword [esp + 0x40]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edx], esi
pop edi
push dword [esp + 0x44]
push ecx
push ebx
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
call fcn.005ad1f0
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5b2b10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.006149d0
mov eax, dword [0x6ae280]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x5b2c21
movups xmm0, xmmword [edi + 0x10]
mov ebx, dword [esp + 0x50]
lea esi, [edi + 0x10]
dec eax
mov dword [esp + 0x10], ebx
movups xmmword [esp + 0x2c], xmm0
and byte [esp + 0x38], 0x7f
lea ecx, [esp + 0x2c]
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x44], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.00499250
add esp, 0x18
test eax, eax
je 0x5b2c21
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.00499cf0
add esp, 0x14
test eax, eax
je 0x5b2c21
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.005b3020
add esp, 0x10
test eax, eax
je 0x5b2c21
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x5b2bf3
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x5b2bf3
mov eax, ecx
sub esi, eax
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x5b2be0
jmp 0x5b2c03
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
xorps xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x5b2c36
push ebx
push ebp
call fcn.00401320
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00614242
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
mov eax, ebx
mov dword [edi + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00614242
add esp, 0x30
ret

Function at 0x5bc625
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x5bc64c
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x5bc64f
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.005bc601
pop esi
leave
ret 8
Function at 0x5bcc1f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.005bc6dd
mov edi, eax
test edi, edi
jne 0x5bcc46
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x5bcc8f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x5bcc8a
test al, 0x10
je 0x5bcc8a
test eax, 0x400
je 0x5bcc86
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.005bcc95
push dword [ebp - 4]
mov esi, eax
call fcn.005bc748
test esi, esi
jne 0x5bcc8a
xor edx, edx
jmp 0x5bcc8c
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x5c52c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5c536f
push esi
call fcn.005d9d90
add esp, 4
test al, al
jne 0x5c536f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5c52e7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.005e49e0
add esp, 0xc
test eax, eax
je 0x5c531b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.005e49e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5c531d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x5c534e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.005d4e40
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x5c5330
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5d0820
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6cb], 0
je 0x5d08bd
cmp dword [esi + 0x1a4], 0
je 0x5d0877
push esi
call fcn.005c0470
push 1
push esi
mov byte [esp + 0x14], al
call fcn.005c0700
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.005c0700
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x5d088c
sub eax, 1
je 0x5d088c
sub eax, 1
jne 0x5d08bd
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x690ef0]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x5d3090
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x5d30aa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x691334
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
add esp, 8
test eax, eax
je 0x5d30f2
test ebp, ebp
je 0x5d30e3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x5d3118
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5d3118
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x5d31f2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d3135
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x6ade98]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5d31e8
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5d31e8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d3176
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d3191
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5d31b0
test ebp, ebp
je 0x5d31df
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6ade9c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x6ade9c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x5d9d90
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x6ae280]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x5d9dd8
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00614242
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.00614242
add esp, 0x18
ret

Function at 0x5d9f40
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5d9f7e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x5d9f6f
push 0
call fcn.005d9f40
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5d9f93
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x5dace0
Capabilities:
Convert ip address from string
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x6ae280]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6cb], 0
je 0x5daeb9
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x5daeb8
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x34]
push eax
push ebx
push 2
call esi
test eax, eax
jg 0x5daeb7
lea eax, [esp + 0x38]
push eax
push ebx
push 0x17
call esi
test eax, eax
jg 0x5daeb7
push dword [ebp + 0x14]
cmp byte [ebx], 0
mov eax, str._none_
mov esi, dword [ebp]
mov ebp, dword [esp + 0x14]
cmovne eax, ebx
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.005d0990
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.005c6160
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.005c6160
add esp, 0x20
test esi, esi
je 0x5dae2b
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x5dada2
cmp ecx, 2
jne 0x5dae20
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x5dadd1
sub ecx, 0x15
jne 0x5dade6
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x5dade1
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.00493ae0
add esp, 4
test eax, eax
je 0x5dae05
push 2
push 0x64681c
push ebx
call fcn.005c6120
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x5dae4b
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.005c60d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x5dae4b
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5dad91
lea eax, [esp + 0x24]
push eax
call fcn.00493ae0
add esp, 4
test eax, eax
je 0x5dae5b
lea eax, [esp + 0x24]
push eax
call fcn.004871c0
add esp, 4
jmp 0x5dae60
push str.too_many_IP__cant_show
push ebp
call fcn.005d0990
add esp, 8
jmp 0x5daea0
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.005d0990
lea eax, [esp + 0x20]
push eax
call fcn.00493ae0
add esp, 0x10
test eax, eax
je 0x5dae8c
lea eax, [esp + 0x14]
push eax
call fcn.004871c0
add esp, 4
jmp 0x5dae91
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.005d0990
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.005c6130
lea eax, [esp + 0x28]
push eax
call fcn.005c6130
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.00614242
add esp, 0x6c
ret
Function at 0x5e5140
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.005c5620
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.005e3320
push dword [esp + 0x40]
mov edi, eax
call fcn.005e3320
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x5e51d5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.005c5620
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.005c56d0
add esp, 0x20
test edx, edx
ja 0x5e51f9
jb 0x5e51c7
cmp eax, 0x3e8
ja 0x5e51f9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x5e5190
test edi, edi
je 0x5e51e2
push edi
call fcn.006158f8
add esp, 4
test esi, esi
je 0x5e51ef
push esi
call fcn.006158f8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x5e5206
push edi
call fcn.006158f8
add esp, 4
test esi, esi
je 0x5e5213
push esi
call fcn.006158f8
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x5e56f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x5e587f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5e586a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5e574c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e5740
sub eax, edx
inc eax
jmp 0x5e574e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x5e575f
lea ebp, [ecx + 0xe]
jmp 0x5e576b
cmp ecx, 0x17
jne 0x5e580c
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x5e580c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x5e580c
cmp ecx, ebp
jb 0x5e580c
add eax, 0x20
add eax, ebp
push eax
call dword [0x6ade98]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5e585b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x5e57f8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x5e5808
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5e5732
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x5e582c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x5e5866
test edi, edi
je 0x5e584b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x6ade9c]
add esp, 4
mov edi, esi
test esi, esi
jne 0x5e5834
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x5e581b
test edi, edi
jne 0x5e5876
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x5e5c80
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x5e5ca6
cmp ecx, 0xffffffff
cmovne eax, ecx
ret