joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62a197
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x62a1b0
or eax, 0xffffffff
jmp 0x62a211
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x62a20d
push 0x3d
push esi
call fcn.0062a3d8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x62a20d
cmp esi, eax
je 0x62a20d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0xdb7dfc]
sete cl
cmp eax, dword [0xdb7e00]
mov dword [ebp - 8], ecx
jne 0x62a1f3
mov edi, eax
call fcn.0062a136
mov dword [0xdb7dfc], eax
cmp eax, ebx
jne 0x62a24c
cmp dword [ebp + 0xc], ebx
je 0x62a215
cmp dword [0xdb7e04], ebx
je 0x62a215
call fcn.006298c0
test eax, eax
je 0x62a24c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x62a21e
xor eax, eax
jmp 0x62a210
push 4
call fcn.00617cbf
cmp eax, ebx
pop ecx
mov dword [0xdb7dfc], eax
je 0x62a20d
mov dword [eax], ebx
cmp dword [0xdb7e04], ebx
jne 0x62a24c
push 4
call fcn.00617cbf
cmp eax, ebx
pop ecx
mov dword [0xdb7e04], eax
je 0x62a20d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0xdb7dfc]
call fcn.0062a0e9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x62a2ad
cmp dword [esi], ebx
je 0x62a2ad
lea esi, [esi + edi*4]
push dword [esi]
call fcn.006176f6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x62a290
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x62a2ee
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x62a287
mov eax, edi
shl eax, 2
push eax
push dword [0xdb7dfc]
call fcn.006171e8
cmp eax, ebx
pop ecx
pop ecx
je 0x62a2ee
jmp 0x62a2e9
cmp dword [ebp - 8], ebx
jne 0x62a359
cmp edi, ebx
jge 0x62a2bc
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0xdb7dfc]
call fcn.006171e8
cmp eax, ebx
pop ecx
pop ecx
je 0x62a20d
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0xdb7dfc], eax
cmp dword [ebp + 0xc], ebx
je 0x62a343
push dword [ebp - 4]
call fcn.0061a920
inc eax
inc eax
push eax
call fcn.00617cbf
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x62a343
push dword [ebp - 4]
push esi
call fcn.0061aa40
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x62a33c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.006176f6
pop ecx
cmp dword [ebp - 8], ebx
je 0x62a351
push dword [ebp - 4]
call fcn.006176f6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x62a210
push dword [ebp - 4]
call fcn.006176f6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x62a21a
Function at 0x63c540
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x64c8ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
xor ecx, ecx
xor edx, edx
lea ebp, [esi + 0xac]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
xor edi, edi
mov dword [ebp + 8], edi
lea ebp, [esi + 0xc4]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edi
or eax, 0xffffffff
lea ebp, [esi + 0xb8]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [ebp + 8], edi
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov eax, dword [0xb1a128]
lea edx, [esi + 0x48]
push edx
push 2
mov dword [esi + 0x120], eax
mov ecx, dword [eax]
push eax
mov byte [esp + 0x28], 2
call dword [ecx + 0x98]
sub esp, 0xc
xor eax, eax
xor ecx, ecx
mov ebp, esp
mov dword [ebp], eax
mov dword [ebp + 4], ecx
sub esp, 0xc
xor edx, edx
mov dword [ebp + 8], edx
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push ebx
mov ecx, esi
call fcn.0063c140
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x1b0], ebx
mov byte [esi + 0x1b4], bl
mov byte [esi + 0x1d0], bl
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x63d510
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x63d5b1
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x63d55f
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x69e288]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x63d541
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x63d58c
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x69e288]
shl eax, 8
xor eax, ebp
inc edx
cmp edx, esi
jl 0x63d570
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret

Function at 0x15b27b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x15c703c], 0x8088405
inc edx
mov dword [0x15c703c], edx
mul edx
mov eax, edx
ret

Function at 0x15b93ac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
mov al, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x15b93c4
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ecx, ecx
mov cl, dl
add esi, ecx
xor ecx, ecx
mov cl, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
mov cl, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x15b93ea
mov edx, dword [esp]
mov eax, dword [esp]
add eax, 0x100
mov ecx, pe_nt_image_headers32
call fcn.015b5250
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x15b9444
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x15b94d5
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x15b946a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x15bbad4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
mov eax, ebx
shl eax, 3
mov edx, eax
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x54]
jae 0x15bbb1d
inc dword [ebp - 0x58]
add dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
cmp ebx, 0x40
jb 0x15bbb45
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.015bbbe4
add esi, 0x40
sub ebx, 0x40
cmp ebx, 0x40
jae 0x15bbb30
test ebx, ebx
jbe 0x15bbb5a
mov edi, ebx
lea eax, [ebp - 0xa8]
mov ecx, edi
mov edx, esi
call fcn.015b5250
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.015b5250
mov byte [ebp + edi - 0x50], 0x80
lea eax, [edi + 1]
cmp eax, 0x38
jbe 0x15bbba3
mov edx, 0x40
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.015b5264
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.015bbbe4
xor eax, eax
mov edx, 0x38
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.015b5264
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.015bbbe4
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x15c109c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x15c11ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.015b35f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.015c1024
mov edx, dword [ebp - 0xc]
mov eax, 0x15c1208
call fcn.015b38dc
test eax, eax
je 0x15c10ef
mov byte [0x15c7a8c], 1
cmp byte [0x15c7a8c], 0
je 0x15c11d2
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.015b35f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.015c1024
mov edx, dword [ebp - 0xc]
mov eax, 0x15c121c
call fcn.015b38dc
test eax, eax
jne 0x15c11d2
mov edx, 0x15c1228
mov ecx, 4
mov eax, ebx
call fcn.015c0ed0
test eax, eax
jne 0x15c1147
mov edx, ebx
add edx, 4
mov eax, ebx
call fcn.015c0ea8
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push ebx
call fcn.015b5138
mov ebx, eax
cmp ebx, 0xffffffff
je 0x15c11d2
push 0
push 0
push 0
push 2
push 0
push ebx
call fcn.015b5140
mov esi, eax
push ebx
call fcn.015b5128
test esi, esi
je 0x15c11d2
push 0
push 0
push 0
push 4
push esi
call fcn.015b5208
mov ebx, eax
test ebx, ebx
je 0x15c11d2
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x15c11d2
mov eax, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x15c11d2
mov edi, eax
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.015c0ef8
test al, al
je 0x15c11c6
mov byte [ebp - 1], 1
push ebx
call fcn.015b5218
push esi
call fcn.015b5128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x15c11f4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.015b3464
ret

Function at 0x15c12dc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ebp

Function at 0x15c2268
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x15c2279
mov al, 1
ret
Function at 0x15cc651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x15cc66e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15cc65f
add dl, dl
jne 0x15cc679
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15cc6c5
xor eax, eax
add dl, dl
jne 0x15cc686
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15cc762
add dl, dl
jne 0x15cc695
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15cc6a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15cc6ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15cc6b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15cc6c0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x15cc665
mov eax, 1
add dl, dl
jne 0x15cc6d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15cc6de
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15cc6ca
sub eax, 2
jne 0x15cc70d
mov ecx, 1
add dl, dl
jne 0x15cc6f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15cc6fe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15cc6ea
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15cc665
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15cc724
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15cc72f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15cc71b
cmp eax, 0x7d00
jae 0x15cc752
cmp eax, 0x500
jb 0x15cc74d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15cc665
cmp eax, 0x7f
ja 0x15cc755
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15cc665
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x15cc77e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15cc665
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x402060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x11bcec]
add byte [ebx - 0x3f7af7bb], cl
cwde
adc ch, al
or byte [ebp - 0x17ed6740], al
mov ecx, dword [ecx]
add byte [ebx - 0x70bef460], ah
mov dword [eax - 0x5c], ebx
or eax, dword [ecx + 0x56]
jmp 0x40208d
push ebx
mov ecx, dword [esi + 0x4118c0]
push esi
push edi
xchg ebp, eax
cmp eax, 0x4146c4
sub eax, ebx
sbb eax, edi
mov dword [ebx - 0x234c6f28], esp
out dx, eax
xor eax, 0xd640c164
fild qword [ebp - 0x28]
ja 0x40208e
fild word [eax]
fmul qword [0x40c238]
pop edx
pop ebp
mov ah, 0xff
salc
push 0x4113bb
push str.Server_Software:_________s_n
call eax
mov eax, dword [0x415300]
push eax
push 0xf740df7c
adc edx, esi
xor ebp, dword [ebp]
mov ecx, dword [0x413bf4]
push ecx
push 0x2140ad5c
pop ebx
salc
loop 0x40206b
aam 0xaa
add bh, bh
salc
mov edx, dword [0x4417e4]
push edx
push 0x7379df40
adc al, 0xd6
jmp 0x81238f
Function at 0x408c70
Capabilities:
Set socket configuration

Disassembly:
add byte [eax], al
call dword [0x4037b4]
cmp eax, 0xffffffff
jne 0x408c61
push esi
mov esi, dword [0x40c145]
xor esi, edx
test eax, eax
jne 0x408c55
pop esi
mov esp, esp
pop ebp
outsd dx, dword [esi]
call esi
add eax, 0x88fc80
pop esi
mov esp, ebp
sub ebx, eax
xor eax, eax
add dl, byte [edx - 0x6f6f3ca3]
nop
or dword [eax - 0x6f6f6f70], edx
push ebp
mov ebp, esp
push ebx
out 0x5d, al
or al, 0x56
mov esi, dword [ebp + 8]
push edi
mov edx, dword [edi - 7]
mov eax, ebx
mov ecx, 0x6e2975ab
and byte ss:[ebx - 0x37f4dbba], cl
je 0x408e41
cmp dl, byte [esi + 4]
push edx
call fcn.00408c36
scasb al, byte es:[edi]
les eax, [eax*4 - 0x97bf040]
add byte [eax], al
add byte [edi + 0x5e], bl
pop ebx
pop ebp
ret 0x8f
add byte [eax - 0x156f70], dl
mov ebp, esp
aam 0x8b
inc ebp
xchg dword [edi], edi
add eax, dword [eax]
xchg edi, eax
xor edi, eax
mov dl, byte [ecx - 0x20bf6e8f]
mov cl, 0x24
xchg ebp, eax
clc
pop ds
inc eax
loop 0x408e30
jne 0x408df8
xor edx, edx
mov ecx, dword [esi + 0x38]
inc eax
out 2, al
or byte [eax - 0x3d6bf0fe], 0x3b
push ds
je 0x408dab
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x3e]
push 0xffffffffffffff82
push eax
push 0xffffffffffffff92
push 0x2ff91
xchg ecx, eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jp 0x409065
mov eax, dword [ebp + 0x10]
test dword [edx - 0x75], eax
pop edi
cmp byte [esi + ecx + 0xc], dh
add bl, byte [edi + 0x46]
cmp byte [ebx], dh
rcr byte [esi - 0x75], 0xe5
pop ebp
ret 0xc
pop esi
mov esp, ebp
xchg dword [esi + 0x751700f9], edi
or byte [ebx], ch
jecxz 0x408dd9
push esi
into
and dword [ebx], 4
xor byte [eax - 0x3e6bf0fc], 0x3b
inc eax
mov ah, byte [ecx - 0x45]
inc esi
add al, 0x26
push ebp
cld
or byte [edx + edx*2], al
push 0xffffffffffffffc2
push 0x407edaff
insb byte es:[edi], dx
call [edi - 0x48]
shr eax, 0x4c
cmp eax, 0xffffffb9
je 0x5e409065
mov eax, dword [ebp + 0x10]
test eax, eax
xlatb
inc esi
wait
test dword [esi], ecx
or al, 4
mov dword [esi + 0x4b], eax
xor eax, eax
pop esi
into
in eax, 0x5d
ret 0xc
mov ebx, eax
fadd st(1)
inc eax
add bh, bh
salc
or eax, eax
jne 0x409078
pop esi
mov esp, ebp
pop ebp
leave
or al, 0
call esi
add eax, 0xafc80
pop esi
mov esp, ebp
cmpsd dword [esi], dword es:[edi]
ret 0xe7da
Function at 0x403a20
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0xaebd08]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403bf0
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.0046b960
jmp fcn.00403a20
Function at 0x40d780
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0xaebd08]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d94b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40d7a9
mov eax, 0x7000000
jmp 0x40d7b1
test eax, eax
je 0x40d926
mov dword [esp + 0x34], eax
mov ecx, dword [0xaebd08]
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.0046cd10
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, [0xa6e620]
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 0x40d93e
cmp edx, 0x21
jae 0x40d932
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.004645f0
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.004646c0
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 [0x846f08]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x846f60]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40d901
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x846f98]
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.0046cdf0
mov eax, edx
mov ecx, 0x21
call fcn.0046cec0
nop
call fcn.0046b960
jmp fcn.0040d780