joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13182f48
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 0x13182f94
mov eax, esi
call fcn.1316afcc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x13182f94
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x13182f94
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 0x131830d3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x13182fd4
cmp eax, 0x108
ja 0x13182fd4
mov eax, esi
call fcn.1316afcc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x131830ca
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x131830d3
jmp 0x131830ca
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x131830b3
cmp eax, 0x20a
ja 0x131830b3
test byte [esi + 0x50], 0x80
jne 0x13183006
sub eax, 0x203
je 0x13183003
sub eax, 3
je 0x13183003
sub eax, 3
jne 0x13183006
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x1318301a
dec eax
je 0x1318302f
dec eax
je 0x1318304c
dec eax
je 0x1318302f
jmp 0x13183053
mov ecx, ebx
mov eax, dword [0x1318ffb8]
mov eax, dword [eax]
mov edx, esi
call fcn.131745f4
jmp 0x131830ca
cmp byte [esi + 0x5d], 1
jne 0x13183045
mov eax, esi
mov si, 0xffed
call fcn.131439ac
jmp 0x131830d3
or word [esi + 0x54], 1
jmp 0x131830ca
and word [esi + 0x54], 0xfffe
jmp 0x131830ca
mov eax, dword [0x13191b50]
cmp byte [eax + 0x20], 0
je 0x131830ca
mov eax, dword [0x13191b50]
cmp dword [eax + 0x1c], 0
je 0x131830ca
mov eax, dword [ebx]
mov edx, dword [0x13191b50]
cmp eax, dword [edx + 0x1c]
jne 0x131830ca
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.1316af10
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.131439ac
jmp 0x131830d3
cmp eax, 0xb00b
jne 0x131830ca
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.131818b0
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 0x13186554
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 0x13186570
cmp dword [esi + 4], 0
je 0x1318659d
test byte [ebx + 0x55], 1
jne 0x1318658f
mov eax, ebx
call fcn.13185160
test eax, eax
jne 0x1318658f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x131866ad
mov edx, esi
mov eax, ebx
call fcn.13186078
jmp 0x131866ad
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 0x131866a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.131883c4
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.13182e7c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.13186554
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.131883c4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x131866ad
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 0x1318cabc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x1319011c]
cmp byte [eax + 0xc], 0
je 0x1318cc29
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1318cc22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x13191ba4], 0
jne 0x1318cb10
push 0x1318cc30
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x1318cc38
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191ba4], eax
cmp dword [0x1318fd2c], 0
jne 0x1318cc0b
push 0x1318cc48
call sub.kernel32.dll_LoadLibraryA
mov dword [0x1318fd2c], eax
cmp dword [0x1318fd2c], 0
je 0x1318cc0b
push 0x1318cc54
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191ba8], eax
push 0x1318cc64
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bac], eax
push 0x1318cc78
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bb0], eax
push 0x1318cc90
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bb4], eax
push 0x1318cca8
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bb8], eax
push 0x1318ccbc
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bbc], eax
push 0x1318ccd4
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bc0], eax
push 0x1318ccec
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bc4], eax
push 0x1318cd08
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bc8], eax
push 0x1318cd14
mov eax, dword [0x1318fd2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x13191bcc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318cc29
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x1318db64
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.13144998
mov eax, dword [ebp - 8]
call fcn.13144998
xor eax, eax
push ebp
push 0x1318dc0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.13143054
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.13148c34
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 8]
call fcn.131489d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318dc16
lea eax, [ebp - 8]
mov edx, 2
call fcn.1314450c
ret

Function at 0x1318dc1c
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov esi, eax
xor ebx, ebx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
cmp edi, 0xffffffff
je 0x1318dc78
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
push 2
push 1
push 0xf01ff
push esi
push esi
push edi
call sub.advapi32.dll_CreateServiceA
mov esi, eax
cmp esi, 0xffffffff
je 0x1318dc78
push esp
push 0
push esi
call sub.advapi32.dll_StartServiceA
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1318dc80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
xor edx, edx
push ebp
push 0x1318dd08
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov bl, al
add ebx, 0x41
lea eax, [ebp - 4]
mov edx, ebx
call fcn.131446d0
lea eax, [ebp - 4]
mov edx, 0x1318dd20
call fcn.131447b0
mov eax, dword [ebp - 4]
call fcn.131449a8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
mov eax, edi
call fcn.131444e8
cmp esi, 3
jne 0x1318dced
lea eax, [ebp - 8]
mov edx, ebx
call fcn.131446d0
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, 0x1318dd20
call fcn.131447f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318dd0f
lea eax, [ebp - 8]
mov edx, 2
call fcn.1314450c
ret
Function at 0x1318dd24
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
xor ebx, ebx
push 0x1318dd9c
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
push esp
push 0
push 0x1318dda4
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 2
push esi
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push edi
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
je 0x1318dd91
push eax
call sub.kernel32.dll_CloseHandle_1
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_FreeLibrary_1
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x1318e0a0
Capabilities:
Create thread
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1318e235
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x1318e21f
xor edx, edx
push ebp
push 0x1318e218
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 8], 0x640
mov eax, dword [ebp - 8]
call fcn.1314270c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x1318e1fa
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x1318e143
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.1314274c
jmp 0x1318e107
test eax, eax
je 0x1318e156
call fcn.13143fd0
call fcn.13143fd0
jmp 0x1318e21f
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x1318e107
inc edi
xor esi, esi
mov eax, esi
shl eax, 2
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*8]
mov edx, dword [ebx + 0xc]
and edx, 2
cmp edx, 2
jne 0x1318e182
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8]
call fcn.1318e0a0
cmp dword [ebx + 8], 3
jne 0x1318e1d8
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x11c]
mov edx, dword [ebx + 0x14]
call fcn.131432c0
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x1c]
call fcn.1314474c
lea eax, [ebp - 0x1c]
mov edx, 0x1318e24c
call fcn.131447b0
mov eax, dword [ebp - 0x1c]
call fcn.131449a8
push eax
push 0x1318e250
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x7d0
call sub.kernel32.dll_Sleep_1
inc esi
dec edi
jne 0x1318e161
jmp 0x1318e107
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318e23c
lea eax, [ebp - 0x1c]
call fcn.131444e8
ret
Function at 0x1318e2b0
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x1318e38b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
lea eax, [ebp - 0x9b]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x9b]
call fcn.13148d88
mov edx, dword [ebp - 0xa0]
mov eax, 0x13199a90
call fcn.1314453c
xor esi, esi
mov ebx, esi
mov eax, ebx
lea edx, [ebp - 0xa4]
call fcn.1318dc80
cmp dword [ebp - 0xa4], 0
je 0x1318e360
lea eax, [ebp - 4]
push eax
push 0
mov eax, ebx
lea edx, [ebp - 0xa8]
call fcn.1318dc80
mov eax, dword [ebp - 0xa8]
call fcn.131449a8
push eax
push 0x1318e250
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x7d0
call sub.kernel32.dll_Sleep_1
inc esi
cmp esi, 0x1a
jne 0x1318e311
xor eax, eax
call fcn.1318e0a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318e392
lea eax, [ebp - 0xa8]
mov edx, 3
call fcn.1314450c
ret
Function at 0x4011a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x108]
push eax
push str.Control_PanelDesktop
xor esi, esi
push SysReAllocStringLen
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40123a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MouseCornerClipLength
push dword [ebp - 0x108]
mov word [ebp - 0x104], 0x36
mov dword [ebp - 0x10c], 4
mov dword [ebp - 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40122e
lea eax, [ebp - 0x104]
push eax
call fcn.005186a1
pop ecx
test eax, eax
jne 0x40122e
xor esi, esi
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005182a2
leave
ret
Function at 0x401eb7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0051cee0
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x142c], ecx
mov ecx, dword [ebp + 0x10]
push 0xc
mov dword [ebp - 0x1434], ecx
pop ecx
mov esi, 0x56c19c
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 2
movsw word es:[edi], word [esi]
xor ecx, ecx
pop ebx
movzx edx, word [ebp + ecx - 0x38]
mov word [ebp + ecx - 0x1424], dx
add ecx, ebx
test dx, dx
jne 0x401ef7
lea edi, [ebp - 0x1424]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x401f14
mov edx, 0x56c3fc
mov esi, edx
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x1424]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x401f30
push 5
pop ecx
mov esi, str.Start8.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x1424]
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x401f50
mov esi, edx
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401f60
lea edi, [ebp - 0x1424]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x401f75
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1428]
push eax
lea eax, [ebp - 0x1424]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 0x1434]
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 0x1430]
push eax
push 0
push dword [ebp - 0x142c]
mov dword [ebp - 0x1430], 1
push dword [ebp - 0x1428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401ffa
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x401fec
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401fff
sub eax, edx
sar eax, 1
jne 0x402024
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x402016
push dword [ebp - 0x1428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005182a2
leave
ret
Function at 0x402041
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x32c
mov eax, dword [0x592bb0]
xor eax, esp
mov dword [esp + 0x328], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x18], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x1c], ebx
push 0x206
mov word [esp + 0x12c], ax
lea eax, [esp + 0x12e]
push ebx
push eax
mov edi, ecx
call fcn.0051b3c0
add esp, 0xc
cmp word [edi], 0x40
jne 0x402176
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x402168
mov esi, 0x7d0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x402168
push esi
push ebx
push eax
call fcn.0051b3c0
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
add edi, 2
push 1
push ebx
push edi
mov dword [esp + 0x38], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push ebx
push dword [esp + 0x18]
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x20]
sub eax, ebx
je 0x402142
dec eax
dec eax
jne 0x40215e
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402114
sub eax, edx
xor ecx, ecx
cmp eax, ebx
jle 0x402136
movsx dx, byte [esp + ecx + 0x24]
mov word [esp + ecx*2 + 0x128], dx
inc ecx
cmp ecx, eax
jl 0x402123
xor ecx, ecx
mov word [esp + eax*2 + 0x128], cx
jmp 0x40215e
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x128]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40214f
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402176
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x128]
push eax
call fcn.00403493
mov ecx, dword [esp + 0x334]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005182a2
mov esp, ebp
pop ebp
ret
Function at 0x402442
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a28
call fcn.0051cee0
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
push 0x188
push dword [esi + 0x3d8]
mov dword [ebp - 0x1a20], esi
call edi
push ebx
push ebx
push 0x184
push dword [esi + 0x3d8]
mov dword [ebp - 0x1a28], eax
call edi
xor eax, eax
movzx ecx, word [eax + 0x5941d8]
mov word [ebp + eax - 0x1a08], cx
add eax, 2
cmp cx, bx
jne 0x402492
lea edi, [ebp - 0x1a08]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4024b2
mov esi, 0x56c3fc
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x1a08]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4024cd
push 0xe
pop ecx
lea eax, [ebp - 0x1a0c]
push eax
lea eax, [ebp - 0x1a08]
push eax
mov esi, str.Start8.iniStart8Locations
push SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x20a]
push ebx
mov esi, 0x104
push eax
mov dword [ebp - 0x1a1c], 1
mov dword [ebp - 0x1a18], esi
call fcn.0051b3c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x1a14]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1a1c]
push eax
push ebx
lea eax, [ebp - 0x1a18]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push dword [ebp - 0x1a0c]
mov dword [ebp - 0x1a14], esi
call edi
xor ecx, ecx
mov word [ebp - 6], cx
mov dword [ebp - 0x1a10], 1
jmp 0x402635
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x1a24]
call fcn.00403493
push dword [ebp - 0x1a24]
mov eax, dword [ebp - 0x1a20]
push ebx
push 0x180
push dword [eax + 0x3d8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1a24]
add ecx, 0xfffffff0
call fcn.004014d0
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x1a18], esi
call fcn.0051b3c0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x1a14]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1a1c]
push eax
push ebx
lea eax, [ebp - 0x1a18]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x1a10]
mov dword [ebp - 0x1a14], esi
push dword [ebp - 0x1a0c]
call edi
xor ecx, ecx
inc dword [ebp - 0x1a10]
mov word [ebp - 6], cx
mov word [ebp - 0x416], cx
cmp eax, 0x103
jne 0x402586
push dword [ebp - 0x1a0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1a20]
push ebx
push dword [ebp - 0x1a28]
push 0x186
push dword [esi + 0x3d8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.004029c5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret
Function at 0x403ce3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, 0x111
push esi
mov esi, ecx
cmp dword [ebp + 8], eax
jne 0x403d74
mov ecx, dword [esi + 0x78]
xor edx, edx
inc edx
cmp ecx, edx
je 0x403d16
cmp ecx, 2
jne 0x403d74
push edi
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x20]
jne 0x403d73
mov edi, dword [ebp + 0xc]
shr edi, 0x10
test di, di
jne 0x403d73
xor edi, edi
cmp ecx, edx
jne 0x403d3d
xor ecx, ecx
cmp dword [esi + 0x74], edi
sete cl
mov dword [esi + 0x74], ecx
jmp 0x403d40
mov dword [esi + 0x74], edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x104]
push str.Message_arriving_on_button__x_____d___d
push eax
call fcn.00518c5f
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
push ebx
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424a72
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret 0x10