joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4675d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x24
call fcn.00628570
mov eax, dword [0x70d514]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x717ba0], ecx
inc eax
cmp eax, 0x100
jb 0x4675f0
cmp eax, 0x800
jae 0x4676c3
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x7177a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x717ba0]
mov dword [eax*4 + 0x717ba0], edx
inc eax
cmp eax, 0x800
jb 0x4676a0
lea ecx, [esp + 0xc]
mov dword [0x714840], 0x4687b0
call fcn.004688b0
test eax, eax
je 0x46777f
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov esi, edi
mov eax, 0x70e338
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop
mov ebx, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x46771a
mov ebx, dword [esp + 0x14]
cmp dword [eax - 4], ebx
mov ebx, dword [esp + 0x18]
jne 0x46771a
cmp dword [eax], ebx
je 0x467738
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x467700
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x467766
sub ecx, 1
je 0x467755
sub ecx, 1
jne 0x46777f
cmp esi, 6
jb 0x46777f
jne 0x467775
cmp edi, 0xf
jb 0x46777f
jmp 0x467775
cmp esi, 5
jb 0x46777f
jne 0x467775
cmp edi, 6
jb 0x46777f
cmp edi, 0xa
jmp 0x467773
cmp esi, 6
jb 0x46777f
jne 0x467775
cmp edi, 0x100c
je 0x46777f
mov dword [0x714840], 0x468850
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret

Function at 0x467850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00628570
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x4678bf
mov dword [edi], 0
mov edx, 0x400000
nop dword [eax]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4678c8
test ecx, ecx
je 0x4678bf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x467880
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4678e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x46793f
mov ebx, dword [ebp + 0xc]
mov ecx, 0x400000
mov dword [edi], 0
nop dword [eax]
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x467946
test ecx, ecx
je 0x46793f
mov ecx, 0x400000
test esi, esi
jne 0x467900
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x46a570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00628570
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x46a599
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [edx - 4]
mov dword [ebp - 4], 0xffffffff
add ebx, ecx
mov dword [ebp - 0x10], ebx
nop dword [eax]
lea edx, [edi + ecx]
cmp edx, ebx
jae 0x46a5c4
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x46a5c4
inc edx
cmp edx, ebx
jb 0x46a5b7
mov edi, edx
sub edi, ecx
mov ecx, edi
sub ecx, dword [ebp - 4]
cmp edx, ebx
jae 0x46a6c5
cmp ecx, 3
jbe 0x46a5fe
xor esi, esi
mov al, byte [edx + 4]
mov dword [ebp - 4], edi
test al, al
je 0x46a639
cmp al, 0xff
je 0x46a639
mov ecx, dword [ebp - 8]
and esi, 3
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x46a5b0
dec ecx
shl esi, cl
and esi, 7
je 0x46a5dc
cmp byte [esi + 0x694aa8], 0
je 0x46a625
movzx eax, byte [esi + 0x694ab0]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x46a625
cmp al, 0xff
jne 0x46a5dc
mov ecx, dword [ebp - 8]
and esi, 3
add esi, esi
mov dword [ebp - 4], edi
or esi, 1
inc edi
jmp 0x46a5b0
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x46a694
movzx eax, byte [esi + 0x694ab0]
mov ecx, 0x18
shl eax, 3
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x46a680
cmp al, 0xff
jne 0x46a694
mov ecx, 0x20
mov eax, 1
sub ecx, dword [ebp - 0xc]
shl eax, cl
dec eax
xor eax, ebx
jmp 0x46a657
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
mov byte [edx + 2], al
mov eax, 5
add edi, eax
jmp 0x46a5b0
pop ebx
cmp ecx, 3
jbe 0x46a6da
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00628570
push ebx
push esi
mov eax, ecx
mov esi, edx
push edi
mov dword [ebp - 4], eax
call fcn.00493df0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0062d6e0
add esp, 8
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x472c28
push 0x45
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [edi + 1]
lea ecx, [edi + 2]
call fcn.004818c0
push 0x6d7278
push esi
push 0x6d727c
push dword [ebp - 4]
push str.fopen_
push 5
call fcn.00482150
add esp, 0x24
call fcn.0063513d
cmp dword [eax], 2
je 0x472bfe
call fcn.0063513d
cmp dword [eax], 6
je 0x472bfe
lea eax, [edi + 2]
lea ecx, [edi + 0x4e]
jmp 0x472c08
mov eax, 0x80
mov ecx, 0x4c
push ecx
mov edx, 0x6d
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_bss_file.c
push eax
lea ecx, [edx - 0x4d]
call fcn.004818c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x695e40
call fcn.0046aa80
add esp, 4
mov esi, eax
push edi
test esi, esi
jne 0x472c4d
call fcn.0063a18e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x6a
push esi
call fcn.0046b550
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477ea0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0x18
jne 0x477eb1
mov edx, ecx
xor ecx, ecx
jmp fcn.004778d0
cmp eax, 0x17
jne 0x477ebf
mov edx, ecx
xor ecx, ecx
jmp fcn.004778d0
xor eax, eax
ret

Function at 0x47f5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 4
call fcn.00628570
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0xc], esi
call fcn.0047f540
test eax, eax
je 0x47f62f
cmp eax, 0x70e074
je 0x47f62f
call fcn.0047f540
test eax, eax
je 0x47f609
mov eax, dword [eax + 4]
test eax, eax
je 0x47f609
push ebx
push esi
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x64
push 0x3ae
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x65
lea ecx, [edx - 0x40]
call fcn.004818c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x4b7030
mov ecx, 0x717108
call fcn.00488a50
neg eax
sbb eax, eax
test dword [0x71710c], eax
je 0x47f727
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x7170fc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x47f756
push edi
push edi
xor ecx, ecx
call fcn.00493940
add esp, 8
test eax, eax
je 0x47f727
lea ecx, [edi + 1]
call fcn.00492bb0
test eax, eax
je 0x47f727
mov esi, dword [0x717104]
push esi
push ecx
mov dword [eax + 8], 1
call fcn.004b63c0
mov edi, eax
add esp, 8
test edi, edi
je 0x47f719
test esi, esi
jne 0x47f730
cmp dword [edi + 0x64], esi
je 0x47f6c9
mov eax, 0x81
mov ecx, 0x336
jmp 0x47f6fb
cmp dword [edi], 0
jne 0x47f730
mov eax, dword [edi + 4]
test eax, eax
je 0x47f6e6
cmp dword [eax], 0
jne 0x47f6e6
mov eax, 0x82
mov ecx, 0x33d
jmp 0x47f6fb
call fcn.00488a00
mov dword [edi], eax
test eax, eax
jne 0x47f730
mov eax, 0x7e
mov ecx, 0x344
push ecx
mov edx, 0x77
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_randdrbg_lib.c
push eax
lea ecx, [edx - 0x53]
call fcn.004818c0
add esp, 0xc
mov ecx, edi
call fcn.004b64f0
push 0
push dword [0x7170fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov dword [edi + 0x58], 1
mov ecx, edi
mov dword [edi + 0x5c], 1
call fcn.004b65b0
add esp, 4
push edi
push dword [0x7170fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004b6e40
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 8
call fcn.00628570
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push 0
push 0x40000
xor ecx, ecx
mov dword [esp + 0x14], eax
call fcn.00493940
add esp, 8
test eax, eax
je 0x4820f6
mov edx, 0x481f90
mov ecx, 0x7168d8
call fcn.00488a50
neg eax
sbb eax, eax
test dword [0x7168cc], eax
je 0x4820f6
call esi
push dword [0x716ce4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0xffffffff
je 0x4820f6
test edi, edi
jne 0x4820d3
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xffffffffffffffff
push dword [0x716ce4]
call esi
test eax, eax
je 0x4820f6
push 0x188
mov dword [0x70e32c], edi
call fcn.0063274d
mov edi, eax
add esp, 4
test edi, edi
je 0x4820ec
push 0x188
push 0
push edi
call fcn.0062b6a0
add esp, 0xc
xor ecx, ecx
push 0
push 0
call fcn.00493940
add esp, 8
test eax, eax
je 0x4820e5
mov ecx, 1
call fcn.00492bb0
test eax, eax
je 0x4820e5
push edi
mov dword [eax + 4], 1
push dword [0x716ce4]
call esi
test eax, eax
je 0x4820e5
push 0
push 2
xor ecx, ecx
call fcn.00493940
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004814e0
push 0
push dword [0x716ce4]
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488760
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2c
call fcn.00628570
mov eax, dword [0x70d514]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp + 0xc], edx
push edi
sub eax, 0
je 0x4887d2
sub eax, 2
je 0x4887d2
sub eax, 0x15
je 0x4887d2
mov edx, 0x8f
push 0x297
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_addr.c
push 0x83
lea ecx, [edx - 0x6f]
call fcn.004818c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
call fcn.00488980
cmp eax, 1
jne 0x4887be
xor eax, eax
mov dword [esp + 0x18], esi
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor edi, edi
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x488814
test esi, esi
jne 0x488814
or eax, 0x400
mov dword [esp + 0x14], eax
push dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x48886c
nop
cmp esi, 8
je 0x4888c7
mov eax, dword [esp + 0x14]
test eax, 0x400
je 0x488883
push dword [esp + 0xc]
and eax, 0xfffffbff
mov edi, esi
or eax, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x488830
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
mov edx, 0x8f
push 0x2da
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_addr.c
push 2
lea ecx, [edx - 0x6f]
call fcn.004818c0
test edi, edi
cmovne esi, edi
mov ecx, esi
call fcn.00488280
push eax
push 1
call fcn.00482150
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
mov edx, 0x8f
push 0x2cb
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_addr.c
push 0x41
lea ecx, [edx - 0x6f]
call fcn.004818c0
mov ecx, dword [esp + 0x40]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret

Function at 0x488980
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x716da0], 0
jne 0x4889f9
push 0x190
push 0
push 0x716da8
mov dword [0x716da0], 1
call fcn.0062b6a0
add esp, 0xc
push 0x716da8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4889f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
push 0x87
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock.c
push eax
lea ecx, [edx - 7]
call fcn.004818c0
mov edx, 0x70
push 0x88
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock.c
push 0x7a
lea ecx, [edx - 0x50]
call fcn.004818c0
add esp, 0x18
or eax, 0xffffffff
ret
mov eax, 1
ret
Function at 0x492090
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov cl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
add ebx, esi
movzx eax, cl
and eax, 1
push edi
lea edi, [esi + edx]
test esi, esi
je 0x4920ce
nop dword [eax]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [ebp + 0xc]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4920b0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x492bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x70e5ac]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x492c1e
test ebx, ebx
jne 0x492c2c
push 0xc
mov dword [0x70e32c], ebx
call fcn.0063274d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x492c2c
xorps xmm0, xmm0
movq qword [ebx], xmm0
push ebx
mov dword [ebx + 8], 0
push dword [0x70e5ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x492c2c
push ebx
call fcn.0062f047
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push dword [0x70e5ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x493240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je 0x493310
cmp dword [ebx], 0
je 0x493255
call fcn.004cbbe0
cmp dword [ebx + 4], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x4932a3
call ecx
push dword [0x716ce4]
mov esi, eax
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x493297
push 0
push dword [0x716ce4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.004814e0
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 8], 0
je 0x493305
call ecx
push dword [0x717100]
mov esi, eax
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [0x717100]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.004b64f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x7170fc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [0x7170fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.004b64f0
push ebx
call fcn.0062f047
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x496260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00628570
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
cmp eax, 0x1e
ja 0x49639e
test dword [eax*4 + 0x6a6508], 0x2956
je 0x49639e
lea eax, [ebx + 8]
mov dword [ebx + 4], 0xc
push esi
push eax
mov dword [ebp - 0xc], eax
call fcn.004777b0
mov edi, eax
add esp, 8
mov dword [ebx], edi
cmp edi, 0xffffffff
je 0x4963b2
mov ebx, dword [ebx + 8]
mov ecx, ebx
test edi, edi
jle 0x4962ff
movzx eax, byte [ecx]
cmp eax, 0x80
jae 0x4962db
test byte [eax*2 + 0x6a5fc8], 8
je 0x4962db
dec edi
inc ecx
test edi, edi
jg 0x4962c1
test edi, edi
jle 0x4962ff
lea eax, [ecx - 1]
add eax, edi
movzx edx, byte [eax]
cmp edx, 0x80
jae 0x4962ff
test byte [edx*2 + 0x6a5fc8], 8
je 0x4962ff
dec edi
dec eax
test edi, edi
jg 0x4962e4
xor esi, esi
mov eax, ebx
test edi, edi
jle 0x49638b
nop dword [eax + eax]
mov dl, byte [ecx]
movzx eax, dl
mov byte [ebp - 1], dl
test eax, 0xffffff80
jne 0x49637d
cmp eax, 0x80
jae 0x496364
test byte [eax*2 + 0x6a5fc8], 8
je 0x49634c
mov byte [ebx], 0x20
movzx eax, byte [ecx + 1]
inc ecx
inc esi
cmp eax, 0x80
jae 0x496381
test byte [eax*2 + 0x6a5fc8], 8
jne 0x496333
jmp 0x496381
cmp eax, 0x80
jae 0x496364
test byte [eax*2 + 0x6a5fc8], 2
mov dword [ebp - 8], 1
jne 0x49636b
mov dword [ebp - 8], 0
mov al, dl
xor al, 0x20
cmp dword [ebp - 8], 0
movzx edx, al
movzx eax, byte [ebp - 1]
cmove edx, eax
inc ecx
mov byte [ebx], dl
inc esi
inc ebx
cmp esi, edi
jl 0x496310
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub ebx, eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 4], eax
push dword [esi]
mov edx, dword [esi + 8]
call fcn.00475f90
add esp, 4
test eax, eax
jne 0x4963bb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx + 0xc], 0x80
mov eax, dword [esi + 0xc]
pop edi
and eax, 0xffffff7f
or dword [ebx + 0xc], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6160
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.0047f300
mov edi, eax
test edi, edi
je 0x4b622a
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 4]
cmp edi, edx
jbe 0x4b619f
push 0x30d
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x7d
mov edx, 0x71
lea ecx, [edx - 0x4d]
call fcn.004818c0
add esp, 0xc
jmp 0x4b622a
cmp dword [esi], 0
jne 0x4b61b2
push 0x312
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x44
jmp 0x4b618a
mov edx, edi
mov ecx, esi
call fcn.0047f1d0
test eax, eax
je 0x4b622a
mov eax, dword [esi + 4]
add eax, dword [esi]
je 0x4b622a
push 2
push edi
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, dword [esi + 4]
test eax, eax
mov eax, dword [esi + 0x18]
cmove ebx, edi
sub eax, ecx
cmp ebx, eax
jbe 0x4b6202
mov edx, 0x72
push 0x331
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x7d
lea ecx, [edx - 0x4e]
call fcn.004818c0
add esp, 0xc
jmp 0x4b6216
test ebx, ebx
je 0x4b6216
lea eax, [ecx + ebx]
mov dword [esi + 4], eax
lea eax, [ebx*8]
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jb 0x4b623a
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0x10]
jb 0x4b623a
test eax, eax
jne 0x4b623e
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x20]
jb 0x4b623a
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jae 0x4b623c
xor ecx, ecx
mov eax, ecx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00628570
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x4b9a70
mov cl, byte [edi]
test cl, cl
je 0x4b9a70
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [ebp - 4]
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 [ebp - 4], eax
test cl, cl
jne 0x4b9a20
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret