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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405655
pop dword [ebp - 8]
mov eax, 0x3b3f23f4
sub eax, 0x3afecd9f
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x4e9896d7
sub dword [ebp - 0x18], 0x46518c
mov dword [ebp - 0x14], 0x22700ea0
add dword [ebp - 0x14], 0xfc33da5
mov dword [ebp - 0x10], 0x14b969c6
add dword [ebp - 0x10], 0x3792da68
mov dword [ebp - 0xc], 0x7bccd489
sub dword [ebp - 0xc], 0x7bccd489
lea eax, [ebp - 0x18]
push eax
mov eax, 0x64fda876
sub eax, 0x64bd3732
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x4747ff5e
sub dword [ebp - 0x18], 0xd2d59608
mov dword [ebp - 0x14], 0x39e34179
sub dword [ebp - 0x14], 0xf876e004
mov dword [ebp - 0x10], 0x7a6541d9
add dword [ebp - 0x10], 0xe90a2a93
mov dword [ebp - 0xc], 0x3b04eff3
sub dword [ebp - 0xc], 0x3b04eff3
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xba4b3909
add eax, 0x45f53807
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x36c93
push 0
call eax
mov ecx, 0x4777
mov edi, eax
mov ebx, 0x769b32d4
add ebx, 0x89a82d2c
add ebx, dword [ebp - 8]
mov esi, 0x208f0598
xor dword [ebp - 4], 0x4ca05d23
mov edx, dword [ebx]
xor dword [ebp - 4], 0xb62ba019
add edx, esi
xor dword [ebp - 4], 0x439b2124
mov dword [edi], edx
sub dword [ebp - 4], 0x5aea6a5
add edi, 0x2d0317dd
add edi, 0xd2fce827
add ebx, 4
loop 0x40576b
add eax, 0x110af
xor ebx, ebx
add ebx, eax
add eax, 0x341cf399
sub eax, 0x341cf394
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x40c9dd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b558]
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.0040a033
mov dword [ebp - 0x14], eax
cmp dword [0x45ae98], esi
jne 0x40cad0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ca5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cbb0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cbb0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cbb0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45ae98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45ae9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45aea0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45aea8], eax
test eax, eax
je 0x40cacd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45aea4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40caf5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cae8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cb0a
push 4
pop eax
jmp 0x40cbb2
cmp dword [ebp - 0x14], esi
je 0x40cb0a
push dword [0x45ae98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40caef
mov eax, dword [0x45aea4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cb68
cmp dword [0x45aea8], edi
je 0x40cb68
push eax
call ebx
push dword [0x45aea8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cb68
test eax, eax
je 0x40cb68
call ecx
test eax, eax
je 0x40cb5d
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 0x40cb5d
test byte [ebp - 8], 1
jne 0x40cb68
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cb98
mov eax, dword [0x45ae9c]
cmp eax, edi
je 0x40cb95
push eax
call ebx
test eax, eax
je 0x40cb95
call eax
mov esi, eax
test esi, esi
je 0x40cb95
mov eax, dword [0x45aea0]
cmp eax, edi
je 0x40cb95
push eax
call ebx
test eax, eax
je 0x40cb95
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45ae98]
call ebx
test eax, eax
je 0x40cbb0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cbb2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044c0
mov esp, ebp
pop ebp
ret
Function at 0x70010be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x70010cd
pop dword [ebp - 0x44]
mov eax, 0x70010cd
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x5fcf06ec
sub dword [ebp - 0x54], 0x117cc1a1
mov dword [ebp - 0x50], 0x857e6cf9
add dword [ebp - 0x50], 0xacb4df4c
mov dword [ebp - 0x4c], 0xf1ff4077
add dword [ebp - 0x4c], 0x5a4d03b7
mov dword [ebp - 0x48], 0x240c7462
sub dword [ebp - 0x48], 0x240c7462
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xffb73263
add dword [ebp - 0x54], 0x74bb36f3
mov dword [ebp - 0x50], 0xfc5c56a4
sub dword [ebp - 0x50], 0xbaeff52f
mov dword [ebp - 0x4c], 0x464e9966
sub dword [ebp - 0x4c], 0xe2df2cfa
mov dword [ebp - 0x48], 0x402b60bb
sub dword [ebp - 0x48], 0x402b60bb
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xa696b589
add eax, 0x606a6a9f
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x404b3
push 0
call eax
mov ecx, 0x83199fac
add ecx, 0x7ce6bf1a
xor esi, esi
add esi, eax
mov edx, 0x5343e540
add edx, 0xb3bdfac0
add edx, dword [ebp - 0x44]
mov edi, 0x22683ee8
sub edi, 0xa9d86412
mov dword [ebp - 0x3c], 0x13bc989c
mov ebx, dword [edx]
sub dword [ebp - 0x38], 0xb95d5f51
xor ebx, edi
sub dword [ebp - 0x34], 0x86ef3251
mov dword [esi], ebx
sub dword [ebp - 0x38], edi
add esi, 0x2fe5edbb
sub esi, 0x2fe5edb7
add edx, 0x78e6f4e3
add edx, 0x87190b21
loop 0x70011e7
add eax, 0x16deb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x7002e77
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x701a85c]
jne 0x7002e81
repz ret
jmp fcn.0700f55f

Function at 0x700d408
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700d476
cmp byte [esi + 0x10], 0
je 0x700d427
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
pop ecx
mov byte [esi + 0x10], 0
push edi
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d464
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_feof]
pop ecx
test eax, eax
jne 0x700d464
push str.stream_read_error
push eax
call fcn.070010be
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700d478
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401c66
pop dword [ebp - 0x24]
mov eax, 0x3e9331b0
sub eax, 0x3e53154a
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x7fb4bc4d
sub dword [ebp - 0x34], 0x31627702
mov dword [ebp - 0x30], 0x96173bd7
sub dword [ebp - 0x30], 0x63e3ef92
mov dword [ebp - 0x2c], 0x56f58063
sub dword [ebp - 0x2c], 0xaa93c35
mov dword [ebp - 0x28], 0xbaa2f0a8
sub dword [ebp - 0x28], 0xbaa2f0a8
lea eax, [ebp - 0x34]
push eax
mov eax, 0x5314d06d
sub eax, 0x52d4a019
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xbbb0bbd0
add dword [ebp - 0x34], 0xb8c1ad86
mov dword [ebp - 0x30], 0x5061e3ae
add dword [ebp - 0x30], 0xf10a7dc7
mov dword [ebp - 0x2c], 0x6a94de71
sub dword [ebp - 0x2c], 0x7257205
mov dword [ebp - 0x28], 0xaa747926
add dword [ebp - 0x28], 0x558b86da
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3e7d2
push 0
call eax
mov ecx, 0xdd8ee71d
sub ecx, 0xdd8e7f15
mov edx, eax
mov esi, 0xa8bef885
add esi, 0x5781777b
add esi, dword [ebp - 0x24]
mov ebx, 0x4e961192
add dword [ebp - 0x1c], 0x2627b1df
mov edi, dword [esi]
add edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x20], ecx
add edx, 0x2e104705
sub edx, 0x2e104701
add esi, 4
loop 0x401d7d
add eax, 0x192f3
xor ebx, ebx
add ebx, eax
add eax, 0x1ce9f3db
sub eax, 0x1ce9f3d6
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x43cda1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43cdcf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43cded
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043cd0b
jmp 0x43cded
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43cded
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043cd0b
test edi, edi
mov eax, edi
jne 0x43cdd7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x566af4]
test ecx, ecx
je 0x43cea0
jmp 0x43cda0
ret 8

Function at 0x29a02312
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x29a02321
pop dword [ebp - 0x28]
mov eax, 0x29a02321
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xdd8bf0d3
add dword [ebp - 0x38], 0x70c65478
mov dword [ebp - 0x34], 0x4854af17
add dword [ebp - 0x34], 0xe9de9d2e
mov dword [ebp - 0x30], 0xe668b09d
sub dword [ebp - 0x30], 0x9a1c6c6f
mov dword [ebp - 0x2c], 0x66362c89
sub dword [ebp - 0x2c], 0x66362c89
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x32dade20
add dword [ebp - 0x38], 0x41978b36
mov dword [ebp - 0x34], 0xc7e8b81
add dword [ebp - 0x34], 0x34edd5f4
mov dword [ebp - 0x30], 0xb3db54d5
sub dword [ebp - 0x30], 0x506be869
mov dword [ebp - 0x2c], 0xfeb6ee05
sub dword [ebp - 0x2c], 0xfeb6ee05
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2ad83f62
sub eax, 0x136ff1e
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa6e
push 0
call eax
mov ecx, 0xa017c010
sub ecx, 0xa017770b
mov edi, eax
mov edx, 0x62eed30
add edx, 0x237332d0
add edx, dword [ebp - 0x28]
mov esi, 0x9a72b36d
sub esi, 0xebd58553
xor dword [ebp - 4], ebx
mov ebx, dword [edx]
sub dword [ebp - 0x1c], edx
xor ebx, esi
sub dword [ebp - 0xc], edi
mov dword [edi], ebx
mov dword [ebp - 0xc], 0x2a72cb60
add edi, 4
add edx, 4
loop 0x29a02439
add eax, 0x116e7
mov ebx, eax
add eax, 5
mov ecx, 0x26ba787f
add ecx, 0x2e58781
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x41b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x426138], 0
jne 0x41b1c1
cmp dword [0x426158], 0
jne 0x41b170
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x426158], eax
test eax, eax
jne 0x41b170
push str.GetEnvironmentStrings_failed
call fcn.0041a95c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x426158]
jmp 0x41b184
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b17c
lea edi, [ebp + 1]
push edi
call fcn.00414de8
pop ecx
mov ebx, eax
mov dword [0x42613c], ebx
test ebx, ebx
jne 0x41b1ae
xor eax, eax
jmp 0x41b284
push edi
mov edx, dword [0x426158]
push edx
push ebx
call fcn.00415394
add esp, 0xc
jmp 0x41b1e1
xor esi, esi
mov ebx, dword [0x426138]
jmp 0x41b1db
push eax
call fcn.004154e4
pop ecx
test eax, eax
jne 0x41b1d7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b1cb
lea ebx, [esi + 4]
push 4
mov dword [0x426140], ebx
inc ebx
push ebx
call fcn.004148c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41b204
xor eax, eax
jmp 0x41b284
cmp dword [0x426138], 0
jne 0x41b235
xor esi, esi
mov ebx, dword [0x42613c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41b226
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b21c
jmp 0x41b266
xor esi, esi
mov ebx, dword [0x426138]
mov eax, dword [esp]
mov edi, eax
jmp 0x41b260
push eax
call fcn.004154e4
pop ecx
test eax, eax
je 0x41b255
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41b259
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b244
mov eax, dword [0x426138]
test eax, eax
je 0x41b276
push eax
call fcn.00414df8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x426138], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x413330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x413352
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413359
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413348
mov eax, 1
add ebx, ebx
jne 0x41336b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413360
jne 0x41337c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413360
xor ecx, ecx
sub eax, 3
jb 0x413390
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413402
mov ebp, eax
add ebx, ebx
jne 0x41339b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4133a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4133cc
inc ecx
add ebx, ebx
jne 0x4133b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4133ad
jne 0x4133c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4133ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4133ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4133dd
jmp 0x41334e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4133ec
add edi, ecx
jmp 0x41334e
pop esi
mov edi, esi
mov ecx, 0x211
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41340a
cmp byte [edi], 1
jne 0x41340a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41340f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x413487
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x130f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41343c
mov ecx, edi
jns 0x41346b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x130f4]
or eax, eax
je 0x413481
mov dword [ebx], eax
add ebx, 4
jmp 0x413459
call dword [esi + 0x13104]
mov ebp, dword [esi + 0x130f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4134bb
sub esp, 0xffffff80
jmp 0x40b9da

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4022eb
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
push 0x20
lea ecx, [ebx + 0x44]
call fcn.00406ba1
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x64]
push 0xc
mov edx, edi
call fcn.00406ba1
mov ecx, 0x4011e0
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x78], eax
mov ecx, 0x4011e4
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x7c], eax
mov ecx, 0x4011e8
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x80], eax
mov ecx, 0x4011ec
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x84], eax
mov ecx, esi
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x88], eax
lea ecx, [esi + 4]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x8c], eax
lea ecx, [esi + 8]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x90], eax
lea ecx, [esi + 0xc]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x94], eax
lea ecx, [esi + 0x10]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x98], eax
lea ecx, [esi + 0x14]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0x9c], eax
lea ecx, [esi + 0x18]
call fcn.004022cc
mov ecx, ebx
mov dword [ecx + 0xa0], eax
lea ecx, [esi + 0x1c]
call fcn.004022cc
mov esi, ebx
mov ecx, edi
and dword [esi + 0xa8], 0
mov dword [esi + 0xa4], eax
call fcn.004022cc
lea ecx, [edi + 4]
mov dword [esi + 0xac], eax
call fcn.004022cc
lea ecx, [edi + 8]
mov dword [esi + 0xb0], eax
call fcn.004022cc
push 0xc
mov edx, edi
mov dword [esi + 0xb4], eax
lea ecx, [ebx + 0x64]
call fcn.00406ba1
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40272b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movaps xmm0, xmmword [0x401f10]
xor edx, edx
push ebx
movups xmmword [ebp - 0x22], xmm0
mov ebx, ecx
mov word [ebp - 2], 0x55
movaps xmm0, xmmword [0x401ae0]
mov eax, edx
push esi
push edi
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x21
jb 0x402756
mov esi, dword [ebp + 8]
mov edi, edx
mov byte [ebp - 1], dl
movzx ecx, byte [edi + ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc edi
mov ax, word [ebp + eax*2 - 0x22]
mov word [esi + edx*2], ax
lea edx, [edx + 2]
mov ax, word [ebp + ecx*2 - 0x22]
mov word [esi + edx*2 - 2], ax
cmp edi, 9
jl 0x402769
xor eax, eax
pop edi
mov word [esi + edx*2], ax
pop esi
pop ebx
leave
ret
Function at 0x403b12
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 5
jb 0x403b14
mov byte [ecx + 5], 0
mov eax, ecx
ret

Function at 0x403b25
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 9
jb 0x403b27
mov byte [ecx + 9], 0
mov eax, ecx
ret

Function at 0x403b38
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x17
jb 0x403b3a
mov byte [ecx + 0x17], 0
mov eax, ecx
ret
Function at 0x404e0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp + 0xc], 0xa
mov edi, ecx
neg ebx
sub edi, esi
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 + 0xc], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x404e23
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4053f4
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 8
mov esi, edx
mov edx, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 5]
lea ecx, [ebp - 0xcc]
and byte [ebp - 0x24], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.00404611
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x16c]
call fcn.00404e4e
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x11c]
call fcn.004050a6
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x7c]
call fcn.00404226
add esp, 0xc
lea edx, [ebp - 0x7c]
mov ecx, ebx
call fcn.00404937
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or esi, 0xffffffff
mov eax, edi
mov ebx, ecx
cdq
and edx, 3
add edx, eax
sar edx, 2
test edx, edx
jle 0x4054e4
movzx eax, byte [ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 3]
add ebx, 4
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
sub edx, 1
jne 0x405491
and edi, reloc.WS2_32.dll_closesocket
jns 0x4054f1
dec edi
or edi, 0xfffffffc
inc edi
xor ecx, ecx
test edi, edi
jle 0x40550f
movzx eax, byte [ecx + ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
inc ecx
cmp ecx, edi
jl 0x4054f7
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret