joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf180
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x568910]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x19c]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4cf1e2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.004b48c0
add esp, 8
cmp edi, 0xffffffff
jne 0x4cf206
push str.Error_accept__ing_server_connect
push ebx
call fcn.004b3f10
add esp, 8
mov eax, 0x1e
jmp 0x4cf25e
push str.Connection_accepted_from_server_n
push ebx
call fcn.004b4030
push 1
mov byte [esi + 0x388], 0
push edi
mov dword [esi + 0x19c], edi
call fcn.004d5b10
mov byte [esi + 0x1a9], 1
add esp, 0x10
mov eax, dword [ebx + 0x1b8]
test eax, eax
je 0x4cf25c
push 1
push edi
push dword [ebx + 0x1bc]
call eax
add esp, 0xc
test eax, eax
je 0x4cf25c
push esi
call fcn.004cf710
add esp, 4
mov eax, 0x2a
jmp 0x4cf25e
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0876
add esp, 0x88
ret

Function at 0x4d17e0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [esp + 0x10]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x4d181a
push str.Couldnt_set_desired_mode
push ebx
call fcn.004b3f10
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x4d1831
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004b4030
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x4d1849
push edi
call fcn.004d1560
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x4d185d
push edi
call fcn.004d05d0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x4d1875
push 0xd
push 1
push edi
call fcn.004d10d0
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x4d1889
push 0xe
push 1
push edi
call fcn.004d10d0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4d3300
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x568910]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ee762
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4d3365
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4d3365
lea eax, [esp]
push eax
call dword [0x56830c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e0876
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004e0876
add esp, 0x108
ret
Function at 0x4d6a00
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4d6a2b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4d6a1a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4d6a60
cmp dword [esi + 8], 0
jne 0x4d6a4e
push 0x5306d4
push dword [eax + 8]
call fcn.004ece4d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4d6a4e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004ea64d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d6a82
mov eax, dword [esi + 8]
test eax, eax
je 0x4d6a7c
push eax
call fcn.004e8d83
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4da120
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4da130
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x568300]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4da157
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4da170
lea ecx, [ecx]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4da160
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4da1ea
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4da1de
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x568304]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4da210
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x568910]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4da2b5
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004da320
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004dd6f0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4da2c8
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e0876
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004e0876
add esp, 0x24
ret
Function at 0x4dee00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x568300]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4dee27
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4dee6f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4dee73
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4deed3
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x4dee94
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4def07
jmp 0x4deee0
mov eax, dword [esi + 4]
push 1
push 0x538f5e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x538f5f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4deee0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4e620e
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 0x50d527
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x568910]
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.004f01d0
mov dword [ebp - 0x14], eax
cmp dword [0x572bb4], esi
jne 0x50d61a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x50d5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x50d6fa
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x50d6fa
push 0x543cc8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50d6fa
push eax
call ebx
push 0x543cd4
push edi
mov dword [0x572bb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x572bb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x572bbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x572bc4], eax
test eax, eax
je 0x50d617
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x572bc0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x50d63f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50d632
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x50d654
push 4
pop eax
jmp 0x50d6fc
cmp dword [ebp - 0x14], esi
je 0x50d654
push dword [0x572bb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x50d639
mov eax, dword [0x572bc0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x50d6b2
cmp dword [0x572bc4], edi
je 0x50d6b2
push eax
call ebx
push dword [0x572bc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x50d6b2
test eax, eax
je 0x50d6b2
call ecx
test eax, eax
je 0x50d6a7
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 0x50d6a7
test byte [ebp - 8], 1
jne 0x50d6b2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x50d6e2
mov eax, dword [0x572bb8]
cmp eax, edi
je 0x50d6df
push eax
call ebx
test eax, eax
je 0x50d6df
call eax
mov esi, eax
test esi, esi
je 0x50d6df
mov eax, dword [0x572bbc]
cmp eax, edi
je 0x50d6df
push eax
call ebx
test eax, eax
je 0x50d6df
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x572bb4]
call ebx
test eax, eax
je 0x50d6fa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x50d6fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e0876
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e004]
jne 0x401010
repz ret
jmp fcn.00401753

Function at 0x409a9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004047c6
and dword [ebp - 4], 0
cmp dword [0x4308c0], 0
mov ebx, eax
jne 0x409b4c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409bfd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409bfd
push eax
call fcn.00404754
mov dword [esp], 0x42ba64
push edi
mov dword [0x4308c0], eax
call esi
push eax
call fcn.00404754
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4308c4], eax
call esi
push eax
call fcn.00404754
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4308c8], eax
call esi
push eax
call fcn.00404754
pop ecx
mov dword [0x4308d0], eax
test eax, eax
je 0x409b4c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404754
pop ecx
mov dword [0x4308cc], eax
mov eax, dword [0x4308cc]
cmp eax, ebx
je 0x409ba4
cmp dword [0x4308d0], ebx
je 0x409ba4
push eax
call fcn.004047cf
push dword [0x4308d0]
mov esi, eax
call fcn.004047cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409ba4
test edi, edi
je 0x409ba4
call esi
test eax, eax
je 0x409b9b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409b9b
test byte [ebp - 0xc], 1
jne 0x409ba4
or dword [ebp + 0x10], 0x200000
jmp 0x409bdd
mov eax, dword [0x4308c4]
cmp eax, ebx
je 0x409bdd
push eax
call fcn.004047cf
pop ecx
test eax, eax
je 0x409bdd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409bdd
mov eax, dword [0x4308c8]
cmp eax, ebx
je 0x409bdd
push eax
call fcn.004047cf
pop ecx
test eax, eax
je 0x409bdd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4308c0]
call fcn.004047cf
pop ecx
test eax, eax
je 0x409bfd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409bff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424f61
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], 0x19f
mov dword [ebp - 0x408], eax
jne 0x424f91
push edi
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
xor ebx, ebx
cmp dword [ebp + 0xc], edi
jle 0x425003
push esi
lea esi, [ebp - 0x40c]
mov dword [ebp - 0x40c], edi
call fcn.00424f56
mov eax, dword [ebp - 0x408]
mov cl, byte [ebp - 0x40c]
add eax, ebx
xor byte [eax], cl
cmp dword [ebp + 0xc], 0xf
jne 0x424ffc
push edi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.Cogi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push str.Rodohuvoboco_jalajo_sezafowebazobe_dolarocuviveg
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x424f99
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
pop ebx
jne 0x42501c
or dword [0x43e844], 0xffffffff
mov dword [0x43e840], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
leave
ret
Function at 0x10ddd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10ddd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ddd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ddd06a
add dl, dl
jne 0x10ddd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ddd0dc
xor eax, eax
add dl, dl
jne 0x10ddd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ddd17d
add dl, dl
jne 0x10ddd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ddd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ddd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ddd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ddd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ddd075
mov eax, 1
add dl, dl
jne 0x10ddd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ddd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ddd0e1
sub eax, ebx
mov ebx, 1
jne 0x10ddd128
mov ecx, 1
add dl, dl
jne 0x10ddd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ddd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ddd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ddd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ddd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ddd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ddd136
cmp eax, 0x7d00
jae 0x10ddd16d
cmp eax, 0x500
jb 0x10ddd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ddd075
cmp eax, 0x7f
ja 0x10ddd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ddd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ddd19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ddd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4034a0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x6816e0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403670
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00467f80
jmp fcn.004034a0
Function at 0x40cff0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x6816e0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d1bb
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40d019
mov eax, 0x7000000
jmp 0x40d021
test eax, eax
je 0x40d196
mov dword [esp + 0x34], eax
mov ecx, dword [0x6816e0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a4]
mov ebx, dword [ecx + 0x4a8]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x4a4], ebx
mov dword [ecx + 0x4a8], ebp
mov dword [esp], edx
call fcn.00469330
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x636180]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40d1ae
cmp edx, 0x21
jae 0x40d1a2
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00462500
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004625d0
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x590410]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x590480]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40d171
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x5904c8]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.00469410
mov eax, edx
mov ecx, 0x21
call fcn.004694d0
nop
call fcn.00467f80
jmp fcn.0040cff0