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

Disassembly:
mov eax, 4
call fcn.0046b300
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x545c58
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x545c4b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x545c63
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x545c44
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x545cb6
cmp dword [edi + 0x88], 0
jne 0x545cb6
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x6a9fe4
push eax
call fcn.00497bc0
add esp, 0xc
test eax, eax
jne 0x545ca9
test bl, 1
jne 0x545ca9
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x545cb6
test ebx, ebx
je 0x545cb6
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.0050aa00
add esp, 4
test eax, 0x200000
je 0x545ce1
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x545d0f
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
je 0x545d67
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x545d30
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x558f10
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x558ff3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x558f8d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
jmp 0x558fde
shl edx, 0x10
cmp edi, 2
jne 0x558f9d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x558fca
lea edx, [edi + 0x3c]
jmp 0x558fd7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x558f30
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x588d70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
jg 0x588da5
jl 0x588d93
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x588da8
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469ae8
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
lea esp, [esp]
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x588dc0
push esi
push edi
xor edi, edi
jmp 0x588de0
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x588e01
test cl, 1
je 0x588dfa
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x588df3
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x588de0
xor edi, edi
jmp 0x588e20
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x588e41
test cl, 1
je 0x588e3a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x588e33
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x588e20
jmp 0x588e63
mov ebx, dword [ebp + 0x10]
xor edi, edi
jmp 0x588e70
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x588e91
test cl, 1
je 0x588e8a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x588e83
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x588e70
mov ecx, ebx
and ecx, 1
xor edx, edx
or ecx, edx
je 0x588ed0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x104]
test eax, eax
je 0x588ecd
jmp 0x588ec0
test al, 1
je 0x588ec6
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x588ec0
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x14]
shrd ebx, eax, 1
sar eax, 1
mov dword [ebp - 0x108], eax
mov eax, ebx
mov ebx, dword [ebp - 0x108]
mov ecx, eax
or ecx, ebx
mov dword [ebp + 0x10], eax
je 0x588f79
xor edi, edi
jmp 0x588f00
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x588f21
test cl, 1
je 0x588f1a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x588f13
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x588f00
mov ecx, eax
and ecx, 1
xor edx, edx
or ecx, edx
je 0x588f63
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
test eax, eax
je 0x588f5d
jmp 0x588f50
test al, 1
je 0x588f56
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x588f50
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], edx
shrd eax, ebx, 1
mov ecx, eax
sar ebx, 1
mov dword [ebp + 0x10], ecx
or ecx, ebx
mov dword [ebp + 0x14], ebx
jne 0x588e60
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469ae8
mov esp, ebp
pop ebp
ret
Function at 0x59cd97
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0046b300
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x59cefa
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.0053d780
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0053d880
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0056d240
push ebp
call fcn.0053d780
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.0053d880
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0056d240
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x59cdb3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00469ae8
add esp, 0xa0
ret
Function at 0x5a7e50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x5a7e69
mov esi, edi
mov edi, eax
jmp 0x5a7e6b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x5a7e7b
mov eax, ebx
jmp 0x5a7e85
push eax
push ebx
call fcn.004d4a10
add esp, 8
test eax, eax
jne 0x5a7e8d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x5a7ea9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x5a7e94
cmp eax, dword [esi + 4]
jge 0x5a7ec0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x5a7eb0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x5a7ee1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x5a7ede
dec eax
test eax, eax
jg 0x5a7ed0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x5c2b4a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x703580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5c2b66
sub eax, edx
sar eax, 1
cmp eax, 2
jae 0x5c2b7e
xor al, al
jmp 0x5c2bed
mov eax, dword [0x6c3120]
mov dword [ebp - 0x20c], eax
mov eax, dword [0x6c3124]
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0046a480
push 2
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048d80b
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x5c2beb
cmp eax, 4
je 0x5c2beb
push str._Sys_wrapper_path_is_not_fixed_remote
push 0x6db848
push 3
call fcn.0042fdf6
add esp, 0xc
jmp 0x5c2b7a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00469ae8
leave
ret
Function at 0x5c4ccd
Capabilities:
Get common file path

Disassembly:
push 0x304
mov eax, 0x669a45
call fcn.00469b60
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x300], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
mov byte [ebp - 4], al
mov dword [ebp - 0x300], eax
mov esi, 0x7240dc
test byte [0x7240d8], al
jne 0x5c4d3b
or dword [0x7240d8], eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.005c49ab
push 0x6728b2
call fcn.0046b22d
pop ecx
mov byte [ebp - 4], 1
cmp dword [0x7240e4], ebx
jne 0x5c4deb
push 7
push str.APPDATA
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
call fcn.00408e00
mov byte [ebp - 4], 4
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.005c425f
mov dword [eax], 0x1a
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00408fa0
push 6
push 0x67482c
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.00408e00
mov byte [ebp - 4], 5
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.005c425f
mov dword [eax], 0x25
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00408fa0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov ecx, esi
call fcn.005c1a32
mov esi, dword [ebp - 0x2fc]
cmp esi, dword [0x7240e0]
je 0x5c4ef6
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0046a480
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push dword [esi + 0x28]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x2fc], eax
cmp eax, ebx
jl 0x5c4e6e
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0042e596
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00408fa0
mov eax, edi
call fcn.00469be3
ret
push str.SHGetFolderPath_fail__erro_code:_1___csidl:_2_
lea ecx, [ebp - 0x2f8]
call fcn.004325ca
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call fcn.005c3de9
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.005c3e48
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0043d25b
add esp, 0x18
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f8]
call fcn.00431e43
cmp dword [ebp - 0x220], 0x10
mov eax, dword [ebp - 0x234]
jae 0x5c4ecd
lea eax, [ebp - 0x234]
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00469472
push 0x6f4c48
lea eax, [ebp - 0x30c]
push eax
call fcn.0046abf2
push str.Special_CSIDL_not_support___1_
lea ecx, [ebp - 0x2f8]
call fcn.004325ca
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.005c3e48
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0043d25b
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2f8]
call fcn.00431e43
cmp dword [ebp - 0x220], 0x10
mov eax, dword [ebp - 0x234]
jae 0x5c4ecd
jmp 0x5c4ec7
Function at 0x5c511f
Capabilities:
Create directory

Disassembly:
push 0xd8
mov eax, 0x669b23
call fcn.00469b60
and dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x5c513e
lea eax, [ebp + 8]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x5c51cf
push str.create_directory_ex_fail__error_code:_1___path:_2_
lea ecx, [ebp - 0xd4]
call fcn.004325ca
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
push ecx
push eax
call fcn.005c3ea7
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.005c49d7
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043d25b
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.00431e43
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x5c51a6
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00469472
push 0x6f4c48
lea eax, [ebp - 0xe4]
push eax
call fcn.0046abf2
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0042a743
call fcn.00469be3
ret
Function at 0x5ca368
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x5ca3a3
push edi
push esi
call fcn.005e2616
pop ecx
pop ecx
test eax, eax
jne 0x5ca3a3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x5ca39a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x5e1dc6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x5e1dee
call fcn.0046ef7a
and dword [eax], 0
call fcn.0046ef67
mov dword [eax], 0x16
call fcn.00473e91
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e1e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046ef8d
pop ecx
jmp 0x5e1de9
test byte [ebp + 0xc], 0x80
je 0x5e1e16
and eax, 0xfffffffe
jmp 0x5e1e19
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x5e1dfc
xor eax, eax
pop ebp
ret

Function at 0x5e2500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5e2527
call fcn.0046ef7a
mov dword [eax], esi
call fcn.0046ef67
push 0x16
pop esi
mov dword [eax], esi
call fcn.00473e91
mov eax, esi
jmp 0x5e257c
test dword [ebp + 0xc], 0xfffffff9
jne 0x5e250d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5e2554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046ef8d
pop ecx
call fcn.0046ef67
mov eax, dword [eax]
jmp 0x5e257c
test al, 0x10
jne 0x5e257a
test al, 1
je 0x5e257a
test byte [ebp + 0xc], 2
je 0x5e257a
call fcn.0046ef7a
mov dword [eax], 5
call fcn.0046ef67
mov dword [eax], 0xd
jmp 0x5e254b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5e2597
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5e25be
call fcn.0046ef7a
mov dword [eax], esi
call fcn.0046ef67
push 0x16
pop esi
mov dword [eax], esi
call fcn.00473e91
mov eax, esi
jmp 0x5e2613
test dword [ebp + 0xc], 0xfffffff9
jne 0x5e25a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e25eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046ef8d
pop ecx
call fcn.0046ef67
mov eax, dword [eax]
jmp 0x5e2613
test al, 0x10
jne 0x5e2611
test al, 1
je 0x5e2611
test byte [ebp + 0xc], 2
je 0x5e2611
call fcn.0046ef7a
mov dword [eax], 5
call fcn.0046ef67
mov dword [eax], 0xd
jmp 0x5e25e2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5e6a40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor eax, eax
mov dword [ebp], eax
push esi
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push edi
mov dword [ebp + 0xc], eax
mov eax, 2
push 0x3a
push esi
mov word [ebp], ax
call fcn.0046d810
mov edi, eax
add esp, 8
test edi, edi
je 0x5e6ac5
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x5e6b3a
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00469cf0
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x5e6af2
push edi
call fcn.0046b35a
add esp, 4
movzx eax, ax
jmp 0x5e6af4
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6ad0
sub eax, edx
cmp eax, 0x80
jae 0x5e6b3a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5e6ae8
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push str.1234567890.
push edx
mov word [ebp + 2], ax
call fcn.00621be0
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5e6b18
sub ecx, esi
cmp eax, ecx
jne 0x5e6b3f
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.005e73e0
add esp, 8
test eax, eax
jne 0x5e6b58
or eax, 0xffffffff
jmp 0x5e6b5a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x5e6b3a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469ae8
add esp, 0x84
ret
Function at 0x5e7390
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5e7d20
sub esp, 0x110
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5e7dd7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x5e7d6d
xor ecx, ecx
jmp 0x5e7d96
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5e7dd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
je 0x5e7e33
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x5e7e4d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5e7e22
call esi
cmp eax, 0x2733
je 0x5e7e22
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
test edi, edi
je 0x5e7e33
push 0x186a0
call fcn.005e8c00
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret
jne 0x5e7e54
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469ae8
add esp, 0x110
ret