joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ac3
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009aca
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009ad3
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009adc
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x1000aabc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push str.KernelUtil.dll
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x24], 0xcc15ff26
mov dword [ebp - 0x20], 0x6acccccc
mov dword [ebp - 0x1c], 0xf7599915
mov dword [ebp - 0x18], 0x48c283f9
mov dword [ebp - 0x14], 0x7612fa83
mov dword [ebp - 0x10], 0x4c28305
mov dword [ebp - 0xc], 0xc28303eb
mov byte [ebp - 8], 0x13
mov dword [ebp - 0x58], 0xe8cccccc
mov dword [ebp - 0x54], 0xcccccccc
mov dword [ebp - 0x50], 0x6856f633
mov dword [ebp - 0x4c], 0x2e5
mov dword [ebp - 0x48], 0xff56016a
mov dword [ebp - 0x44], 0xcccccc15
mov dword [ebp - 0x40], 0x15ff56cc
mov dword [ebp - 0x3c], 0xcccccccc
mov dword [ebp - 0x38], 0x5d89db33
mov dword [ebp - 0x34], 0xe87589e4
mov dword [ebp - 0x30], 0x89ec7589
mov dword [ebp - 0x2c], 0x4d8bf075
mov dword [ebp - 0x28], 0xfc758908
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
cmp ebx, esi
jne 0x1000ab7b
xor eax, eax
jmp 0x1000acdf
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], esi
push edi
lea esi, [ebx + 0x8ef16]
push 0x1d
lea edx, [esi + 1]
lea eax, [ebp - 0x24]
call fcn.1000b225
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
test eax, eax
je 0x1000abfe
mov al, byte [esi]
cmp al, 0x74
je 0x1000abfe
cmp al, 0xeb
jne 0x1000abfe
cmp dword [ebp + 8], 0
je 0x1000abf7
lea eax, [ebp - 0x60]
push eax
push 0x40
push 2
push esi
mov dword [0x1002a180], 1
call edi
test eax, eax
je 0x1000abea
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
mov byte [esi], 0x74
push dword [ebp - 0x60]
push 2
push esi
call edi
mov dword [ebp - 0x64], 1
push 0xfa2
jmp 0x1000abef
push 0xfa3
call fcn.10003a44
pop ecx
jmp 0x1000abfe
mov dword [ebp - 0x68], 1
and dword [ebp - 0x60], 0
lea esi, [ebx + 0x80854]
lea edx, [esi + 4]
push 0x34
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], esi
call fcn.1000b225
pop ecx
test eax, eax
je 0x1000acb3
mov esi, dword [esi]
mov eax, 0x4c2
cmp esi, eax
jne 0x1000acb3
cmp dword [ebp + 8], 0
je 0x1000acac
add ebx, 0x10c9f0
mov esi, ebx
shl esi, 0x18
or esi, 0xb82c6a
mov dword [0x1002a180], 1
cmp esi, eax
je 0x1000aca5
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
movzx ecx, bl
shl eax, 8
add eax, ecx
cmp ebx, eax
jne 0x1000aca5
mov ebx, dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x1000acb3
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
mov dword [ebx], esi
push dword [ebp - 0x60]
push 4
push ebx
call edi
cmp dword [ebp - 0x64], 1
jne 0x1000ac98
mov dword [ebp - 0x64], 2
push 0xfa4
call fcn.10003a44
pop ecx
jmp 0x1000acb3
push 0xfa5
jmp 0x1000ac9d
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x68], 0
pop edi
je 0x1000acc5
push 0xfbc
call fcn.10003a44
pop ecx
cmp dword [ebp - 0x64], 0
jle 0x1000acdc
cmp dword [ebp + 0xc], 0
je 0x1000acdc
push 0xfbe
call fcn.10003a44
pop ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x1000aced
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.1000b197
mov edi, eax
pop ecx
mov dword [ebp - 8], edi
test edi, edi
je 0x1000ad76
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1000ad6c
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x1000ad6c
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 4]
push ebx
lea ebx, [ecx + eax]
cmp ebx, edx
jbe 0x1000ad3c
xor eax, eax
lea ebx, [ecx + eax]
cmp ebx, edx
jbe 0x1000ad47
sub edx, eax
mov ecx, edx
push dword [ebp + 0xc]
lea ebx, [eax + edi]
mov edi, dword [ebp + 0x10]
push ecx
call fcn.1000b24f
mov edi, dword [ebp - 8]
pop ecx
pop ecx
pop ebx
test eax, eax
je 0x1000ad6c
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + ecx]
sub eax, dword [esi + 0x34]
mov dword [ebp - 0xc], eax
push edi
call fcn.1000e3a6
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1000b197
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000b1c1
xor eax, eax
jmp 0x1000b222
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
jne 0x1000b1dd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000b221
push ebx
call fcn.1000e2df
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1000b21e
mov dword [esi], edi
cmp ebx, edi
jbe 0x1000b21e
mov eax, dword [esi]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, ebx
sub ecx, eax
add eax, dword [ebp - 0xc]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000b21e
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1000b21e
add dword [esi], eax
cmp dword [esi], ebx
jb 0x1000b1f1
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
leave
ret

Function at 0x1000b2a1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push esi
cmp edi, eax
je 0x1000b2ef
cmp dword [ebp + 8], eax
je 0x1000b2ef
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x1000b2ef
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10010a50
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push edi
call esi
xor eax, eax
inc eax
jmp 0x1000b2f1
xor eax, eax
pop esi
leave
ret
Function at 0x1000b8fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x220
mov eax, 0x1001d8bc
call fcn.1001c784
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x21c], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.1000fb40
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
push str.SoftwareTencentQQBrowser
push 0x80000002
mov eax, 0x20019
lea ebx, [ebp - 0x22c]
mov dword [ebp - 4], esi
call fcn.10004040
test eax, eax
jne 0x1000b9b2
push 0x10023a44
mov eax, ebx
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
call fcn.10003f79
cmp word [ebp - 0x218], 0
je 0x1000b9b0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000b9b0
xor eax, eax
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call fcn.10002db0
cmp dword [ebp - 0x22c], esi
je 0x1000b9d8
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
call fcn.1001c7ce
ret 4

Function at 0x1000bba5
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 5
xor ebx, ebx
push ebx
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, str.open
push edi
push ebx
call esi
cmp eax, 0x20
jle 0x1000bbe9
xor eax, eax
inc eax
jmp 0x1000bc66
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1000fb40
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000e7e2
add esp, 0xc
push 5
push ebx
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call esi
cmp eax, 0x20
jle 0x1000bc59
push 0x3e9
call fcn.10003a44
xor eax, eax
inc eax
jmp 0x1000bc65
push 0x3ea
call fcn.10003a44
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret

Function at 0x1000c656
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x1002a188]
mov dword [0x1002a184], 1
test eax, eax
je 0x1000c699
cmp dword [0x1002a18c], 0
jbe 0x1000c699
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1002a188]
test eax, eax
je 0x1000c699
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1002a188]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002a190]
test eax, eax
je 0x1000c6b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x1002a190], 0
and dword [0x1002a188], 0
and dword [0x1002a18c], 0
ret
Function at 0x1000c7bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
call fcn.1000fb40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x20c], di
jne 0x1000c822
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
lea eax, [esi + 0x28]
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, di
jne 0x1000c82e
sub ecx, edx
sar ecx, 1
lea edx, [ebp - 0x20c]
push edx
mov ebx, ecx
call fcn.1000306b
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000e2d0
leave
ret

Function at 0x1000d6ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x217c
call fcn.1001acc0
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
mov esi, ecx
push eax
mov dword [ebp - 0x217c], esi
mov dword [ebp - 0x2178], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2178], eax
cmp eax, 0xffffffff
jne 0x1000d72e
push 0x10022ee8
push esi
call fcn.10002db0
mov eax, esi
jmp 0x1000d80d
push edi
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp - 0x2170]
stosb byte es:[edi], al
call fcn.100040ae
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0x2000
jmp 0x1000d76f
push dword [ebp - 0x2174]
lea eax, [ebp - 0x2170]
push eax
lea eax, [ebp - 0x2114]
call fcn.10004755
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2174]
push eax
push edi
lea eax, [ebp - 0x2114]
push eax
push dword [ebp - 0x2178]
mov dword [ebp - 0x2174], ebx
call esi
cmp dword [ebp - 0x2174], ebx
jne 0x1000d755
push dword [ebp - 0x2178]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x2170]
call fcn.1000499a
xor eax, eax
push 0xfe
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push ebx
push eax
call fcn.1000fb40
add esp, 0x10
lea esi, [ebp - 0x114]
pop edi
movzx eax, byte [ebp + ebx - 0x14]
push eax
push str._.2x
push 3
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jb 0x1000d7d5
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x217c]
call fcn.10002db0
mov eax, dword [ebp - 0x217c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret