joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474be0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8159
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e4520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00403490
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403490
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403490
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.00477490
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004772e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x476dc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x4e9324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x476e14
push esi
push 0x10
call fcn.0047c547
add esp, 4
test eax, eax
je 0x476dea
mov ecx, eax
call fcn.004765d0
mov esi, eax
jmp 0x476dec
xor esi, esi
push dword [0x4e9324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476e04
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x4e9324]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret

Function at 0x4886a7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a2be9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004857b9
mov dword [ebp - 0x14], eax
cmp dword [0x4ec76c], esi
jne 0x4a2cdc
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a2c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a2dbc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a2dbc
push 0x4d0b70
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a2dbc
push eax
call ebx
push 0x4d0b7c
push edi
mov dword [0x4ec76c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ec770], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ec774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ec77c], eax
test eax, eax
je 0x4a2cd9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ec778], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a2d01
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a2cf4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a2d16
push 4
pop eax
jmp 0x4a2dbe
cmp dword [ebp - 0x14], esi
je 0x4a2d16
push dword [0x4ec76c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a2cfb
mov eax, dword [0x4ec778]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a2d74
cmp dword [0x4ec77c], edi
je 0x4a2d74
push eax
call ebx
push dword [0x4ec77c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a2d74
test eax, eax
je 0x4a2d74
call ecx
test eax, eax
je 0x4a2d69
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a2d69
test byte [ebp - 8], 1
jne 0x4a2d74
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a2da4
mov eax, dword [0x4ec770]
cmp eax, edi
je 0x4a2da1
push eax
call ebx
test eax, eax
je 0x4a2da1
call eax
mov esi, eax
test esi, esi
je 0x4a2da1
mov eax, dword [0x4ec774]
cmp eax, edi
je 0x4a2da1
push eax
call ebx
test eax, eax
je 0x4a2da1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ec76c]
call ebx
test eax, eax
je 0x4a2dbc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a2dbe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd24
mov esp, ebp
pop ebp
ret
Function at 0x40a0f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408830
cmp eax, 0x3f6
jae 0x40a30c
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408786
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a140
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a143
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a188
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a164
jmp 0x40a158
cmp byte [eax + esi], 0x22
je 0x40a160
inc eax
cmp byte [eax + esi], bl
jne 0x40a152
jmp 0x40a164
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a17b
cmp byte [eax + esi + 1], 0x2f
je 0x40a17b
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a14b
jmp 0x40a188
add eax, esi
cmp byte [eax], 0x20
jne 0x40a184
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a19c
cmp byte [0x418392], bl
je 0x40a19c
mov dword [ebp - 0x30], 0x418392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00406b9e
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a1c8
push str..inf
push eax
call fcn.00408a46
test eax, eax
jne 0x40a1c8
mov dword [ebp - 0x38], 0x4105f4
push ebx
push dword [ebp - 0x34]
call fcn.00404c5e
mov byte [ebp - 1], al
cmp al, bl
je 0x40a1f0
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00404d19
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a22f
cmp byte [ebp - 1], bl
jne 0x40a22f
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408923
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408a8e
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00404c5e
test al, al
je 0x40a30a
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40a261
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40a30a
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x417f88], bl
jne 0x40a277
cmp byte [ebp + 8], bl
je 0x40a2ae
mov eax, dword [0x417f80]
cmp eax, ebx
je 0x40a298
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a298
push ebx
push dword [0x417f80]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.00409aeb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a2cd
push str..exe
push dword [ebp - 8]
call fcn.00408a46
test eax, eax
je 0x40a2fb
cmp byte [0x417f88], bl
je 0x40a2e1
cmp byte [ebp + 8], bl
jne 0x40a2e1
push 0x1b58
jmp 0x40a2f5
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40a30a
push 1
push dword [0x417f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4050d3
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, si
shr esi, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov bx, word [ebp + 8]
push edi
mov dword [ebp - 4], esi
mov di, si
mov dword [ebp - 8], 0x40
sub eax, 0x61c88647
movzx edx, ax
mov dword [ebp - 0xc], eax
mov ax, di
shr ax, 5
lea ecx, [edx + esi]
shl esi, 4
xor cx, ax
xor cx, si
add bx, cx
mov word [ebp + 8], bx
mov ax, bx
mov ecx, dword [ebp + 8]
add edx, ecx
shr ax, 5
xor dx, ax
shl ecx, 4
xor dx, cx
add di, dx
sub dword [ebp - 8], 1
mov word [ebp - 4], di
je 0x40514a
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x4050fb
mov al, byte [ebp + 8]
pop edi
pop esi
and al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4054b7
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x4054cd
imul eax, eax, 0x21
inc edx
movzx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x4054c4
pop ebp
ret

Function at 0x4054d5
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x4054ed
imul eax, eax, 0x21
lea edx, [edx + 2]
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x4054e2
pop ebp
ret

Function at 0x405eb7
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x20
push esi
call fcn.00406037
pop ecx
pop ecx
test eax, eax
je 0x405edc
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x405f88
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not ecx
test edx, edx
je 0x405fc2
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, byte [esi]
dec edx
push 8
xor ecx, eax
inc esi
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
not eax
inc eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x405fa6
test edx, edx
jne 0x405f9c
pop edi
pop esi
not ecx
mov eax, ecx
pop ebp
ret

Function at 0x406119
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40613b
push edi
mov edi, dword [ebp + 0xc]
mov edx, eax
sub edi, eax
mov cl, byte [edi + edx]
xor byte [edx], cl
inc edx
sub esi, 1
jne 0x40612f
pop edi
pop esi
pop ebp
ret
Function at 0x40613e
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor esi, esi
push edi
mov eax, esi
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x40614e
mov edi, esi
xor edx, edx
mov bl, byte [ebp + edi - 0x104]
mov eax, edi
movzx ecx, bl
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + edi - 0x104], al
inc edi
mov byte [ebp + esi - 0x104], bl
cmp edi, 0x100
jb 0x40615f
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov eax, esi
test ebx, ebx
je 0x406208
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
sub edi, ecx
inc eax
movzx ecx, al
mov dword [ebp - 4], ecx
mov dl, byte [ebp + ecx - 0x104]
movzx eax, dl
add eax, esi
movzx esi, al
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + ecx - 0x104], al
mov byte [ebp + esi - 0x104], dl
movzx ecx, byte [ebp + ecx - 0x104]
movzx eax, dl
add ecx, eax
mov eax, dword [ebp + 0x14]
movzx ecx, cl
mov cl, byte [ebp + ecx - 0x104]
xor cl, byte [edi + eax]
mov byte [eax], cl
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
sub ebx, 1
jne 0x4061b2
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x2cc
push ebx
push esi
mov esi, dword [ebp + 8]
xor esi, 0xb86
shl esi, 0x10
xor esi, dword [ebp + 8]
xor esi, 0xff59
mov eax, esi
shr eax, 0x15
push edi
cmp eax, ecx
ja 0x406681
je 0x40667a
sub eax, 0xa5
je 0x406673
sub eax, 0x48
je 0x40666c
sub eax, 0x9c
je 0x406665
sub eax, 0x3c
je 0x40665e
sub eax, 0x2e
je 0x406657
sub eax, 0x5e
jne 0x4066b0
mov eax, 0x406749
jmp 0x4066d6
mov eax, 0x4064d7
jmp 0x4066d6
mov eax, 0x40654c
jmp 0x4066d6
mov eax, 0x406782
jmp 0x4066d6
mov eax, 0x4067f4
jmp 0x4066d6
mov eax, 0x406420
jmp 0x4066d6
mov eax, 0x40650f
jmp 0x4066d6
sub eax, 0x467
je 0x4066d1
sub eax, 0x32
je 0x4066ca
sub eax, 0x86
je 0x4066c3
sub eax, 0x13f
je 0x4066bc
sub eax, 0xc5
je 0x4066b5
sub eax, 0xae
jne 0x4066b0
mov eax, 0x406459
jmp 0x4066d6
mov eax, dword [ebp + 8]
jmp 0x4066d6
mov eax, 0x40682d
jmp 0x4066d6
mov eax, 0x4067bb
jmp 0x4066d6
mov eax, 0x4064cb
jmp 0x4066d6
mov eax, 0x406492
jmp 0x4066d6
mov eax, fcn.0040651b
call eax
mov edi, eax
test edi, edi
je 0x40672f
mov ecx, dword [edi + 0x3c]
and esi, 0x1fffff
xor ebx, ebx
mov ecx, dword [ecx + edi + 0x78]
add ecx, edi
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 8], eax
add edx, edi
mov eax, dword [ecx + 0x1c]
add eax, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp + 8], eax
test eax, eax
je 0x40672f
mov eax, dword [edx + ebx*4]
add eax, edi
push eax
call fcn.004062f0
and eax, 0x1fffff
pop ecx
cmp eax, esi
je 0x406738
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x406711
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ebx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x406731
Function at 0x407098
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push esi
push edi
lea eax, [ebp - 0x14c]
push eax
push 0x82
push 5
push 0x662
push 0x41caa0
call fcn.004054f7
add esp, 0x14
xor esi, esi
xor eax, eax
mov word [ebp - 0xca], ax
lea eax, [ebp - 0x14c]
push esi
push esi
push esi
push esi
push eax
call dword [0x40fcf4]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x4072b8
mov word [ebp - 0x30], ax
xor ecx, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push esi
push dword [ebp + 8]
inc ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [str._aG_Qyu]
test eax, eax
jne 0x407144
push edi
call dword [0x40fcec]
xor eax, eax
jmp 0x4072b8
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x34]
push ebx
push esi
mov word [ecx + eax*2], dx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push edi
call dword [0x40fbfc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x40716b
push edi
jmp 0x4071cc
mov eax, dword [ebp - 0x1c]
cmp word [eax], si
jne 0x407179
push 0x2f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x54]
push eax
push 8
push 0xf
push 0x618
push 0x41caa0
call fcn.004054f7
add esp, 0x14
xor eax, eax
cmp dword [ebp - 0x3c], 2
mov ecx, 0x800000
mov word [ebp - 0x4c], ax
cmove eax, ecx
or eax, 0x100
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [0x40fd04]
mov ebx, eax
test ebx, ebx
jne 0x4071d9
push edi
call dword [0x40fcec]
push dword [ebp - 0xc]
call dword [0x40fcec]
xor eax, eax
jmp 0x4072b7
lea eax, [ebp - 0xc8]
mov edi, esi
push eax
push 0x72
push 0xc
push 0x713
push 0x41caa0
call fcn.004054f7
add esp, 0x14
xor eax, eax
mov word [ebp - 0x56], ax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
call dword [0x40fbf8]
test eax, eax
jne 0x40724a
call fcn.00404c7f
cmp eax, 0x2f8f
jne 0x407246
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x13300
push eax
push 0x1f
push ebx
call dword [0x40fbe8]
test eax, eax
push 1
pop eax
cmovne edi, eax
test edi, edi
jne 0x4071fe
mov eax, dword [ebp + 0x18]
push esi
push ebx
mov dword [eax], esi
call dword [0x40fc50]
mov edi, dword [ebp - 8]
test eax, eax
je 0x40729e
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push esi
push 0x20000013
push ebx
call dword [0x40fd90]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x40729e
push dword [ebp + 0x14]
push ebx
call fcn.00406fb1
pop ecx
pop ecx
mov esi, eax
push edi
call dword [0x40fcec]
push dword [ebp - 0xc]
call dword [0x40fcec]
push ebx
call dword [0x40fcec]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4077fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40789f
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov eax, ebx
sub eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
xor edi, edi
push eax
call fcn.00407931
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add dword [eax + 0x20], 1
jne 0x407840
inc dword [eax + 0x24]
cmp esi, 0x40
jbe 0x407877
mov ebx, dword [ebp - 4]
mov edx, edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
add ecx, edx
push 0x40
mov al, byte [ebx + ecx]
xor al, byte [ecx]
inc edx
mov byte [edi + ecx], al
pop eax
cmp edx, eax
jb 0x40784d
mov ebx, dword [ebp + 0x10]
sub esi, eax
add dword [ebp + 0x14], eax
add ebx, eax
add dword [ebp + 0xc], eax
add dword [ebp - 4], eax
mov dword [ebp + 0x10], ebx
jmp 0x407824
test esi, esi
je 0x40789d
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
sub eax, ecx
sub ebx, ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x44]
add ecx, edi
mov al, byte [eax + ecx]
xor al, byte [ecx]
inc edi
mov byte [ebx + ecx], al
mov eax, dword [ebp + 0xc]
cmp edi, esi
jb 0x407888
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4078c2
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x100
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
jne 0x4078f6
add ecx, 0x10
mov esi, str.expand_32_byte_kexpand_16_byte_k
jmp 0x4078fb
mov esi, 0x40c1d0
mov eax, dword [ecx]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [0x41d4bc], esi
mov dword [edx + 0x3c], eax
pop esi
pop ebp
ret
Function at 0x408b14
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.00404371
mov al, byte [ebp - 1]
push dword [ebp + 0x10]
and byte [ebp - 0x20], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 1], al
lea eax, [ebp - 0x70]
push eax
call fcn.00408e70
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408536
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408745
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040938a
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 8]
call fcn.00408b9f
add esp, 0x40
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409f48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp + 0x14], 0xa
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0x14], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x409f62
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409f8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x40a0bf
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test ebx, ebx
jne 0x409fb5
test edi, edi
jne 0x40a0bf
mov esi, dword [ebp + 0x18]
mov eax, 0xc8
cmp esi, eax
jae 0x40a0bf
push eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00404396
add esp, 0xc
cmp edi, esi
jb 0x40a021
mov eax, ebx
lea ecx, [ebp - 0xcc]
sub eax, ecx
mov dword [ebp - 4], eax
xor edx, edx
test esi, esi
je 0x40a006
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x409ff1
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a0c9
add dword [ebp - 4], esi
sub edi, esi
add ebx, esi
mov dword [ebp + 0x14], edi
pop ecx
cmp edi, esi
jae 0x409fe8
mov al, byte [ebp + 0x1c]
xor byte [ebp + edi - 0xcc], al
xor byte [ebp + esi - 0xcd], 0x80
test edi, edi
je 0x40a053
lea eax, [ebp - 0xcc]
sub ebx, eax
xor edx, edx
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc edx
cmp edx, edi
jb 0x40a041
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a0c9
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ecx
cmp edi, esi
jb 0x40a097
test esi, esi
je 0x40a07f
push esi
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.00404371
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a0c9
mov eax, dword [ebp + 8]
add eax, esi
sub edi, esi
mov dword [ebp + 8], eax
jmp 0x40a065
test edi, edi
je 0x40a0ac
push edi
lea edx, [ebp - 0xcc]
push edx
push eax
call fcn.00404371
add esp, 0xc
xor al, al
lea edi, [ebp - 0xcc]
mov ecx, 0xc8
rep stosb byte es:[edi], al
xor eax, eax
jmp 0x40a0c2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fa3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 4
call fcn.0043663a
mov edx, eax
add esp, 4
test edx, edx
je 0x402704
mov ecx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x402706
xor edx, edx
mov dword [ebp + 8], edx
mov byte [ebp - 4], 1
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea edi, [esi + 4]
push edi
push 0
push edx
push 0x4042d0
push 0
push 0
call fcn.00442734
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x402782
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.0041ee80
int3