joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4356f0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
shl ecx, 4
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
pxor xmm5, xmm0
movups xmm0, xmmword [edx + 0x20]
lea edx, [edx + ecx + 0x20]
neg ecx
nop dword [eax]
add ecx, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne 0x43571a
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
aesdeclast xmm4, xmm0
aesdeclast xmm5, xmm0
ret

Function at 0x435780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
shl ecx, 4
movups xmm1, xmmword [edx + 0x10]
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
aesenc xmm2, xmm1
pxor xmm5, xmm0
pxor xmm6, xmm0
aesenc xmm3, xmm1
lea edx, [edx + ecx + 0x20]
neg ecx
aesenc xmm4, xmm1
pxor xmm7, xmm0
movups xmm0, xmmword [edx + ecx]
add ecx, 0x10
jmp 0x4357df

Function at 0x4357ee
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne 0x4357d0
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
ret

Function at 0x435860
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
shl ecx, 4
movups xmm1, xmmword [edx + 0x10]
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
aesdec xmm2, xmm1
pxor xmm5, xmm0
pxor xmm6, xmm0
aesdec xmm3, xmm1
lea edx, [edx + ecx + 0x20]
neg ecx
aesdec xmm4, xmm1
pxor xmm7, xmm0
movups xmm0, xmmword [edx + ecx]
add ecx, 0x10
jmp 0x4358bf

Function at 0x4358ce
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
aesdec xmm6, xmm0
aesdec xmm7, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne 0x4358b0
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
aesdeclast xmm4, xmm0
aesdeclast xmm5, xmm0
aesdeclast xmm6, xmm0
aesdeclast xmm7, xmm0
ret
Function at 0x437f40
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x438460
test edx, edx
je 0x438460
call fcn.00437f57
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4384a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00437f40
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x438511
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x4384d6
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x438e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x438ea4
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x438e7c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x438e84
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.00438ea9
Function at 0x45b150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x65fec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x45b20c
cmp byte [esi + 0x3d], 0
je 0x45b20c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45b1fa
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x45b1c2
sub eax, 1
je 0x45b1c6
sub eax, 2
jne 0x45b1fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45b1e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005a749a
add esp, 0x10
cmp edi, eax
jne 0x45b1fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret
Function at 0x460620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x65fec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x460650
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x46068c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x46068c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x460787
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4606b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4606e7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005a6bb7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x460747
sub eax, 1
je 0x460747
sub eax, 2
jne 0x460787
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0044e390
add esp, 8
or ecx, 0xffffffff
test al, al
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x460764
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005a749a
add esp, 0x10
cmp edi, eax
jne 0x460787
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059c3d3
mov esp, ebp
pop ebp
ret 4
Function at 0x468460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x46854e
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x46853d
jg 0x468498
test edx, edx
je 0x46853d
lea edx, [ecx + 0x30]
nop dword [eax + eax]
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4684b5
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x4684b7
xor eax, eax
cdq
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x4684fe
jg 0x4684c9
test esi, esi
je 0x4684fe
cmp ebx, eax
jg 0x4684d8
jl 0x4684d3
cmp edi, esi
jae 0x4684d8
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
push esi
push eax
push dword [ebp - 0xc]
call fcn.0059db90
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 4]
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [edx]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x468522
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x468537
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
lea edx, [ecx + 0x30]
add dword [ebp + 8], esi
test ebx, ebx
jg 0x4684a0
jl 0x468537
test edi, edi
jne 0x4684a0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
test edx, edx
je 0x468572
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x468577
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, edx
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edx
test edi, edi
jl 0x4685d6
jg 0x46858a
test esi, esi
je 0x4685d6
test edx, edx
jl 0x4685d1
jg 0x468594
test eax, eax
je 0x4685d1
cmp edi, edx
jg 0x4685a6
jl 0x46859e
cmp esi, eax
jae 0x4685a6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.0059db90
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ebx, edx
mov ecx, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x4685d9
mov ebx, dword [ebp + 8]
jmp 0x4685e3
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x4685fc
jg 0x4685e3
test esi, esi
je 0x4685fc
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4685fc
push eax
push esi
push 1
push ebx
call fcn.005a749a
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f730
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 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 ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x46f856
push esi
push edi
cmp ecx, 4
jb 0x46f830
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x46f7c8
cmp edi, edx
jae 0x46f830
cmp esi, ebx
ja 0x46f7d0
cmp edi, ebx
jae 0x46f830
cmp esi, ebp
ja 0x46f7d8
cmp edi, ebp
jae 0x46f830
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x46f7e6
cmp edi, ebx
jae 0x46f830
cmp edx, ebp
ja 0x46f7ee
cmp edi, ebp
jae 0x46f830
mov edi, ecx
and edi, 0xfffffffc
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
pxor xmm1, xmm2
pand xmm1, xmm4
movaps xmm0, xmm1
pxor xmm1, xmm3
pxor xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x46f7f3
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x46f854
nop dword [eax + eax]
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 0x46f830
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x470070
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0059cab0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
test byte [eax + 0x10], 4
mov ebx, dword [eax]
mov ebp, dword [ecx]
push esi
je 0x470131
mov edx, dword [ecx + 4]
cmp dword [eax + 4], edx
jne 0x470131
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
test edx, edx
jle 0x470127
sub ebx, ebp
nop dword [eax]
mov edx, dword [ebx + ebp]
lea ebp, [ebp + 4]
mov ecx, dword [ebp - 4]
mov esi, edx
sub esi, ecx
mov eax, edx
xor esi, ecx
xor eax, ecx
or esi, eax
xor esi, edx
shr esi, 0x1f
neg esi
mov dword [esp + 0x14], esi
not esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
and eax, edi
mov edi, dword [esp + 0x14]
mov edx, dword [ebp - 4]
or edi, eax
mov ecx, dword [ebx + ebp - 4]
mov esi, edx
sub esi, ecx
mov eax, edx
xor esi, ecx
xor eax, ecx
or esi, eax
mov eax, dword [esp + 0x20]
xor esi, edx
shr esi, 0x1f
neg esi
mov dword [esp + 0x10], esi
not esi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
and ecx, edi
mov edi, dword [esp + 0x10]
and edi, 1
or edi, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [eax + 4]
jl 0x4700b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [eax + 4]
mov eax, edx
sub eax, dword [ecx + 4]
jne 0x470163
lea ecx, [edx - 1]
test ecx, ecx
js 0x470161
lea eax, [ecx*4]
add eax, ebp
sub ebx, ebp
nop dword [eax]
mov edx, dword [eax + ebx]
mov esi, dword [eax]
cmp esi, edx
jne 0x47016a
sub eax, 4
sub ecx, 1
jns 0x470150
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
sbb eax, eax
pop esi
and eax, 2
pop ebp
dec eax
pop ebx
add esp, 8
ret
Function at 0x48bed0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0059cab0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.0048bb20
mov ebx, eax
push ebx
push esi
call fcn.0048ba20
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x48bf4f
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 0x48bf33
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.0048bab0
push esi
call fcn.0048bc10
add esp, 0x10
test eax, eax
jne 0x48bfc9
push 1
push esi
call fcn.0048bb20
mov ebx, eax
push ebx
push esi
call fcn.0048ba20
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x48bfc0
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 0x48bfa4
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.0048bab0
push esi
call fcn.0048bc10
add esp, 0x10
test eax, eax
jne 0x48bfc9
push esi
call fcn.0048bc10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x492240
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x49227c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059c3d3
add esp, 0x40
ret
test esi, esi
je 0x49238b
cmp dword [esp + 0x54], 0x30
jne 0x49238b
push 0x30
push edi
push esi
call fcn.00492160
add esp, 0xc
test eax, eax
jle 0x49238b
movaps xmm0, xmmword [str.6666666666666666_]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00492160
add esp, 0xc
test eax, eax
je 0x49238b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00491fc0
add esp, 8
test eax, eax
je 0x49238b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.0059e1f0
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.00492160
add esp, 0x18
test eax, eax
jle 0x49238b
movaps xmm0, xmmword [0x5d1180]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.00492160
add esp, 0xc
test eax, eax
je 0x49238b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00492160
add esp, 0xc
test eax, eax
je 0x49238b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059c3d3
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0059c3d3
add esp, 0x40
ret

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

Disassembly:
mov eax, 4
call fcn.0059cab0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4a7ba0
mov cl, byte [edi]
test cl, cl
je 0x4a7ba0
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 0x4a7b50
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4a7c20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059cab0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4a7ca3
mov cl, byte [edi]
test cl, cl
je 0x4a7ca3
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 0x4a7c50
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4aca60
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.004dadb0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0059e350
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4acb19
call fcn.00476d60
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00476e60
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00476f10
add esp, 0x14
call fcn.005a23d8
cmp dword [eax], 2
je 0x4acae9
call fcn.005a23d8
cmp dword [eax], 6
je 0x4acae9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x4acaf1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00476d60
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00476e60
push 0
push esi
push 0x20
call fcn.00476f10
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5e77cc
call fcn.0049cfb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4acb3b
push edi
call fcn.005a6783
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call fcn.0049c8a0
push edi
push ebx
push 0x6a
push esi
call fcn.0049c8d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4c4630
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6617a8], 0
jne 0x4c46c9
push 0x190
push 0
push 0x6617b0
mov dword [0x6617a8], 1
call fcn.0059e1f0
add esp, 0xc
push 0x6617b0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4c46c9
call fcn.00476d60
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.00476e60
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00476f10
call fcn.00476d60
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.00476e60
push 0
push 0x7a
push 0x20
call fcn.00476f10
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4c46d0
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 0x4c4725
call fcn.00476d60
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.00476e60
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00476f10
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x4c4730
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x4c4776
or eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059c3d3
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
test esi, esi
jne 0x4c479d
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059c3d3
add esp, 0x110
ret
push 0
call fcn.005ae132
add esp, 4
cmp esi, eax
jge 0x4c47c5
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0059c3d3
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 ebx, ebx
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebx, ebx
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]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.0059c3d3
add esp, 0x110
ret