joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x401c2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401c26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401c30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401c16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002057
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002558
call fcn.010021e4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001e69
cmp eax, esi
jne 0x1001e5c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001e6c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001e43
xor esi, esi
inc esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x1001e7f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001eba
mov eax, dword [0x1004374]
test eax, eax
jne 0x1001eb4
mov dword [0x1004374], esi
push 0x1001190
push 0x1001184
call fcn.01001dc0
pop ecx
pop ecx
test eax, eax
je 0x1001eba
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001f84
mov dword [0x1004038], esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x1001ede
push 0x1001180
push 0x1001178
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001eeb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100437c], ebx
je 0x1001f0c
push 0x100437c
call fcn.01002159
pop ecx
test eax, eax
je 0x1001f0c
push ebx
push 2
push ebx
call dword [0x100437c]
push dword [0x1004020]
push dword [0x1004024]
push dword [0x100401c]
call fcn.01001d45
add esp, 0xc
mov dword [0x1004034], eax
cmp dword [0x1004028], ebx
jne 0x1001f6a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004038], ebx
jne 0x1001f78
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004034]
call fcn.01002229
ret
call fcn.01002331
jmp 0x1001e21
Function at 0x10001740
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x10000
xor esi, esi
push esi
push str.CLSIDA8E947ED_B6BD_4305_BF09_D02675F32B6E
push 0x80000000
mov dword [ebp - 4], esi
call ebx
mov edi, 0x8000ffff
test eax, eax
je 0x10001775
mov esi, edi
jmp 0x10001788
push str.InprocServer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
cmovne esi, edi
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10001798
push eax
call edi
test esi, esi
jne 0x10001842
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x10000
push esi
push str.CLSID
push 0x80000000
call ebx
test eax, eax
je 0x100017c4
mov esi, 0x8000ffff
jmp 0x100017dc
push str.A8E947ED_B6BD_4305_BF09_D02675F32B6E
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x100017e6
push eax
call edi
test esi, esi
jne 0x10001842
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x10000
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
push 0x80000002
call ebx
test eax, eax
je 0x1000180e
mov esi, 0x8000ffff
jmp 0x10001826
push str._BackdoorOverlay
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001830
push eax
call edi
test esi, esi
jne 0x10001842
call fcn.10001e90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x8000ffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001c80
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x223c
call fcn.1000e500
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0x2214]
mov dword [ebp - 0x2214], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x221c]
push eax
push 0x2000
lea eax, [ebp - 0x220c]
push eax
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebx, dword [ebp - 0x221c]
xor esi, esi
shr ebx, 2
mov dword [ebp - 0x2210], ebx
test ebx, ebx
je 0x10001daa
mov eax, ebx
nop word [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x220c]
cmp ebx, dword [ebp - 0x2214]
jne 0x10001da1
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2218], eax
test eax, eax
je 0x10001d9b
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2234]
push eax
lea eax, [ebp - 0x223c]
push eax
lea eax, [ebp - 0x2224]
push eax
push dword [ebp - 0x2218]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, dword [ebp - 0x2224]
cmp eax, dword [edi + 4]
jae 0x10001d8f
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2220]
mov dword [edi], ebx
mov dword [edi + 8], eax
push dword [ebp - 0x2218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2210]
inc esi
cmp esi, eax
jl 0x10001d10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000216c
mov esp, ebp
pop ebp
ret

Function at 0x10001dc0
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x29e8
call fcn.1000e500
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100174c8
push 0
push 0x10016870
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x10001e74
lea eax, [ebp - 0x29e8]
push eax
call fcn.10001c80
add esp, 4
movq xmm0, qword [eax]
push 0
push 0
movq qword [ebp - 0x10], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
push dword [0x10016870]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
lea eax, [ebp - 0x29d8]
mov dword [ebp - 0x29d4], 0x10
push eax
lea eax, [ebp - 0x29d0]
push eax
lea eax, [ebp - 0x29d4]
push eax
lea eax, [ebp - 0x29dc]
push eax
push dword [0x10016870]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [ebp - 0x29d8], 0
jne 0x10001e74
push 0
push 1
push dword [0x10016870]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000216c
mov esp, ebp
pop ebp
ret
Function at 0x10001e90
Capabilities:
Create process on windows
Create thread
Find taskbar
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100036f0
add esp, 0xc
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10001f30
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0xffffffff
push ecx
push 0x7d0
push 2
push 0
push 0
push 0x5b4
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x10001f30
cmp dword [ebp - 0x210], eax
je 0x10001f30
push esi
push eax
push eax
push eax
push fcn.10001dc0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10001f2a
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001f2f
call fcn.10001dc0
pop esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._taskkill.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10005e9b
add esp, 0xc
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x24c], 0x3c
xorps xmm0, xmm0
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x24c]
movlpd qword [ebp - 0x228], xmm0
push eax
movlpd qword [ebp - 0x220], xmm0
movlpd qword [ebp - 0x218], xmm0
mov dword [ebp - 0x248], 0x40
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], str._f__im_explorer.exe
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x230], 2
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1000200a
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1000200a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000216c
mov esp, ebp
pop ebp
ret
Function at 0x1001b39
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001b86
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001b7d
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x20

Function at 0x1001d10
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 4], ebx
mov edi, 0x426
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1001dc2
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 8], eax
je 0x1001db2
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1001da2
cmp dword [ebp - 0x20], 0
jbe 0x1001d99
cmp dword [ebp - 0x20], 3
jbe 0x1001d77
cmp dword [ebp - 0x20], 7
ja 0x1001d99
xor edi, edi
jmp 0x1001dab
mov edi, dword [ebp - 0x18]
mov eax, 0x42a
cmp edi, eax
jne 0x1001d8e
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x1001dab
mov edi, eax
jmp 0x1001dab
test edi, edi
jne 0x1001dab
mov edi, 0x426
jmp 0x1001dab
mov dword [ebp - 4], 0x29c
jmp 0x1001dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call ebx
jmp 0x1001dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call ebx
jmp 0x1001dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8
Function at 0x10022a1
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x1004008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xf
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01002153
cmp word [ebp - 0x20c], si
je 0x1002402
push edi
lea eax, [ebp - 0x620]
push eax
push 0xf003f
push esi
push 0x10015f8
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100234f
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x10015e0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1001568
push 0x208
lea eax, [ebp - 0x61c]
push eax
call fcn.01001e8e
push 0x100154c
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.01001e8e
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.01001b39
xor ebx, ebx
push ebx
lea eax, [ebp - 0x620]
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
push 0x10014c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002401
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x100154c
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01002ae0
leave
ret
Function at 0x1002ad1
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002fd8
call fcn.01002c84
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10028e6
cmp eax, esi
jne 0x10028d9
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10028e9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10028c0
xor esi, esi
inc esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x10028fc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002937
mov eax, dword [0x1004374]
test eax, eax
jne 0x1002931
mov dword [0x1004374], esi
push 0x1001128
push 0x100111c
call fcn.0100283d
pop ecx
pop ecx
test eax, eax
je 0x1002937
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002a01
mov dword [0x100403c], esi
mov eax, dword [0x1004374]
cmp eax, esi
jne 0x100295b
push 0x1001118
push 0x1001110
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002968
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100437c], ebx
je 0x1002989
push 0x100437c
call fcn.01002bf9
pop ecx
test eax, eax
je 0x1002989
push ebx
push 2
push ebx
call dword [0x100437c]
push dword [0x1004024]
push dword [0x1004028]
push dword [0x1004020]
call fcn.01002415
add esp, 0xc
mov dword [0x1004038], eax
cmp dword [0x100402c], ebx
jne 0x10029e7
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100403c], ebx
jne 0x10029f5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004038]
call fcn.01002cc9
ret
call fcn.01002dd1
jmp 0x100289e

Function at 0x1002f65
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1001980
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002fd0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1001970
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fc7
cmp dword [ebp - 8], 4
jne 0x1002fc7
cmp dword [ebp - 0xc], 1
jne 0x1002fc7
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100183c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x1006130], 1
push ebx
push esi
push edi
jne 0x100186b
or dword [0x1006130], 1
call fcn.010017db
mov dword [0x100612c], eax
push 4
pop eax
call fcn.01004860
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100188d
xor eax, eax
jmp 0x100194a
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1006080]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1001886
cmp eax, 1
je 0x100192b
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001886
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x10018d4
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1001906
xor eax, eax
inc eax
jmp 0x100194a
cmp edi, eax
jb 0x1001886
cmp eax, esi
jae 0x1001915
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1006080]
jmp 0x100192e
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004837
leave
ret

Function at 0x1001ff2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x100207d
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1002078
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x100205e
movzx eax, word [edi]
test ax, ax
je 0x1002081
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1002064
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x1002064
jmp 0x1002059
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x100205e
cmp esi, dword [ebp - 4]
jb 0x100204b
cmp word [esi], 0
jne 0x100201e
cmp word [edi], 0
je 0x1002081
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1002016
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x100207a
Function at 0x100288c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x2001f
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01001c1f
mov edi, eax
cmp edi, esi
je 0x10028ff
lea ecx, [ebp - 0x214]
call fcn.01001bac
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01004837
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100291d
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100288c
cmp eax, esi
jne 0x1002968
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1002907
lea ecx, [ebp - 0x214]
call fcn.01001bac
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01001b26
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01001bac
mov eax, esi
jmp 0x10028ef

Function at 0x1003044
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x88], eax
cmp eax, edi
jne 0x1003068
xor al, al
jmp 0x100308a
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x100302c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x8c], eax
mov al, cl
pop edi
pop esi
leave
ret
Function at 0x1003fbd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1006060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jne 0x100400f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1004003
mov esi, eax
jmp 0x1004103
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003ffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x100403f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10040f8
and eax, 0xffff
or eax, 0x80070000
jmp 0x10040f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1004022
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x10040a9
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1004081
push edi
call fcn.01001961
test al, al
je 0x1004081
mov eax, edi
call fcn.01004920
mov edi, esp
jmp 0x100408c
push edi
lea ecx, [ebp - 8]
call fcn.01003093
mov edi, eax
test edi, edi
jne 0x1004097
mov esi, 0x8007000e
jmp 0x10040fa
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x10040b1
xor eax, eax
jmp 0x10040ec
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x10040db
push ebx
call fcn.01001961
test al, al
je 0x10040db
mov eax, ebx
call fcn.01004920
mov eax, esp
jmp 0x10040e4
push ebx
lea ecx, [ebp - 8]
call fcn.01003093
push esi
push edi
push eax
call fcn.01001a34
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push eax
call fcn.01003df3
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.010027d8
mov eax, esi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004837
leave
ret 0x10