joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50bc05
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
mov eax, 0x56a18e
call fcn.00566548
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
push str.CREATIONTIME
lea edx, [edi + 4]
call fcn.0050c6ac
push str.LASTMODIFICATIONTIME
lea edx, [edi + 0xc]
mov byte [edi], al
mov ecx, esi
call fcn.0050c6ac
mov byte [edi + 1], al
mov ecx, esi
push str.NAME
lea eax, [ebp - 0x18]
mov byte [edi + 2], 1
push eax
call fcn.00404482
and dword [ebp - 4], 0
lea edx, [edi + 0x14]
mov ecx, eax
call fcn.00405325
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.0056651e
lea eax, [ebp - 0x18]
mov dword [esp], str.DIRCOUNT
push eax
mov ecx, esi
call fcn.00404482
lea edx, [edi + 0x20]
mov ecx, eax
call fcn.0050c604
push dword [ebp - 0x18]
call fcn.0056651e
lea eax, [ebp - 0x18]
mov dword [esp], str.FILECOUNT
push eax
mov ecx, esi
call fcn.00404482
lea edx, [edi + 0x28]
mov ecx, eax
call fcn.0050c604
push dword [ebp - 0x18]
call fcn.0056651e
lea eax, [ebp - 0x24]
mov dword [esp], str.INDEX
push eax
mov ecx, esi
call fcn.0040441c
lea edx, [edi + 0x30]
mov ecx, eax
call fcn.0050c5d6
push dword [ebp - 0x24]
mov byte [edi + 3], al
call fcn.0056651e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x50ef1a
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov eax, 0x576c92
call fcn.00566548
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ax, word [esi]
mov word [edi], ax
mov ax, word [esi + 2]
mov word [edi + 2], ax
mov ax, word [esi + 4]
mov word [edi + 4], ax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
lea ecx, [edi + 0x24]
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x24]
push eax
call fcn.0040231e
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0050ed21
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x51967e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x56abc3
call fcn.00566548
sub esp, 0x14
push esi
push edi
push 2
pop eax
mov word [ebp - 0x14], ax
mov edi, ecx
mov ax, word [ebp + 8]
mov word [ebp - 0x10], ax
push 0x63
pop eax
mov word [edi + 2], ax
xor eax, eax
mov byte [ebp - 0x12], dl
mov dword [edi + 0x1c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.0051a4c8
lea ecx, [edi + 0x30]
call fcn.00403988
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x30]
call fcn.0050f32a
lea ecx, [edi + 0x50]
call fcn.00403988
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x50]
call fcn.0050f32a
push dword [ebp - 0x1c]
call fcn.0056651e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x520450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov eax, ecx
push ebp
push esi
push edi
mov ebp, dword [eax + 0x34]
cmp ebp, 0xa
jae 0x5204b0
nop
mov edi, dword [eax]
cmp edi, 8
jae 0x52048b
mov ebx, dword [eax + 8]
cmp ebx, dword [eax + 0xc]
je 0x520575
movzx edx, byte [ebx]
mov ecx, 0x18
sub ecx, edi
shl edx, cl
lea ecx, [ebx + 1]
or dword [eax + 4], edx
add edi, 8
mov dword [eax + 8], ecx
mov edx, dword [eax + 4]
mov ecx, edx
shl ecx, 8
mov dword [eax + 4], ecx
lea ecx, [edi - 8]
shr edx, 0x18
mov dword [eax], ecx
mov byte [eax + ebp + 0x7a96], dl
inc dword [eax + 0x34]
mov ebp, dword [eax + 0x34]
cmp ebp, 0xa
jb 0x520460
movzx edx, byte [eax + 0x7a9c]
movzx ecx, byte [eax + 0x7a9d]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x7a9e]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x7a9f]
shl edx, 8
or edx, ecx
mov dword [eax + 0x7aa0], edx
mov cl, byte [eax + 0x7a96]
cmp cl, 0x31
jne 0x52057c
cmp byte [eax + 0x7a97], 0x41
jne 0x520612
cmp byte [eax + 0x7a98], 0x59
jne 0x520612
cmp byte [eax + 0x7a99], 0x26
jne 0x520612
cmp byte [eax + 0x7a9a], 0x53
jne 0x520612
cmp byte [eax + 0x7a9b], 0x59
jne 0x520612
cmp byte [eax + 0x7aa8], 0
jne 0x520548
add dword [eax + 0x7ab0], 1
adc dword [eax + 0x7ab4], 0
add dword [eax + 0x7ab8], 1
mov byte [eax + 0x7aa8], 1
mov ecx, dword [eax + 0x7aa4]
adc dword [eax + 0x7abc], 0
ror ecx, 0x1f
xor ecx, edx
mov dword [eax + 0x7aa4], ecx
mov dword [eax + 0x30], 2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp cl, 0x17
jne 0x520612
cmp byte [eax + 0x7a97], 0x72
jne 0x520612
cmp byte [eax + 0x7a98], 0x45
jne 0x520612
cmp byte [eax + 0x7a99], 0x38
jne 0x520612
cmp byte [eax + 0x7a9a], 0x50
jne 0x520612
cmp byte [eax + 0x7a9b], 0x90
jne 0x520612
cmp byte [eax + 0x7aa8], 0
jne 0x5205cd
add dword [eax + 0x7ab0], 1
adc dword [eax + 0x7ab4], 0
mov esi, dword [eax + 4]
mov byte [eax + 0x7aa8], 1
test esi, esi
je 0x5205e2
mov byte [eax + 0x7aaa], 1
mov edx, dword [eax]
mov ecx, edx
and ecx, 7
mov dword [eax + 0x30], 0xb
sub edx, ecx
shl esi, cl
mov ecx, dword [eax + 0x7aa0]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp ecx, dword [eax + 0x7aa4]
je 0x520575
mov byte [eax + 0x7aa9], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x523630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
xor eax, eax
push ebp
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
movzx ecx, byte [ebx + eax]
inc eax
inc dword [esp + ecx*4 + 0x10]
cmp eax, 0x13
jb 0x523680
mov esi, dword [esp + 0x14]
mov edx, esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 5
mov dword [esp + 0x18], esi
mov dword [esp + 0x58], esi
add esi, ecx
mov ecx, dword [esp + 0x1c]
shl edx, 6
mov dword [esp + 0x34], edx
add edx, eax
mov eax, ecx
mov dword [esp + 0x1c], esi
shl eax, 4
mov dword [esp + 0x5c], esi
add esi, ecx
mov dword [esp + 0x38], edx
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], esi
add esi, eax
mov dword [esp + 0x64], esi
lea ecx, [edx + eax*8]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], esi
add esi, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x68], esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], esi
add esi, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x54], 0
lea ebp, [ecx + eax*2]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], ebp
add ebp, eax
mov dword [esp + 0x2c], esi
add esi, eax
cmp byte [esp + 0x78], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], esi
je 0x5237db
cmp ebp, 0x80
jne 0x5237e7
mov ebp, dword [esp + 0xc]
xor esi, esi
push edi
nop
movzx edi, byte [ebx + esi]
test edi, edi
je 0x52379f
mov edx, dword [esp + edi*4 + 0x14]
mov ecx, 7
sub ecx, edi
lea eax, [edx + 1]
sub edx, dword [esp + edi*4 + 0x54]
shl edx, cl
add edx, dword [esp + edi*4 + 0x30]
mov dword [esp + edi*4 + 0x14], eax
add edx, ebp
mov eax, 1
shl eax, cl
lea ecx, [edi + esi*8]
test eax, eax
je 0x52379f
push eax
push ecx
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
inc esi
cmp esi, 0x13
jb 0x523760
cmp byte [esp + 0x7c], 0
mov ebp, dword [esp + 0x50]
pop edi
jne 0x5237d0
mov ecx, dword [esp + 0xc]
mov eax, 0x80
lea ecx, [ecx + ebp]
sub eax, ebp
je 0x5237d0
push eax
push 0xff
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 8
cmp ebp, 0x80
jbe 0x523757
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 8
Function at 0x52f0c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
movzx eax, byte [ebx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0
inc dword [esp + eax*4 + 8]
movzx eax, byte [ebx + 1]
push ebp
push esi
mov dword [esp + 0xc], ecx
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 2]
mov dword [esp + 0x30], 0
mov dword [esp + 0x54], 0
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 3]
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 4]
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 5]
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 6]
inc dword [esp + eax*4 + 0x10]
movzx eax, byte [ebx + 7]
inc dword [esp + eax*4 + 0x10]
mov esi, dword [esp + 0x14]
mov edx, esi
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 5
mov dword [esp + 0x18], esi
mov dword [esp + 0x58], esi
add esi, ecx
mov ecx, dword [esp + 0x1c]
shl edx, 6
mov dword [esp + 0x34], edx
add edx, eax
mov eax, ecx
mov dword [esp + 0x1c], esi
shl eax, 4
mov dword [esp + 0x5c], esi
add esi, ecx
mov dword [esp + 0x38], edx
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], esi
add esi, eax
mov dword [esp + 0x64], esi
lea ecx, [edx + eax*8]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], esi
add esi, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x68], esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], esi
add esi, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x44], ecx
lea ebp, [ecx + eax*2]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], ebp
add ebp, eax
mov dword [esp + 0x2c], esi
add esi, eax
cmp byte [esp + 0x78], 0
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], esi
je 0x52f29b
cmp ebp, 0x80
jne 0x52f2a7
mov ebp, dword [esp + 0xc]
xor esi, esi
push edi
nop dword [eax]
movzx edi, byte [ebx + esi]
test edi, edi
je 0x52f25f
mov edx, dword [esp + edi*4 + 0x14]
mov ecx, 7
sub ecx, edi
lea eax, [edx + 1]
sub edx, dword [esp + edi*4 + 0x54]
shl edx, cl
add edx, dword [esp + edi*4 + 0x30]
mov dword [esp + edi*4 + 0x14], eax
add edx, ebp
mov eax, 1
shl eax, cl
lea ecx, [edi + esi*8]
test eax, eax
je 0x52f25f
push eax
push ecx
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
inc esi
cmp esi, 8
jb 0x52f220
cmp byte [esp + 0x7c], 0
mov ebp, dword [esp + 0x50]
pop edi
jne 0x52f290
mov ecx, dword [esp + 0xc]
mov eax, 0x80
lea ecx, [ecx + ebp]
sub eax, ebp
je 0x52f290
push eax
push 0xff
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 8
cmp ebp, 0x80
jbe 0x52f216
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 8
Function at 0x533420
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xb0], 2
mov dword [esi + 0xac], 0
jne 0x53345c
push 1
call fcn.00533340
test eax, eax
je 0x533452
push dword [esi + 0x74]
mov ecx, esi
push dword [esi + 0x70]
call fcn.005329c0
pop esi
pop ecx
ret
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x3c]
mov ecx, 8
sub ecx, dword [esi + 0x38]
shr eax, cl
mov ecx, 8
shr eax, 0x10
cmp dword [esi + 0x9c], 0x25
push ebx
push ebp
movzx ebp, al
mov ebx, 0x58c340
mov eax, 0x58c370
cmovae ebx, eax
mov eax, dword [esi + 0xa8]
add eax, 0x10
add eax, ebx
mov dword [esp + 0xc], eax
movzx edx, byte [ebx]
xor edx, ebp
movzx eax, byte [eax]
sub ecx, eax
push edi
shr edx, cl
xor edi, edi
test edx, edx
je 0x5334cd
mov edx, dword [esp + 0x10]
sub edx, ebx
movzx eax, byte [ebx + edx + 1]
lea ebx, [ebx + 1]
mov ecx, 8
inc edi
sub ecx, eax
movzx eax, byte [ebx]
xor eax, ebp
shr eax, cl
test eax, eax
jne 0x5334b2
mov eax, dword [esp + 0x10]
movzx eax, byte [edi + eax]
add eax, dword [esi + 0x38]
mov dword [esi + 0x38], eax
cmp eax, 8
jb 0x533512
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jb 0x5334f4
lea ecx, [esi + 0x40]
call fcn.00410050
mov dl, al
jmp 0x5334fa
mov dl, byte [eax]
inc eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x38], 0xfffffff8
shl ecx, 8
movzx eax, dl
or ecx, eax
cmp dword [esi + 0x38], 8
mov dword [esi + 0x3c], ecx
jae 0x5334e0
cmp edi, 9
jb 0x5335c5
jne 0x533536
push dword [esi + 0x74]
inc dword [esi + 0xb0]
mov ecx, esi
push dword [esi + 0x70]
call fcn.005329c0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov dword [esi + 0xb0], 0
mov ecx, esi
cmp edi, 0xe
jne 0x533577
push 0x58c3b0
call fcn.00532b70
push 0xf
mov ecx, esi
lea edi, [eax + 5]
call fcn.00533340
add eax, 0x7fff
mov dword [esi + 0x74], edi
push edi
push eax
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.005329c0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esi + 0x78]
mov ebp, edi
sub eax, edi
inc eax
and eax, 3
push 0x58c3a0
mov ebx, dword [esi + eax*4 + 0x7c]
call fcn.00532b70
mov edi, eax
cmp edi, 0xff
jne 0x5335ae
cmp ebp, 0xa
jne 0x5335ae
xor dword [esi + 0xa8], 0x10
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
cmp ebx, 0x100
jb 0x533621
mov eax, dword [esi + 0xbc]
inc edi
dec eax
cmp ebx, eax
jb 0x533621
inc edi
jmp 0x533621
mov ecx, dword [esi + 0x9c]
add ecx, edi
mov dword [esi + 0xb0], 0
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [esi + 0x9c], ecx
mov ecx, esi
push 0x58c3e0
call fcn.00532b70
movzx ecx, al
mov ebx, dword [esi + ecx*4 + 0x4c0]
test al, al
je 0x533621
dec dword [esi + ebx*4 + 0x14c0]
mov eax, dword [esi + ecx*4 + 0x4bc]
inc dword [esi + eax*4 + 0x14c0]
mov dword [esi + ecx*4 + 0x4c0], eax
mov dword [esi + ecx*4 + 0x4bc], ebx
mov eax, dword [esi + 0x78]
add edi, 2
push edi
push ebx
mov ecx, esi
mov dword [esi + eax*4 + 0x7c], ebx
mov eax, dword [esi + 0x78]
inc eax
mov dword [esi + 0x70], ebx
and eax, 3
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
call fcn.005329c0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x538b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
xor cl, cl
xor eax, eax
mov byte [ebx + 4], 0
mov dword [ebx], 0xffffffff
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x538c44
cmp esi, 0x20
jb 0x538bf0
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm1, xmm1
nop word [eax + eax]
movups xmm0, xmmword [eax + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + eax + 0x10]
add eax, 0x20
xorps xmm1, xmm0
cmp eax, ecx
jb 0x538ba0
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
xorps xmm1, xmm0
movd ecx, xmm1
cmp eax, esi
jae 0x538bf8
nop dword [eax]
xor cl, byte [edi + eax]
inc eax
cmp eax, esi
jb 0x538bf0
test cl, cl
jne 0x538c44
test esi, esi
je 0x538c44
mov edx, esi
mov byte [ebx + 4], 1
mov ecx, edi
mov byte [esp + 0x10], 1
call fcn.00564340
mov edx, eax
xor ecx, ecx
xor eax, eax
mov edi, 0x58c5d4
nop dword [eax]
cmp dword [eax + edi], edx
jne 0x538c2d
cmp dword [eax + 0x58c5d0], esi
je 0x538c4c
add eax, 0xc
inc ecx
cmp eax, 0x48
jb 0x538c20
mov dword [ebx], 0xffffffff
mov dl, byte [esp + 0x10]
mov byte [ebx + 4], 0
pop edi
pop esi
mov al, dl
pop ebx
ret 8
mov dword [ebx], ecx
test ecx, ecx
js 0x538c3c
pop edi
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x53f920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov esi, ecx
lea edx, [esp + 0x20]
push 0x14
mov dword [esp + 0x1c], esi
call fcn.005653a0
lea eax, [esi + 0x80]
push 0x14
lea edx, [esp + 0x64]
mov dword [esp + 0x20], eax
mov ecx, eax
call fcn.005653a0
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
jbe 0x53f9e7
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x24]
call fcn.005652b0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x64]
call fcn.005652b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
xor edi, dword [esp + 0x20]
xor esi, dword [esp + 0x30]
sub dword [ebp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
jne 0x53f991
mov edx, dword [ebp + 8]
mov dword [edx], edi
mov edi, edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x10], esi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x540230
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57790d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xc8
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x24], 0x5b4fa8
push 0x5b4fa8
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x20], 0
mov dword [ebp - 4], 0
je 0x5403a3
lea ecx, [ebp - 0xb0]
call fcn.00565b40
mov eax, 0x3e8
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565430
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565430
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x540322
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54031b
push 0x20
lea ecx, [ebp - 0xd0]
push ecx
call eax
test al, al
je 0x54031b
push 0x20
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x18], 0x64
lea ecx, [ebp - 0xb0]
call fcn.00565430
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x540340
push 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
call fcn.00565430
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xb0]
call fcn.00565430
mov edi, 0x64
nop
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00565a50
lea ecx, [ebp - 0xb0]
call fcn.00565b40
push 0x20
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00565430
sub edi, 1
jne 0x540360
sub dword [ebp - 0x18], 1
jne 0x540322
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.00565a50
mov byte [esi + 0x20], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x54043d
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0xb0]
call fcn.00565b40
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 0x20
call fcn.00565430
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00565a50
lea ecx, [ebp - 0xb0]
call fcn.00565b40
push 4
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xf672abd1
lea ecx, [ebp - 0xb0]
call fcn.00565430
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 0x20
call fcn.00565430
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xb0]
call fcn.00565a50
xor eax, eax
nop
test esi, esi
je 0x54043d
mov cl, byte [ebp + eax - 0xd0]
dec esi
mov byte [edi], cl
inc eax
inc edi
cmp eax, 0x20
jb 0x540420
test esi, esi
jne 0x5403b1
push 0x5b4fa8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x540460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [ecx + 0x108]
push esi
mov eax, dword [ebx]
xor eax, dword [ecx + 0x100]
xor ebp, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x104]
xor eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [ecx + 0x10c]
cmp byte [esp + 0x38], 0
push edi
jne 0x5404a5
movups xmm0, xmmword [ebx]
movups xmmword [esp + 0x24], xmm0
xor edx, edx
mov ebx, eax
mov dword [esp + 0x18], edx
nop dword [eax]
mov eax, 0x1f
sub eax, edx
cmp byte [esp + 0x3c], 0
cmove edx, eax
and edx, 3
mov esi, dword [ecx + edx*4 + 0x100]
mov edx, ebx
rol edx, 0xb
add edx, ebp
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + ecx]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx]
shl eax, 8
or edi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + ecx]
or edi, eax
movzx eax, dl
mov edx, ebp
shl edi, 8
rol edx, 0x11
xor edx, ebx
movzx eax, byte [eax + ecx]
add edx, esi
or edi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
xor edi, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edi
movzx esi, byte [eax + ecx]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + ecx]
or esi, eax
movzx eax, dl
mov edx, dword [esp + 0x18]
shl esi, 8
inc edx
mov dword [esp + 0x18], edx
movzx eax, byte [eax + ecx]
or esi, eax
xor esi, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ebx, esi
cmp edx, 0x20
jb 0x5404b0
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x24]
mov eax, dword [ecx + 0x100]
xor eax, edi
mov dword [ebx], eax
mov eax, dword [ecx + 0x104]
xor eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x108]
xor eax, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0x10c]
xor eax, dword [esp + 0x14]
cmp byte [esp + 0x3c], 0
mov dword [ebx + 0xc], eax
cmovne edx, dword [esp + 0x38]
mov esi, dword [ecx + 0x100]
add edx, 2
mov edi, dword [ecx + 0x104]
mov ebx, dword [ecx + 0x108]
mov ebp, dword [ecx + 0x10c]
mov dword [esp + 0x3c], 4
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor esi, dword [eax*4 + 0x5b7100]
mov dword [ecx + 0x100], esi
movzx eax, byte [edx - 5]
xor edi, dword [eax*4 + 0x5b7100]
mov dword [ecx + 0x104], edi
movzx eax, byte [edx - 4]
xor ebx, dword [eax*4 + 0x5b7100]
mov dword [ecx + 0x108], ebx
movzx eax, byte [edx - 3]
xor ebp, dword [eax*4 + 0x5b7100]
sub dword [esp + 0x3c], 1
mov dword [ecx + 0x10c], ebp
jne 0x5405e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8