joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cfcf8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1011c710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.100b0eff
mov esi, eax
test esi, esi
pop ecx
je 0x100cfda3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x100cfd99
push edi
mov edi, 0x80000000
push ebx
push eax
push esi
mov byte [eax], 0
call fcn.100b061c
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100cfd97
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x100cfd71
inc ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x100cfd97
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.100ac7cd
test eax, eax
pop ecx
pop ecx
jne 0x100cfd32
pop ebx
pop edi
push esi
call fcn.100ab42d
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100ac33f
leave
ret 4

Function at 0x100cff2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x100cff10
mov ecx, 0x10130cbc
call fcn.100cf3a5
mov ebx, eax
cmp word [ebx + 8], 0
jne 0x100d0024
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.COMCTL32.DLL
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x100cfffb
push edi
push str.KERNEL32.DLL
call esi
push str.GetUserDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov esi, dword [ebp + 0x10]
mov edi, 0x3ee
je 0x100cffc5
call eax
and ax, 0x3ff
cmp ax, 0x11
jne 0x100cffc5
mov ecx, str.MS_UI_Gothic
call fcn.100cfe73
test eax, eax
je 0x100cffc5
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xe
add eax, edi
push 0xfc11
movzx eax, ax
push eax
push 5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x100cffdd
neg esi
sbb esi, esi
and esi, 0xe
add esi, edi
movzx eax, si
push 5
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
pop edi
je 0x100cfffb
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.100c8f23
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 4], eax
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov word [ebx + 8], ax
pop esi
push dword [ebx + 4]
mov ecx, dword [ebp + 8]
call fcn.10001f92
mov bx, word [ebx + 8]
mov eax, dword [ebp + 0xc]
mov word [eax], bx
xor eax, eax
cmp bx, 0xffff
setne al
pop ebx
leave
ret 0xc
Function at 0x100d25d8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 4], eax
and dword [ebp - 4], 1
push edi
mov edi, str.Insertable
je 0x100d263e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0
mov ebx, 0x100e2d52
push ebx
push 1
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d2618
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x100d263b
xor esi, esi
cmp dword [ebp - 4], 0
je 0x100d2632
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
push dword [ebp + 0xc]
call ebx
push edi
push dword [ebp + 8]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test al, 2
je 0x100d2649
mov ebx, str.Apartment
test al, 4
je 0x100d2652
mov ebx, str.Free
and eax, 6
cmp al, 6
jne 0x100d265e
mov ebx, str.Both
test ebx, ebx
je 0x100d26b8
lea eax, [ebp + 0x10]
push eax
push 0x20006
push 0
push 0x100f0730
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x100d261a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push str.ThreadingModel
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100d261a
xor eax, eax
inc eax
jmp 0x100d2634
Function at 0x100d2791
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100e0099
call fcn.100ac440
sub esp, 0x124
mov eax, dword [0x1011c710]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], edi
call fcn.100c6d12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
and dword [ebp - 4], 0
call fcn.100c6d12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x120], eax
and dword [ebp - 0x128], 0
mov esi, 0x80000000
cmp edi, esi
mov byte [ebp - 4], 1
jne 0x100d2825
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x100e2a18
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [ebx]
test edi, edi
mov dword [ebp - 0x12c], 1
je 0x100d2925
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp - 0x124], 4
cmp dword [ebp - 0x11c], esi
jne 0x100d2857
cmp byte [edi], 0
je 0x100d2907
push edi
call ebx
push dword [ebp + 0x10]
lea eax, [eax + edi + 1]
push dword [ebp - 0x130]
mov dword [ebp - 0x114], eax
push edi
lea eax, [ebp - 0x118]
push eax
call fcn.100cb8e4
push dword [ebp + 0x10]
lea eax, [ebp - 0x120]
push dword [ebp - 0x130]
push dword [ebp - 0x114]
push eax
call fcn.100cb8e4
cmp dword [ebp - 0x11c], esi
mov eax, dword [ebp - 0x118]
jne 0x100d28a9
cmp dword [eax - 0xc], 0
je 0x100d2907
cmp dword [ebp + 0x14], 0
jne 0x100d28de
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 0x11c]
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x100d2907
mov eax, dword [ebp - 0x118]
mov edi, dword [ebp - 0x120]
push edi
mov dword [ebp - 0x114], eax
call ebx
push eax
push edi
push 1
push dword [ebp - 0x114]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x100d2919
mov eax, dword [ebp - 0x124]
mov edi, dword [eax]
test edi, edi
jne 0x100d283f
jmp 0x100d2925
cmp eax, 5
je 0x100d2925
and dword [ebp - 0x12c], 0
cmp dword [ebp - 0x128], 0
pop edi
pop esi
pop ebx
je 0x100d293d
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.10001199
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.10001199
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ac33f
leave
ret 0x14
Function at 0x10001006
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
test byte [0x10035fdc], 1
push edi
jne 0x1000103e
or dword [0x10035fdc], 1
or dword [0x10035fc0], 0xffffffff
push 0x100210b2
mov dword [0x10035fc4], esi
mov dword [0x10035fc8], esi
call fcn.1000d21f
pop ecx
lea eax, [ebp - 4]
push eax
push dword [0x10035fc0]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1000105e
cmp dword [ebp - 4], 0x103
je 0x10001083
push 0x10035fc4
push esi
push 0x10035fc0
push 0x100015ce
push esi
push esi
call fcn.1000d577
add esp, 0x18
mov dword [0x10035fc0], eax
mov dword [0x10035fc8], esi
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1000109f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x1000108b
pop edi
pop esi
leave
ret 0x10
Function at 0x10002d09
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call fcn.10002cb7
mov ebx, eax
cmp ebx, esi
je 0x10002d78
lea esi, [ebp - 0x21c]
call fcn.10002e24
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb3
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10002d96
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10002d09
cmp eax, esi
jne 0x10002ddb
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], 0x100
call ebx
test eax, eax
je 0x10002d80
lea esi, [ebp - 0x21c]
call fcn.10002e24
push dword [ebp - 0x220]
call fcn.10002e8d
lea esi, [ebp - 0x21c]
mov edi, eax
call fcn.10002e24
mov eax, edi
jmp 0x10002d67
Function at 0x10003793
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10020dcb
call fcn.1001fb2b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100037eb
call fcn.10002180
mov esi, eax
jmp 0x100038f5
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10003804
call fcn.10002180
jmp 0x100038e7
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x100037fa
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x10003841
mov esi, 0x8007000e
jmp 0x100038e9
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x10003856
cmp eax, 0xffffffff
jbe 0x10003860
push 0x80070216
call fcn.10002b7c
cmp eax, 0x400
jbe 0x1000388d
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10002759
jmp 0x10003899
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x10003837
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100037fa
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.10003633
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000390e
lea eax, [ebp - 0x418]
call fcn.1000272e
mov eax, esi
call fcn.1001fb87
ret 0xc
Function at 0x10004dce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x870], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x58], 0xcca3cc9f
mov dword [ebp - 0x54], 0xccb8ccaa
mov dword [ebp - 0x50], 0xccadccbb
mov dword [ebp - 0x4c], 0xcca9ccbe
mov dword [ebp - 0x48], 0xcc98cc90
mov dword [ebp - 0x44], 0xcca2cca9
mov dword [ebp - 0x40], 0xcca9ccaf
mov dword [ebp - 0x3c], 0xccb8cca2
mov dword [ebp - 0x38], 0xccaecc90
mov dword [ebp - 0x34], 0xccabccb9
mov dword [ebp - 0x30], 0xcca9cc9e
mov dword [ebp - 0x2c], 0xcca3ccbc
mov dword [ebp - 0x28], 0xccb8ccbe
mov dword [ebp - 0x24], 0xcc9dcc90
mov dword [ebp - 0x20], 0xcc90cc9d
mov dword [ebp - 0x1c], 0xccb8cc85
mov dword [ebp - 0x18], 0xcca1cca9
mov dword [ebp - 0x14], 0xcc9fccbf
mov dword [ebp - 0x10], 0xccadccb8
mov dword [ebp - 0xc], 0xcca9ccb8
mov word [ebp - 8], 0xcccc
mov dword [ebp - 0x86c], eax
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x864], eax
xor byte [ebp + eax - 0x58], 0xcc
inc eax
cmp eax, 0x52
jb 0x10004e99
push ebx
lea eax, [ebp - 0x58]
push eax
push SysReAllocString
mov eax, 0x20019
lea ebx, [ebp - 0x86c]
call fcn.10002cb7
pop ebx
test eax, eax
jne 0x10004f33
push edi
push esi
lea eax, [ebp - 0x86c]
push eax
lea esi, [ebp - 0x85c]
lea edi, [ebp - 0x858]
mov dword [ebp - 0x85c], 0x400
call fcn.1000c952
pop edi
test eax, eax
jne 0x10004f28
and dword [ebp - 0x85c], eax
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x858]
push 0x10024efc
push eax
call fcn.1000d68b
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jl 0x10004f28
mov eax, dword [ebp - 0x85c]
mov edx, dword [ebp - 0x870]
mov dword [edx], eax
mov dword [ebp - 0x860], ecx
lea esi, [ebp - 0x86c]
call fcn.10002e24
lea esi, [ebp - 0x86c]
call fcn.10002e24
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x860]
xor ecx, ebp
pop esi
call fcn.1000cdb3
leave
ret
Function at 0x10004f51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x58], 0xcca3cc9f
mov dword [ebp - 0x54], 0xccb8ccaa
mov dword [ebp - 0x50], 0xccadccbb
mov dword [ebp - 0x4c], 0xcca9ccbe
mov dword [ebp - 0x48], 0xcc98cc90
mov dword [ebp - 0x44], 0xcca2cca9
mov dword [ebp - 0x40], 0xcca9ccaf
mov dword [ebp - 0x3c], 0xccb8cca2
mov dword [ebp - 0x38], 0xccaecc90
mov dword [ebp - 0x34], 0xccabccb9
mov dword [ebp - 0x30], 0xcca9cc9e
mov dword [ebp - 0x2c], 0xcca3ccbc
mov dword [ebp - 0x28], 0xccb8ccbe
mov dword [ebp - 0x24], 0xcc9dcc90
mov dword [ebp - 0x20], 0xcc90cc9d
mov dword [ebp - 0x1c], 0xccb8cc85
mov dword [ebp - 0x18], 0xcca1cca9
mov dword [ebp - 0x14], 0xcc9fccbf
mov dword [ebp - 0x10], 0xccadccb8
mov dword [ebp - 0xc], 0xcca9ccb8
mov word [ebp - 8], 0xcccc
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], edi
xor eax, eax
xor byte [ebp + eax - 0x58], 0xcc
inc eax
cmp eax, 0x52
jb 0x10005010
lea eax, [ebp - 0x58]
push eax
push SysReAllocString
mov eax, 0x20006
lea ecx, [ebp - 0x164]
call fcn.100025ff
test eax, eax
jne 0x10005076
push dword [ebp + 8]
lea eax, [ebp - 0x158]
push 0x10024efc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
push esi
lea eax, [ebp - 0x164]
push eax
call fcn.100026f9
mov edi, eax
neg edi
sbb edi, edi
lea esi, [ebp - 0x164]
inc edi
call fcn.10002e24
lea esi, [ebp - 0x164]
call fcn.10002e24
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1000cdb3
leave
ret
Function at 0x1000bf17
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
cmp edi, esi
je 0x1000c0ed
cmp dword [ebp + 8], esi
je 0x1000c0ed
mov dword [ebp - 0x84], 0xa8c7a8fb
mov dword [ebp - 0x80], 0xa8dca8ce
mov dword [ebp - 0x7c], 0xa8c9a8df
mov dword [ebp - 0x78], 0xa8cda8da
mov dword [ebp - 0x74], 0xa8e5a8f4
mov dword [ebp - 0x70], 0xa8cba8c1
mov dword [ebp - 0x6c], 0xa8c7a8da
mov dword [ebp - 0x68], 0xa8c7a8db
mov dword [ebp - 0x64], 0xa8dca8ce
mov dword [ebp - 0x60], 0xa8ffa8f4
mov dword [ebp - 0x5c], 0xa8c6a8c1
mov dword [ebp - 0x58], 0xa8c7a8cc
mov dword [ebp - 0x54], 0xa8dba8df
mov dword [ebp - 0x50], 0xa8fba888
mov dword [ebp - 0x4c], 0xa8daa8cb
mov dword [ebp - 0x48], 0xa8d8a8c1
mov dword [ebp - 0x44], 0xa8f4a8dc
mov dword [ebp - 0x40], 0xa8cda8fb
mov dword [ebp - 0x3c], 0xa8dca8dc
mov dword [ebp - 0x38], 0xa8c6a8c1
mov dword [ebp - 0x34], 0xa8dba8cf
mov dword [ebp - 0x30], 0xa8eca8f4
mov dword [ebp - 0x2c], 0xa8c5a8c7
mov dword [ebp - 0x28], 0xa8c1a8c9
mov dword [ebp - 0x24], 0xa8dba8c6
mov word [ebp - 0x20], 0xa8a8
mov dword [ebp - 0x1c], 0xa8c9a8cc
mov dword [ebp - 0x18], 0xa8c9a8dc
mov word [ebp - 0x14], 0xa8a8
mov dword [ebp - 0x10], 0xa8c1a8dc
mov dword [ebp - 0xc], 0xa8cda8c5
mov word [ebp - 8], 0xa8a8
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
xor eax, eax
xor byte [ebp + eax - 0x84], 0xa8
inc eax
cmp eax, 0x66
jb 0x1000c035
lea eax, [ebp - 0x84]
push eax
push SysReAllocString
mov eax, 0x20006
lea ecx, [ebp - 0x90]
call fcn.100025ff
test eax, eax
jne 0x1000c0e2
xor byte [ebp + eax - 0x1c], 0xa8
inc eax
cmp eax, 0xa
jb 0x1000c063
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 3
push esi
push eax
push dword [ebp - 0x90]
call edi
test eax, eax
jne 0x1000c0cc
push esi
call fcn.1000d96a
pop ecx
mov dword [ebp - 0x94], edx
xor ecx, ecx
xor byte [ebp + ecx - 0x10], 0xa8
inc ecx
cmp ecx, 0xa
jb 0x1000c09a
push 4
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
push 4
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x90]
call edi
test eax, eax
jne 0x1000c0cc
xor edi, edi
inc edi
jmp 0x1000c0ce
xor edi, edi
lea esi, [ebp - 0x90]
call fcn.10002e24
call fcn.10002e24
mov eax, edi
jmp 0x1000c0ef
lea esi, [ebp - 0x90]
call fcn.10002e24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000cdb3
leave
ret
Function at 0x1000c952
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c9b6
cmp dword [ebp + 0xc], 1
je 0x1000c98e
cmp dword [ebp + 0xc], 2
je 0x1000c98e
push 0xd
pop eax
jmp 0x1000c9b6
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000c9b0
test eax, eax
je 0x1000c9ab
test al, 1
jne 0x1000c989
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000c9b0
jmp 0x1000c989
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x1000c9ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp eax, ecx
je 0x1000c9d6
cmp dword [ebp + 8], ecx
je 0x1000c9d6
mov dl, byte [ebp + 0xc]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, dword [ebp + 8]
jb 0x1000c9c8
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
cmp dword [0x100351d8], 0
push esi
push edi
jne 0x1000cb17
call fcn.1000ca83
test eax, eax
je 0x1000cb5c
mov eax, dword [0x100351d8]
cmp eax, 1
jne 0x1000cb38
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000cb5c
jmp 0x1000cb9e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000cb9e
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 0x1000cb60
xor eax, eax
jmp 0x1000cb9e
mov eax, dword [esi]
push dword [0x100351d8]
call edi
mov edi, eax
test edi, edi
je 0x1000cb82
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1000cb9e
lea edi, [esi + 0xff0]
push esi
push dword [0x100351d8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000cb88
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000cb03

Function at 0x1000cdb3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002a080]
jne 0x1000cdbd
repz ret
jmp fcn.1000e0f6
Function at 0x10014b5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000f370
and dword [ebp - 0x14], 0
cmp dword [0x10035eb8], 0
mov dword [ebp - 0x18], eax
jne 0x10014c0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10014cb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10014cb7
mov esi, dword [0x1002af90]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10035eb8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10035ebc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10035ec0], eax
call edi
push eax
call esi
mov dword [0x10035ec8], eax
test eax, eax
je 0x10014c0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10035ec4], eax
mov eax, dword [0x10035ec4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x1002af94]
cmp eax, ecx
je 0x10014c68
cmp dword [0x10035ec8], ecx
je 0x10014c68
push eax
call esi
push dword [0x10035ec8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10014c68
test ebx, ebx
je 0x10014c68
call edi
test eax, eax
je 0x10014c5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10014c5f
test byte [ebp - 8], 1
jne 0x10014c68
or dword [ebp + 0x10], 0x200000
jmp 0x10014c9b
mov eax, dword [0x10035ebc]
cmp eax, dword [ebp - 0x18]
je 0x10014c9b
push eax
call esi
test eax, eax
je 0x10014c9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10014c9b
mov eax, dword [0x10035ec0]
cmp eax, dword [ebp - 0x18]
je 0x10014c9b
push eax
call esi
test eax, eax
je 0x10014c9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10035eb8]
call esi
test eax, eax
je 0x10014cb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10014cb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb3
leave
ret

Function at 0x10019830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
jbe 0x10019891
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
sub ebx, ebp
mov dword [esp + 0x14], eax
inc esi
and esi, 0xff
movzx eax, byte [ecx + esi + 8]
add edi, eax
and edi, 0xff
movzx edx, byte [ecx + edi + 8]
mov byte [ecx + esi + 8], dl
mov byte [ecx + edi + 8], al
add al, dl
movzx eax, al
mov dl, byte [eax + ecx + 8]
xor dl, byte [ebx + ebp]
mov eax, dword [esp + 0x14]
mov byte [ebp], dl
inc ebp
dec eax
mov dword [esp + 0x14], eax
jne 0x10019853
pop ebp
pop ebx
mov dword [ecx + 4], edi
pop edi
mov dword [ecx], esi
xor eax, eax
pop esi
ret