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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
push ebx
mov eax, dword [ecx + 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x88], eax
cmp ecx, ebx
jb 0x50d99a
cmp ebx, 0x40
ja 0x50d99a
lea eax, [ebp - 0x84]
neg eax
push esi
push edi
and eax, 0x3f
lea edi, [ebp - 0x84]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x9c], edi
cmp ecx, eax
jbe 0x50d86e
mov eax, ecx
sub eax, ebx
sub eax, 0x100
mov dword [ebp - 0x88], eax
push ebx
xor esi, esi
mov dword [ebp - 0x8c], 0
push esi
push edi
call fcn.005e26d0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x90], esi
cmp ecx, dword [eax + 0xc]
jae 0x50d94e
mov edx, ecx
sub edx, dword [eax + 8]
mov dword [ebp - 0x94], edx
nop dword [eax + eax]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
xor eax, dword [ebp - 0x98]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, dword [ebp + 0xc]
neg edi
xor edx, dword [eax + 8]
mov eax, ecx
xor eax, dword [ebx + 8]
or edx, eax
mov eax, dword [ebx + 0x14]
xor edx, ecx
mov ebx, dword [ebp + 0x10]
shr edx, 0x1f
neg edx
mov cl, byte [eax + ecx]
mov eax, edi
or eax, dword [ebp - 0x8c]
and eax, edx
mov edx, dword [ebp - 0x90]
and edi, edx
mov dword [ebp - 0x8c], eax
and al, cl
or esi, edi
mov edi, dword [ebp - 0x9c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
mov eax, dword [ebp + 0xc]
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x90], edx
inc ecx
mov edx, dword [ebp - 0x94]
inc edx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x94], edx
cmp ecx, dword [eax + 0xc]
jb 0x50d8b0
xor edx, edx
test ebx, ebx
je 0x50d984
mov ecx, dword [ebp - 0xa0]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [ecx + edx], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x50d954
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0049b637
mov esp, ebp
pop ebp
ret
Function at 0x50e9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax + 0x64]
mov edi, dword [ebp + 0x14]
inc edi
test byte [eax + 0x30], 1
je 0x50ea13
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x50ea03
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x50ea18
cmp edi, dword [esi + 8]
ja 0x50e9fb
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
push ebx
mov al, byte [ecx + eax - 1]
movzx ebx, al
mov byte [ebp + 0x17], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax + 0x3cc]
call fcn.00432390
push eax
call fcn.0053c160
add esp, 8
test eax, 0x200000
je 0x50ea5e
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 8], eax
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
lea ecx, [ebx + edi]
mov ebx, edx
mov dword [ebp + 8], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x50eadc
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
mov edx, ecx
mov esi, dword [ebp + 8]
shr edx, 0x1f
dec esi
mov dword [ebp - 0xc], edx
add esi, eax
sub ecx, edi
lea esi, [esi - 1]
shr ecx, 0x1f
mov eax, edi
shr eax, 0x1f
inc edi
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esi + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 0x17]
xor ecx, eax
and edx, ecx
mov ecx, dword [ebp - 4]
not edx
and ebx, edx
mov edx, dword [ebp - 0xc]
cmp edi, dword [ebp - 8]
jb 0x50eaa0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
not ebx
movzx eax, bl
pop ebx
pop edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [ebp - 4]
neg ecx
inc eax
and eax, ecx
sub edx, eax
mov dword [esi + 8], edx
mov dword [ebp + 8], ecx
not ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
and ecx, 1
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51afd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x51affc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x51affc
push dword [eax + 0x24]
push 1
push dword [ebp + 0x10]
push ecx
call fcn.005f3369
add esp, 0x10
test eax, eax
cmovne eax, dword [ebp + 0x10]
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x51b460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.00553c80
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005e24f0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x51b519
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00529800
push 0x6249f4
push esi
push 0x62f10c
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.005290e0
add esp, 0x2c
call fcn.005f169c
cmp dword [eax], 2
je 0x51b4fa
call fcn.005f169c
cmp dword [eax], 6
je 0x51b4fa
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00529800
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00529800
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0051b5a0
push eax
call fcn.0051b9e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x51b53d
push edi
call fcn.005e5e1d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0051b660
push edi
push ebx
push 0x6a
push esi
call fcn.0051b6a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x51dd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, ebx
je 0x51de7c
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
push esi
lea esi, [eax - 1]
not eax
shr eax, 0x1f
shr esi, 0x1f
and esi, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec esi
and eax, esi
mov dword [ebp - 8], esi
xor ecx, eax
mov dword [edx + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, esi
and eax, esi
pshufd xmm3, xmm0, 0
xor ecx, eax
mov dword [edx + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, esi
mov esi, dword [ebp + 0x14]
and eax, 4
xor ecx, eax
mov dword [edx + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
test esi, esi
jle 0x51de7b
push edi
cmp esi, 8
jb 0x51de52
mov edi, dword [edx]
lea edx, [esi - 1]
mov ecx, dword [ebx]
lea edx, [ecx + edx*4]
mov dword [ebp + 0x10], edx
lea edx, [esi - 1]
lea edx, [edi + edx*4]
cmp ecx, edx
mov edx, dword [ebp + 0xc]
ja 0x51dda6
cmp dword [ebp + 0x10], edi
jae 0x51de52
cmp ecx, ebx
ja 0x51ddb3
cmp dword [ebp + 0x10], ebx
jae 0x51de52
cmp ecx, edx
ja 0x51ddc0
cmp dword [ebp + 0x10], edx
jae 0x51de52
lea ecx, [esi - 1]
lea ecx, [edi + ecx*4]
cmp edi, ebx
ja 0x51ddd2
cmp ecx, ebx
jae 0x51de52
cmp edi, edx
ja 0x51ddda
cmp ecx, edx
jae 0x51de52
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x51dde9
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [ebp + 0x10], esi
sub dword [ebp + 0x10], ecx
mov ecx, dword [ebx]
movups xmm1, xmmword [edi + eax*4]
movups xmm0, xmmword [ecx + eax*4]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [edi + eax*4], xmm0
movups xmm0, xmmword [ecx + eax*4]
pxor xmm2, xmm0
movups xmmword [ecx + eax*4], xmm2
movups xmm1, xmmword [edi + eax*4 + 0x10]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [edi + eax*4 + 0x10], xmm0
movups xmm0, xmmword [ecx + eax*4 + 0x10]
pxor xmm2, xmm0
movups xmmword [ecx + eax*4 + 0x10], xmm2
add eax, 8
cmp eax, dword [ebp + 0x10]
jl 0x51ddf1
cmp eax, esi
jge 0x51de7a
mov ecx, dword [edx]
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 [ebp - 8]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [ebp + 0x14]
jl 0x51de56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], 0
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
dec esi
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x51e8da
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
push edi
push dword [ecx]
xor eax, esi
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
neg ebx
mov edi, ebx
or edi, dword [ebp - 4]
call fcn.0051e1c0
mov ecx, dword [ebp - 0xc]
mov edx, edi
not edx
mov dword [ebp - 4], edi
and edx, 0x20
and eax, ebx
add edx, dword [ebp + 8]
add ecx, 4
add edx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add esp, 4
inc eax
mov dword [ebp + 8], edx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x51e890
pop edi
not esi
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
dec eax
pop esi
and eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x527730
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, str.RANDFILE
push 0
push 0
push ebx
mov dword [ebp - 8], 1
call edi
mov esi, eax
test esi, esi
jne 0x527799
push eax
push eax
mov ebx, str.HOME
mov dword [ebp - 8], eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x527799
push eax
push eax
mov ebx, str.USERPROFILE
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x527799
push eax
push eax
mov ebx, str.SYSTEMROOT
push ebx
call edi
mov esi, eax
test esi, esi
je 0x5278c1
lea eax, [esi + esi]
call fcn.0060c120
mov eax, esp
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp eax, esi
jae 0x5278c1
mov ebx, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x5278c1
call fcn.0060c120
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5278c1
test esi, esi
je 0x5278c1
cmp byte [esi], 0
je 0x5278c1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527813
sub ecx, edx
cmp dword [ebp - 8], 0
je 0x527858
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
jae 0x5278c1
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x527835
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, dword [ebp + 0xc]
jae 0x5278c1
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x527867
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x527877
mov ax, word [0x6979ac]
lea edx, [ebx - 1]
mov word [edi], ax
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x527890
mov ecx, dword [str..rnd]
mov eax, ebx
mov dword [edx], ecx
mov cl, byte [0x630740]
mov byte [edx + 4], cl
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
Function at 0x5278e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x538], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x53c], edi
test esi, esi
jne 0x52791d
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
push ebx
push 0x694620
push edi
call fcn.00553c80
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x52794a
push 0x62
push str.....crypto_rand_randfile.c
push 0x79
push 0x6f
push 0x24
call fcn.00529800
push edi
jmp 0x527a8f
lea eax, [ebp - 0x534]
push eax
push ebx
call fcn.005f310b
add esp, 4
push eax
call fcn.005fcb55
add esp, 8
test eax, eax
jns 0x5279a3
push 0x69
push str.....crypto_rand_randfile.c
push 0x71
push 0x6f
push 0x24
call fcn.00529800
push edi
push str.Filename
push 2
call fcn.005290e0
push ebx
call fcn.005e5e1d
add esp, 0x24
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
test esi, esi
jns 0x5279bd
test dword [ebp - 0x52e], 0x8000
mov esi, 0x100
cmovne esi, dword [ebp - 0x520]
push 0
push ebx
call fcn.005fd39a
add esp, 8
test esi, esi
jle 0x5279dc
cmp esi, 0x500
mov eax, 0x400
cmovle eax, esi
jmp 0x5279e1
mov eax, 0x500
push ebx
push eax
lea eax, [ebp - 0x504]
push 1
push eax
call fcn.005eed27
push ebx
mov edi, eax
call fcn.005e5d7c
add esp, 0x14
test eax, eax
je 0x527a19
call fcn.005f169c
cmp dword [eax], 4
jne 0x527a19
push ebx
call fcn.005fd2ea
add esp, 4
test edi, edi
je 0x5279c8
jmp 0x527a1d
test edi, edi
je 0x527a51
movd xmm0, edi
lea eax, [ebp - 0x504]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.00526bf0
add dword [ebp - 0x538], edi
add esp, 0x10
test esi, esi
jle 0x5279dc
sub esi, edi
test esi, esi
jg 0x5279cc
lea eax, [ebp - 0x504]
push 0x500
push eax
call fcn.00538750
push ebx
call fcn.005e5e1d
add esp, 0xc
call fcn.00526da0
test eax, eax
jne 0x527ab2
push 0xa6
push str.....crypto_rand_randfile.c
push 0x76
push 0x6f
push 0x24
call fcn.00529800
push dword [ebp - 0x53c]
push str.Filename
push 2
call fcn.005290e0
add esp, 0x20
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x538]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0049b637
mov esp, ebp
pop ebp
ret
Function at 0x52ea70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.005e26d0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x52f4d0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e26d0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x52f820
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e26d0
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x531d50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0051b660
add esp, 8
test esi, esi
jg 0x531d9a
push esi
call fcn.005320b0
add esp, 4
test eax, eax
je 0x531d9a
push 0xa
push edi
call fcn.0051bd00
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x532d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x532dd0
mov al, byte [esi]
test al, al
je 0x532dd0
push edi
mov edi, 0x100
nop dword [eax]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x532da0
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x533040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x53309a
mov al, byte [edi]
test al, al
je 0x53309a
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.00553fb0
or eax, ebx
lea edi, [edi + 1]
mov ecx, eax
add esp, 4
shr ecx, 2
add ebx, 0x100
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol esi, cl
xor esi, eax
mov al, byte [edi]
test al, al
jne 0x533060
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x53a2f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
cmp dword [eax], 5
je 0x53a30d
push eax
push esi
call fcn.0053a9d0
add esp, 8
test eax, eax
jle 0x53a353
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.0051b660
add esp, 8
test edi, edi
jg 0x53a350
push edi
call fcn.005320b0
add esp, 4
test eax, eax
je 0x53a350
push 0xa
push esi
call fcn.0051bd00
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x540fd0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.005b39d0
mov esi, eax
push esi
call fcn.0052ea70
add esp, 8
test eax, eax
jne 0x540fee
pop esi
pop ebp
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005d4c00

Function at 0x547540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax + 0x60]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edx + 0x70]
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
test esi, esi
je 0x5475a8
test edi, edi
je 0x547588
nop dword [eax]
cmp esi, 0x40
jae 0x547588
mov al, byte [esi + edx + 0x30]
inc esi
xor al, byte [ebx]
inc ebx
mov byte [ecx], al
inc ecx
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x547570
mov dword [edx + 0x70], esi
test edi, edi
je 0x547657
cmp esi, 0x40
jne 0x5475a8
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x5475a8
inc dword [edx + 0x24]
mov eax, edi
lea esi, [edx + 0x20]
and eax, 0x3f
mov dword [ebp - 0x10], esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp edi, 0x40
jb 0x54760d
nop
mov esi, edi
shr esi, 6
add eax, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jae 0x5475d7
sub esi, eax
mov dword [ebp - 0xc], 0
lea eax, [edx + 0x20]
shl esi, 6
push eax
push edx
push esi
push ebx
push ecx
call fcn.00588c00
mov ecx, dword [ebp + 8]
sub edi, esi
mov eax, dword [ebp - 0xc]
add ecx, esi
mov edx, dword [ebp - 4]
add ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp + 8], ecx
mov dword [esi], eax
test eax, eax
jne 0x547608
inc dword [edx + 0x24]
cmp edi, 0x40
jae 0x5475c0
cmp dword [ebp - 8], 0
je 0x547657
push 0x40
lea edi, [edx + 0x30]
push 0
push edi
call fcn.005e26d0
push esi
mov esi, dword [ebp - 4]
push esi
push 0x40
push edi
push edi
call fcn.00588c00
mov eax, dword [ebp - 8]
add esp, 0x20
xor edi, edi
test eax, eax
je 0x547654
mov edx, dword [ebp + 8]
sub ebx, edx
nop
lea ecx, [edi + edx]
mov al, byte [ebx + ecx]
xor al, byte [esi + edi + 0x30]
inc edi
mov byte [ecx], al
mov eax, dword [ebp - 8]
cmp edi, eax
jb 0x547640
mov dword [esi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x548eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor dl, dl
test esi, esi
je 0x548ed7
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x548ec6
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x549030
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x5490b9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5490b9
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e9482
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x20c]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x549201
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5490c1
sub ecx, edx
lea esi, [ecx + 1]
lea eax, [esi + esi]
call fcn.0060c120
mov edi, esp
test edi, edi
jne 0x5490e5
mov edi, str.no_stack_
jmp 0x54916f
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x549111
xor ecx, ecx
test esi, esi
je 0x549111
nop dword [eax]
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x549100
xor edx, edx
test esi, esi
je 0x54916f
lea ebx, [edx + 0x53]
nop word [eax + eax]
cmp word [edi + edx*2], 0x25
jne case.0x549142.43
lea ecx, [edx + 1]
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x549142.43
movzx eax, byte [eax + 0x549230]
jmp dword [eax*4 + 0x549218]
inc edx
add ecx, 2
jmp 0x549130
mov word [ecx], bx
jmp case.0x549142.43
mov eax, 0x73
jmp 0x549167
mov eax, 0x43
jmp 0x549167
mov eax, 0x63
mov word [ecx], ax
inc edx
cmp edx, esi
jb 0x549120
lea eax, [ebp + 0xc]
push eax
push 0
push edi
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e94ca
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xa], ax
call fcn.00548f10
test eax, eax
jle 0x5491eb
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x549201
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x549201
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret