joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x42967c
lea ecx, [esi + 0xd4]
mov eax, dword [esi + 0xd4]
push eax
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.004ddc80
push dword [esi + 0xd4]
call fcn.00534995
mov edi, dword [esi + 0xc8]
add esp, 4
test edi, edi
je 0x4d77f3
push ebx
mov ebx, dword [esi + 0xcc]
cmp edi, ebx
je 0x4d77c6
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax]
add edi, 0x1c
cmp edi, ebx
jne 0x4d77b7
push dword [esi + 0xc8]
call fcn.00534995
add esp, 4
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
pop ebx
mov eax, dword [esi + 0xc0]
lea ecx, [esi + 0xc0]
push eax
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.004dd8d0
push dword [esi + 0xc0]
call fcn.00534995
add esp, 4
mov dword [esi + 0xa4], 0x41f328
cmp dword [esi + 0xbc], 0x10
jb 0x4d783b
push dword [esi + 0xa8]
call fcn.00534995
add esp, 4
mov dword [esi + 0xbc], 0xf
mov dword [esi + 0xb8], 0
mov byte [esi + 0xa8], 0
mov dword [esi + 0x88], 0x41f328
cmp dword [esi + 0xa0], 0x10
jb 0x4d7877
push dword [esi + 0x8c]
call fcn.00534995
add esp, 4
mov dword [esi + 0xa0], 0xf
mov ecx, esi
mov dword [esi + 0x9c], 0
pop edi
mov byte [esi + 0x8c], 0
pop esi
add esp, 4
jmp fcn.004ba430
Function at 0x4ded90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x563ec8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov al, byte [esp + 0x24]
mov byte [esi + 0x10], al
mov al, byte [esp + 0x28]
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esi], 0x4297a0
test eax, eax
je 0x4dedf6
add eax, 4
jmp 0x4dedf8
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004420d0
mov dword [esi + 0x14], 0x41f328
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x18

Function at 0x4e0d20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x18]
xor cl, cl
mov eax, edi
mov bh, 1
mov dword [esp + 8], eax
test edi, edi
je 0x4e0d7a
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
nop
movzx edx, bh
lea esi, [esi + 1]
inc bh
mov bl, byte [edx + ebp]
add cl, bl
mov byte [esp + 0x20], cl
movzx ecx, cl
mov al, byte [ecx + ebp]
mov byte [edx + ebp], al
mov byte [ecx + ebp], bl
movzx ecx, byte [edx + ebp]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + ebp]
xor byte [esi - 1], cl
mov cl, byte [esp + 0x20]
dec edi
jne 0x4e0d40
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x4e8d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5650e9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
mov dword [esp + 0xc], esi
mov dword [esi], 0x41f328
mov eax, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], 0
mov byte [esi + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esi + 0x34], 0x41f328
lea eax, [esi + 0x70]
mov byte [esp + 0x3c], 1
lea edi, [esi + 0x50]
mov dword [edi], 0
push eax
call fcn.00491470
mov word [esi + 0x74], 0
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov eax, dword [esp + 0x44]
mov edx, 2
mov ecx, eax
mov dword [esi + 0x84], 0xffffffff
and ecx, 0x1000
mov dword [esi + 0x2c], 0
mov ecx, 0x12
mov byte [esp + 0x3c], 2
cmovne edx, ecx
xorps xmm0, xmm0
and eax, 3
movdqu xmmword [edi], xmm0
movdqu xmmword [edi + 0x10], xmm0
dec eax
je 0x4e8e31
dec eax
je 0x4e8e1a
lea ecx, [esi + 0x34]
dec eax
je 0x4e8e03
push 0x41f174
call fcn.004979a0
jmp 0x4e8e85
mov dword [esp + 0x18], 0x429a64
mov dword [esp + 0x1c], 0x583648
push 0x429a98
jmp 0x4e8e49
mov dword [esp + 0x18], 0x429a30
mov dword [esp + 0x1c], 0x583618
push 0x429a58
jmp 0x4e8e46
mov dword [esp + 0x18], 0x4299f8
mov dword [esp + 0x1c], 0x583608
push 0x429a24
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x18], edx
call fcn.004979a0
movdqu xmm0, xmmword [esp + 0x14]
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esp + 0x24]
movdqu xmmword [edi + 0x10], xmm0
push 0xb4
call fcn.00534944
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x3c], 3
test eax, eax
je 0x4e8ebb
push 0xb4
push 0
push eax
call fcn.00535f30
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.004e1df0
jmp 0x4e8ebd
xor eax, eax
push 0x41f174
mov ecx, esi
mov byte [esp + 0x40], 2
mov dword [esi + 0x2c], eax
call fcn.004979a0
xor eax, eax
mov dword [esi + 0x24], 0
mov word [esi + 0x1c], ax
mov eax, esi
mov dword [esi + 0x20], 0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 4
Function at 0x4ed250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x429b38
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4ed29c
cmp dword [esi + 0x34], 0
je 0x4ed29c
push eax
call fcn.00534ada
add esp, 4
mov eax, dword [esi + 0x38]
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
test eax, eax
je 0x4ed2c0
cmp dword [esi + 0x30], 0
je 0x4ed2c0
push eax
call fcn.00534ada
add esp, 4
mov ecx, esi
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004eb970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4f0c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5657e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xorps xmm0, xmm0
movdqu xmmword [esi + 4], xmm0
movdqu xmmword [esi + 0x14], xmm0
mov dword [esi], 0x429d28
mov dword [esi + 0x24], 0
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.004a28e0
mov byte [esi + 0x34], 1
mov eax, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x40], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4f41c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x565c68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push dword [esp + 0x30]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov dword [esp + 0x1c], 0
mov byte [ebx], 0
call fcn.004420d0
mov esi, dword [esp + 0x2c]
lea ecx, [ebx + 0x18]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [esp + 0x1c], 0
push dword [esi + 4]
push dword [esi]
call fcn.004f7e80
mov ecx, dword [esi + 8]
mov eax, ebx
mov dword [ebx + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4f53c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x30
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
xorps xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
push esi
mov esi, dword [esp + 0x38]
cmp dword [eax + 0x14], 0x10
mov dword [esp + 8], 0
movdqu xmmword [esp + 0x20], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], 0
jb 0x4f540e
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [0x57e388]
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
jne 0x4f5445
mov byte [esp + 4], al
mov ecx, esi
push dword [esp + 4]
push dword [esp + 0x10]
call fcn.004f40e0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00535482
add esp, 0x30
ret
Function at 0x4f9f70
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x144]
movdqu xmm0, xmmword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
mov dword [esp + 0x28], eax
mov edi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
movdqu xmmword [esp + 0x14], xmm0
mov eax, dword [edi + 0x14]
xor esi, esi
movq xmm0, qword [esp + 0x14c]
push 0x8004667e
push eax
movq qword [esp + 0x2c], xmm0
call dword [0x57e35c]
push 0x1c
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x14]
push eax
call dword [0x57e360]
cmp eax, 0xffffffff
jne 0x4fa051
call dword [0x57e33c]
cmp eax, 0x2733
jne 0x4fa036
push 0x104
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00535f30
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push ebp
push esi
push eax
mov eax, dword [edi + 0x14]
push esi
inc eax
push eax
call dword [0x57e350]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fa03b
or esi, 0xffffffff
jmp 0x4fa051
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x14]
push eax
call fcn.00555478
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x18], 0
call dword [0x57e35c]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00535482
add esp, 0x128
ret 0x20

Function at 0x4fab00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x566274
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x58d474]
test eax, eax
jne 0x4fabc2
push 4
call fcn.00534944
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
test esi, esi
je 0x4fab96
mov dword [esi], ebx
lea ecx, [esp + 0x18]
push 9
push 0x42a054
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004422b0
mov dword [esp + 0x14], 0x41f328
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 1
mov ebx, 1
mov ecx, esi
push eax
mov dword [esp + 0x10], ebx
call fcn.004fc310
jmp 0x4fab98
xor eax, eax
mov dword [0x58d474], eax
test bl, 1
je 0x4fabc2
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x41f328
jb 0x4fabc2
push dword [esp + 0x18]
call fcn.00534995
mov eax, dword [0x58d474]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x4fbb60
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp edx, 0xffffffff
jae 0x4fbcb1
mov eax, dword [esp + 0x14]
cmp edx, 4
jb 0x4fbcb1
push ebx
push edi
mov cl, byte [eax]
test cl, cl
je 0x4fbcaf
movsx ecx, cl
cmp ecx, 0x80
jae 0x4fbcaf
movsx ecx, byte [ecx + 0x42a0c0]
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x4fbcaf
movsx ecx, byte [eax + 1]
cmp ecx, 0x80
jae 0x4fbcaf
movsx ecx, byte [ecx + 0x42a0c0]
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
je 0x4fbcaf
mov bl, byte [eax + 2]
cmp bl, 0x3d
je 0x4fbbf9
movsx edi, bl
cmp edi, 0x80
jae 0x4fbcaf
cmp byte [edi + 0x42a0c0], 0xff
je 0x4fbcaf
mov bh, byte [eax + 3]
sub edx, 4
add eax, 4
mov byte [esp + 0x20], bh
cmp bh, 0x3d
je 0x4fbc27
movsx edi, bh
cmp edi, 0x80
jae 0x4fbcaf
cmp byte [edi + 0x42a0c0], 0xff
je 0x4fbcaf
shl byte [esp + 0xc], 2
sar ecx, 4
and cl, 3
or cl, byte [esp + 0xc]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x4fbca6
movsx edi, bl
cmp edi, 0x80
jae 0x4fbc52
movsx ecx, byte [edi + 0x42a0c0]
jmp 0x4fbc55
or ecx, 0xffffffff
mov ebx, dword [esp + 0x10]
sar ecx, 2
shl bl, 4
and cl, 0xf
or cl, bl
mov bl, byte [esp + 0x20]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x4fbca6
cmp edi, 0x80
jae 0x4fbc81
movsx ecx, byte [edi + 0x42a0c0]
jmp 0x4fbc84
or ecx, 0xffffffff
movsx edi, bl
cmp edi, 0x80
jae 0x4fbc98
movsx ebx, byte [edi + 0x42a0c0]
jmp 0x4fbc9b
or ebx, 0xffffffff
shl cl, 6
and bl, 0x3f
or cl, bl
mov byte [esi], cl
inc esi
cmp edx, 4
jae 0x4fbb84
pop edi
pop ebx
sub esi, dword [esp + 0x10]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4fbcc0
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov eax, 0xaaaaaaab
push ebp
lea ecx, [ebx + 2]
mul ecx
mov ebp, edx
shr ebp, 1
shl ebp, 2
mov dword [esp + 0x18], ebp
cmp ebp, 0xbffffffd
ja 0x4fbe04
cmp ebx, 0xfffffffd
jae 0x4fbe04
cmp dword [esp + 0x10], ebp
jb 0x4fbe04
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
cmp ebx, 3
jb 0x4fbd89
mov eax, 0xaaaaaaab
mul ebx
mov ebp, edx
shr ebp, 1
lea edi, [ebp*4]
lea ecx, [ecx]
movzx eax, byte [esi]
sub ebx, 3
shr eax, 2
movzx eax, byte [eax + 0x42a078]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x42a078]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x42a078]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x42a078]
mov byte [ecx + 3], al
add ecx, 4
dec ebp
jne 0x4fbd20
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x4fbdf1
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x42a078]
mov byte [ecx], al
cmp ebx, 1
jne 0x4fbdb8
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x42a078]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x4fbde6
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x42a078]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + 0x42a078]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
mov byte [ecx], 0x3d
inc ecx
inc edi
lea eax, [ebp + 1]
cmp dword [esp + 0x18], eax
mov eax, edi
jb 0x4fbdff
mov byte [ecx], 0
pop edi
pop esi
pop ebp
pop ebx
ret
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4fc860
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x154
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, ecx
mov edx, 0x40
push ebx
push ebp
push esi
movdqu xmm0, xmmword [eax + 0x1c]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 0xc]
movdqu xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x14], ecx
movdqu xmm0, xmmword [eax + 0x2c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
movdqu xmmword [esp + 0x2c], xmm0
push edi
movdqu xmm0, xmmword [eax + 0x3c]
mov edi, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
movdqu xmmword [esp + 0x40], xmm0
mov dword [esp + 0x1c], eax
movdqu xmm0, xmmword [eax + 0x4c]
movdqu xmmword [esp + 0x50], xmm0
lea ecx, [ecx]
mov eax, dword [ecx + 0x2c]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x14]
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x34], eax
dec edx
jne 0x4fc8d0
mov edx, dword [esp + 0x14]
xor esi, esi
lea ecx, [ecx]
mov eax, ebx
mov ecx, edx
xor eax, edi
rol ecx, 5
and eax, ebp
xor eax, ebx
add ecx, eax
mov eax, dword [esp + 0x10]
add ecx, dword [esp + esi*4 + 0x20]
add eax, 0x5a827999
add eax, ecx
inc esi
mov ecx, ebx
mov ebx, edi
mov edi, ebp
mov dword [esp + 0x10], ecx
ror edi, 2
mov ebp, edx
mov edx, eax
cmp esi, 0x14
jl 0x4fc8f0
mov dword [esp + 0x14], edx
cmp esi, 0x28
jge 0x4fc966
mov edi, edi
mov ecx, ebx
rol eax, 5
xor ecx, edi
xor ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x10]
add eax, dword [esp + esi*4 + 0x20]
add ecx, 0x6ed9eba1
add eax, ecx
inc esi
mov ecx, ebx
mov ebx, edi
mov edi, ebp
mov dword [esp + 0x10], ecx
ror edi, 2
mov ebp, edx
mov edx, eax
cmp esi, 0x28
jl 0x4fc930
mov dword [esp + 0x14], eax
cmp esi, 0x3c
jge 0x4fc9ac
jmp 0x4fc970
mov edx, edi
rol eax, 5
add eax, dword [esp + 0x10]
or edx, ebp
and edx, ebx
mov ecx, edi
and ecx, ebp
or edx, ecx
mov ecx, ebx
add edx, 0x8f1bbcdc
mov dword [esp + 0x10], ecx
add edx, dword [esp + esi*4 + 0x20]
mov ebx, edi
add eax, edx
mov edi, ebp
mov ebp, dword [esp + 0x14]
inc esi
ror edi, 2
mov edx, eax
mov dword [esp + 0x14], edx
cmp esi, 0x3c
jl 0x4fc970
cmp esi, 0x50
jge 0x4fc9e1
mov ecx, ebx
rol eax, 5
add eax, dword [esp + 0x10]
xor ecx, edi
xor ecx, ebp
add ecx, 0xca62c1d6
add ecx, dword [esp + esi*4 + 0x20]
inc esi
add eax, ecx
mov ecx, ebx
mov ebx, edi
mov dword [esp + 0x10], ecx
mov edi, ebp
mov ebp, edx
ror edi, 2
mov edx, eax
cmp esi, 0x50
jl 0x4fc9b1
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add dword [edx + 8], edi
add dword [edx + 4], ebp
add dword [edx + 0x10], ecx
add dword [edx + 0xc], ebx
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [edx], eax
call fcn.00535482
add esp, 0x154
ret

Function at 0x4fca10
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x5c], 0
ret
Function at 0x4fcbd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x4fcc0b
cmp esi, edx
jb 0x4fcc0b
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
dec esi
jne 0x4fcbf5
pop esi
pop ebp
ret
mov esi, edx
lea ecx, [eax + 0x10]
sub esi, eax
mov eax, 0x20
jmp 0x4fcc20
lea edx, [edx + 0x20]
lea ecx, [ecx + 0x20]
movdqu xmm0, xmmword [edx - 0x20]
movdqu xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x30], xmm1
movdqu xmm1, xmmword [esi + ecx - 0x20]
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x20], xmm1
dec eax
jne 0x4fcc20
pop esi
pop ebp
ret
Function at 0x4ffcd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.004ffd30
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
ja fcn.0053ac0f
push eax
push dword [ebp + 8]
call fcn.00530924
test al, al
je fcn.0053ac0f
pop ebp
ret
Function at 0x501720
Capabilities:
Encrypt data using salsa20 or chacha

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

Function at 0x5078e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
mov dword [0x58f6b0], 0
xor eax, eax
movdqa xmmword [esp], xmm0
mov word [esp], ax
lea eax, [esp]
push eax
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0
call dword [0x57e248]
mov ax, word [esp]
cmp ax, 6
je 0x507934
cmp ax, 9
jne 0x50793e
mov dword [0x58f6b0], 1
call fcn.0050c910
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00535482
mov esp, ebp
pop ebp
ret
Function at 0x507e40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x2d4]
push ebx
mov ebx, dword [esp + 0x2d0]
push ebp
push esi
mov dword [esp + 0xc], eax
mov ebp, ebx
xor esi, esi
xor eax, eax
push edi
mov edi, dword [esp + 0x2e0]
and ebp, 1
jne 0x507e85
test bl, 3
jne 0x507f5d
push 0x41f174
lea eax, [esp + 0x1a8]
push 0x64
push eax
call fcn.00538618
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
lea eax, [esp + 0x1c0]
push eax
push 0x42b5e4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.00535440
movzx eax, word [edi + 8]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x42b5f8
lea eax, [esp + 0xb8]
push 0x64
push eax
call fcn.00535440
add esp, 0x48
lea eax, [esp + 0x78]
push eax
push 0x4291d0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.00535440
lea esi, [esp + 0xec]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x507f20
sub esi, ecx
cmp esi, 0xc8
jae 0x5080da
mov byte [esp + esi + 0xdc], al
lea eax, [esi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x210]
push eax
call fcn.005358e0
add esp, 0xc
mov eax, 1
test bl, 2
je 0x50808e
cmp dword [esp + 0x2d8], 1
je 0x50808e
cmp word [edi + 0x10], 0
jne 0x507f86
cmp word [edi + 0x12], 0
je 0x50808e
xor ebx, ebx
test ebp, ebp
je 0x507fb4
cmp eax, 1
jne 0x507fbb
mov byte [esp + esi + 0x208], 0x7c
inc esi
cmp esi, 0xc8
jae 0x5080da
lea ebx, [esp + 0x208]
add ebx, esi
mov byte [ebx], 0
jmp 0x507fbb
lea ebx, [esp + 0x208]
push 0x41f174
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.00538618
movzx eax, word [edi + 0x16]
push eax
movzx eax, word [edi + 0x14]
push eax
movzx eax, word [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push 0x42b5e4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.00535440
movzx eax, word [edi + 0x18]
push eax
movzx eax, byte [edi + 0x1b]
push eax
movzx eax, byte [edi + 0x1a]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x42b5f8
lea eax, [esp + 0x1e4]
push 0x64
push eax
call fcn.00535440
add esp, 0x48
lea eax, [esp + 0x1a4]
push eax
push 0x4291d0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.00535440
lea edi, [esp + 0xec]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x508050
sub edi, ecx
cmp edi, 0xc8
jae 0x5080da
mov byte [esp + edi + 0xdc], al
mov eax, 0xc8
sub eax, esi
cmp eax, edi
jb 0x50808a
lea eax, [edi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
push ebx
call fcn.005358e0
add esp, 0xc
jmp 0x50808c
xor edi, edi
add esi, edi
cmp esi, 0xc8
jae 0x5080da
mov byte [esp + esi + 0x208], 0
cmp dword [esp + 0x2e8], esi
jb 0x5080bf
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x18]
call fcn.005358e0
add esp, 0xc
mov ecx, dword [esp + 0x2d0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00535482
add esp, 0x2c4
ret
call fcn.0053a31c
int3