joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451258
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 0x451274
cmp dword [esi + 4], 0
je 0x4512a1
test byte [ebx + 0x55], 1
jne 0x451293
mov eax, ebx
call fcn.0044fdf8
test eax, eax
jne 0x451293
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4513b1
mov edx, esi
mov eax, ebx
call fcn.00450d7c
jmp 0x4513b1
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 0x4513aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004530c8
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.0044da94
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00451258
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.004530c8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4513b1
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 0x457ac8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4aca28]
cmp byte [eax + 0xc], 0
je 0x457c35
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457c2e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4adb64], 0
jne 0x457b1c
push 0x457c3c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x457c44
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb64], eax
cmp dword [0x4aaf18], 0
jne 0x457c17
push 0x457c54
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4aaf18], eax
cmp dword [0x4aaf18], 0
je 0x457c17
push 0x457c60
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb68], eax
push 0x457c70
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb6c], eax
push 0x457c84
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb70], eax
push 0x457c9c
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb74], eax
push 0x457cb4
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb78], eax
push 0x457cc8
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb7c], eax
push 0x457ce0
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb80], eax
push 0x457cf8
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb84], eax
push 0x457d14
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb88], eax
push 0x457d20
mov eax, dword [0x4aaf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c35
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45bf94
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.00404ce0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45bfe3
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00404f50
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4637d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x463828]
test si, 4
je 0x4637ec
or bl, 1
test si, 8
je 0x4637f6
or bl, 4
test si, 1
je 0x463800
or bl, 8
test si, 2
je 0x46380a
or bl, 0x10
test si, 0x10
je 0x463814
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463823
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46382c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x463864]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463845
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463854
or bl, 4
test esi, 0x20000000
je 0x46385f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x469f28
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x469f3a
add esp, 0xfffffff0
call fcn.00404208
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ce4
mov eax, dword [0x4ac4dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a2cc
mov eax, dword [0x4ac4ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a2d8
mov eax, ebx
call fcn.0046a2e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41bd3c]
call fcn.00403ea0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41bd3c]
call fcn.00403ea0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41bd3c]
call fcn.00403ea0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41bd3c]
call fcn.00403ea0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41bd3c]
call fcn.00403ea0
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, 0x4666fc
push eax
push 0
push 0
mov eax, dword [0x4ac71c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426760]
call fcn.00427ef8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426760]
call fcn.00427ef8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426760]
call fcn.00427ef8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046a734
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a5fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a5fc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a5fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a077
call fcn.00404260
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46a3e0
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 0x46a58b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a56c
mov dl, 1
mov eax, dword [0x41c3a0]
call fcn.00403ea0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ce0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a55b
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.00457e28
test al, al
je 0x46a54e
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, 0x46a59c
lea eax, [ebp - 0x254]
call fcn.0040b548
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46a54e
xor eax, eax
push ebp
push 0x46a547
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46a5d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46a530
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404f50
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 0x46a530
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a54e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a451
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004208f4
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 0x46a592
lea eax, [ebp - 0x260]
call fcn.00404ce0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4adbb0]
cmp byte [eax + 0xa5], 0
jne 0x46af45
cmp dword [0x4adbc8], 0
jne 0x46af06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46ae90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4adbc8], eax
cmp dword [0x4adbc4], 0
jne 0x46af21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4adbc4], eax
cmp dword [0x4adbcc], 0
jne 0x46af45
push esp
push 0
push 0
push 0x46ae34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4adbcc], eax
pop edx
ret
Function at 0x46b5d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4adbb0]
cmp dword [eax + 0x30], 0
je 0x46b682
cmp dword [ebx + 0x94], 0
jne 0x46b67c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b568
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b67c
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 0x46b642
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0

Function at 0x46c1e0
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 0x46c215
push 0x100
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.00404dd0
jmp 0x46c222
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d34
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46d3ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d42d
mov eax, esi
call fcn.004533cc
test al, al
je 0x46d42d
mov eax, dword [ebx + 0x84]
call fcn.004530c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d42d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004530c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46e3b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405190
xor eax, eax
push ebp
push 0x46e4de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x46e4b1
xor eax, eax
push ebp
push 0x46e4aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fa0
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46e47f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x46e46e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fa0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004051a0
mov edx, ebx
pop ecx
call fcn.00402d54
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e475
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4ac42c]
mov dl, 1
mov eax, dword [0x4095b0]
call fcn.0040e67c
call fcn.00404670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e4e5
lea eax, [ebp - 4]
call fcn.00404ce0
ret
Function at 0x46e4ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e69d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405390
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x46e6b4
call fcn.00404fec
mov eax, ebx
call fcn.00425308
mov edi, eax
dec edi
test edi, edi
jl 0x46e5a4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004252dc
mov edx, dword [0x43fd24]
call fcn.00404068
test al, al
je 0x46e5a0
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.004252dc
lea edx, [ebp - 0x14]
call fcn.0044c8e0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405390
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405060
inc esi
dec edi
jne 0x46e552
mov al, byte [0x46e6b8]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x46e6c4
mov eax, dword [ebp - 0xc]
call fcn.0040fb80
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404d78
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0044c8e0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x46e6b4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0044c8e0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x46e6b4
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x46e6b4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x46e6d0
call fcn.0040b5e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e6a4
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404d04
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404d04
lea eax, [ebp - 0x14]
call fcn.00404ce0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d04
ret
Function at 0x48fe57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4ac032
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48feaf
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4ac053
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48fea5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48feb3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4a0214
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a0226
add esp, 0xfffffff0
call fcn.00404208
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
cmp byte [ebp + 8], 0
je 0x4a024b
mov eax, dword [ebp - 4]
cmp word [eax], 0x25ff
jne 0x4a024b
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
sub eax, 5
mov byte [esi + 8], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 9], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xa], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xb], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x14]
mov al, byte [eax]
mov byte [esi + 0xd], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 1]
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 2]
mov byte [esi + 0xf], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 3]
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 4]
mov byte [esi + 0x11], al
lea eax, [esi + 4]
push eax
push 0x40
push 5
mov eax, dword [esi + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4a02ca
call fcn.0040fcbc
mov eax, esi
call fcn.004a035c
mov eax, esi
test bl, bl
je 0x4a02e6
call fcn.00404260
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a41dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x4a420a
mov ecx, 4
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a711c
call fcn.00404670
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.004a4198
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4a4242
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4a4242
xor eax, eax
jmp 0x4a4244
mov al, 1
test al, al
jne 0x4a4264
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a701c
call fcn.00404670
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.004a6d90
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a4318
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4a4346
mov ecx, 4
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a711c
call fcn.00404670
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4a4375
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4a4375
xor eax, eax
jmp 0x4a4377
mov al, 1
test al, al
jne 0x4a4397
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a701c
call fcn.00404670
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a7214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a7376
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4a7384
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x4a726c
push ebx
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a701c
call fcn.00404670
mov dl, 1
mov eax, dword [0x41c3a0]
call fcn.00403ea0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4a7354
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040532c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0040532c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051a0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004051a0
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x4a72f9
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0xc]
call fcn.0040532c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x4a7318
cmp ebx, 0x103
je 0x4a7318
push ebx
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4a2d18]
call fcn.004a701c
call fcn.00404670
test ebx, ebx
je 0x4a728b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a735b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.00403ed0
ret