joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b318
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43b364
mov eax, esi
call fcn.00451128
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43b364
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43b364
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43b4a3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43b3a4
cmp eax, 0x108
ja 0x43b3a4
mov eax, esi
call fcn.00451128
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43b49a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43b4a3
jmp 0x43b49a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43b483
cmp eax, 0x20a
ja 0x43b483
test byte [esi + 0x50], 0x80
jne 0x43b3d6
sub eax, 0x203
je 0x43b3d3
sub eax, 3
je 0x43b3d3
sub eax, 3
jne 0x43b3d6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43b3ea
dec eax
je 0x43b3ff
dec eax
je 0x43b41c
dec eax
je 0x43b3ff
jmp 0x43b423
mov ecx, ebx
mov eax, dword [0x46218c]
mov eax, dword [eax]
mov edx, esi
call fcn.0045aa80
jmp 0x43b49a
cmp byte [esi + 0x5d], 1
jne 0x43b415
mov eax, esi
mov si, 0xffed
call fcn.00403698
jmp 0x43b4a3
or word [esi + 0x54], 1
jmp 0x43b49a
and word [esi + 0x54], 0xfffe
jmp 0x43b49a
mov eax, dword [0x463ad0]
cmp byte [eax + 0x20], 0
je 0x43b49a
mov eax, dword [0x463ad0]
cmp dword [eax + 0x1c], 0
je 0x43b49a
mov eax, dword [ebx]
mov edx, dword [0x463ad0]
cmp eax, dword [edx + 0x1c]
jne 0x43b49a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0045106c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403698
jmp 0x43b4a3
cmp eax, 0xb00b
jne 0x43b49a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00439c2c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ea24
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43ea40
cmp dword [esi + 4], 0
je 0x43ea6d
test byte [ebx + 0x55], 1
jne 0x43ea5f
mov eax, ebx
call fcn.0043d5c4
test eax, eax
jne 0x43ea5f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43eb7d
mov edx, esi
mov eax, ebx
call fcn.0043e548
jmp 0x43eb7d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43eb76
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440894
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043b24c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043ea24
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440894
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43eb7d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4452e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x462300]
cmp byte [eax + 0xc], 0
je 0x445451
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44544a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x463b24], 0
jne 0x445338
push 0x445458
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445460
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b24], eax
cmp dword [0x461b98], 0
jne 0x445433
push 0x445470
call sub.kernel32.dll_LoadLibraryA
mov dword [0x461b98], eax
cmp dword [0x461b98], 0
je 0x445433
push 0x44547c
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b28], eax
push 0x44548c
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b2c], eax
push 0x4454a0
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b30], eax
push 0x4454b8
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b34], eax
push 0x4454d0
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b38], eax
push 0x4454e4
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b3c], eax
push 0x4454fc
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b40], eax
push 0x445514
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b44], eax
push 0x445530
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b48], eax
push 0x44553c
mov eax, dword [0x461b98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463b4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445451
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4497bc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040421c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44980b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450fdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45102c]
test si, 4
je 0x450ff0
or bl, 1
test si, 8
je 0x450ffa
or bl, 4
test si, 1
je 0x451004
or bl, 8
test si, 2
je 0x45100e
or bl, 0x10
test si, 0x10
je 0x451018
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451027
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451068]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451049
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451058
or bl, 4
test esi, 0x20000000
je 0x451063
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45772c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45773e
add esp, 0xfffffff0
call fcn.004037c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a6e4
mov eax, dword [0x461fbc]
mov dword [eax + 4], ebx
mov dword [eax], 0x457ad0
mov eax, dword [0x461fc8]
mov dword [eax + 4], ebx
mov dword [eax], 0x457adc
mov eax, ebx
call fcn.00457ae8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f98]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f98]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f98]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f98]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f98]
call fcn.00403460
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x453f00
push eax
push 0
push 0
mov eax, dword [0x46210c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c1b0]
call fcn.0041d948
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c1b0]
call fcn.0041d948
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c1b0]
call fcn.0041d948
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457f38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45787b
call fcn.00403820
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457be4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457d8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457d70
mov dl, 1
mov eax, dword [0x412540]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457d5f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445644
test al, al
je 0x457d52
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x457da0
lea eax, [ebp - 0x254]
call fcn.00409110
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457d52
xor eax, eax
push ebp
push 0x457d4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x457dd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457d34
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457d34
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d52
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457c55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041687c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d96
lea eax, [ebp - 0x260]
call fcn.0040421c
ret

Function at 0x4586d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463b70]
cmp byte [eax + 0xa5], 0
jne 0x458749
cmp dword [0x463b88], 0
jne 0x45870a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458694
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463b88], eax
cmp dword [0x463b84], 0
jne 0x458725
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463b84], eax
cmp dword [0x463b8c], 0
jne 0x458749
push esp
push 0
push 0
push 0x458638
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463b8c], eax
pop edx
ret
Function at 0x458ddc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463b70]
cmp dword [eax + 0x30], 0
je 0x458e86
cmp dword [ebx + 0x94], 0
jne 0x458e80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458d6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458e80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458e46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458e80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004144a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458e55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4599e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459a19
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040430c
jmp 0x459a26
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404270
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45abc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ac09
mov eax, esi
call fcn.00440b98
test al, al
je 0x45ac09
mov eax, dword [ebx + 0x84]
call fcn.00440894
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ac09
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440894
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45fdcc
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 0
push 0
push 0
mov eax, ebx
call fcn.004046dc
push eax
push 0x45fdec
push 0
call sub.shell32.dll_ShellExecuteA
pop ebx
ret
Function at 0x418e14
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00429f00
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x1250]
mov dword [ebp - 0x1254], 1
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x4015b0
push SysReAllocString
mov dword [ebp - 0x1250], ebx
mov dword [ebp - 0x1258], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418fc9
push esi
push edi
mov edi, ebx
lea ecx, [ebp - 0x104]
test edi, edi
je 0x418e80
push 0x401654
jmp 0x418e85
push 0x401628
push 0x7f
pop edx
call fcn.00418392
push 0x401644
push 0x7f
pop edx
lea ecx, [ebp - 0x204]
call fcn.00418392
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x1258], 0x1048
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x1254]
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418fb1
cmp dword [ebp - 0x1254], 1
jne 0x418fb1
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x124c]
push 0x2f
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x418f9e
lea esi, [eax + 2]
push 0x2f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x418f31
lea esi, [eax + 2]
push 0x2f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x418f31
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x418f9e
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x418f49
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.msvcrt.dll__wcslwr]
mov dword [esp], 0x401670
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x418f9e
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x418f6e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x418fb1
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
cmp edi, 2
jl 0x418e6f
push dword [ebp - 0x1250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x418fe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push edi
push 3
push edi
push edi
push edi
xor ebx, ebx
mov dword [ebp - 0x224], edi
push 0x401788
inc ebx
push SysReAllocString
mov dword [ebp - 0x228], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x419032
xor eax, eax
jmp 0x41910b
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push 0x4017e8
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41908e
cmp dword [ebp - 0x228], ebx
jne 0x41908e
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41907a
sub ecx, edx
sar ecx, 1
cmp ecx, 0x14
jae 0x4190f8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4190f8
push 0x103
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x4190f8
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4190c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push 0x4017e8
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x419121
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push edi
push 3
push edi
push edi
push edi
xor ebx, ebx
mov dword [ebp - 0x224], edi
push 0x4012b8
inc ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x419173
xor eax, eax
jmp 0x41924c
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push 0x4017fc
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4191cf
cmp dword [ebp - 0x228], ebx
jne 0x4191cf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4191bb
sub ecx, edx
sar ecx, 1
cmp ecx, 0x14
jae 0x419239
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x419239
push 0x103
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x419239
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x419206
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push 0x4017fc
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x419477
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x620]
xor ebx, ebx
push eax
mov edi, 0x2001f
mov dword [ebp - 0x624], ebx
push edi
push ebx
push 0x401b60
mov esi, SysReAllocString
mov dword [ebp - 0x620], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x620], eax
lea eax, [ebp - 0x624]
push eax
push edi
push ebx
push 0x401be0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4195fd
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x628], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x630], 1
push eax
lea eax, [ebp - 0x630]
mov edi, 0x208
push eax
push ebx
lea eax, [ebp - 0x628]
mov dword [ebp - 0x62c], edi
push eax
lea eax, [ebp - 0x414]
mov esi, ebx
push eax
push ebx
jmp 0x4195dd
inc esi
cmp esi, 0x3e8
jae 0x4195f1
mov dword [ebp - 0x628], 0x104
mov dword [ebp - 0x62c], edi
cmp dword [ebp - 0x620], ebx
je 0x419588
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], edi
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x630]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4195b8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x20c]
call fcn.00425077
test eax, eax
jne 0x4195b8
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x630]
push eax
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x419530
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x620], 0
pop edi
pop esi
pop ebx
je 0x419615
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429770
mov esp, ebp
pop ebp
ret