joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bd08
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x1000bca9
cmp dword [eax + 0xc], ebx
je 0x1000bd4c
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.1000b704
and eax, 0x3954e450
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1000bd3a
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x1000bd15
and eax, 0xffff
push eax
jmp 0x1000bd19
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b6c9
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x1000bef3
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x1000bcfa
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1000bc9b
call fcn.1000b704
cld
pop edx
xor eax, ebx
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x1000bdb8
add eax, esi
cmp dword [eax], ebx
je 0x1000bdb8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000bdb3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000bd9d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000bda5
cmp edx, ebx
jne 0x1000bef3
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000bd74
add eax, dword [eax + 4]
jmp 0x1000bd61
mov dword [ebp + 0xc], ebx
jmp 0x1000bdc3
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000bddb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000bdf9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000be57
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000be3e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000be47
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000be51
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000be33
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000bdbd
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x1000bfe9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1000b714
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000b6c9
add esp, 0xc

Function at 0x1000e84d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
call fcn.100090bc
mov esi, dword [esp + 8]
cmp esi, dword [eax + 0x98]
jne 0x1000e86f
call fcn.100090bc
mov ecx, dword [esi + 4]
mov dword [eax + 0x98], ecx
pop esi
ret
call fcn.100090bc
mov eax, dword [eax + 0x98]
jmp 0x1000e885
mov ecx, dword [eax + 4]
cmp esi, ecx
je 0x1000e891
mov eax, ecx
cmp dword [eax + 4], 0
jne 0x1000e87c
pop esi
jmp fcn.1000b938
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
pop esi
ret

Function at 0x10011820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x1003b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100118b8
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x10011898
xor eax, eax
push ebp
push 0x10011891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100118d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10011898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x1003b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x1003b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x100123ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1003d03c], 0
je 0x1001240d
cmp word [0x1003d210], 0xd7b2
jne 0x100123d5
cmp dword [0x1003d218], 0
jbe 0x100123d5
mov eax, 0x1003d20c
call dword [0x1003d228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1003b05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x10012434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x1003b020], 0
jne 0x10012429
push 0
push 0x1003b054
push 0x1003b05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x100137f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x10013856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.10012750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.10011714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10013840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001385d
lea eax, [ebp - 0x10]
call fcn.10012528
ret

Function at 0x10015420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x100154be
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.10012a68
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.100129d4
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x10015448
cmp byte [esp], 0
je 0x1001548f
mov eax, edi
call fcn.100129d4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x100154ca
mov eax, edi
call fcn.100129d4
push eax
mov eax, edi
call fcn.100129d4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.100115ec
mov edx, ebx
mov eax, edi
call fcn.10012a68
jmp 0x100154ca
mov eax, edi
mov edx, 0x100154d8
call fcn.1001257c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10015d38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1001257c
mov eax, ebx
call fcn.100129cc
mov eax, dword [ebx]
call fcn.1001277c
test eax, eax
jle 0x10015d69
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x10015d5e
pop esi
pop ebx
ret

Function at 0x10016048
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x10016094
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.10016f7c
test al, al
jne 0x1001608a
cmp word [edi], 0x5a4d
jne 0x1001608a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1001608a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x100160a0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10016230
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x1003b230], 0
jne 0x10016311
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x10016283
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x100162b4
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x10016311
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100162df
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x100162f1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x1001630b
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x100164f4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x100165ef
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x10016538
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x1001656c
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10012c24
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10012768
mov eax, dword [ebp - 8]
call fcn.1001297c
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100165d1
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x100165cb
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100165c5
mov eax, dword [ebp - 4]
call fcn.10016048
test eax, eax
je 0x100165b2
cmp word [eax + 0x18], 0x20b
je 0x100165b6
xor eax, eax
jmp 0x100165b8
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100165f6
lea eax, [ebp - 0xc]
call fcn.10012afc
lea eax, [ebp - 8]
call fcn.10012528
ret
Function at 0x10019c3c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x10019cb8
cmp dword [esp + 0x10], 0x1000
jne 0x10019cb8
cmp dword [esp + 4], 0
je 0x10019cb8
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10019cb8
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x10019cb8
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x10019cb8
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1001cc94
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x10021164
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x1002121b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x1003bd6c]
call fcn.10015d38
push dword [ebp - 0xc]
push 0x10021234
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x1003bd70]
call fcn.10021054
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.1001283c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.1001297c
push eax
call fcn.10020e68
mov esi, eax
test esi, esi
je 0x10021200
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x100211fa
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10021222
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.1001254c
ret

Function at 0x1002146c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x1002148c
push 0x40
push 0x1000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
pop ebx
ret
push 0
push ebx
call fcn.1001b008
pop ebx
ret

Function at 0x1002175c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x1003be58]
cmp eax, 0x1c
jne 0x100217d7
cmp dword [ebp - 0xc], 0x1000
jne 0x100217d2
cmp dword [ebp - 0x18], 0
je 0x100217d2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x100217d2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x100217b1
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x100217d7
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x1003be2c]
cmp eax, 0
je 0x100217d2
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x1003beac]
add ebx, dword [ebp - 0x10]
jmp 0x10021773
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x100254b8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x100256a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x1003bcc8]
call fcn.10019aac
mov dword [0x1003d6e0], eax
xor edx, edx
mov eax, dword [0x1003bccc]
call fcn.10019aac
mov dword [0x1003d6e4], eax
lea eax, [ebp - 4]
mov edx, 5
call fcn.10012a68
lea eax, [ebp - 4]
call fcn.100129d4
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.100129d4
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.100129d4
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.100129d4
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.100129d4
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x1003bd54]
call fcn.10015d38
push dword [ebp - 0xc]
push 0x100256c0
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.100158e4
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.1001283c
mov eax, dword [ebp - 4]
call fcn.1001297c
push eax
push 0
push 0
call fcn.10013c90
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x10025684
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x1003d6d4], esi
mov dword [0x1003d6d8], edi
cmp dword [0x1003d6e0], 0
je 0x100255d4
cmp dword [0x1003d6e4], 0
jne 0x10025656
mov dl, 1
mov eax, dword [0x1003bc60]
call fcn.10019bb8
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x10025668
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x10025668
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x10025668
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x10025668
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x10025668
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10025668
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x1003d6dc], edx
mov edx, 0x10025468
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 8]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x10025668
push 0x10025414
push 0xffffffffffffffff
call dword [0x1003d6e0]
test eax, eax
setne bl
test bl, bl
jne 0x10025684
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100256ae
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.1001254c
lea eax, [ebp - 4]
call fcn.10012528
ret
Function at 0x100256c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x1003d6e0], 0
je 0x100256dc
cmp dword [0x1003d6e4], 0
jne 0x1002571d
mov dl, 1
mov eax, dword [0x1003bc60]
call fcn.10019bb8
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10025728
mov eax, dword [0x1003d6dc]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x10025728
push 0x10025414
call dword [0x1003d6e4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10029164
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x100292af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x100292c8
call fcn.10012d04
mov eax, dword [ebp - 0x14]
call fcn.10012c88
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10029297
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x100291f2
inc edi
xor esi, esi
mov al, byte [ebp - 0x10]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x100291df
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
sub edx, 0x18
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.1001ec48
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x10029254
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x1002922c
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x10029299
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100292b6
lea eax, [ebp - 0x14]
call fcn.10012afc
ret

Function at 0x100292d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x10029331
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x1002930d
mov edx, ebx
mov eax, dword [esp]
call fcn.100292d4
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x10029302
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1002a418
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1002a5a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x1002a56b
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x1003bda0]
call fcn.10015d38
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
call fcn.10012710
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
pop edx
call fcn.100127c8
mov eax, dword [ebp - 0x14]
call fcn.1001297c
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x1002a55c
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1002a556
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x1002a4e9
cmp eax, dword [esp]
pop edx
pop eax
jne 0x1002a54d
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x1002a54d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x1002a52e
mov bl, 1
jmp 0x1002a54d
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x1002a545
mov byte [ebp - 9], 1
jmp 0x1002a54d
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x1002a505
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x1002a56b
inc edi
cmp edi, 0xa
jne 0x1002a45f
cmp byte [ebp - 9], 0
jne 0x1002a57b
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.1002a2c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002a5a8
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.1001254c
lea eax, [ebp - 0x14]
call fcn.10012528
ret