joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e390
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 0x50e3d3
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x50e3c3
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 0x50e3d8
cmp edi, dword [esi + 8]
ja 0x50e3bb
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.00432330
push eax
call fcn.0053b8b0
add esp, 8
test eax, 0x200000
je 0x50e41e
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 0x50e49c
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 0x50e460
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 0x51a7e0
Capabilities:
Write file on windows

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

Function at 0x51aca0
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.00553460
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005e1c80
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x51ad59
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00528ff0
push 0x6239f4
push esi
push 0x62e10c
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.005288d0
add esp, 0x2c
call fcn.005f0ddc
cmp dword [eax], 2
je 0x51ad3a
call fcn.005f0ddc
cmp dword [eax], 6
je 0x51ad3a
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00528ff0
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.00528ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0051ade0
push eax
call fcn.0051b220
mov esi, eax
add esp, 4
test esi, esi
jne 0x51ad7d
push edi
call fcn.005e558d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0051aea0
push edi
push ebx
push 0x6a
push esi
call fcn.0051aee0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x51d500
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 0x51d67c
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 0x51d67b
push edi
cmp esi, 8
jb 0x51d652
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 0x51d5a6
cmp dword [ebp + 0x10], edi
jae 0x51d652
cmp ecx, ebx
ja 0x51d5b3
cmp dword [ebp + 0x10], ebx
jae 0x51d652
cmp ecx, edx
ja 0x51d5c0
cmp dword [ebp + 0x10], edx
jae 0x51d652
lea ecx, [esi - 1]
lea ecx, [edi + ecx*4]
cmp edi, ebx
ja 0x51d5d2
cmp ecx, ebx
jae 0x51d652
cmp edi, edx
ja 0x51d5da
cmp ecx, edx
jae 0x51d652
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x51d5e9
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 0x51d5f1
cmp eax, esi
jge 0x51d67a
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 0x51d656
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51e060
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 0x51e0da
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.0051d9c0
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 0x51e090
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 0x526f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ba00c]
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 0x526f89
push eax
push eax
mov ebx, str.HOME
mov dword [ebp - 8], eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526f89
push eax
push eax
mov ebx, str.USERPROFILE
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526f89
push eax
push eax
mov ebx, str.SYSTEMROOT
push ebx
call edi
mov esi, eax
test esi, esi
je 0x5270b1
lea eax, [esi + esi]
call fcn.0060b880
mov eax, esp
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp eax, esi
jae 0x5270b1
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 0x5270b1
call fcn.0060b880
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 0x5270b1
test esi, esi
je 0x5270b1
cmp byte [esi], 0
je 0x5270b1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527003
sub ecx, edx
cmp dword [ebp - 8], 0
je 0x527048
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
jae 0x5270b1
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 0x527025
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, dword [ebp + 0xc]
jae 0x5270b1
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 0x527057
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x527067
mov ax, word [0x696984]
lea edx, [ebx - 1]
mov word [edi], ax
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x527080
mov ecx, dword [str..rnd]
mov eax, ebx
mov dword [edx], ecx
mov cl, byte [0x62f740]
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.0049ae07
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.0049ae07
mov esp, ebp
pop ebp
ret
Function at 0x5270d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x6ba00c]
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 0x52710d
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
push ebx
push 0x693624
push edi
call fcn.00553460
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x52713a
push 0x62
push str.....crypto_rand_randfile.c
push 0x79
push 0x6f
push 0x24
call fcn.00528ff0
push edi
jmp 0x52727f
lea eax, [ebp - 0x534]
push eax
push ebx
call fcn.005f285b
add esp, 4
push eax
call fcn.005fc285
add esp, 8
test eax, eax
jns 0x527193
push 0x69
push str.....crypto_rand_randfile.c
push 0x71
push 0x6f
push 0x24
call fcn.00528ff0
push edi
push str.Filename
push 2
call fcn.005288d0
push ebx
call fcn.005e558d
add esp, 0x24
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
test esi, esi
jns 0x5271ad
test dword [ebp - 0x52e], 0x8000
mov esi, 0x100
cmovne esi, dword [ebp - 0x520]
push 0
push ebx
call fcn.005fcaca
add esp, 8
test esi, esi
jle 0x5271cc
cmp esi, 0x500
mov eax, 0x400
cmovle eax, esi
jmp 0x5271d1
mov eax, 0x500
push ebx
push eax
lea eax, [ebp - 0x504]
push 1
push eax
call fcn.005ee467
push ebx
mov edi, eax
call fcn.005e54ec
add esp, 0x14
test eax, eax
je 0x527209
call fcn.005f0ddc
cmp dword [eax], 4
jne 0x527209
push ebx
call fcn.005fca1a
add esp, 4
test edi, edi
je 0x5271b8
jmp 0x52720d
test edi, edi
je 0x527241
movd xmm0, edi
lea eax, [ebp - 0x504]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.005263e0
add dword [ebp - 0x538], edi
add esp, 0x10
test esi, esi
jle 0x5271cc
sub esi, edi
test esi, esi
jg 0x5271bc
lea eax, [ebp - 0x504]
push 0x500
push eax
call fcn.00537ea0
push ebx
call fcn.005e558d
add esp, 0xc
call fcn.00526590
test eax, eax
jne 0x5272a2
push 0xa6
push str.....crypto_rand_randfile.c
push 0x76
push 0x6f
push 0x24
call fcn.00528ff0
push dword [ebp - 0x53c]
push str.Filename
push 2
call fcn.005288d0
add esp, 0x20
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
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.0049ae07
mov esp, ebp
pop ebp
ret
Function at 0x52e200
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.005e1e60
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 0x52ec60
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.005e1e60
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 0x52efb0
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.005e1e60
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 0x5314e0
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.0051aea0
add esp, 8
test esi, esi
jg 0x53152a
push esi
call fcn.00531800
add esp, 4
test eax, eax
je 0x53152a
push 0xa
push edi
call fcn.0051b540
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x5324e0
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 0x532530
mov al, byte [esi]
test al, al
je 0x532530
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 0x532500
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 0x5327a0
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 0x5327fa
mov al, byte [edi]
test al, al
je 0x5327fa
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.00553790
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 0x5327c0
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 0x539a40
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 0x539a5d
push eax
push esi
call fcn.0053a120
add esp, 8
test eax, eax
jle 0x539aa3
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.0051aea0
add esp, 8
test edi, edi
jg 0x539aa0
push edi
call fcn.00531800
add esp, 4
test eax, eax
je 0x539aa0
push 0xa
push esi
call fcn.0051b540
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x540750
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.004b2280
mov esi, eax
push esi
call fcn.0052e200
add esp, 8
test eax, eax
jne 0x54076e
pop esi
pop ebp
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005d4380

Function at 0x546cc0
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 0x546d28
test edi, edi
je 0x546d08
nop dword [eax]
cmp esi, 0x40
jae 0x546d08
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 0x546cf0
mov dword [edx + 0x70], esi
test edi, edi
je 0x546dd7
cmp esi, 0x40
jne 0x546d28
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x546d28
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 0x546d8d
nop
mov esi, edi
shr esi, 6
add eax, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jae 0x546d57
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.005883c0
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 0x546d88
inc dword [edx + 0x24]
cmp edi, 0x40
jae 0x546d40
cmp dword [ebp - 8], 0
je 0x546dd7
push 0x40
lea edi, [edx + 0x30]
push 0
push edi
call fcn.005e1e60
push esi
mov esi, dword [ebp - 4]
push esi
push 0x40
push edi
push edi
call fcn.005883c0
mov eax, dword [ebp - 8]
add esp, 0x20
xor edi, edi
test eax, eax
je 0x546dd4
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 0x546dc0
mov dword [esi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x548630
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 0x548657
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 0x548646
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x5487b0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ba00c]
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 0x548839
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x548839
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.005e8c0d
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 0x548981
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x548841
sub ecx, edx
lea esi, [ecx + 1]
lea eax, [esi + esi]
call fcn.0060b880
mov edi, esp
test edi, edi
jne 0x548865
mov edi, str.no_stack_
jmp 0x5488ef
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x548891
xor ecx, ecx
test esi, esi
je 0x548891
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 0x548880
xor edx, edx
test esi, esi
je 0x5488ef
lea ebx, [edx + 0x53]
nop word [eax + eax]
cmp word [edi + edx*2], 0x25
jne case.0x5488c2.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.0x5488c2.43
movzx eax, byte [eax + 0x5489b0]
jmp dword [eax*4 + 0x548998]
inc edx
add ecx, 2
jmp 0x5488b0
mov word [ecx], bx
jmp case.0x5488c2.43
mov eax, 0x73
jmp 0x5488e7
mov eax, 0x43
jmp 0x5488e7
mov eax, 0x63
mov word [ecx], ax
inc edx
cmp edx, esi
jb 0x5488a0
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.005e8c55
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xa], ax
call fcn.00548690
test eax, eax
jle 0x54896b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x548981
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 0x548981
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.0049ae07
mov esp, ebp
pop ebp
ret
Function at 0x550010
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x550053
sub eax, 2
je 0x550053
sub eax, 0x15
je 0x550053
push 0x297
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.00528ff0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00553630
cmp eax, 1
jne 0x55004b
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x10], xmm0
test esi, esi
jne 0x550089
or eax, 0x400
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 1
jne 0x550095
or eax, 1
mov dword [ebp - 0x20], eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x5500e5
nop
cmp esi, 8
je 0x55012a
mov eax, dword [ebp - 0x20]
test eax, 0x400
je 0x5500f3
push dword [ebp + 0x20]
and eax, 0xfffffbff
mov edi, esi
or eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x5500b0
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2da
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.00528ff0
test edi, edi
cmovne esi, edi
push esi
call fcn.00550530
push eax
push 1
call fcn.005288d0
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2cb
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.00528ff0
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret