joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100391ea
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor eax, eax
push edi
push 0x3e
mov word [esp + 0x18], ax
xor ebp, ebp
lea eax, [esp + 0x1a]
push ebp
push eax
call fcn.10179250
push 0x101d769c
lea eax, [esp + 0x24]
push 0x20
push eax
call fcn.1017c1f6
mov eax, dword [esp + 0x74]
add esp, 0x18
mov dword [esp + 0x10], eax
mov ecx, 0x1025c27c
lea eax, [esp + 0x10]
push eax
call fcn.1003a183
push dword [eax]
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.1017c18a
add esp, 0xc
mov dword [esp + 0xc], ebp
lea eax, [esp + 0xc]
push eax
push 0xf013f
push ebp
lea eax, [esp + 0x20]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test edx, edx
jne 0x100392a8
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push 0xf013f
push ebp
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
push connect
call edi
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x100392a8
xor al, al
jmp 0x10039346
cmp word [esi], bp
jne 0x1003930c
push 0x101d76a0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
mov esi, 0xf013f
push eax
push esi
push ebp
push ebp
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100392fe
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push esi
push ebp
push ebp
push ebp
push ebp
push connect
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10039344
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10039344
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x10039311
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push ebp
push 0x101d76a4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0xc], ebp
je 0x10039344
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1017868e
add esp, 0x4c
ret
Function at 0x1003bb27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
mov esi, dword [ebp + 0x394]
lea eax, [ebp - 0x7c]
push edi
push eax
push 1
xor ebx, ebx
mov edi, 0x400
push ebx
push 0x101d7a14
push connect
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x101d7a40
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003bba8
cmp dword [ebp - 0x80], edi
ja 0x1003bba8
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.1017d910
test eax, eax
pop ecx
pop ecx
setne bl
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x388]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
lea esp, [ebp + 0x38c]
pop ebp
ret
Function at 0x1003bbcb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x830
lea ebp, [esp - 4]
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp + 0x830], eax
push 8
mov eax, 0x101c0046
call fcn.10178732
mov edi, dword [ebp + 0x83c]
lea eax, [ebp - 0x10]
push eax
push 0xf023f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [ebp]
call fcn.1000fac0
mov dword [ebp - 4], ebx
call fcn.1003bdef
test al, al
je 0x1003bd97
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x430]
mov dword [ebp - 0x14], 0x400
push eax
push ebx
push ebx
push 0x101d7aa8
push dword [ebp - 0x10]
call esi
mov dword [ebp + 0x2c], 0xf
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
mov ebx, dword [sym.imp.USER32.dll_CharLowerA]
mov byte [ebp - 4], 1
test eax, eax
jne 0x1003bcd1
cmp dword [ebp - 0x14], 0x400
ja 0x1003bcd1
lea eax, [ebp + 0x430]
push eax
call ebx
lea eax, [ebp + 0x430]
push edi
push eax
call fcn.1017d910
pop ecx
pop ecx
test eax, eax
jne 0x1003bcd1
push 0xc
lea eax, [ebp + 0x430]
push eax
push 0x101d7ab4
call fcn.1017a7fc
add esp, 0xc
test eax, eax
je 0x1003bcd1
lea eax, [ebp + 0x430]
push eax
call fcn.1000f140
pop ecx
push eax
lea eax, [ebp + 0x430]
push eax
lea ecx, [ebp + 0x18]
call fcn.1001c0d0
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.10024729
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x400
push eax
lea eax, [ebp + 0x30]
push eax
push 0
push 0
push 0x101d7ac0
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x1003bd5f
cmp dword [ebp - 0x14], 0x400
ja 0x1003bd5f
lea esi, [ebp + 0x30]
cmp byte [ebp + 0x30], al
je 0x1003bd5f
push esi
call ebx
push edi
push esi
call fcn.1017d910
pop ecx
pop ecx
test eax, eax
jne 0x1003bd4a
push 0xc
lea eax, [ebp + 0x430]
push eax
push str.about:blank
call fcn.1017a7fc
add esp, 0xc
test eax, eax
je 0x1003bd4a
push esi
call fcn.1000f140
pop ecx
push eax
push esi
lea ecx, [ebp + 0x18]
call fcn.1001c0d0
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.10024729
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bd4f
sub ecx, edx
inc esi
add esi, ecx
cmp byte [esi], al
jne 0x1003bd03
xor ebx, ebx
lea ecx, [ebp + 0x18]
push ebx
push 1
call fcn.10024729
push dword [ebp + 0x28]
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
push 7
push ebx
push str.Secondary_Start_Pages
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.1000fc80
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bd9c
sub ecx, edx
push ecx
push edi
push 1
push ebx
push str.Start_Page
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp]
call fcn.1000fc80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x830]
xor ecx, ebp
call fcn.1017868e
lea esp, [ebp + 0x834]
pop ebp
ret
Function at 0x1003bdef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
lea eax, [ebp - 0x7c]
xor esi, esi
push eax
inc esi
xor ebx, ebx
push esi
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003be69
push edi
lea eax, [ebp - 0x80]
mov edi, 0x400
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], edi
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003be5f
cmp dword [ebp - 0x80], edi
ja 0x1003be5f
cmp byte [ebp - 0x78], 0x37
movzx ebx, bl
cmovge ebx, esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x388]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
lea esp, [ebp + 0x38c]
pop ebp
ret
Function at 0x1004810b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10048150
call fcn.10042f91
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10048150
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1004816c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10051087
mov ebx, eax
test edi, edi
je 0x1004816a
test esi, esi
je 0x1004816a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004ea39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1004c854
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1004ea75
call fcn.1004ec58
mov dword [esi + 0xc], 1
jmp 0x1004ea7a
call fcn.1004ec58
cmp dword [esi], 0
je 0x1004eac3
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1004ea9d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1004346e
jmp 0x1004eaae
push 0xff
mov ecx, esi
call fcn.1000bba0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000ae30
jmp 0x1004eae7
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1004eae7
push dword [esi]
push dword [ebp - 4]
call fcn.1004e280
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004ebad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1004ec58
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1004ebf5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1004346e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000ae30
jmp 0x1004ec00
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1004e280
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10053b85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10042f91
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10053bbc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10053bdd
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10064034
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1009b40e
call fcn.10042fdf
cmp dword [eax + 0x14], 0
jne 0x1006404f
mov ecx, esi
pop esi
jmp fcn.10063435
pop esi
ret

Function at 0x10064d97
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1000ece0
call fcn.10042fdf
cmp dword [eax + 0x14], 0
jne 0x10064db2
mov ecx, esi
pop esi
jmp fcn.10064680
pop esi
ret

Function at 0x10156cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10156d25
push 0x40
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [ebp - 0x84]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10156d50
sub ecx, edx
lea eax, [ebp - 0x9c]
push eax
sar ecx, 1
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x9c], eax
pop ebx
cmp ecx, 0xffffffff
je 0x10156da8
cmp eax, ecx
cmovg eax, ecx
mov dword [ebp - 0x9c], eax
push 6
push dword [ebp - 0x98]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
mov edx, dword [ebp - 0x98]
pop edi
pop esi
call fcn.1017868e
mov esp, ebp
pop ebp
ret
Function at 0x101575d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce4d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1024bd20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
push str.SoftwareDigital_RiverSoftwarePassport_
mov dword [ebp - 4], 0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call fcn.100224c2
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
call fcn.100224c2
push 0xd
push str.Disc_Soft_Ltd
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
call fcn.1000d4a0
push 0x10202768
lea ecx, [ebp - 0x10]
call fcn.10041df9
push 0x10
push 0x1021dc4c
lea ecx, [ebp - 0x10]
call fcn.1000d4a0
push 0x1020276c
lea ecx, [ebp - 0x10]
call fcn.10041df9
mov bl, 1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x14], 0
je 0x1015770d
push 0x800
call fcn.1004217d
push 0x400
mov esi, eax
push 0
push esi
call fcn.10179250
add esp, 0x10
mov dword [ebp - 0x1c], 0x800
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push 0
push str.BuyURL
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov word [esi + 0x7fe], ax
cmp word [esi], ax
je 0x101576fb
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101576e0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.1000bc10
xor bl, bl
push esi
call fcn.10042178
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x10157723
cmp edi, 0x80000001
je 0x10157723
mov edi, connect
jmp 0x10157672
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10157744
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10157760
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x10157799
push 0x100
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x204]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x214], xmm0
mov dword [ebp - 0x20c], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101577d0
push 0x410
sub eax, edx
lea ecx, [ebp - 0x214]
push ecx
sar eax, 1
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
xor ecx, ebp
sub eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.1017868e
mov esp, ebp
pop ebp
ret

Function at 0x10157ba0
Capabilities:
Get geographical location

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x40
push 0x10261ef0
mov esi, eax
push 0x59
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x102026f0
push 0x40
push 0x10261ef0
call fcn.1017cdfc
mov eax, 0x10261ef0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10157bd5
sub eax, edx
mov ecx, 0x3f
sub ecx, eax
push ecx
lea eax, [eax + 0x10261ef0]
push eax
push 0x5a
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, 0x10261ef0
pop esi
ret
Function at 0x101581b0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce562
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov ecx, 0x1a
mov esi, dword [ebp + 8]
mov eax, 0x23
cmovne eax, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push ecx
push 0
push 0
or eax, 0x8000
mov dword [ebp - 0x21c], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x218], ax
jne 0x10158240
xor ecx, ecx
jmp 0x1015825f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158250
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1000efb0
push 1
push 0x101d8914
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
call fcn.100136d0
push 0x10
push 0x1021dc4c
mov ecx, esi
call fcn.100136d0
cmp dword [esi + 0x14], 8
jb 0x101582a5
mov eax, dword [esi]
jmp 0x101582a7
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x101d8914
mov ecx, esi
call fcn.100136d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret
Function at 0x10158bd0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 8
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10158c17
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10158cc7
cmp dword [ebp - 0x24], 3
jne 0x10158cc7
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10158c07
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10158cb7
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10158cb7
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10158cd0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10158cd0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10158cde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret
Function at 0x10159030
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa21c
call fcn.1017c420
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0xa218], ebx
call fcn.10179250
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1017c1f6
push str..new
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1017c18a
push 0x10201d44
lea eax, [ebp - 0xa210]
push ebx
push eax
call fcn.10181727
push 0x102026ec
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa214]
push eax
call fcn.10181727
mov esi, dword [ebp - 0xa210]
add esp, 0x3c
test esi, esi
je 0x10159240
cmp dword [ebp - 0xa214], 0
je 0x10159240
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0xa20c], ax
lea eax, [ebp - 0xa20a]
push eax
call fcn.10179250
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0x520c], ax
lea eax, [ebp - 0x520a]
push eax
call fcn.10179250
push esi
call fcn.10180875
add esp, 0x1c
test eax, eax
jne 0x10159217
mov ebx, dword [ebp - 0xa21c]
jmp 0x10159140
push dword [ebp - 0xa210]
lea eax, [ebp - 0xa20c]
push 0x2800
push eax
call fcn.1018070d
add esp, 0xc
test eax, eax
je 0x10159211
lea eax, [ebp - 0xa20c]
push edi
push eax
call fcn.1017c546
mov esi, eax
add esp, 8
lea eax, [ebp - 0xa20c]
test esi, esi
je 0x101591ec
mov ecx, esi
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x520c]
push 0x2800
push eax
call fcn.1017d779
push ebx
lea eax, [ebp - 0x520c]
push 0x2800
push eax
call fcn.1017c18a
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101591b1
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x520c]
push 0x2800
push eax
call fcn.1017c18a
push dword [ebp - 0xa214]
lea eax, [ebp - 0x520c]
push eax
call fcn.101807c9
add esp, 0x14
jmp 0x101591fb
push dword [ebp - 0xa214]
push eax
call fcn.101807c9
add esp, 8
push dword [ebp - 0xa210]
call fcn.10180875
add esp, 4
test eax, eax
je 0x10159140
mov ebx, dword [ebp - 0xa218]
push dword [ebp - 0xa210]
call fcn.10179bf7
push dword [ebp - 0xa214]
call fcn.10179bf7
add esp, 8
lea eax, [ebp - 0x20c]
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
mov esp, ebp
pop ebp
ret
Function at 0x10159260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
call fcn.10179250
add esp, 0xc
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x101592d4
cmp dword [ebp + 0xc], 0
je 0x101592bc
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10159550
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push str.VolatileTest
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10159593
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.VolatileTest
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor al, al
mov esp, ebp
pop ebp
ret
cmp eax, 0x3fd
jne 0x1015958d
mov al, 1
mov esp, ebp
pop ebp
ret