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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d448
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fbea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
cmp dword [ebx + 0x38], 0
je 0x4519e1
cmp byte [ebx + 0x3d], 0
je 0x4519e1
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x45187c
xor al, al
jmp 0x4519e3
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.00451430
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
jmp 0x4518b3
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
nop
mov ebx, dword [ebp - 0x30]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, edi
lea ecx, [ebp - 0x28]
cmovae ecx, edi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4518fe
sub eax, 1
je 0x451902
sub eax, 2
je 0x4519d3
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0044fff0
mov al, bl
jmp 0x4519e3
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 0x10
mov ebx, dword [ebp - 0x2c]
cmovae eax, edi
sub ebx, eax
je 0x45193e
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp esi, 0x10
cmovae eax, edi
push dword [ecx + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x4518ed
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3d], 0
je 0x4519d3
test ebx, ebx
mov ebx, eax
jne 0x4518b3
mov ecx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x4519c8
lea ebx, [ecx + 8]
cmp ebx, 0xfffffffe
ja 0x4519c8
cmp esi, ebx
jae 0x4519b1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00451c80
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
test ebx, ebx
je 0x4518b0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp esi, 0x10
xorps xmm0, xmm0
cmovae ecx, edi
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], 0
jmp 0x4518a9
test ebx, ebx
jne 0x451986
cmp esi, 0x10
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], bl
jmp 0x4518a9
push str.string_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.0044fff0
mov al, bl
jmp 0x4519e3
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.0057a738
mov esp, ebp
pop ebp
ret
Function at 0x46f0b0
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 0x46f22a
push esi
push edi
cmp edx, 8
jb 0x46f200
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 0x46f14c
cmp ecx, esi
jae 0x46f200
cmp edi, ebx
ja 0x46f158
cmp ecx, ebx
jae 0x46f200
cmp edi, ebp
ja 0x46f164
cmp ecx, ebp
jae 0x46f200
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x46f176
cmp ecx, ebx
jae 0x46f200
cmp esi, ebp
ja 0x46f182
cmp ecx, ebp
jae 0x46f200
mov ecx, edx
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x46f191
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 0x46f1a0
cmp eax, edx
jge 0x46f228
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 0x46f204
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46faf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.0057aae0
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 0x46fb2b
push edi
call fcn.00470020
add esp, 4
mov esi, eax
jmp 0x46fb46
test eax, eax
jne 0x46fb33
xor esi, esi
jmp 0x46fb46
mov eax, dword [edi]
push dword [eax + ebp*4]
call fcn.0046f580
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 0x46fb8b
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 0x46fb83
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0x10], eax
jmp 0x46fb8d
mov eax, ebx
mov dword [esp + 0x10], eax
jmp 0x46fb8d
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, 0xffffffff
jne 0x46fbcb
lea esi, [edx + eax]
mov dword [esp + 0x40], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x46fc74
test esi, esi
je 0x46fd01
push esi
push ecx
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
add eax, edx
cmp esi, eax
jge 0x46fb9d
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 0x46fc12
lea eax, [edx + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x46fc0e
dec ecx
test ecx, ecx
jg 0x46fc00
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 0x46fc39
lea eax, [esp + 0x20]
push eax
call fcn.00470020
add esp, 4
jmp 0x46fc51
test ecx, ecx
jne 0x46fc41
xor eax, eax
jmp 0x46fc51
push dword [edx + ebp*4]
call fcn.0046f580
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 0x46fb9d
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 0x46fc89
mov dword [esp + 0x48], 1
jmp 0x46fc94
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 0x46fd01
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 0x46fcb3
mov esi, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x476950
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x5fc1c0], 0
jne 0x4769e9
push 0x190
push 0
push 0x5fc1c8
mov dword [0x5fc1c0], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x5fc1c8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4769e9
call fcn.004657e0
push str.BIO_sock_init
push 0x99
push str.crypto_bio_bio_sock.c
call fcn.00465830
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465860
call fcn.004657e0
push str.BIO_sock_init
push 0x9b
push str.crypto_bio_bio_sock.c
call fcn.00465830
push 0
push 0x7a
push 0x20
call fcn.00465860
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4769f0
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 0x476a45
call fcn.004657e0
push str.BIO_socket_ioctl
push 0xf7
push str.crypto_bio_bio_sock.c
call fcn.00465830
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465860
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x476a50
Capabilities:
Get socket status

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.0057aae0
mov eax, dword [0x5fbea4]
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 0x476b3d
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x476ab1
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0057a738
add esp, 0x110
ret
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x476ae4
jl 0x476aca
cmp esi, eax
jae 0x476ae4
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0057a738
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.0057a738
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.0057a738
add esp, 0x110
ret
Function at 0x4785d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0057aae0
mov eax, dword [0x5fbea4]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x5fc484], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x478090
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x478360
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00478040
jne 0x47872b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x478721
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
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 0x47869f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4786e6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x47871d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x47871a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x47871a
inc esi
cmp esi, 3
jl 0x4786e8
mov eax, dword [esp + 0x14]
mov dword [0x5fa308], eax
mov eax, dword [esp + 0x1c]
mov dword [0x5fa310], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.00478040], eax
jmp 0x47871d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x5fc484], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x5fa308]
call fcn.0057a738
add esp, 0x230
ret 4
Function at 0x4789e0
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 0x478a6f
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x478a42
cmp word [ebx + 0xa], 4
jne 0x478a42
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x478a42
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.00478900
mov dword [edi], eax
test eax, eax
je 0x478a63
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x478a20
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
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.0x478a7f.11001
jmp dword [eax*4 + 0x478aa4]
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 0x47af00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0057aae0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0047abd0
mov ebx, eax
push ebx
push esi
call fcn.0047aae0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47af89
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 0x47af63
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.0047ab70
push esi
call fcn.0047acc0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x47af89
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0047abd0
mov ebx, eax
push ebx
push esi
call fcn.0047aae0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x47aff8
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 0x47afde
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.0047ab70
push esi
call fcn.0047acc0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x47af81
push esi
call fcn.0047acc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x47e2c0
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.004c98c0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x47e396
call fcn.004657e0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00465830
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.00465860
add esp, 0x14
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x47e369
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x47e369
call fcn.004657e0
push str.BIO_new_file
push 0x4d
push str.crypto_bio_bss_file.c
call fcn.00465830
push edi
push 0x80002
push 0x20
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.004657e0
push str.BIO_new_file
push 0x4b
push str.crypto_bio_bss_file.c
call fcn.00465830
push 0
push 0x80
push 0x20
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x59b778
call fcn.00457e50
mov esi, eax
add esp, 4
test esi, esi
jne 0x47e3b8
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00457780
push edi
push ebx
push 0x6a
push esi
call fcn.004577b0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x494f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0057aae0
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x494fb0
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 0x494fdc
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x494fdc
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 0x494fc7
mov edx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x495075
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 0x495024
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x495057
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 0x495045
mov edx, dword [esp + 0x40]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x495020
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edi, edi
je 0x4950a7
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 0x495095
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
Function at 0x495590
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x4955a4
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 0x495659
jb 0x4955c9
test eax, eax
jne 0x495659
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 0x49560c
nop
test esi, esi
je 0x4955f5
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x4955e0
jmp 0x4955f9
test ebx, ebx
jne 0x49564c
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 0x495634
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 0x49564c
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x49564c
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x495640
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 0x496430
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 0x496492
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 0x496594
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 0x49652a
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 0x4964e0
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 0x4964d0
test edi, edi
je 0x49654f
xor ecx, ecx
test edi, edi
je 0x49653f
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x496534
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 0x496a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0057aae0
lea eax, [esp]
push eax
call fcn.00496600
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x496a33
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x496a73
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 0x496a50
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret