joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401a53
Capabilities:
Set registry value

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

Function at 0x401aa6
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x401abc
push 0x80004005
call fcn.004017a6
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401abf
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40234b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41d730]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00401a1e
mov edi, eax
cmp edi, esi
je 0x4023b3
lea ecx, [ebp - 0x70]
call fcn.004019b9
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040947a
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4023cb
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040234b
cmp eax, esi
jne 0x4023fe
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4023bb
lea ecx, [ebp - 0x70]
call fcn.004019b9
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004019b9
mov eax, esi
jmp 0x402399
Function at 0x403f19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x41d730]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41667a
call fcn.00409b06
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x41d6b8]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x403fd3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401661
add esp, 0xc
test eax, eax
jl 0x403fd3
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x403fbb
push edi
call fcn.00402256
test al, al
pop ecx
je 0x403fbb
mov eax, edi
call fcn.0040a5c0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x403fc4
push edi
lea ecx, [ebp - 0x20]
call fcn.004024ca
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00401742
cmp eax, ebx
jne 0x404018
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403fe3
lea ecx, [ebp]
call fcn.00402173
lea ecx, [ebp - 0x20]
call fcn.004020ad
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040947a
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x404037
call fcn.004018ca
mov esi, eax
jmp 0x4040fa
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x404054
call fcn.004018ca
jmp 0x4040ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40404a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x40409b
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x404087
lea ecx, [ebp]
call fcn.00402173
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.004020ad
mov eax, esi
jmp 0x403ff0
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040310f
mov dword [ebp - 4], 1
jmp 0x4040bc
cmp dword [ebp], ebx
jne 0x4040c8
mov esi, 0x8007000e
jmp 0x4040f1
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.004017f3
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.00403d63
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40408c
lea ecx, [ebp]
call fcn.00402173
jmp 0x40408c
Function at 0x405cd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor ecx, ecx
push 4
inc ecx
cmp dword [ebp + 8], ecx
pop edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov eax, 0x20019
jne 0x405cff
add eax, 6
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push esi
push esi
push esi
push str.SOFTWAREIntelDisplayigfxcuiigfxtrayTrayIcon
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405db3
cmp dword [ebp + 8], esi
push ebx
jne 0x405d92
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov ebx, 0x41785c
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x405d8a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push esi
push str.SOFTWAREIntelDisplayigfxcuiigfxtrayTrayIcon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405da9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x405da9
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x405da9
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
push esi
push 0x41785c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret

Function at 0x407034
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d730]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00406fc9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00409400
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x407083
cmp dword [ebp - 0x1c], 5
jb 0x40709b
jmp 0x407097
cmp dword [ebp - 0x10], 1
jne 0x40709b
cmp dword [ebp - 0x1c], 4
ja 0x407097
jne 0x40709b
cmp dword [ebp - 0x18], 0
jbe 0x40709b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x417940
call fcn.0040187f
test eax, eax
jge 0x4070bc
mov byte [0x41ec00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040947a
add ebp, 0x78
leave
ret

Function at 0x40947a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d730]
jne 0x409484
repz ret
jmp fcn.0040d37b
Function at 0x412ccd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ba30
xor ebx, ebx
cmp dword [0x41f754], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x412da2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x412d0d
xor eax, eax
jmp 0x412e66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412d06
push eax
call fcn.0040b9cd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f754], eax
call esi
push eax
call fcn.0040b9cd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f758], eax
call esi
push eax
call fcn.0040b9cd
mov dword [0x41f75c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e375
test eax, eax
pop ecx
pop ecx
je 0x412d70
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004095dc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x412da2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b9cd
cmp eax, ebx
pop ecx
mov dword [0x41f764], eax
je 0x412da2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b9cd
pop ecx
mov dword [0x41f760], eax
mov eax, dword [0x41f760]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x412e1b
cmp dword [0x41f764], esi
je 0x412e1b
push eax
call fcn.0040ba39
pop ecx
call eax
cmp eax, ebx
je 0x412de8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41f764]
call fcn.0040ba39
pop ecx
call eax
test eax, eax
je 0x412de8
test byte [ebp - 0x18], 1
jne 0x412e1b
lea eax, [ebp - 0xc]
push eax
call fcn.0040e3ac
test eax, eax
pop ecx
je 0x412e03
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004095dc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x412e12
or dword [ebp + 0x10], 0x200000
jmp 0x412e4c
or dword [ebp + 0x10], 0x40000
jmp 0x412e4c
mov eax, dword [0x41f758]
cmp eax, esi
je 0x412e4c
push eax
call fcn.0040ba39
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412e4c
mov eax, dword [0x41f75c]
cmp eax, esi
je 0x412e4c
push dword [ebp - 4]
push eax
call fcn.0040ba39
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41f754]
call fcn.0040ba39
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100483f0
Capabilities:
Encode data using xor

Disassembly:
pop es
out dx, eax
dec esi
mov byte [ecx], cl
inc esp
jecxz 0x10048385
out 2, al
adc esp, ecx
push ebp
dec edx
mov dword [0x6dd2e3f4], eax
jno sym.Main.dll__snwprintf
cmp dl, byte [edx]
lcall 0x7c87, 0x897911c9
in eax, 0x13
fiadd word [ecx - 0x75]
mov esi, ebx
cmp eax, 0xc2cb6f0c
sbb al, 0xdd
ret

Function at 0x100484f0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov al, byte [0xfdd3b2ee]
inc edx
mov dword [0x1d3ba352], eax
jp 0x1004850d
sti
sub eax, 0x52cdc5e8
jle 0x10048514
salc
wait
dec eax
fnsave dword [edx + 0x4c3a305a]
dec esp
or byte [ebp + 0x90498a6], 6
push es
arpl ax, ax
push eax
clc
xor byte [ebp + 0x771ce2e6], 3

Function at 0x10048520
Capabilities:
Check for vm using instruction vpcext

Disassembly:
adc esp, dword [esi + 0x6a]
pop bp
test byte [ecx - 0x40d8f41c], cl
rcr dword [edi - 0x115f1b91], cl
mov al, byte [0xfdd3b2ee]
das
lcall 0x3925, 0x13f8fbdb
pop edi
inc edi
cmp al, 0xb8
loopne 0x100484e1
and al, 0x86
mov cl, 0x4b
test eax, 0xca8a686e
imul ecx, dword fs:[edi + 2], 0x23
invalid

Function at 0x10048550
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc esp
pop es
adc eax, 0xeb016891
js 0x100485a7
scasb al, byte es:[edi]
pop ecx
push ebx
ja 0x1004858f
and dword [ecx + 0x104e888f], ebx
pop ebp
xchg esp, eax
xor al, dl
push eax
pop edi
mov bl, 0x51
lodsb al, byte [esi]
out dx, al
jp 0x10048521
fst qword [edi + 0x16a5d64e]
cmp eax, 0x71f463a1
sub byte [edx], dh
xor edx, dword [edi + 0x52ead554]
push edx
pop es
inc edx
inc ecx
xchg ecx, eax
dec edi
dec edi
mov ecx, 0x98493eae
jg 0x10048545
jge 0x100485dc
stosd dword es:[edi], eax
xlatb
and byte [eax - 0x51], ah
pushal
adc al, 0xc4
loop 0x10048579
cmp esi, dword [ebx]
ret 0x2b40
cmp byte [eax], cl
cwde
leave
or ecx, dword [eax + 0x63]
invalid
push 0x4b
test dword [0xaa07392c], ebx
xchg ebp, eax
sbb eax, 0x8328dda3
sbb eax, 0x291e5086
dec edx

Function at 0x10048580
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc esp
pop es
adc eax, 0xeb016891
js 0x100485a7
scasb al, byte es:[edi]
pop ecx
push ebx
ja 0x1004858f
and dword [ecx + 0x104e888f], ebx
pop ebp
xchg esp, eax
xor al, dl
push eax
pop edi
mov bl, 0x51
lodsb al, byte [esi]
out dx, al
jp 0x10048521
fst qword [edi + 0x16a5d64e]
cmp eax, 0x71f463a1
sub byte [edx], dh
xor edx, dword [edi + 0x52ead554]
push edx
pop es
inc edx
inc ecx
xchg ecx, eax
dec edi
dec edi
mov ecx, 0x98493eae
jg 0x10048545
jge 0x100485dc
stosd dword es:[edi], eax
xlatb
and byte [eax - 0x51], ah
pushal
adc al, 0xc4
loop 0x10048579
cmp esi, dword [ebx]
ret 0x2b40
cmp byte [eax], cl
cwde
leave
or ecx, dword [eax + 0x63]
invalid
push 0x4b
test dword [0xaa07392c], ebx
xchg ebp, eax
sbb eax, 0x8328dda3
sbb eax, 0x291e5086
dec edx
Function at 0x105e1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105e11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105e107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e106a
add dl, dl
jne 0x105e1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e10dc
xor eax, eax
add dl, dl
jne 0x105e1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e117d
add dl, dl
jne 0x105e10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105e10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105e1075
mov eax, 1
add dl, dl
jne 0x105e10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e10e1
sub eax, ebx
mov ebx, 1
jne 0x105e1128
mov ecx, 1
add dl, dl
jne 0x105e110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105e113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e1136
cmp eax, 0x7d00
jae 0x105e116d
cmp eax, 0x500
jb 0x105e1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e1075
cmp eax, 0x7f
ja 0x105e1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105e119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105e1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x30001b7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x30001bb3
jle 0x30001c14
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001c14
cmp dword [ebp + 0x10], edi
push esi
je 0x30001bfa
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x30001bfa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x30001bf6
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x30001c13
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x30001c0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30001c11
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

Function at 0x30001c58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x300080b4]
push esi
mov dword [ebp + 0x19c], eax
lea eax, [ebp - 0x74]
push eax
push 0x2000e
xor esi, esi
push esi
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x30001ca9
jle 0x30001d2d
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d2d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x30001cc5
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call fcn.30001c58
mov edi, eax
cmp edi, esi
jne 0x30001d10
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x105
call ebx
test eax, eax
je 0x30001cb3
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x30001d2b
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d2b
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x30001d29
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x19c]
pop esi
call fcn.3000607d
add ebp, 0x1a0
leave
ret 8

Function at 0x30002211
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000223f
xor eax, eax
jmp 0x30002267
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3000225c
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x3000226c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x30002312
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x300080b4]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
je 0x3000234f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, edi
je 0x30002347
cmp eax, esi
jbe 0x30002363
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3000235f
push 1
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x30002363
xor eax, eax
jmp 0x300023c4
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30001448
call fcn.30004b95
cmp dword [ebp + 8], edi
jne 0x30002392
push 0x30001470
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x30002392
xor edi, edi
inc edi
push 0x30001484
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x300023aa
or edi, 2
push 0x30001498
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x300023c2
or edi, 4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.3000607d
leave
ret 4

Function at 0x300023f6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x300080b4]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x3000245b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x30002452
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.3000607d
leave
ret
Function at 0x300025eb
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x300080b4]
push esi
push edi
mov dword [ebp + 0x3e4], eax
push 0x10
xor eax, eax
pop ecx
push dword [ebp + 0x3f0]
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.30004a45
cmp eax, 0x104
jg 0x3000268a
push dword [ebp + 0x3f4]
lea eax, [ebp - 0x2c]
push 0x6b
push dword [ebp + 0x3f0]
push 0x300015e8
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x3000268a
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x3e4]
pop edi
pop esi
call fcn.3000607d
add ebp, 0x3e8
leave
ret 8