joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9898
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x634f14]
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
cmp dword [ebx + 0x38], 0
je 0x4550fb
cmp byte [ebx + 0x3d], 0
je 0x4550fb
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x454fe9
xor al, al
jmp 0x4550fd
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.004549f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x455053
sub eax, 1
je 0x455057
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x4550ad
xor bl, bl
jmp 0x4550af
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x45508f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0058aa4a
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x45504f
cmp byte [ebx + 0x3d], 0
je 0x4550ad
test esi, esi
jne 0x455014
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00454c30
jmp 0x45500e
mov bl, 1
cmp edx, 0x10
jb 0x4550f7
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x4550ee
test byte [ebp - 0x28], 0x1f
je 0x4550ca
call fcn.0058a435
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4550d6
call fcn.0058a435
sub eax, ecx
cmp eax, 4
jae 0x4550e2
call fcn.0058a435
cmp eax, 0x23
jbe 0x4550ec
call fcn.0058a435
mov eax, ecx
push eax
call fcn.00581615
add esp, 4
mov al, bl
jmp 0x4550fd
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.00581041
mov esp, ebp
pop ebp
ret
Function at 0x4565d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7d26
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x634f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00581276
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0057ffec
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x474830
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 0x4749aa
push esi
push edi
cmp edx, 8
jb 0x474980
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 0x4748cc
cmp ecx, esi
jae 0x474980
cmp edi, ebx
ja 0x4748d8
cmp ecx, ebx
jae 0x474980
cmp edi, ebp
ja 0x4748e4
cmp ecx, ebp
jae 0x474980
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x4748f6
cmp ecx, ebx
jae 0x474980
cmp esi, ebp
ja 0x474902
cmp ecx, ebp
jae 0x474980
mov ecx, edx
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x474911
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 0x474920
cmp eax, edx
jge 0x4749a8
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 0x474984
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x475270
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.00581890
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 0x4752ab
push edi
call fcn.004757a0
add esp, 4
mov esi, eax
jmp 0x4752c6
test eax, eax
jne 0x4752b3
xor esi, esi
jmp 0x4752c6
mov eax, dword [edi]
push dword [eax + ebp*4]
call fcn.00474d00
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 0x47530b
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 0x475303
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0x10], eax
jmp 0x47530d
mov eax, ebx
mov dword [esp + 0x10], eax
jmp 0x47530d
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, 0xffffffff
jne 0x47534b
lea esi, [edx + eax]
mov dword [esp + 0x40], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x4753f4
test esi, esi
je 0x475481
push esi
push ecx
push dword [esp + 0x44]
call fcn.005840f0
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 0x47531d
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 0x475392
lea eax, [edx + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x47538e
dec ecx
test ecx, ecx
jg 0x475380
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 0x4753b9
lea eax, [esp + 0x20]
push eax
call fcn.004757a0
add esp, 4
jmp 0x4753d1
test ecx, ecx
jne 0x4753c1
xor eax, eax
jmp 0x4753d1
push dword [edx + ebp*4]
call fcn.00474d00
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 0x47531d
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 0x475409
mov dword [esp + 0x48], 1
jmp 0x475414
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 0x475481
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 0x475433
mov esi, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x47c0d0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x635e80], 0
jne 0x47c169
push 0x190
push 0
push 0x635e88
mov dword [0x635e80], 1
call fcn.005840f0
add esp, 0xc
push 0x635e88
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47c169
call fcn.0046aff0
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.0046b040
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b070
call fcn.0046aff0
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.0046b040
push 0
push 0x7a
push 0x20
call fcn.0046b070
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x47c170
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 0x47c1c5
call fcn.0046aff0
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.0046b040
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b070
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x47c1d0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.00581890
mov eax, dword [0x634f14]
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 0x47c2bd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x47c231
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00581041
add esp, 0x110
ret
push 0
call fcn.0058b34f
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x47c264
jl 0x47c24a
cmp esi, eax
jae 0x47c264
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00581041
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.00581041
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.00581041
add esp, 0x110
ret
Function at 0x47dde0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.00581890
mov eax, dword [0x634f14]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x636144], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x47d8a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x47db70
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0047d850
jne 0x47df3b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47df31
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0058d024
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058d07e
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 0x47deaf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x47def6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0058d024
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058d07e
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x47df2d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x47df2a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x47df2a
inc esi
cmp esi, 3
jl 0x47def8
mov eax, dword [esp + 0x14]
mov dword [0x633308], eax
mov eax, dword [esp + 0x1c]
mov dword [0x633310], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.0047d850], eax
jmp 0x47df2d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x636144], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x633308]
call fcn.00581041
add esp, 0x230
ret 4

Function at 0x47e1f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x20]
push dword [esp + 0xc]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x47e27f
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x47e252
cmp word [ebx + 0xa], 4
jne 0x47e252
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x47e252
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.0047e110
mov dword [edi], eax
test eax, eax
je 0x47e273
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x47e230
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call fcn.0058d198
add esp, 0x10
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret 0x18
pop esi
pop ebp
pop edi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x47e28f.11001
jmp dword [eax*4 + 0x47e2b4]
pop edi
mov eax, 0x2af9
pop ebx
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x4806d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00581890
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004803b0
mov ebx, eax
push ebx
push esi
call fcn.004802c0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x480759
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x480733
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.00480350
push esi
call fcn.004804a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x480759
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004803b0
mov ebx, eax
push ebx
push esi
call fcn.004802c0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4807c8
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 0x4807ae
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.00480350
push esi
call fcn.004804a0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x480751
push esi
call fcn.004804a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x483ad0
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.004cf180
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005844d0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x483ba6
call fcn.0046aff0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.0046b040
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.0046b070
add esp, 0x14
call fcn.0058ab1b
cmp dword [eax], 2
je 0x483b79
call fcn.0058ab1b
cmp dword [eax], 6
je 0x483b79
call fcn.0046aff0
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.0046b040
push edi
push 0x80002
push 0x20
call fcn.0046b070
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.0046aff0
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.0046b040
push 0
push 0x80
push 0x20
call fcn.0046b070
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5c7628
call fcn.0045d600
mov esi, eax
add esp, 4
test esi, esi
jne 0x483bc8
push edi
call fcn.0058728c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0045cf20
push edi
push ebx
push 0x6a
push esi
call fcn.0045cf50
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x49a7c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00581890
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x49a7e0
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x49a80c
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x49a80c
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x49a7f7
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x49a8a5
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
jmp 0x49a854
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x49a887
mov eax, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x49a875
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x49a850
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x49a8d7
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov eax, dword [esp + 0x44]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x49a8c5
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
Function at 0x49adc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x49add4
mov eax, 0xfffffffe
pop edi
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [edi + 0x30]
adc ecx, dword [edi + 0x34]
cmp ecx, 0x20000000
ja 0x49ae89
jb 0x49adf9
test eax, eax
jne 0x49ae89
push ebx
mov ebx, dword [edi + 0x170]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
push ebp
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x49ae3c
nop
test esi, esi
je 0x49ae25
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x49ae10
jmp 0x49ae29
test ebx, ebx
jne 0x49ae7c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x168]
call eax
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x49ae64
push eax
push ebp
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x164]
call eax
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x49ae7c
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x49ae7c
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x49ae70
pop ebp
mov dword [edi + 0x170], ebx
xor eax, eax
pop ebx
pop esi
pop edi
ret
pop esi
or eax, 0xffffffff
pop edi
ret
Function at 0x49bc60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
cmp edi, 0xc
jne 0x49bcc2
mov eax, dword [esp + 0x10]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x49bdc4
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], edi
mov dword [esi + 0x4c], 0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [esi + 0x40]
cmp edi, 0x10
jb 0x49bd5a
mov eax, edi
lea ecx, [esi + 0x41]
shr eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
mov eax, ecx
lea edx, [ebx + 1]
mov ebp, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub ebp, 1
jne 0x49bd10
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
lea ebp, [esi + 0x40]
push ebp
call eax
add esp, 8
lea ecx, [esi + 0x41]
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x14], 1
jne 0x49bd00
test edi, edi
je 0x49bd7f
xor ecx, ecx
test edi, edi
je 0x49bd6f
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x49bd64
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ebp
call eax
add esp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
call eax
mov eax, dword [ebp]
add esp, 8
mov edi, dword [esi + 0x4c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop ebp
bswap edi
mov dword [esi + 0xc], eax
pop ebx
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x178]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
ret

Function at 0x49c240
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00581890
lea eax, [esp]
push eax
call fcn.0049be30
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x49c263
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x49c2a3
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop dword [eax]
movups xmm1, xmmword [esi + ebp]
movups xmm0, xmmword [edi]
push dword [esp + 0x24]
pxor xmm0, xmm1
push edi
movups xmmword [edi], xmm0
call dword [esp + 0x20]
add esi, 0x10
add esp, 8
cmp esi, ebx
jb 0x49c280
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret