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

Disassembly:
sub esp, 8
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 4], eax
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x54], 1
je 0x1002fca9
call fcn.10012110
mov ebp, dword [esp + 0x1c]
cmp ebp, eax
jbe 0x1002fbef
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
je 0x1002fca9
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push ebp
push edi
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002fbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x58], eax
jmp 0x1002fca9
add dword [esi + 0x90], ebp
mov eax, 1
pop edi
adc dword [esi + 0x94], 0
pop esi
pop ebp
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10142783
add esp, 8
ret 8
push ebx
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
push edi
lea ecx, [esi + 0x18]
call fcn.1006dd50
test eax, eax
jne 0x1002fc0f
mov dword [esi + 0x54], 1
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.10012110
mov dword [esi + 0x14], 0
push ebx
cmp dword [esi + 0x2c], eax
jbe 0x1002fcbf
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0xbb8
xor ebp, ebp
mov eax, 1
test edi, edi
je 0x1002fc96
test eax, eax
je 0x1002fc53
push 0xa
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x54], 0
jne 0x1002fc96
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x2c]
call fcn.10012110
cmp ebx, eax
jbe 0x1002fc8c
cmp ebp, ebx
jne 0x1002fc73
dec edi
jmp 0x1002fc78
mov edi, 0xbb8
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, ebx
cmovne ebp, ebx
lea ebx, [esi + 0x30]
jmp 0x1002fc3b
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x20]
cmp dword [esi + 0x54], 1
pop ebx
je 0x1002fca9
test edi, edi
jg 0x1002fbc9
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10142783
add esp, 8
ret 8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0xbb8
jmp 0x1002fc9a
Function at 0x10030060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x60]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0x2c]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x100300a2
test ecx, ecx
jne 0x100300a2
cmp ebx, 0x8000
sbb edi, edi
and edi, 0xffff8000
add edi, 0x8000
jmp 0x100300ac
mov edi, 0x8000
cmp ebx, edi
cmovb edi, ebx
test edi, edi
jne 0x100300d4
test eax, eax
mov eax, 1
cmovne ebp, eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1003017f
cmp ebx, edi
jl 0x1003013a
test edi, edi
jle 0x1003013a
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
jle 0x10030118
mov eax, dword [esi + 0x20]
mov ebx, edi
sub eax, ecx
cmp eax, edi
cmovl ebx, eax
mov eax, dword [esi + 0x1c]
push ebx
add eax, ecx
push eax
push dword [esp + 0x18]
call fcn.10146160
add esp, 0xc
cmp ebx, edi
jge 0x1003012b
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [esp + 0x14]
push dword [esi + 0x1c]
add eax, ebx
push eax
jmp 0x10030123
mov eax, dword [esi + 0x1c]
push edi
add eax, ecx
push eax
push dword [esp + 0x18]
call fcn.10146160
add esp, 0xc
mov eax, dword [esi + 0x24]
add eax, edi
cdq
idiv dword [esi + 0x20]
sub dword [esi + 0x2c], edi
mov dword [esi + 0x24], edx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [esi + 0x2c]
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push dword [esp + 0x1c]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003016f
cmp dword [esp + 0x18], edi
je 0x1003017f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 1
cmp dword [esp + 0x14], 0
je 0x100301a0
cmp dword [esi + 0x54], 0
jne 0x10030190
test ebx, ebx
jne 0x100301a0
push dword [esi + 0x4c]
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esi + 0x30]
test ebp, ebp
je 0x10030070
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret
Function at 0x100318b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10160100
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100318f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x2c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003190d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x28]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031927
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x24]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031941
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003195b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031975
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003198f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x14]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100319a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x10]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100319c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0xc]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100319dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 8]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100319f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003e720
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10160ea9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x870]
mov dword [ebp - 0x40], esi
test ecx, ecx
jne 0x1003e831
push 0xe6e0
call fcn.101427a2
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
push 0xe6e0
push 0
push edi
mov byte [ebp - 4], 1
call fcn.10143f10
add esp, 0xc
lea eax, [esi + 0x810]
mov ecx, edi
push eax
call fcn.1009f4e0
mov byte [ebp - 4], 0
mov dword [esi + 0x870], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x24]
mov edi, 1
mov edx, dword [esi + 0x870]
cmp ecx, edi
mov eax, 0x40
mov dword [ebp - 0x3c], edx
cmovl ecx, edi
cmp ecx, eax
push 0x338
cmovg ecx, eax
mov eax, 8
cmp ecx, eax
cmovb eax, ecx
mov dword [edx + 0x1c], eax
call fcn.101427a2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], ebx
push 0x338
push 0
push ebx
mov byte [ebp - 4], 2
call fcn.10143f10
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, ebx
push dword [eax + 0x1c]
call fcn.100e4170
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
push dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [esi + 0x870]
call fcn.1009fb50
mov eax, edi
jmp 0x1003e893
push dword [ebp + 0xc]
mov edi, 1
push dword [ebp + 8]
call fcn.1009fb50
mov eax, edi
jmp 0x1003e893
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret 8
Function at 0x100420d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov eax, dword [ebx]
mov esi, dword [esp + 0x58]
push edi
mov edi, ecx
mov dword [esp + 0x2c], ebx
push 0x30
push esi
mov ecx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebp
call dword [eax + 0x18]
test eax, eax
jne 0x1004212f
mov dword [edi + 0x744], 0xa0000003
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10142783
add esp, 0x44
ret 0x10
mov eax, dword [esi + 0x1d]
mov dword [edi + 0x844], eax
movzx eax, byte [esi + 4]
mov dword [edi + 0x854], eax
mov ecx, dword [esi + 0x27]
test ecx, ecx
je 0x1004222d
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x20]
mov ecx, ebx
call eax
cmp eax, dword [esi + 0x27]
jne 0x10042164
test edx, edx
je 0x1004216e
mov dword [edi + 0x744], 0xa0000003
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push 0x18
push ecx
mov ecx, ebx
call dword [eax + 0x18]
test eax, eax
je 0x1004210e
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 0xdea58cb6
mov eax, 1
xor ebp, ebp
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, 2
mov edi, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, 3
mov ebx, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, 5
mov esi, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, ebp
lea edx, [esp + 0x34]
and eax, 3
add edx, ebp
add ebp, 6
mov cl, byte [esp + eax + 0x10]
lea eax, [edi + edx]
and eax, 3
xor byte [edx], cl
xor byte [edx + 4], cl
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 1], al
lea eax, [ebx + edx]
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 2], al
lea eax, [esi + edx]
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 3], al
mov eax, dword [esp + 0x20]
add eax, edx
and eax, 3
movzx eax, byte [esp + eax + 0x10]
xor byte [edx + 5], al
cmp ebp, 0x18
jl 0x100421c6
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esi + 0x23]
test ecx, ecx
je 0x10042287
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x20]
mov ecx, ebx
call eax
cmp eax, dword [esi + 0x23]
jne 0x1004224b
test edx, edx
je 0x10042255
mov dword [edi + 0x744], 0xa0000003
mov eax, dword [ebp]
or eax, dword [ebp + 4]
jne 0x1004226a
mov eax, dword [esi + 0x2b]
mov dword [ebp], eax
mov dword [ebp + 4], 0
movzx eax, byte [esi + 0x21]
mov ecx, edi
push ebp
push dword [esi + 0x19]
push eax
push dword [esp + 0x6c]
push ebx
call fcn.100422c0
test eax, eax
je 0x10042118
cmp dword [esi + 0x27], 0
jne 0x1004229d
cmp dword [esi + 0x23], 0
jne 0x1004229d
mov dword [edi + 0x850], 1
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x44
ret 0x10
Function at 0x100472b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, edx
mov edi, esi
shr edi, 2
test edi, edi
je 0x100472ea
movzx eax, byte [ecx + 1]
dec edi
movzx edx, byte [ecx]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ecx, 4
or edx, eax
xor ebx, edx
test edi, edi
jg 0x100472c2
and esi, 3
xor edx, edx
sub esi, 1
je 0x1004730e
sub esi, 1
je 0x10047305
sub esi, 1
jne 0x10047313
movzx edx, byte [ecx]
shl edx, 0x10
inc ecx
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
inc ecx
movzx ecx, byte [ecx]
or edx, ecx
pop edi
xor edx, ebx
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10056580
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161aed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x30]
xorps xmm0, xmm0
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x854]
mov dword [edi + 0x844], eax
lea eax, [edi + 0x18]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [edi + 0x848], eax
mov dword [edi + 0x850], edx
mov dword [edi + 0x828], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.CArkAutoByte.0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x810]
call fcn.1007a100
test al, al
je 0x10056624
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x810]
call fcn.1007a3f0
test al, al
jne 0x10056644
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056634
push eax
call fcn.10146720
add esp, 4
mov eax, dword [edi + 0x84c]
mov dword [edi + 0x744], eax
xor eax, eax
jmp 0x10056666
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056654
push eax
call fcn.10146720
add esp, 4
movzx eax, byte [edi + 0x815]
mov dword [edi + 0x73c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret
Function at 0x10069110
Capabilities:
Clear file content

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx + 8]
cmp dword [eax + 0x54], 0
je 0x10069197
mov esi, dword [esp + 0x18]
test esi, esi
jl 0x10069197
mov edi, dword [esp + 0x14]
jg 0x10069197
cmp edi, 0x1000
jbe 0x10069197
test esi, esi
jg 0x10069197
jl 0x10069143
cmp edi, 0x40000000
ja 0x10069197
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
mov eax, dword [ebp]
mov eax, dword [eax + 0x48]
call eax
or eax, edx
jne 0x10069197
mov eax, dword [ebp]
mov ecx, ebp
push esi
push edi
mov eax, dword [eax + 0x44]
call eax
cmp eax, edi
jne 0x10069197
cmp edx, esi
jne 0x10069197
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1006917c
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov eax, dword [ebp]
mov ecx, ebp
push 0
push 0
mov eax, dword [eax + 0x44]
call eax
or eax, edx
je 0x10069197
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
Function at 0x100691b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 0x48
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, ecx
lea eax, [esi + 0x4c]
mov dword [esi + 0x2c], 0
push eax
mov dword [esi + 0x44], 0
mov byte [esi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x20], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x3c], 0
push 0x8000
mov dword [esi + 0x40], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
call fcn.10146843
mov dword [esi + 0x24], eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10069267
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1006928d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x44], eax
push 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
call fcn.1014673b
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov ecx, esi
push 4
lea eax, [esp + 0xc]
push eax
call fcn.1007e100
push 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.1007e100
push 8
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.1007e100
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 8
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.1007e100
push 0x20
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x10069376
push 0x20
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.1007e100
mov ecx, dword [esp + 0x44]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10142783
add esp, 0x48
ret
Function at 0x1006c940
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
push esi
cdq
push edi
mov edi, dword [ebx + 0x71e8]
cmp dword [ebx + 0x71ec], edx
jg 0x1006c960
jl 0x1006c962
cmp edi, eax
jb 0x1006c962
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push edi
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x1006c9c0
mov eax, dword [esp + 0x10]
mov edx, edi
mov ecx, dword [eax]
test edi, edi
je 0x1006c9a7
push ebp
mov ebp, dword [ebx + 0x71f4]
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
movzx eax, word [ebp + eax*2]
xor ecx, eax
sub edx, 1
jne 0x1006c988
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], ecx
mov eax, edi
cdq
sub dword [ebx + 0x71e8], eax
mov eax, edi
pop edi
sbb dword [ebx + 0x71ec], edx
pop esi
pop ebx
ret 0x10
push 0x101eb630
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xa0000015
push eax
call fcn.10143df0
int3

Function at 0x1006cbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov edx, 2
cmp dword [esp + 0x10], edx
push ebp
cmovge edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esi], edx
mov edx, ebx
mov dword [esi + 4], 0
mov eax, dword [edi + 0x71f8]
cmp dword [eax + ebx*8 + 4], ecx
je 0x1006cc3b
movzx ebx, word [edi + 0x2a]
add ebx, 0xfffffffd
cmp ecx, ebx
jae 0x1006cc37
mov eax, dword [edi + 0x34]
inc ecx
add eax, ecx
shl edx, 5
movzx eax, byte [eax + ebp + 2]
xor edx, eax
mov eax, dword [edi + 0x71f8]
and edx, 0x7fff
cmp dword [eax + edx*8 + 4], 0
jne 0x1006cc10
mov ebx, dword [esp + 0x14]
movzx eax, word [edi + 0x2a]
add eax, 0xfffffffd
cmp ecx, eax
push esi
cmove edx, ebx
xor ebx, ebx
cmp ecx, eax
movzx eax, word [edi + 0x2a]
push eax
cmovne ebx, ecx
mov ecx, edi
push ebx
push ebp
push edx
call fcn.1006c9e0
test ebx, ebx
je 0x1006cc7c
lea eax, [ebx + 3]
cmp dword [esi], eax
jae 0x1006cc7c
push esi
lea eax, [ebx + 2]
mov ecx, edi
push eax
push 0
push ebp
push dword [esp + 0x24]
call fcn.1006c9e0
mov eax, dword [edi + 0x40]
cmp dword [esi], eax
jbe 0x1006cc85
mov dword [esi], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x1006e2a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, 0x100
jg case.default.0x1006e2c5
je 0x1006e3d2
cmp eax, 3
ja case.default.0x1006e2c5
jmp dword [eax*4 + 0x1006e424]
mov al, byte [esi + 0x18]
mov ecx, 0xff
test al, al
movzx edx, al
cmove edx, ecx
xor ecx, ecx
movsx eax, dl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
test edi, edi
jle case.0x1006e2c5.0
mov eax, dword [esp + 0x10]
cmp edi, 0x40
jb 0x1006e350
mov esi, edi
and esi, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add ecx, 0x40
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
pxor xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
pxor xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp ecx, esi
jl 0x1006e310
cmp ecx, edi
jge case.0x1006e2c5.0
sub edi, ecx
xor byte [eax], dl
lea eax, [eax + 1]
sub edi, 1
jne 0x1006e352
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
ret 8
test edi, edi
jle case.0x1006e2c5.0
mov ecx, dword [esp + 0x10]
mov al, byte [esi + 8]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
sub edi, 1
jne 0x1006e371
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
ret 8
mov ebx, dword [esp + 0x10]
test ebx, ebx
je case.0x1006e2c5.0
test edi, edi
jle case.0x1006e2c5.0
nop dword [eax]
push 0
push 0x400
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.1015db60
lea ebx, [ebx + 1]
mov al, byte [eax + esi + 0x24]
xor byte [ebx - 1], al
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
sub edi, 1
jne 0x1006e3a0
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
ret 8
mov ebx, dword [esp + 0x10]
test ebx, ebx
je case.0x1006e2c5.0
cmp dword [esi + 0x20], 0
je case.default.0x1006e2c5
test edi, edi
jle case.0x1006e2c5.0
push 0
push 0x400
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.1015db60
mov ecx, dword [esi + 0x20]
lea ebx, [ebx + 1]
mov al, byte [eax + ecx]
xor byte [ebx - 1], al
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
sub edi, 1
jne 0x1006e3e4
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8