joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5db100]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
mov eax, 0x105
mov ecx, dword [ebx + 0x5c]
push esi
push edi
lea edi, [ebx + 0x4c]
cmp ecx, eax
jb 0x40a587
mov dword [edi + 0x10], eax
cmp dword [edi + 0x14], 0x10
jb 0x40a57c
mov ecx, dword [edi]
mov byte [ecx + 0x105], 0
jmp 0x40a598
mov ecx, edi
mov byte [ecx + 0x105], 0
jmp 0x40a598
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004058d0
mov eax, 0x105
mov ecx, dword [ebx + 0x80]
lea esi, [ebx + 0x70]
cmp ecx, 0x105
jb 0x40a5cc
mov dword [esi + 0x10], 0x105
cmp dword [esi + 0x14], 0x10
jb 0x40a5c1
mov eax, dword [esi]
mov byte [eax + 0x105], 0
jmp 0x40a5d8
mov eax, esi
mov byte [eax + 0x105], 0
jmp 0x40a5d8
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004058d0
cmp dword [esi + 0x14], 0x10
jb 0x40a5e2
mov eax, dword [esi]
jmp 0x40a5e4
mov eax, esi
cmp dword [edi + 0x14], 0x10
jb 0x40a5ee
mov ecx, dword [edi]
jmp 0x40a5f0
mov ecx, edi
push dword [ebx + 0x80]
push eax
lea eax, [ebx + 0x6c]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [ebx + 0x64]
push eax
push dword [ebx + 0x5c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40a63f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.GetVolumeInformationA_failed_w_e
mov ecx, 0x5e3888
call fcn.00406d90
add esp, 4
mov ecx, eax
call fcn.00413750
mov edx, 0x5cda9c
mov ecx, eax
call fcn.00406d90
push 1
push 0
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
push eax
mov ecx, edi
call fcn.004154e0
mov ecx, dword [edi + 0x10]
cmp eax, ecx
ja 0x40a66c
mov dword [edi + 0x10], eax
cmp dword [edi + 0x14], 0x10
jb 0x40a666
mov edi, dword [edi]
mov byte [edi + eax], 0
jmp 0x40a678
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004058d0
push 1
push 0
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
push eax
mov ecx, esi
call fcn.004154e0
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x40a6b5
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x40a69f
mov esi, dword [esi]
mov byte [esi + eax], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004058d0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
Function at 0x40a750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563b1e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
test esi, esi
je 0x40a7c7
lea edi, [esi - 1]
mov dword [ebp - 0x18], 0
mov ecx, edi
xor ecx, esi
bsr eax, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x18], eax
add al, 0x41
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a801
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
call dword [eax + 8]
and esi, edi
jne 0x40a794
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x40a7e6
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
call fcn.0043231f
int3

Function at 0x40ad10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x148], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14c], 0
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x40ad8b
xor ecx, ecx
jmp 0x40ad9d
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ad94
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004043a0
push 1
push 0
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402590
push eax
mov ecx, esi
call fcn.00402610
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x40adf3
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00404a80
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
cmp ecx, 0x10
jb 0x40ae2c
inc ecx
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
call fcn.00404a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
Function at 0x40bdd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0
mov esi, ecx
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x14], esi
push 0
mov byte [ebp - 0x10], 0
movq qword [ebp - 0xf], xmm0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40be67
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str._08lX
push 9
push eax
call fcn.00401490
mov dword [esi + 0x14], 0xf
add esp, 0x10
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x10], 0
jne 0x40be46
xor ecx, ecx
jmp 0x40be59
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be50
sub ecx, edx
push ecx
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004043a0
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00448b50
mov esp, ebp
pop ebp
ret
Function at 0x40e7e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564268
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a810
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x5e7084
call fcn.004044a0
cmp dword [0x5e7014], 0x10
mov ecx, 0x5e7000
mov edx, dword [0x5e7010]
cmovae ecx, dword [0x5e7000]
push 0
push 0x5c9f81
call fcn.00415380
add esp, 8
test eax, eax
jne 0x40e8a0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
mov ecx, 0x5e7030
push eax
call fcn.004044a0
lea edx, [ebp - 0x28]
call fcn.0040a9e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40e887
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
push 0
call fcn.00541f4f
int3
Function at 0x415ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564d58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x415bee
cmp byte [ebx + 0x3d], 0
je 0x415bee
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x415b19
xor al, al
jmp 0x415bf0
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.004042d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x415b7f
sub eax, 1
je 0x415b83
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x415bd6
xor bl, bl
jmp 0x415bd8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x415bb8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00543b93
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x415b7b
cmp byte [ebx + 0x3d], 0
je 0x415bd6
test esi, esi
jne 0x415b41
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004058d0
jmp 0x415b3e
mov bl, 1
cmp ecx, 0x10
jb 0x415bea
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov al, bl
jmp 0x415bf0
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.00448b50
mov esp, ebp
pop ebp
ret
Function at 0x41b080
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ab80
add esp, 0xc
test eax, eax
js 0x41b273
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x41b100
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
nop word [eax + eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x41b0c0
mov ebx, dword [ebp + 0x10]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x41b26e
lea esi, [ebx + 2]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5caba8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca2a8]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca6a8]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5cbbd0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5caba8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca2a8]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca6a8]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5cbbd0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5caba8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca2a8]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca6a8]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5cbbd0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5caba8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca2a8]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5ca6a8]
movzx eax, dl
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x5cbbd0]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x41b117
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x41c060
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x5e351c], eax
cmp eax, 0x10
jb 0x41c082
cmp eax, 4
jae 0x41c087
call fcn.0041be30
push 0x10
push 0x5e3520
call fcn.0041be70
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41c1a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.0041c1f0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x41c1bd
pop ebp
jmp fcn.0041be30
pop ebp
ret
Function at 0x420d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
xor esi, esi
lea ecx, [edx + 0x3f8]
push edi
lea edi, [eax + 0x3f8]
cmp eax, ecx
ja 0x420da9
cmp edi, edx
jb 0x420da9
sub edx, eax
mov esi, 0x80
nop dword [eax + eax]
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x420d90
pop edi
pop esi
pop ebp
ret
mov edi, edx
lea ecx, [eax + 0x10]
sub edi, eax
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edx + esi*8]
add esi, 4
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [edi + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, 0x80
jl 0x420db0
pop edi
pop esi
pop ebp
ret

Function at 0x421810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov dword [ebp - 0xb], eax
xor bl, bl
mov cl, byte [ebp - 9]
mov dh, byte [ebp - 8]
push esi
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xa]
push edi
mov edi, dword [ebp + 8]
mov esi, edi
mov byte [ebp - 0xd], cl
sub esi, 0x568540
mov word [ebp - 7], ax
mov cl, al
mov ch, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov byte [ebp - 0xf], cl
nop dword [eax]
nop word [eax + eax]
mov dl, byte [esi + eax + 0x568540]
mov cl, byte [eax + 0x568540]
xor cl, dl
or bl, cl
mov cl, byte [eax + 0x568560]
xor cl, dl
or byte [ebp - 0xf], cl
mov cl, byte [eax + 0x568580]
xor cl, dl
or byte [ebp - 0xd], cl
mov cl, byte [eax + 0x5685a0]
xor cl, dl
or byte [ebp - 0xe], cl
mov cl, byte [eax + 0x5685c0]
xor cl, dl
or dh, cl
mov cl, byte [eax + 0x5685e0]
xor cl, dl
or bh, cl
mov cl, byte [eax + 0x568600]
xor cl, dl
inc eax
or ch, cl
cmp eax, 0x1f
jb 0x421860
mov dl, byte [eax + edi]
mov cl, byte [eax + 0x568540]
and dl, 0x7f
xor cl, dl
or bl, cl
mov cl, byte [eax + 0x568560]
xor cl, dl
or byte [ebp - 0xf], cl
mov cl, byte [eax + 0x568580]
xor cl, dl
or byte [ebp - 0xd], cl
mov cl, byte [eax + 0x5685a0]
xor cl, dl
or byte [ebp - 0xe], cl
mov cl, byte [eax + 0x5685c0]
xor cl, dl
or dh, cl
mov cl, byte [eax + 0x5685e0]
movzx eax, byte [eax + 0x568600]
xor cl, dl
xor al, dl
mov byte [ebp - 0x10], dh
movzx edx, byte [ebp - 0xd]
or ch, al
movzx eax, byte [ebp - 0xe]
dec edx
dec eax
or bh, cl
or edx, eax
movzx eax, byte [ebp - 0x10]
dec eax
or edx, eax
movzx eax, bh
dec eax
or edx, eax
movzx eax, ch
dec eax
movzx ecx, bl
or edx, eax
dec ecx
movzx eax, byte [ebp - 0xf]
dec eax
or eax, edx
or eax, ecx
mov ecx, dword [ebp - 4]
pop edi
shr eax, 8
xor ecx, ebp
pop esi
and eax, 1
pop ebx
call fcn.00448b50
mov esp, ebp
pop ebp
ret
Function at 0x4220d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
pop ebp
ret
Function at 0x424bb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x38], eax
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
pop ebp
ret

Function at 0x42f490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp + 8], 0
nop dword [eax]
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx + eax]
movzx edx, cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
inc eax
xor ecx, edx
or dword [ebp + 8], ecx
cmp eax, 0x10
jl 0x42f4b0
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
mov esp, ebp
pop ebp
ret

Function at 0x4313d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
imul eax, dword [ebp + 0xc], 0x3c0
add eax, 0x568740
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00431240
Function at 0x44b350
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x44b376
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x44b366
pop edi
movzx eax, dl
pop esi
ret

Function at 0x44be40
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.00449370
mov eax, dword [0x5db100]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x44beb6
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x44beaa
mov eax, 8
call fcn.00449370
movsd xmm0, qword [0x573658]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00449e60
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x44bf1a
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x44bf0e
mov eax, 8
call fcn.00449370
movsd xmm0, qword [0x573658]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00449e60
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.0044bfa0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.00449370
movsd xmm0, qword [0x573650]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.00449e60
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.00449370
movsd xmm0, qword [0x573650]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.00449e60
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.00448b50
add esp, 0x6c
ret
Function at 0x465350
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.004947a0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0053d0a0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x465407
push 0x4a
push str.....openssl_1.1.0fcrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0044d2a0
push 0x588a6c
push esi
push 0x588a70
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.0044ca90
add esp, 0x2c
call fcn.00540baa
cmp dword [eax], 2
je 0x4653e9
call fcn.00540baa
cmp dword [eax], 6
je 0x4653e9
push 0x53
push str.....openssl_1.1.0fcrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0044d2a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x51
push str.....openssl_1.1.0fcrypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0044d2a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x588a08
call fcn.0044f230
mov esi, eax
add esp, 4
test esi, esi
jne 0x465429
push edi
call fcn.00542523
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0044ee30
push edi
push ebx
push 0x6a
push esi
call fcn.0044ee60
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x470be0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, 2
je 0x470c3c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x470c2d
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
call fcn.004a1ac0
add esp, 0x10
cmp dword [esp + 0x1c], 0xffffffff
je 0x470c2d
push 0x2f
push str.....openssl_1.1.0fcryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.0044d2a0
add esp, 0x14
xor eax, eax
pop edi
pop ebx
ret
test edi, edi
je 0x470c38
cmp dword [esp + 0x18], 0x20
je 0x470c3c
push 0x35
jmp 0x470c12
push esi
push 0x3a
push str.....openssl_1.1.0fcryptoececx_meth.c
push 0x24
call fcn.0044b2f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x470c72
push 0x3c
push str.....openssl_1.1.0fcryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.0044d2a0
add esp, 0x14
xor eax, eax
pop esi
pop edi
pop ebx
ret
test ebx, ebx
jne 0x470c89
push dword [esp + 0x1c]
push edi
push esi
call fcn.0053a830
add esp, 0xc
jmp 0x470d35
push 0x43
push str.....openssl_1.1.0fcryptoececx_meth.c
push 0x20
call fcn.00498e30
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x470ccc
push 0x45
push str.....openssl_1.1.0fcryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.0044d2a0
push 0x46
push str.....openssl_1.1.0fcryptoececx_meth.c
push esi
call fcn.0044b0b0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
ret
cmp ebx, 2
jne 0x470d1b
push 0x20
push eax
call fcn.00449ea0
add esp, 8
test eax, eax
jg 0x470d05
push 0x4b
push str.....openssl_1.1.0fcryptoececx_meth.c
push dword [esi + 0x20]
call fcn.00498e20
push 0x4c
push str.....openssl_1.1.0fcryptoececx_meth.c
push esi
call fcn.0044b0b0
add esp, 0x18
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x20]
and byte [eax], 0xf8
mov eax, dword [esi + 0x20]
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x20]
or byte [eax + 0x1f], 0x40
jmp 0x470d29
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x20]
push esi
call fcn.004b1540
add esp, 8
push esi
push 0x40a
push dword [esp + 0x18]
call fcn.00469b00
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
ret