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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x478c24]
cmp byte [eax + 0xc], 0
je 0x449ff1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449fea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x479b64], 0
jne 0x449ed8
push 0x449ff8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44a000
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b64], eax
cmp dword [0x477c8c], 0
jne 0x449fd3
push 0x44a010
call sub.kernel32.dll_LoadLibraryA
mov dword [0x477c8c], eax
cmp dword [0x477c8c], 0
je 0x449fd3
push 0x44a01c
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b68], eax
push 0x44a02c
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b6c], eax
push 0x44a040
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b70], eax
push 0x44a058
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b74], eax
push 0x44a070
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b78], eax
push 0x44a084
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b7c], eax
push 0x44a09c
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b80], eax
push 0x44a0b4
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b84], eax
push 0x44a0d0
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b88], eax
push 0x44a0dc
mov eax, dword [0x477c8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x479b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449ff1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44de98
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.00404678
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44dee7
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.004048e8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45562c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45567c]
test si, 4
je 0x455640
or bl, 1
test si, 8
je 0x45564a
or bl, 4
test si, 1
je 0x455654
or bl, 8
test si, 2
je 0x45565e
or bl, 0x10
test si, 0x10
je 0x455668
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455677
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x455680
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4556b8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455699
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4556a8
or bl, 4
test esi, 0x20000000
je 0x4556b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45bd60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45bd72
add esp, 0xfffffff0
call fcn.00403c4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419dd8
mov eax, dword [0x4788c0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c104
mov eax, dword [0x4788d0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c110
mov eax, ebx
call fcn.0045c11c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
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, 0x458538
push eax
push 0
push 0
mov eax, dword [0x478a24]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b87c]
call fcn.0041cff0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b87c]
call fcn.0041cff0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b87c]
call fcn.0041cff0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045c53c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c418
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c418
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45c418
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45beaf
call fcn.00403ca4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45c1fc
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 0x45c3a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45c388
mov dl, 1
mov eax, dword [0x4124ec]
call fcn.004038f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404678
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45c377
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.0044a1e4
test al, al
je 0x45c36a
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, 0x45c3b8
lea eax, [ebp - 0x254]
call fcn.004094ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45c36a
xor eax, eax
push ebp
push 0x45c363
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 0x45c3f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c34c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048e8
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 0x45c34c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c36a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45c26d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415fc8
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 0x45c3ae
lea eax, [ebp - 0x260]
call fcn.00404678
ret

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

Disassembly:
push ecx
mov eax, dword [0x479bb0]
cmp byte [eax + 0xa5], 0
jne 0x45cd4d
cmp dword [0x479bc8], 0
jne 0x45cd0e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45cc98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bc8], eax
cmp dword [0x479bc4], 0
jne 0x45cd29
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bc4], eax
cmp dword [0x479bcc], 0
jne 0x45cd4d
push esp
push 0
push 0
push 0x45cc3c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479bcc], eax
pop edx
ret
Function at 0x45ce44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ce5b
add esp, 0xfffffff0
call fcn.00403c4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419dd8
mov eax, dword [0x478a10]
cmp word [eax + 2], 0
jne 0x45ce83
mov eax, dword [0x478a10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e5c4
mov eax, dword [0x478ac4]
cmp word [eax + 2], 0
jne 0x45ce9d
mov eax, dword [0x478ac4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e7bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4120d0]
call fcn.004038f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c35c]
call fcn.00423bc4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45d024
mov eax, dword [0x478930]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423f94
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ed6c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x478930]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cc74
test eax, eax
je 0x45cf92
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ee0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc9c
test eax, eax
je 0x45cfa6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048e8
mov eax, dword [0x478804]
cmp byte [eax], 0
jne 0x45cfda
mov eax, ebx
call fcn.0045d14c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ef48
mov eax, ebx
call fcn.0045f90c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d01a
call fcn.00403ca4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d3cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bb0]
cmp dword [eax + 0x30], 0
je 0x45d476
cmp dword [ebx + 0x94], 0
jne 0x45d470
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45d35c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45d470
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 0x45d436
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45d470
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.00414438
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45d445
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45dfd8
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 0x45e00d
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.00404768
jmp 0x45e01a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f124
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f165
mov eax, esi
call fcn.004457f0
test al, al
je 0x45f165
mov eax, dword [ebx + 0x84]
call fcn.004454ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f165
push 0
mov eax, dword [ebx + 0x84]
call fcn.004454ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x462f14
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x462f42
mov eax, ebx
call fcn.004639c8
cmp dword [ebx + 0x40], 0
je 0x462f3b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x462fb3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x462fa5
cmp dword [ebx + 8], 0
je 0x462f64
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x462f76
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x462fa5
cmp dword [ebx + 8], 0
je 0x462f57
cmp eax, 3
je 0x462f89
dec eax
jne 0x462f57
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x462f57
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x462f57
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x462fd1
cmp dword [ebx + 0x14], 0xcc
je 0x462fd1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00462fdc
pop ebx
ret
Function at 0x473be8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b28
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x473d56
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0045fc58
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0045fc78
jmp 0x473d22
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004048e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408d74
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408344
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404a84
je 0x473d02
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004048e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408344
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408344
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404a84
jne 0x473d19
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0045fc98
test eax, eax
jne 0x473c63
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473d5d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040469c
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x411337
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41133d
call fcn.004521e0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00415000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00415000
push dword [esp]
call fcn.00411966
push dword [esp + 4]
mov edx, 0x4a5b62
pop ecx
call fcn.004153f0
je 0x41140c
cmp dword [0x584364], 0
je 0x4113f2
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.004333ef
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4113f0
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.00433449
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x58437c]
or ebx, 0xf003f
push ebx
mov eax, dword [0x584344]
push eax
push dword [0x584360]
push dword [esp + 0x1c]
call fcn.00433602
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0043332f
jmp 0x411407
mov eax, dword [0x584344]
push eax
push dword [0x584360]
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x411495
lea eax, [esp + 0x18]
push eax
push dword [0x584360]
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x584364], 0
je 0x411482
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.004333ef
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x411480
push 0
mov ebx, dword [0x58437c]
or ebx, 0xf003f
push ebx
mov eax, dword [0x584344]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.00433547
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0043332f
jmp 0x411495
mov eax, dword [0x584344]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4114a4
mov eax, 1
jmp 0x4114a6
xor eax, eax
push dword [esp + 4]
call fcn.00452270
push dword [esp]
call fcn.00452270
add esp, 0x1c
pop ebx
ret 8
Function at 0x41319f
Capabilities:
Delete registry value

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4131a5
call fcn.004521e0
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00415000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00415000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00415000
push dword [esp]
call fcn.00411966
push dword [esp + 8]
mov edx, 0x4a5b62
pop ecx
call fcn.004153f0
je 0x413249
cmp dword [0x584364], 0
je 0x41322d
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x58437c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x584344]
push dword [0x584360]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x413247
lea eax, [esp + 0x10]
push eax
push dword [0x584344]
push dword [0x584360]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x4132ae
lea eax, [esp + 0x18]
push eax
push dword [0x584360]
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x584364], 0
je 0x413296
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x58437c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x584344]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4132ae
lea eax, [esp + 0x10]
push eax
push dword [0x584344]
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4132e2
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegDeleteValueW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4132da
mov dword [esp + 0x1c], 1
jmp 0x4132e2
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [esp + 0x1c]
jmp 0x4132f3
push dword [esp + 8]
call fcn.00452270
push dword [esp]
call fcn.00452270
push dword [esp + 4]
call fcn.00452270
add esp, 0x20
pop ebx
ret 0xc

Function at 0x415f4f
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00415df3
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ebx, 0x585938
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [0x584874]
jmp 0x415f80
cmp dword [esi + 0xc], edi
je 0x415f86
mov esi, dword [esi]
test esi, esi
jne 0x415f79
jmp 0x415f9e
add esi, 8
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
push 0x584874
call fcn.00451f28
pop ecx
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x415fab
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.kernel32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x416043
push edi
push 0x585938
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [0x584874]
test edi, edi
je 0x416017
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x416010
push dword [ebx]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x584874
call fcn.00451f28
pop ecx
pop ecx
jmp 0x416012
mov edi, dword [edi]
test edi, edi
jne 0x415fe7
pop ebx
mov eax, dword [0x580df0]
mov esi, eax
inc eax
push 0x10
push 0x584874
mov dword [0x580df0], eax
call fcn.00451f68
pop ecx
pop ecx
push 0x585938
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x41659a
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x58487c]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0045176c
mov esi, eax
test esi, esi
je 0x41672f
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x416644
push ebx
call fcn.0041690a
jmp 0x4165dc
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x4165d4
push dword [esi + 0x14]
call fcn.00416cff
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.00416525
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x416749
push 0x2000
push ebp
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x416621
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x416632
push dword [esp + 0x20]
push ebx
call fcn.004169de
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x4166e4
test byte [esp + 0x1c], 1
je 0x416653
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x4166ee
push esi
call fcn.00416397
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00451f68
pop ecx
pop ecx
mov ecx, dword [0x58488c]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41672f
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x4166cf
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041693e
jmp 0x4166dc
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x41672f
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x416710
push dword [esp + 0x20]
push ebx
call fcn.004169de
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41672f
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc