joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300493c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x30268720
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x30240928], 0
jle 0x300494a4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x300493f0
cmp dword [0x30240948], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
jne 0x3004942d
cmp dword [0x30240920], 0xffffffff
je 0x30049423
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x30240928]
push eax
push dword [0x3024092c]
push dword [0x30240920]
jmp 0x3004945a
mov eax, dword [0x30240928]
mov dword [ebp - 4], eax
jmp 0x3004945f
cmp dword [0x302686f0], 0xffffffff
jne 0x30049442
mov dword [0x30240928], 0
jmp 0x30049496
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x30240928]
push eax
push dword [0x3024092c]
push dword [0x302686f0]
call esi
mov eax, dword [ebp - 4]
test eax, eax
js 0x30049496
cmp eax, dword [0x30240928]
jge 0x30049489
mov eax, dword [0x30240928]
mov edx, dword [ebp - 4]
sub eax, edx
mov ecx, dword [0x3024092c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.3015c790
add esp, 0xc
mov eax, dword [0x30240928]
sub eax, dword [ebp - 4]
mov dword [0x30240928], eax
cmp dword [0x30240928], 0
jg 0x300493f0
pop esi
push 0x30268720
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x30049560
Capabilities:
Write file on windows

Disassembly:
push 0x30268700
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x300495b1
mov ecx, dword [0x30240930]
test ecx, ecx
je 0x30049599
mov edx, dword [0x30240934]
call fcn.300494c0
mov ecx, dword [0x30240930]
call fcn.300011f0
mov dword [0x30240930], 0
push 0x30268700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x3024092c], 0
jne fcn.300493c0
ret
Function at 0x3004df50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0xc]
add edx, 0xc
cmp eax, edx
je 0x3004df6e
cmp dword [eax + 0x18], ecx
je 0x3004df71
mov eax, dword [eax]
cmp eax, edx
jne 0x3004df63
xor eax, eax
ret
add eax, 0x2c
ret

Function at 0x3004df80
Capabilities:
Access peb ldr_data

Disassembly:
push esi
mov esi, dword fs:[0x30]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0xa0]
xor edx, edx
pop esi
cmp eax, dword [ecx + 0xc]
sete dl
mov eax, edx
ret
Function at 0x3004fdd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], edx
push ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
xor edi, edi
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
add ecx, eax
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x3004fe6f
mov ebx, ecx
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3004fe06
mov esi, dword [ebp - 4]
sub eax, edx
mov edx, ebx
sub eax, 4
jb 0x3004fe31
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x3004fe36
add edx, 4
add esi, 4
sub eax, 4
jae 0x3004fe20
cmp eax, 0xfffffffc
je 0x3004fe78
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x3004fe63
cmp eax, 0xfffffffd
je 0x3004fe78
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x3004fe63
cmp eax, 0xfffffffe
je 0x3004fe78
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x3004fe63
cmp eax, 0xffffffff
je 0x3004fe78
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x3004fe78
mov edx, dword [ebp - 4]
inc edi
add ebx, 0x28
cmp edi, dword [ebp - 8]
jb 0x3004fe01
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edi*4]
mov edx, dword [ebp - 0x10]
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 8]
add edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
pop edi
mov dword [eax], edx
add ecx, edx
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x30050c90
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
xor ecx, ecx
call fcn.300505a0
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jle 0x30050d8d
push ebx
push esi
push edi
pushfd
mov eax, dword fs:[0x18]
pop ebx
test eax, eax
jne 0x30050ccb
or esi, 0xffffffff
or edi, 0xffffffff
jmp 0x30050cd4
mov esi, dword [eax + 0x34]
mov edi, dword [eax + 0xbf4]
lea eax, [ecx + 1]
push eax
push 8
push dword [0x3026d8b0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 4], ecx
test eax, eax
je 0x30050d04
mov dword [eax + 0x34], esi
mov dword [eax + 0xbf4], edi
test ebx, ebx
je 0x30050d04
push ebx
popfd
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
call fcn.300505a0
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xffffffffffffffff
push eax
push dword [eax]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 4]
push 0x302697e0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov esi, eax
neg esi
sbb esi, esi
not esi
pushfd
mov ebx, dword fs:[0x18]
pop dword [ebp - 8]
test ebx, ebx
jne 0x30050d4e
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x30050d57
mov edi, dword [ebx + 0x34]
mov ebx, dword [ebx + 0xbf4]
push dword [ebp - 4]
push 0
push dword [0x3026d8b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x30050d84
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x30050d84
push eax
popfd
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x30055eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x30055eca
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0xffffffff
je 0x30055eff
push esi
movzx eax, byte [ebx]
mov esi, edi
and esi, 0x1f
inc ebx
mov ecx, esi
neg ecx
mov edx, dword [eax*4 + 0x301ea488]
and ecx, 0x1f
mov eax, edx
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 4]
or eax, edx
xor ecx, eax
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x30055ed0
pop esi
movzx eax, byte [ebx]
pop edi
pop ebx
mov eax, dword [eax*4 + 0x301ea488]
xor eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x3007e890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp edx, 0x40
jb 0x3007e8fa
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x3007e8fa
mov eax, dword [ecx + 0x3c]
test eax, eax
js 0x3007e8fa
lea esi, [eax + 0x18]
cmp edx, esi
jb 0x3007e8fa
add eax, ecx
add esi, 0xe0
cmp dword [eax], 0x4550
jne 0x3007e8fa
movzx edi, word [eax + 4]
mov ebx, 0x14c
cmp di, bx
je 0x3007e8db
mov ebx, 0x8664
cmp di, bx
jne 0x3007e8fa
cmp edx, esi
jbe 0x3007e8fa
mov esi, 0x2000
test word [eax + 0x16], si
jne 0x3007e8fa
mov eax, dword [eax + 0x28]
xor edx, edx
add eax, dword [ebp + 8]
pop edi
adc edx, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret
cmp edx, 0x10
jb 0x3007e921
cmp dword [ecx], 0x464c457f
jne 0x3007e921
movzx eax, byte [ecx + 4]
mov esi, eax
sub esi, 1
je 0x3007e91c
sub esi, 1
jne 0x3007e921
cmp edx, 0x40
jmp 0x3007e91f
cmp edx, 0x34
jae 0x3007e923
xor eax, eax
sub eax, 1
je 0x3007e93f
sub eax, 1
jne 0x3007e950
cmp word [ecx + 0x10], 2
jne 0x3007e950
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp word [ecx + 0x10], 2
jne 0x3007e950
mov eax, dword [ecx + 0x18]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfabadaff
mov edx, 0xfffabada
pop ebx
pop ebp
ret
Function at 0x30084f40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
or eax, 0xffffffff
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebx + 8]
mov edx, ecx
movzx eax, word [eax + 6]
mov dword [ebp - 0x1c], eax
cmp ax, 0x60
mov dword [ebp - 0x18], ecx
movzx eax, ax
jb 0x30084f8e
mov eax, 0x60
cmp ecx, eax
jge 0x30085080
mov eax, dword [ebx + 4]
cmp eax, 0x28
jb 0x300850d5
mov ecx, dword [ebx]
cmp esi, ecx
jb 0x300850d5
add eax, 0xffffffd8
add eax, ecx
cmp esi, eax
ja 0x300850d5
mov ecx, dword [esi + 0xc]
mov eax, ecx
cmp dword [ebp - 0xc], ecx
mov edx, dword [esi + 8]
cmovbe eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x30084fd2
mov edx, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
jb 0x3008506e
mov eax, dword [ebp + 8]
ja 0x30084fe9
cmp eax, ecx
jb 0x3008506e
mov ebx, eax
mov eax, dword [ebp + 0xc]
sub ebx, ecx
sbb eax, 0
test eax, eax
ja 0x3008506b
jb 0x30084ffd
cmp ebx, edx
jae 0x3008506b
mov edx, dword [ebp - 4]
cmp edx, ecx
ja 0x30085059
mov eax, dword [ebp - 0x14]
mov ebx, 0x200
mov edi, dword [esi + 0x14]
mov edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x3c]
cmp eax, ebx
cmovb ebx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x30085035
xor edx, edx
mov eax, edi
div ebx
test edx, edx
je 0x30085032
sub edi, edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
cmp dword [eax + 0x38], 0x1000
jb 0x30085071
mov ecx, dword [ebp - 0x18]
and edi, 0xfffffe00
mov eax, dword [ebp - 0x1c]
add esi, 0x28
inc ecx
jmp 0x30084f7d
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov ebx, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 0x1c]
jmp 0x30084f7d
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov eax, dword [ebp - 0x1c]
inc ecx
jmp 0x30084f7d
cmp dword [ebp + 0xc], 0
ja 0x3008509d
jb 0x30085090
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x3008509d
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0xc]
sub ecx, edx
sbb eax, 0
test eax, eax
ja 0x300850d5
jb 0x300850b5
cmp ecx, dword [ebp - 0x10]
jae 0x300850d5
xor edx, edx
sub edi, dword [ebp - 4]
sbb edx, edx
add edi, esi
adc edx, dword [ebp + 0xc]
test edx, edx
jg 0x300850d5
jl 0x300850cc
cmp edi, dword [ebx + 4]
jae 0x300850d5
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300870a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ecx + 8]
mov dword [ebp - 0x10], eax
lea ebx, [edx + 8]
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 3
push edi
mov edi, dword [ebp + 8]
add eax, edi
mov dword [ebp - 8], eax
div ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
sub ecx, esi
neg esi
sbb esi, esi
and esi, ecx
mov dword [eax], esi
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 3]
mov eax, 0xaaaaaaab
mul ecx
lea eax, [edi + 9]
shr edx, 1
add edx, esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add eax, edx
push eax
push 8
push dword [0x30267480]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x3008712f
push dword [ebp - 8]
push 8
push dword [0x30267480]
call esi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x30087138
push edi
push eax
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x30087161
mov dword [ebp + 0xc], ecx
mov eax, 0x41414141
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0xc]
mov eax, edx
push dword [ebp - 4]
add eax, esi
push dword [ebp - 0x10]
push eax
call fcn.3015c210
mov edx, esi
add esp, 0xc
lea esi, [edi + 8]
mov eax, edx
mov edi, dword [ebp + 0xc]
add edi, dword [ebp - 4]
add eax, edi
mov dword [ebp + 8], eax
cmp edi, 3
jl 0x300871ee
nop dword [eax]
movzx eax, byte [edx]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 1], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [esi + 3], al
add esi, 4
cmp edi, 3
jge 0x30087190
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
je 0x3008723c
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
and ecx, 3
shl ecx, 4
cmp dword [ebp + 8], 1
jne 0x30087219
mov al, byte [ecx + ebx]
mov cl, 0x3d
mov byte [esi + 1], al
jmp 0x30087232
movzx eax, byte [edx + 1]
shr eax, 4
or eax, ecx
mov al, byte [eax + ebx]
mov byte [esi + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov cl, byte [ebx + eax*4]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
push dword [ebp - 8]
push 0
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300892f0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x4c]
push eax
push dword [0x302674f8]
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.30181040
add esp, 8
test eax, eax
je 0x30089364
mov eax, 0x1f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push 8
push 8
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp - 0x178]
mov dword [esi], eax
test eax, eax
je 0x300893ed
mov dword [eax], 0
mov eax, dword [esi]
push 0x60
mov dword [eax + 4], 0
call fcn.3016413f
mov edi, eax
add esp, 4
mov dword [ebp - 0x184], edi
test edi, edi
jne 0x300893b2
call fcn.30165db2
mov dword [eax], 0xc
jmp 0x300893ca
push 0x60
push 0
push edi
call fcn.3015cdc0
add esp, 0xc
mov ecx, edi
call fcn.30059310
test eax, eax
je 0x30089403
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x300893d8
call fcn.30081d80
push edi
push 0
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x17c]
mov edx, ecx
mov eax, dword [esi]
mov dword [edi], eax
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x30089412
sub edx, ebx
push edi
call fcn.30088e90
add esp, 4
lea edx, [ebp - 0x174]
mov ecx, edi
call fcn.3008c770
mov ecx, edi
call fcn.30089000
mov ebx, dword [ebp - 0x150]
test ebx, ebx
je 0x300894ac
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x30089450
call fcn.30081d80
push edi
push 0
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x180]
lea edx, [ebp - 0x14c]
mov dword [esi], 0
mov esi, 0x17f
mov al, byte [edx]
lea ecx, [ecx + 1]
inc edx
mov byte [ecx - 1], al
test al, al
je 0x30089488
sub esi, 1
jne 0x30089476
test esi, esi
jne 0x30089499
mov byte [ecx], 0
nop
mov cl, byte [edx]
lea edx, [edx + 1]
test cl, cl
jne 0x30089490
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
Function at 0x3008a070
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x4c]
push eax
push dword [0x302674f8]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.30181040
add esp, 8
test eax, eax
je 0x3008a0e5
mov eax, 0x1f
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push 8
push 8
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [ebp - 0x158]
mov dword [edi], eax
test eax, eax
je 0x3008a161
mov dword [eax], 0
mov eax, dword [edi]
push 0x60
mov dword [eax + 4], 0
mov eax, dword [edi]
or dword [eax], 2
mov eax, dword [edi]
or dword [eax], 0x80
call fcn.3016413f
mov esi, eax
add esp, 4
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x3008a176
call fcn.30165db2
mov dword [eax], 0xc
mov esi, dword [edi]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x3008a14c
call fcn.30081d80
push esi
push 0
push dword [0x30267480]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push 0x60
push 0
push esi
call fcn.3015cdc0
mov ecx, dword [ebp - 0x15c]
add esp, 0xc
mov edx, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [edi]
lea edi, [edx + 1]
mov dword [esi], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x3008a1e0
sub edx, edi
push esi
call fcn.30088e90
add esp, 4
lea edx, [ebp - 0x154]
mov ecx, esi
call fcn.3008e0d0
mov ecx, esi
call fcn.30089000
mov edi, dword [ebp - 0x150]
test edi, edi
je 0x3008a25b
mov ecx, dword [ebp - 0x160]
lea edx, [ebp - 0x14c]
mov esi, 0x17f
mov al, byte [edx]
lea ecx, [ecx + 1]
inc edx
mov byte [ecx - 1], al
test al, al
je 0x3008a233
sub esi, 1
jne 0x3008a221
test esi, esi
jne 0x3008a249
mov byte [ecx], 0
nop word [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
test cl, cl
jne 0x3008a240
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
Function at 0x30099ef0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x30099f17
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x30099f06
pop edi
movzx eax, dl
pop esi
ret
Function at 0x3009c850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x30232978], 0
push esi
mov esi, dword [ebp + 8]
jne 0x3009c95d
mov eax, 1
lock xadd dword [0x3023297c], eax
inc eax
cmp eax, 1
jne 0x3009c94c
test esi, esi
jne 0x3009c941
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x3009c921
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x3009c921
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x3009c921
push 0x30199640
push esi
call edi
mov edi, eax
test edi, edi
je 0x3009c921
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x3009c921
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x3009c921
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x3009c935
push 0
call fcn.30164993
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x30232978], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x30232978], 0
je 0x3009c952
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3009c970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x3009ca7c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x3009c9b0
cmp edx, 0xc
ja 0x3009cae8
jmp dword [edx*4 + 0x3009cb38]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret