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

Disassembly:
mov eax, 0x2c
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push edi
test bl, 0x40
jne 0x46c495
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov dword [esp + 0x24], eax
mov byte [esi], al
cmp edx, 0xf
jae 0x46c4c3
nop
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x46c4b0
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x4c]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x46c4eb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005ae073
add esp, 0x2c
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x46c526
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x28]
push ebp
call dword [esp + 0x38]
shl ebx, 4
add esp, 0x18
add dword [esp + 0x18], ebx
add ebp, ebx
sub edi, ebx
je 0x46c57e
shr ebx, 4
push ebx
push esi
call fcn.0046cda0
add esp, 8
jmp 0x46c52a
test edi, edi
je 0x46c57e
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push ebx
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test edi, edi
je 0x46c56d
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov eax, ecx
lea edx, [esi + 0x10]
sub ebp, eax
sub ebx, eax
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [ebx + ecx - 1], al
xor byte [edx - 1], al
sub edi, 1
jne 0x46c551
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call ebp
add esp, 0xc
jmp 0x46c586
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, 0xf
sub ecx, dword [esp + 0x24]
cmp ecx, 0x10
jae 0x46c5aa
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.005afaf0
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
mov eax, dword [esp + 0x34]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x2c
ret
Function at 0x46e3b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005ae090
mov edx, dword [esp + 0x1c]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x46e504
push ebx
push edi
mov edi, dword [esp + 0x30]
cmp edx, 8
jb 0x46e4e7
lea eax, [ebp - 1]
lea ebx, [edi - 1]
add eax, edx
add ebx, edx
cmp edi, eax
ja 0x46e3f7
cmp ebx, ebp
jae 0x46e4e7
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x46e408
cmp ebx, esi
jae 0x46e4e7
cmp edx, 0x40
jb 0x46e4a8
mov ebx, edx
mov eax, edx
and ebx, 0x3f
mov edx, edi
sub edx, ebp
mov dword [esp + 0x1c], ebx
sub eax, ebx
mov dword [esp + 0x10], edx
mov ebx, esi
mov dword [esp + 0x18], eax
sub ebx, ebp
lea eax, [ebp + 0x10]
mov ebp, dword [esp + 0x10]
mov edx, esi
sub edx, edi
mov dword [esp + 0x14], edx
lea edx, [edi + 0x20]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
xorps xmm1, xmm0
movups xmmword [edx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [esp + 0x30]
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [esp + 0x18]
jb 0x46e440
cmp dword [esp + 0x1c], 8
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
jb 0x46e4e3
jmp 0x46e4ac
mov ebx, esi
sub ebx, ebp
mov eax, edx
and eax, 0xfffffff8
sub edi, ebp
mov dword [esp + 0x1c], eax
lea eax, [ecx + ebp]
mov dword [esp + 0x2c], edi
nop
movq xmm1, qword [ebx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [edi + eax - 8], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x46e4c0
mov edi, dword [esp + 0x30]
cmp ecx, edx
jae 0x46e502
sub esi, ebp
lea eax, [ecx + ebp]
sub edi, ebp
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x46e4f0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x46e610
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005ae090
mov ecx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [ecx + 0x40]
mov esi, dword [ecx + 0x14]
cmp edi, esi
ja 0x46e63e
shl edi, 4
add edi, dword [ebp]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
mov edx, dword [ecx + 0x18]
cmp edi, edx
jb 0x46e678
mov eax, edi
sub eax, edx
add eax, 4
and eax, 0xfffffffc
add eax, edx
push 0x71
mov dword [ecx + 0x18], eax
push str.cryptomodesocb128.c
shl eax, 4
push eax
push dword [ebp]
call fcn.0045f000
add esp, 0x10
test eax, eax
jne 0x46e675
pop edi
pop esi
pop ebp
add esp, 8
ret
mov dword [ebp], eax
mov eax, esi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, edi
mov edi, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0xc], eax
push ebx
nop
mov eax, dword [ebp]
add eax, edi
mov bl, byte [eax]
lea esi, [eax + 0x10]
push esi
shr bl, 7
push 1
neg bl
push eax
and bl, 0x87
call fcn.0046e300
xor byte [esi + 0xf], bl
add esp, 0xc
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x46e690
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
pop ebx
mov dword [eax + 0x14], edi
shl edi, 4
add edi, dword [eax + 0x40]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x46f3a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
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 + 0x10], 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 xmm4, 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
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x46f4b6
push edi
cmp esi, 4
jb 0x46f491
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x46f434
cmp edi, ecx
jae 0x46f491
cmp edx, ebx
ja 0x46f43c
cmp edi, ebx
jae 0x46f491
cmp edx, ebp
ja 0x46f444
cmp edi, ebp
jae 0x46f491
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x46f452
cmp edi, ebx
jae 0x46f491
cmp ecx, ebp
ja 0x46f45a
cmp edi, ebp
jae 0x46f491
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x46f460
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x46f4b5
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 0x46f491
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46fe80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.005ae090
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
push edi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], ecx
call fcn.0046f7f0
mov esi, eax
add esp, 4
lea eax, [esi + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
cmp dword [esp + 0x44], ebx
jne 0x46fef1
mov ebx, dword [edi + 0xc]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esp + 0x10], eax
lea eax, [ecx*8]
cmp eax, esi
jne 0x46fee9
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], eax
jmp 0x46fef3
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x46fef3
xor eax, eax
mov esi, dword [esp + 0x3c]
add eax, ecx
cmp esi, 0xffffffff
jne 0x46ff31
mov esi, eax
mov dword [esp + 0x3c], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x46ffb0
test esi, esi
je 0x470044
push esi
push ecx
push dword [esp + 0x40]
call fcn.005afaf0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
cmp esi, eax
jge 0x46ff04
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x1c], xmm0
psrldq xmm0, 4
movd ecx, xmm0
test ecx, ecx
jle 0x46ff72
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x46ff6e
dec ecx
test ecx, ecx
jg 0x46ff60
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0046f7f0
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xc]
cmp esi, eax
jge 0x46ff04
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp edx, 1
je 0x46ffc0
dec eax
add eax, esi
mov edi, dword [edi + 4]
mov dword [esp + 0x44], eax
xor eax, eax
cmp edx, 1
push ebp
sete al
shl edi, 2
xor ebp, ebp
lea eax, [eax*2 - 1]
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x470043
mov dword [esp + 0x10], esi
neg edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, edi
shr edx, cl
mov ecx, ebp
shr eax, 0x1f
neg al
and dl, al
mov eax, dword [esp + 0x48]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
sub ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
neg ebx
shr ecx, 0x1f
inc edi
add ebp, ecx
mov dword [esp + 0x48], eax
sub dword [esp + 0x10], 1
jne 0x46fff5
mov esi, dword [esp + 0x40]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x471f10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005ae090
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x471f90
mov cl, byte [edi]
test cl, cl
je 0x471f90
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x471f40
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x472010
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005ae090
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x472093
mov cl, byte [edi]
test cl, cl
je 0x472093
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
and esi, 0xffffffdf
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x472040
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x47c5e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x168
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x170]
push ebp
mov ebp, dword [esp + 0x17c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x174]
test ebp, ebp
je 0x47c7f9
push ebx
mov ebx, edi
mov eax, edi
push esi
shr ebx, 0x17
mov esi, 2
test edi, edi
push 0x47bed0
cmovs ebx, esi
shr eax, 0x17
push 0x668a24
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
call fcn.004718f0
add esp, 8
neg eax
sbb eax, eax
test dword [0x668a30], eax
je 0x47c6b6
mov eax, dword [esp + 0x10]
test edi, edi
push dword [0x668a28]
cmovs eax, esi
movzx eax, al
shl eax, 0x17
mov dword [esp + 0x30], eax
call fcn.004718e0
add esp, 4
test eax, eax
je 0x47c6b6
lea eax, [esp + 0x2c]
push eax
push dword [0x668a2c]
call fcn.00471ed0
push dword [0x668a28]
mov esi, eax
call fcn.00471960
add esp, 0xc
test esi, esi
je 0x47c6b6
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x47c6d3
push ebx
push str.lib__lu_
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.00473ec0
lea eax, [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x14], eax
mov esi, edi
test edi, edi
jns 0x47c701
push 0x100
lea eax, [esp + 0x78]
and esi, 0x7fffffff
push eax
push esi
call fcn.0046f010
add esp, 0xc
lea ecx, [esp + 0x74]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x47c785
push 0x47bed0
push 0x668a24
and esi, 0x7fffff
call fcn.004718f0
add esp, 8
neg eax
sbb eax, eax
test dword [0x668a30], eax
je 0x47c789
mov eax, dword [esp + 0x10]
push dword [0x668a28]
movzx eax, al
shl eax, 0x17
or eax, esi
mov dword [esp + 0x28], eax
call fcn.004718e0
add esp, 4
test eax, eax
je 0x47c76b
lea eax, [esp + 0x24]
push eax
push dword [0x668a2c]
call fcn.00471ed0
push dword [0x668a28]
mov ebx, eax
call fcn.00471960
add esp, 0xc
test ebx, ebx
jne 0x47c782
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
call fcn.0047c470
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47c789
mov eax, dword [ebx + 4]
test eax, eax
jne 0x47c7ac
mov eax, esi
and eax, 0xff83ffff
push eax
push str.reason__lu_
lea eax, [esp + 0x7c]
push 0x100
push eax
call fcn.00473ec0
add esp, 0x10
lea eax, [esp + 0x74]
mov ebx, dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push str.error:_08lX:_s:_s:_s
push ebp
push ebx
call fcn.00473ec0
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c7d0
sub ecx, edx
lea eax, [ebp - 1]
cmp ecx, eax
jne 0x47c7f7
push esi
push 0
push dword [esp + 0x28]
push edi
push str.err:_lx:_lx:_lx:_lx
push ebp
push ebx
call fcn.00473ec0
add esp, 0x1c
pop esi
pop ebx
mov ecx, dword [esp + 0x16c]
pop edi
pop ebp
xor ecx, esp
call fcn.005ae073
add esp, 0x168
ret
Function at 0x47e320
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.005ae090
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.0047dff0
mov ebx, eax
push ebx
push esi
call fcn.0047df00
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47e39f
push 0xf0000040
push 1
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47e383
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0047df90
push esi
call fcn.0047e0e0
add esp, 0x10
test eax, eax
jne 0x47e419
push 1
push esi
call fcn.0047dff0
mov ebx, eax
push ebx
push esi
call fcn.0047df00
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47e410
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47e3f4
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0047df90
push esi
call fcn.0047e0e0
add esp, 0x10
test eax, eax
jne 0x47e419
push esi
call fcn.0047e0e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x491510
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x668d88], 0
jne 0x4915a9
push 0x190
push 0
push 0x668d90
mov dword [0x668d88], 1
call fcn.005afaf0
add esp, 0xc
push 0x668d90
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4915a9
call fcn.004648b0
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.004649b0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00464ac0
call fcn.004648b0
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.004649b0
push 0
push 0x7a
push 0x20
call fcn.00464ac0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4915b0
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 0x491605
call fcn.004648b0
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.004649b0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00464ac0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x491610
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.005ae090
mov eax, dword [0x665ec0]
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 0x4916fd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x491671
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005ae073
add esp, 0x110
ret
push 0
call fcn.005b9a5c
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x4916a4
jl 0x49168a
cmp esi, eax
jae 0x4916a4
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.005ae073
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.005ae073
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.005ae073
add esp, 0x110
ret
Function at 0x4922a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x668f28], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x491ca0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x492050
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x491c50
jne 0x492406
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4923fc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005bae1a
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005bae74
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x49236f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4923b6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005bae1a
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005bae74
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4923f8
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x4923f5
xor esi, esi
lea eax, [esp + 0x10]
nop dword [eax]
push dword [eax + esi*8]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4923f5
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x4923c0
mov eax, dword [esp + 0x14]
mov dword [0x66448c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x664494], eax
mov eax, dword [esp + 0x24]
mov dword [0x66449c], eax
jmp 0x4923f8
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x668f28], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x66448c]
call fcn.005ae073
add esp, 0x230
ret 4
Function at 0x492430
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call fcn.005afaf0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.005afaf0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005baf8e
add esp, 0x28
nop
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x49260f
cmp word [ebx + 8], 2
jne 0x492532
cmp word [ebx + 0xa], 4
jne 0x492532
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x492532
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00492660
mov dword [edi], eax
test eax, eax
je 0x492608
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x492500
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005baf8e
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4925bf
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492556
sub ecx, edx
je case.0x49261f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x492590
test dl, dl
je 0x49258c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x492590
add eax, 2
add ecx, 2
test dl, dl
jne 0x492570
xor eax, eax
jmp 0x492595
sbb eax, eax
or eax, 1
test eax, eax
je case.0x49261f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x49261f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4924c0
mov esi, 0x2afb
jmp 0x492632
cmp dword [esp + 0x844], esi
je 0x492632
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4925d0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005b30c3
mov edi, eax
add esp, 8
test edi, edi
je 0x4925f8
push ebp
push ebx
push edi
call fcn.005bae1a
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x492632
mov esi, 8
jmp 0x492632
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x49261f.11001
jmp dword [eax*4 + 0x492650]
mov esi, 0x2afa
jmp 0x492632
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x820
ret 0x18