joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101940f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x101943f
mov eax, 0x8007000e
jmp 0x10195a8
push eax
mov ecx, ebx
call fcn.01019316
test eax, eax
jge 0x1019452
mov edi, eax
jmp 0x1019598
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.0101918c
test eax, eax
jne 0x101946c
mov edi, 0x80020009
jmp 0x1019598
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1019483
mov edi, 0x8007000e
jmp 0x1019598
mov ecx, ebx
call fcn.010192ed
push esi
mov ecx, ebx
call fcn.01019316
test eax, eax
jl 0x101958e
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1019573
sub eax, 9
je 0x10194d6
dec eax
dec eax
jne 0x101957f
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01007035
jmp 0x101957f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x10194ee
mov edi, 0x80004005
jmp 0x1019590
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0101cb40
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x10194e4
cmp dword [ebp - 8], edi
jle 0x101955a
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.01019216
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1019524
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x101957f
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.01006554
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.01019316
test eax, eax
jge 0x10195a6
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x10195a8
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1019c05
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x101e8d0
call fcn.0101caf8
push ecx
push ecx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_2
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.01018c93
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 1
jne 0x1019c4c
lea eax, [ebp - 0x10]
push eax
call fcn.0101870c
test eax, eax
je 0x1019c4c
xor esi, esi
inc esi
jmp 0x1019c80
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, 0x80
push edi
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1019c7a
push edi
push dword [ebp - 0x10]
call esi
xor esi, esi
jmp 0x1019c7f
mov esi, 0x80004005
pop edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x101a564
Capabilities:
Manipulate boot configuration

Disassembly:
mov eax, 0x101e9d5
call fcn.0101caf8
sub esp, 0x21c
mov eax, dword [0x1023fb4]
push ebx
push esi
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov ebx, dword [eax + 0xc]
push 0x10035b8
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
and dword [ebp - 0x224], 0
push 0xf003f
push 0x1003ac0
push 0x80000002
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.0100985e
test eax, eax
jne 0x101a601
lea eax, [ebp - 0x228]
push eax
push 0x1003aac
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], 0x104
call fcn.0100652a
test eax, eax
jne 0x101a601
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x220]
push eax
call fcn.0101870c
test eax, eax
je 0x101a640
push 0xd4
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x101a633
call fcn.010100c2
jmp 0x101a635
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x1024088], eax
jmp 0x101a647
and dword [0x1024088], 0
push 0xdc
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x101a669
call fcn.01007562
jmp 0x101a66b
xor eax, eax
push 0xac
mov byte [ebp - 4], 1
mov dword [0x1024080], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 4
je 0x101a696
call fcn.010099e3
jmp 0x101a698
xor eax, eax
mov esi, 0xe0
push esi
mov byte [ebp - 4], 1
mov dword [0x1024084], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x101a6c4
call fcn.0100ecf4
jmp 0x101a6c6
xor eax, eax
push esi
mov byte [ebp - 4], 1
mov dword [0x102408c], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 6
je 0x101a6ed
call fcn.0100ecf4
jmp 0x101a6ef
xor eax, eax
push 0xa0
mov byte [ebp - 4], 1
mov dword [0x1024090], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x101a71a
call fcn.0100bf90
jmp 0x101a71c
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x1024094], eax
call fcn.0100c74b
mov esi, eax
test esi, esi
je 0x101a77b
push 5
push 0x4650
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101a77b
push esi
call fcn.01007549
push 0xd0
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x101a76a
call fcn.0100d095
jmp 0x101a76c
xor eax, eax
push ebx
mov byte [ebp - 4], 1
mov dword [0x1024098], eax
call fcn.01007549
mov ecx, dword [0x102408c]
push 0x100482c
call fcn.0100e4a8
mov ecx, dword [0x1024090]
push 0x1004814
call fcn.0100e4a8
lea ecx, [ebp - 0x224]
call fcn.0100650c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret
Function at 0x101a7d0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov eax, 0x101ea31
call fcn.0101caf8
sub esp, 0x224
mov eax, dword [0x1023fb4]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], esi
push 0xf003f
push 0x10023f0
push 0x80000002
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.0100985e
test eax, eax
jne 0x101a95c
cmp dword [ebp + 8], esi
je 0x101a94b
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101a95c
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.0101870c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x220]
inc bl
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
test bl, bl
pop ebx
jne 0x101a95c
push edi
push 0x100483c
lea ecx, [ebp - 0x22c]
call sub.MFC42u.DLL_CString::CString_2
mov esi, eax
push 0x1002c14
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_2
mov edi, eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_2
push edi
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_operator
push esi
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
push 0x1004598
push dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
call fcn.01006554
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
pop edi
jmp 0x101a95c
push 0x1004598
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x21c]
call fcn.0100650c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0101bddf
leave
ret 4
Function at 0x101add9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x101ae2b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101ae16
call esi
mov esi, eax
jmp 0x101aef1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x101aef1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x101ae4c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x101ae71
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101ae5f
call esi
jmp 0x101aee6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x101aee8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x101aeb0
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101cb40
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x101aeb8
xor eax, eax
jmp 0x101aeda
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101cb40
mov eax, esp
push esi
push edi
push eax
call fcn.0101047b
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0101a9b7
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101b21c
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
xor esi, esi
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x101b2e5
lea ecx, [ebp - 4]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x101b2dc
lea eax, [ebp - 0x14]
push eax
push 0x10048b0
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x101b2d4
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x101b2d4
push edi
mov edi, 0x10048a4
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x34]
call fcn.0101b1e7
cmp eax, 1
jne 0x101b2c1
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x34], edi
pop edi
je 0x101b2dc
push dword [ebp - 0x20]
call fcn.0101ce16
jmp 0x101b2dc
push esi
push 0x70
call fcn.01018ad1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x101ba80
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1023fb4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x196
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 0x30], eax
je 0x101bc1b
push 0xa
pop ecx
push dword [ebp - 0x30]
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
je 0x101bc1b
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x101bc12
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1004ae8
push dword [ebp - 0x2c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101bb65
cmp dword [ebp - 0x34], 4
jb 0x101bb65
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x28]
push 0x1004ad4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 0x30], 0x70
jbe 0x101bb60
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x5a], 0
jne 0x101bb60
add eax, 0x4c
push eax
push str.StringFileInfo
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x101bb60
mov eax, dword [ebp - 0x2c]
push 9
add eax, 0x60
push eax
lea eax, [ebp - 0x16]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x101bb65
and word [ebp - 0x16], 0
cmp word [ebp - 0x28], 0
jne 0x101bbc7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1004ac0
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
mov edi, 0x1004aa8
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
test eax, eax
jne 0x101bbd6
push 0x1004a94
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
test eax, eax
jne 0x101bbd6
push 0x1004a80
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
test eax, eax
je 0x101bc12
jmp 0x101bbd6
push ebx
push 0x1004aa8
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
lea eax, [ebx + 0x40]
push eax
push 0x1004a60
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
lea eax, [ebx + 0x248]
push eax
push 0x1004a48
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
add ebx, 0x450
push ebx
push 0x1004a30
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ba47
push dword [ebp - 0x2c]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101bddf
leave
ret 8
Function at 0x101c7df
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004b18
call fcn.0101cc70
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x101c81a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101c81a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101c832
cmp eax, 0x20b
je 0x101c81f
mov dword [ebp - 0x1c], edi
jmp 0x101c846
cmp dword [ecx + 0x84], 0xe
jbe 0x101c81a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x101c840
cmp dword [ecx + 0x74], 0xe
jbe 0x101c81a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10241ec], 0xffffffff
or dword [0x10241f0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10241c0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10241bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10241e8], eax
call fcn.0100c129
cmp dword [0x1023fc0], edi
jne 0x101c8a3
push fcn.0100c129
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101cc59
push 0x102301c
push 0x1023018
call sub.msvcrt.dll__initterm
mov eax, dword [0x10241b8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10241b4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1023014
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x101c909
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x101c9c3
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x101c957
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101c925
cmp ax, 0x22
jne 0x101c912
cmp word [esi], 0x22
jne 0x101c930
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101c93e
cmp ax, 0x20
jbe 0x101c92b
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x101c964
movzx eax, word [ebp - 0x50]
jmp 0x101c967
cmp word [esi], 0x20
jbe 0x101c930
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x101c957
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0101d013
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x101c988
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101c9bd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101ccab
ret
Function at 0x101cecb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10241c4], 0
push esi
jne 0x101ce39
call fcn.0101cd30
test eax, eax
je 0x101ce7c
mov eax, dword [0x10241c4]
cmp eax, 1
jne 0x101ce5a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101ce7c
pop esi
ret
push eax
call dword [0x10241cc]
test eax, eax
jne 0x101cec4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101ce80
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10241c4]
call dword [0x10241cc]
mov edi, eax
test edi, edi
je 0x101cea5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101cec1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10241c4]
call dword [0x10241c8]
add edi, 0x10
cmp edi, esi
jb 0x101cead
mov eax, edi
pop edi
pop esi
ret
jmp 0x101ce26

Function at 0x101ced5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004da0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101cf2d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004ddc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101cf20
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101cf2f
xor eax, eax
pop esi
leave
ret 4
Function at 0x2e01dcc9
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 0x2e01dcff
jle 0x2e01dd60
and eax, 0xffff
or eax, 0x80070000
jmp 0x2e01dd60
push esi
cmp dword [ebp + 0x10], edi
je 0x2e01dd46
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 0x2e01dd46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x2e01dd42
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x2e01dd5f
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x2e01dd58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x2e01dd5d
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x2e079ee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x214]
push edx
push 0x2000e
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x2e01ddfa
jle 0x2e01de99
and eax, 0xffff
or eax, 0x80070000
jmp 0x2e01de99
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x2e01de1c
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.2e01dda4
mov edi, eax
cmp edi, esi
jne 0x2e01de79
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x105
call ebx
test eax, eax
je 0x2e01de04
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x2e01de97
and eax, 0xffff
or eax, 0x80070000
jmp 0x2e01de97
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x2e01de95
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e035180
leave
ret 8

Function at 0x2e01e6c4
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x2e01e6e5
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x2e01e6e5
cmp edx, eax
jb 0x2e01e6e5
add eax, 0x10000
cmp eax, ecx
jae 0x2e01e710
mov eax, dword [0x2e049548]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.2e01f1d1
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret