joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x4da3d6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4da3de
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4da3c0
cmp byte [esi + 4], 0
je 0x4da3da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x4da394
mov eax, dword [esi]
jmp 0x4da3b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x4da404
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4da408
xor ebx, ebx
jmp 0x4da3c0
mov eax, dword [esi]
jmp 0x4da3f0
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x4da42a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x4da3c0
mov eax, dword [esi]
jmp 0x4da41b
Function at 0x4da450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, edx
mov dword [esp + 8], ecx
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0x20], 0xa
mov eax, dword [0x52b590]
mov al, byte [eax + 0xa]
test al, al
jne 0x4da65a
xor ebx, ebx
dec ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
lea esi, [esp + 0x50]
mov ecx, edi
push esi
call fcn.00428170
cmp byte [esi + 0xb], 0
mov dword [esp + 0xc], edi
js 0x4da538
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa0], eax
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x98], xmm0
lea edi, [esp + 0x50]
mov ecx, edi
call fcn.00462e80
lea esi, [esp + 0x8c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0xc]
push esi
call fcn.004dc430
xor ebx, ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x34], ebx
pxor xmm0, xmm0
movdqu xmmword [edi + 0x24], xmm0
mov dword [edi], 0x3c
mov dword [edi + 4], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [edi + 8], eax
mov dword [edi + 0xc], str.runas
cmp byte [esp + 0xa3], 0
js 0x4da54e
lea ecx, [esp + 0x98]
jmp 0x4da555
lea ecx, [esp + 0x98]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.0041fb70
jmp 0x4da4d3
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 8]
mov al, byte [ebp + 8]
mov dword [esp + 0x60], ecx
cmp byte [esp + 0x97], 0
jns 0x4da571
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
xor al, 1
movzx eax, al
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4da5f4
cmp byte [ebp + 0xc], 0
je 0x4da5ed
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x9e
push str....._baseprocesslaunch_win.cc
push str.LaunchElevatedProcess
push esi
call fcn.00462b20
add esp, 0x10
mov ecx, ebx
push 0
push esi
call fcn.00466980
push 0xffffffffffffffff
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
call fcn.004669f0
mov ebx, dword [esp + 0x88]
mov ecx, edi
push ebx
call fcn.00420810
cmp byte [esp + 0x97], 0
jns 0x4da615
push dword [esp + 0x8c]
call fcn.0049a930
add esp, 4
cmp byte [esp + 0xa3], 0
jns 0x4da62e
push dword [esp + 0x98]
call fcn.0049a930
add esp, 4
mov dword [esp + 0x20], 0xa
mov eax, dword [0x52b590]
mov al, byte [eax + 0xa]
test al, al
jne 0x4da67d
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0049b483
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, al
lea ecx, [esp + 0x50]
mov dword [ecx], str.LaunchElevatedProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.0045dee0
add esp, 0x10
jmp 0x4da48b
movzx eax, al
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x20]
push 2
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.0045ea40
add esp, 0x10
jmp 0x4da642
Function at 0x4da7b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1cc
push str....._base_files_file_util_win.cc
push str.DeleteFileAfterReboot
push ebx
call fcn.00462b20
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00466980
mov al, byte [edi + 0xb]
test al, al
jns 0x4da818
cmp dword [edi + 4], 0x103
jbe 0x4da818
xor ebx, ebx
jmp 0x4da82e
test al, al
jns 0x4da81e
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.004669f0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0049b483
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4dafc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x541b64], 0
je 0x4daff8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x541b50]
test esi, esi
je 0x4db092
test byte [0x53ec34], 1
je 0x4dafe1
cmp byte [esi + 0xb], 0
jns 0x4db017
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x5272a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x541b64], eax
inc eax
cmp eax, 1
ja 0x4dafe1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.0049e890
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4db130
xor ebx, ebx
jmp 0x4dafe1
push 0xc
call fcn.0049a900
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0049e890
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.004c45b0
movzx eax, byte [esi + 0xb]
test al, al
js 0x4db0e7
and eax, 0x7f
mov ecx, esi
jmp 0x4db0ec
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x4db109
mov ecx, esi
push 9
push str.debug.log
call fcn.0041fe60
mov dword [0x541b50], esi
jmp 0x4db006
add eax, eax
test eax, eax
je 0x4db0f0
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x4db10b
cmp edx, 0xfffffffe
je 0x4db0f0
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.0045b940
jmp 0x4db0f0
mov ecx, dword [0x541b50]
push esi
call fcn.0041fe30
mov ecx, dword [0x541b50]
call fcn.004d8590
cmp word [eax], 0x5c
je 0x4db15f
mov ecx, dword [0x541b50]
push 1
push 0x524fd8
call fcn.0041fe60
mov ecx, dword [0x541b50]
push 9
push str.debug.log
call fcn.0041fe60
mov eax, dword [0x541b50]
cmp byte [eax + 0xb], 0
jns 0x4db17e
mov eax, dword [eax]
movaps xmm0, xmmword [0x5272a0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x541b64], eax
inc eax
cmp eax, 1
ja 0x4dafe1
mov dword [0x541b64], 0
jmp 0x4db08b
Function at 0x4e6350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
xor edx, edx
cmp edi, esi
jge 0x4e6376
mov eax, dword [eax]
xor edx, edx
mov ebx, edi
or edx, dword [eax + ebx*4]
inc ebx
cmp esi, ebx
jne 0x4e636e
cmp esi, edi
jge 0x4e6386
mov eax, dword [ecx]
mov ebx, esi
or edx, dword [eax + ebx*4]
inc ebx
cmp edi, ebx
jne 0x4e637e
cmp edi, esi
cmovl esi, edi
test esi, esi
jle 0x4e63a5
mov edi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
xor eax, eax
mov ecx, dword [ebx + eax*4]
xor ecx, dword [edi + eax*4]
or edx, ecx
inc eax
cmp esi, eax
jne 0x4e6398
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0xc]
xor eax, eax
or ecx, edx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ea220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x4ea336
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor esi, esi
xor eax, eax
xor edi, edi
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4]
mov ecx, edx
shl ecx, 0x10
mov eax, ecx
not eax
dec ecx
and ecx, eax
sar ecx, 0x1f
mov dword [ebp - 0x24], ecx
mov eax, edx
shr eax, 0x10
xor eax, edx
and eax, ecx
xor eax, edx
mov esi, eax
shl esi, 0x18
mov ecx, esi
dec esi
not ecx
and esi, ecx
mov ecx, eax
shr ecx, 8
sar esi, 0x1f
mov dword [ebp - 0x20], esi
xor ecx, eax
and ecx, esi
xor ecx, eax
mov eax, ecx
shl eax, 0x1c
mov esi, eax
not esi
dec eax
and eax, esi
sar eax, 0x1f
mov edi, ecx
shr edi, 4
mov esi, eax
xor edi, ecx
and edi, eax
xor edi, ecx
mov ecx, edi
shl ecx, 0x1e
mov eax, ecx
dec ecx
not eax
and ecx, eax
mov eax, edi
shr eax, 2
sar ecx, 0x1f
mov ebx, ecx
xor eax, edi
and eax, ecx
lea ecx, [edx - 1]
not edx
and ecx, edx
xor eax, edi
shl eax, 0x1f
mov edx, eax
not edx
dec eax
and eax, edx
mov edx, dword [ebp - 0x24]
and edx, 0x10
shr eax, 0x1f
or eax, edx
mov edx, dword [ebp - 0x20]
and edx, 8
or eax, edx
and esi, 4
or eax, esi
mov esi, dword [ebp - 0x28]
sar ecx, 0x1f
and ebx, 2
or eax, ebx
mov edx, ecx
not edx
mov edi, dword [ebp - 0x1c]
or ecx, edi
or edx, edi
add eax, esi
not ecx
and ecx, eax
mov eax, dword [ebp - 0x2c]
or eax, ecx
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x10]
add esi, 0x20
mov edi, edx
mov edx, dword [ebp - 0x10]
cmp ecx, edx
jne 0x4ea247
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x4ea32e
Function at 0x4f11e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x5c], edx
mov edx, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x53d010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea ecx, [eax + 4]
mov esi, ecx
shr esi, 5
mov dword [ebp - 0x60], edx
mov ebx, dword [edx + 0xec]
xor edx, edx
mov edi, 0
mov dword [ebp - 0x58], ebx
cmp esi, ebx
jae 0x4f1229
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 5
and edi, 0x20
lea ecx, [eax + 3]
mov esi, ecx
shr esi, 5
cmp esi, dword [ebp - 0x58]
jae 0x4f1244
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + esi*4]
shr edx, cl
shl edx, 4
and edx, 0x10
or edx, edi
lea ecx, [eax + 2]
mov ebx, ecx
shr ebx, 5
xor edi, edi
mov esi, 0
cmp ebx, dword [ebp - 0x58]
jae 0x4f1268
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + ebx*4]
shr esi, cl
shl esi, 3
and esi, 8
or edx, esi
lea ecx, [eax + 1]
mov esi, ecx
shr esi, 5
cmp esi, dword [ebp - 0x58]
jae 0x4f1285
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 2
and edi, 4
mov ebx, edx
or ebx, edi
mov ecx, eax
shr ecx, 5
xor esi, esi
cmp ecx, dword [ebp - 0x58]
jae 0x4f12a4
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + ecx*4]
mov ecx, eax
shr esi, cl
add esi, esi
and esi, 2
or ebx, esi
test eax, eax
je 0x4f12c7
dec eax
mov esi, eax
shr esi, 5
xor ecx, ecx
cmp esi, dword [ebp - 0x58]
jae 0x4f12c5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + esi*4]
xor ecx, ecx
bt edx, eax
setb cl
or ebx, ecx
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 5
lea eax, [ecx - 1]
neg ecx
and eax, ebx
xor ebx, 0x3f
mov dword [ebp - 0x58], ecx
and ebx, ecx
or ebx, eax
mov eax, ebx
shr eax, 1
and ebx, 1
add ebx, eax
push 0xcc
push 0
push dword [ebp - 0x5c]
call fcn.0049e890
add esp, 0xc
xor esi, esi
mov eax, esi
xor eax, ebx
dec eax
sar eax, 0x1f
mov ecx, dword [ebp - 0x5c]
push ecx
push edi
push eax
push ecx
push dword [ebp - 0x60]
call fcn.004ee500
add esp, 0x14
inc esi
add edi, 0xcc
cmp esi, 0x11
jne 0x4f12fd
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x54]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x40], 0xffffffff
mov edi, dword [ebp - 0x5c]
add edi, 0x44
push edi
push eax
mov esi, dword [ebp - 0x60]
push esi
call fcn.004f0390
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
mov ebx, dword [ebp - 0x58]
je 0x4f1390
mov ecx, ebx
not ecx
mov dword [ebp - 0x5c], ecx
xor edx, edx
mov esi, dword [ebp + edx*4 - 0x54]
and esi, ebx
mov ecx, eax
mov eax, ebx
mov ebx, edi
mov edi, dword [edi + edx*4]
and edi, dword [ebp - 0x5c]
or edi, esi
mov dword [ebx + edx*4], edi
mov edi, ebx
mov ebx, eax
mov eax, ecx
inc edx
cmp ecx, edx
jne 0x4f136e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fbf80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, edx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
add eax, 0x20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
xor esi, esi
mov edi, esi
xor edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, edi
push ecx
push ebx
call fcn.004fbec0
add esp, 8
lea eax, [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, edi
push ecx
push eax
call fcn.004fbec0
add esp, 8
inc esi
add ebx, 0x40
cmp esi, 0xf
jne 0x4fbfb9
mov ecx, dword [ebp + 8]
add ecx, 0x40
mov edx, dword [ebp - 0x10]
push 0x5325f4
push ecx
call fcn.004fbec0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x506520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x506547
call fcn.004ec390
mov ebx, eax
test edi, edi
cmove edi, ebx
push ebx
call fcn.00438bf0
add esp, 4
lea ecx, [eax*2 + 2]
cmp ecx, esi
ja 0x506591
mov dword [ebp - 0x68], edi
lea edx, [eax + eax]
mov edi, esi
mov esi, edx
not esi
lea ecx, [edi + esi]
dec ecx
cmp ecx, dword [ebp + 0x14]
jb 0x506586
lea ecx, [edi - 1]
or edx, 1
mov dword [ebp - 0x60], ecx
cmp ecx, edx
jae 0x5065cb
push 0x6d
jmp 0x506593
push 0x68
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x72
jmp 0x50659a
push 0x62
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x7e
push 0
push 4
call fcn.00501490
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
xor edi, edi
push ebx
call fcn.00475050
add esp, 4
jmp 0x5065a8
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [ebp - 0x5c], eax
add eax, edi
inc eax
xor ecx, ecx
push ecx
push ebx
push ecx
mov dword [ebp - 0x58], eax
push eax
push edx
push dword [ebp + 0x18]
call fcn.00438c00
add esp, 0x18
test eax, eax
je 0x5065bc
mov ebx, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x14]
sub ebx, ecx
add esi, ebx
mov edx, dword [ebp - 0x5c]
je 0x50661a
mov eax, dword [ebp - 0x58]
add eax, edx
push esi
push 0
push eax
mov esi, edx
call fcn.0049e890
mov edx, esi
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov eax, edx
not eax
add ebx, dword [ebp - 0x58]
mov byte [eax + ebx], 1
lea eax, [edi + 1]
mov dword [ebp - 0x54], eax
test ecx, ecx
mov esi, edx
je 0x50664c
mov eax, edi
add eax, esi
add eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, esi
push ecx
push dword [ebp + 0x10]
push eax
call fcn.0049e310
mov esi, dword [ebp - 0x5c]
add esp, 0xc
push esi
push dword [ebp - 0x54]
call fcn.00471a20
add esp, 8
test eax, eax
je 0x5065bc
mov edi, dword [ebp - 0x60]
sub edi, esi
push edi
call fcn.00475010
add esp, 4
test eax, eax
je 0x5065bc
mov ebx, eax
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x54]
mov dword [ebp - 0x64], edi
push edi
push eax
call fcn.0043a790
add esp, 0x14
test eax, eax
je 0x5065be
cmp dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x58]
je 0x5066b2
mov eax, dword [ebp - 0x64]
cmp eax, 1
adc eax, 0
xor ecx, ecx
mov dl, byte [ebx + ecx]
xor byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x5066a7
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x50]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push esi
mov esi, dword [ebp - 0x5c]
push esi
push eax
call fcn.0043a790
add esp, 0x14
test eax, eax
je 0x5065be
xor edi, edi
inc edi
test esi, esi
je 0x5065c0
mov edx, esi
xor eax, eax
mov esi, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x50]
xor byte [esi + eax], cl
inc eax
cmp edx, eax
jne 0x5066fa
jmp 0x5065c0
Function at 0x50de70
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.004ec590
add esp, 0xc
and byte [esi], 0xf8
mov al, byte [esi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea edi, [ebp - 0xf0]
push 0xa0
push 0xff
push edi
call fcn.0049e890
add esp, 0xc
push 0x533b08
push esi
push edi
call fcn.00489a50
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.00511620
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ebx + 0x10], xmm1
movups xmmword [ebx], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
add esp, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.h513vyzu]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.h513vyzu]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.h513vyzu]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.h513vyzu]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.h513vyzu]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.h513vyzu]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402b40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
nop
lea eax, [ebp - 0x18]
push eax
call fcn.00402dd1
add esp, 4
mov eax, 2
push eax
call sub.msvcrt.dll___set_app_type
add esp, 4
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402c40
mov eax, dword [ebp - 0x1c]
mov ecx, 0x20
movsx edx, byte [eax]
cmp ecx, edx
jne 0x402ba9
mov eax, dword [ebp - 0x1c]
mov ecx, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x402b8b
mov eax, dword [ebp - 0x1c]
mov ecx, 0x22
movsx edx, byte [eax]
cmp ecx, edx
jne 0x402bf6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
movsx ecx, byte [eax]
test ecx, ecx
je 0x402bf1
mov eax, dword [ebp - 0x1c]
mov ecx, 0x22
movsx edx, byte [eax]
cmp ecx, edx
jne 0x402bef
mov eax, dword [ebp - 0x1c]
mov ecx, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x402bf1
jmp 0x402bbc
jmp 0x402c22
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402c22
mov eax, dword [ebp - 0x1c]
mov ecx, 0x20
movsx edx, byte [eax]
cmp ecx, edx
je 0x402c22
mov eax, dword [ebp - 0x1c]
mov ecx, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x402bf6
mov eax, dword [ebp - 0x1c]
mov ecx, 0x20
movsx edx, byte [eax]
cmp ecx, edx
jne 0x402c40
mov eax, dword [ebp - 0x1c]
mov ecx, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x402c22
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_GetStartupInfoA
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
and eax, 1
mov ecx, 0
cmp ecx, eax
jne 0x402c6b
mov eax, 0xa
mov dword [ebp - 0x64], eax
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, 0
push ecx
push eax
call section..text
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
call sub.msvcrt.dll_exit
add esp, 4
leave
ret