joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005fa0
Capabilities:
Set environment variable

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x1c]
push ebx
push ebp
lea ebp, [ecx + 4]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
lea ebx, [ebx]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x10005fce
cmp esi, eax
je 0x10005fd4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x10006065
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x10005ffb
call ebx
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x10005ff1
call ebx
cmp dword [edi + 0x3c], 0
jne 0x10005fff
xor ebx, ebx
jmp 0x10006020
mov eax, dword [esi]
jmp 0x10005fea
test esi, esi
jne 0x10006019
call ebx
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x1000600e
call ebx
cmp dword [edi + 0x40], 8
jb 0x1000601d
mov ebx, dword [edi + 0x2c]
jmp 0x10006020
mov eax, dword [esi]
jmp 0x10006007
lea ebx, [edi + 0x2c]
test esi, esi
jne 0x10006040
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x10006035
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x24], 8
jb 0x10006044
mov eax, dword [edi + 0x10]
jmp 0x10006047
mov esi, dword [esi]
jmp 0x1000602a
lea eax, [edi + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [esp + 0x10]
call fcn.100054c0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x10005fc0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, ebp
call fcn.10005bf0
mov eax, dword [ebp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x18]
pop edi
mov dword [ebp + 0x1c], 0
mov dword [eax], eax
mov eax, dword [ebp + 0x18]
pop esi
pop ebp
mov dword [eax + 8], eax
pop ebx
add esp, 8
ret
Function at 0x10006cc0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10006ce0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x10006cf4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x10006d20
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x10006d36
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10006d43
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10007680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x100076f6
xor eax, eax
cmp ecx, edi
je 0x100076e4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x10007704
cmp ecx, edi
je 0x100077a2
push ecx
jmp 0x1000779c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x1000776c
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.10007680
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x100077bb
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x10007730
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x1000777f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x100077a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.10012a16
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x100077a4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012a16
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ba90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x10013f40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1001dfd0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1000bb12
call fcn.10006b10
mov edi, eax
jmp 0x1000bbf4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000bb2b
call fcn.10006b10
jmp 0x1000bbeb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x1000bb46
call fcn.10006b10
jmp 0x1000bbeb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x1000bb7c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000bb6a
lea ecx, [ebp]
call fcn.10007420
lea ecx, [ebp - 0x20]
call fcn.100073b0
mov eax, 0x8007000e
jmp 0x1000bc06
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10008890
mov dword [ebp - 4], 1
jmp 0x1000bba8
mov eax, dword [ebp]
test eax, eax
jne 0x1000bbb6
mov edi, 0x8007000e
jmp 0x1000bbed
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000bbcf
call fcn.10006b10
jmp 0x1000bbeb
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10009b50
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x1000bc04
lea ecx, [ebp]
call fcn.10007420
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.10012a16
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000d420
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x1000d48a
mov edx, ecx
push edx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1000d4bd
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.10012a16
add esp, 0x208
ret

Function at 0x1000d6a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000d6b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000d6f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1000d6f0
lea ebx, [ebx]
cmp esi, eax
jae 0x1000d6f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1000d6e0
cmp esi, eax
jb 0x1000d6fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x1000e770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000e3ad
push eax
push esi
push dword [ebp + 8]
call fcn.1000e362
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000e3ad
push eax
push esi
push dword [ebp + 8]
call fcn.1000e362
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000e39d
xchg edx, eax
in al, 0xba
in al, 0x88
popfd
jl 0x1000e822
invalid
invalid
Function at 0x1000ec40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000e362
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
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.1000e3ad
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000e362
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.1000e3ad
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000e362
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.1000e39d
adc dl, byte [eax - 0x5a7f39aa]
int3
Function at 0x10010da0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
mov ebx, ecx
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x10010f9e
push 1
add ebx, 0x40
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x10010de5
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
je 0x10010f9e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10010e6e
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x14]
call fcn.10010710
push edi
push 0xd80a
call fcn.1000d710
add esp, 8
test eax, eax
je 0x10010e34
push 0xd80a
push eax
lea ecx, [esp + 0x18]
call fcn.1000fa60
mov eax, dword [esp + 0x10]
push 0
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10010edc
push edi
call ebp
push str.Could_not_open_service
lea ecx, [esp + 0x14]
call fcn.10010710
push esi
push 0xd80c
call fcn.1000d710
add esp, 8
test eax, eax
je 0x10010eb3
push 0xd80c
push eax
lea ecx, [esp + 0x18]
call fcn.1000fa60
mov ecx, dword [esp + 0x10]
push 0
push ebx
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10010e58
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10010f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10010f3e
cmp eax, 0x425
jne 0x10010f09
cmp dword [esp + 0x1c], 3
je 0x10010f3e
push str.Could_not_stop_service
lea ecx, [esp + 0x14]
call fcn.10010710
push 0xd80e
lea ecx, [esp + 0x14]
call fcn.1000ffc0
mov edx, dword [esp + 0x10]
push 0
push ebx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x10]
call fcn.1000e770
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov dword [esp + 0x14], eax
call ebp
push edi
call ebp
cmp dword [esp + 0x10], 0
jne 0x10010f95
push str.Could_not_delete_service
lea ecx, [esp + 0x14]
call fcn.10010710
push 0xd80d
lea ecx, [esp + 0x14]
call fcn.1000ffc0
mov eax, dword [esp + 0x10]
push 0
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x10]
call fcn.1000e770
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x14]
call fcn.1000ec40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x10011170
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.10010da0
test eax, eax
jne 0x10011185
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001120c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.3006E649_80CB_4D5D_A506_01DE316767FD
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.10006c60
test eax, eax
je 0x10011219
push eax
call fcn.10006b30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x100111fc
push eax
call edi
test ebp, ebp
je 0x10011203
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.10006b30
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.10010560
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x1001123f
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001124a
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

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

Disassembly:
cmp dword [0x1001e2b8], 0
push esi
jne 0x1001249d
call fcn.100123c3
test eax, eax
je 0x100124e0
mov eax, dword [0x1001e2b8]
cmp eax, 1
jne 0x100124be
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100124e0
pop esi
ret
push eax
call dword [0x1001e2c0]
test eax, eax
jne 0x10012528
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100124e4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1001e2b8]
call dword [0x1001e2c0]
mov edi, eax
test edi, edi
je 0x10012509
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10012525
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1001e2b8]
call dword [0x1001e2bc]
add edi, 0x10
cmp edi, esi
jb 0x10012511
mov eax, edi
pop edi
pop esi
ret
jmp 0x1001248a

Function at 0x10012a16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001dfd0]
jne 0x10012a20
repz ret
jmp fcn.100130c9
Function at 0x401c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x4000
mov edx, 0x8000
sub edx, dword [ebp - 8]
cmp dword [ebp - 4], edx
jbe 0x401c93
mov eax, 0x8000
sub eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.005ca573
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401cbb
mov dword [ebp - 8], 0
jmp 0x401cdc
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401cdc
cmp dword [ebp - 8], 0x8000
jb 0x401c74
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401c00
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403da4
xor eax, eax
jmp 0x403e24
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403dbb
xor eax, eax
jmp 0x403e24
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403e07
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403e07
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403dde
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403e13
xor eax, eax
jmp 0x403e24
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403e21
xor eax, eax
jmp 0x403e24
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408ff0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcefb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x65fff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408760
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CryptoPP::BaseN_Decoder.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040df40
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00455f60
push 1
lea eax, [ebp + 8]
push eax
call fcn.00408ed0
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00418b40
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
call fcn.00408ec0
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00418b10
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004584a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00408b60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc