joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424bc4
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 0x424d6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x424d50
mov dl, 1
mov eax, dword [0x40c2ac]
call fcn.00402d88
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x424d3f
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.0043de34
test al, al
je 0x424d32
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, 0x424d80
lea eax, [ebp - 0x254]
call fcn.00408604
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x424d32
xor eax, eax
push ebp
push 0x424d2b
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 0x424db8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x424d14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403c58
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x424d14
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424d32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x424c35
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ef30
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424d76
lea eax, [ebp - 0x260]
call fcn.00403a28
ret

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

Disassembly:
push ecx
mov eax, dword [0x44375c]
cmp byte [eax + 0x95], 0
jne 0x42562d
cmp dword [0x443778], 0
jne 0x4255ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x425578
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x443778], eax
cmp dword [0x443774], 0
jne 0x425609
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x443774], eax
cmp dword [0x44377c], 0
jne 0x42562d
push esp
push 0
push 0
push 0x42551c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44377c], eax
pop edx
ret
Function at 0x425724
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42573b
add esp, 0xfffffff0
call fcn.004030a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411e9c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bfac]
call fcn.00402d88
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bfac]
call fcn.00402d88
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x413a98]
call fcn.00419484
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4258b0
mov eax, dword [0x442aa8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00419854
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4270e4
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x442aa8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00409900
test eax, eax
je 0x42582e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407fb8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409928
test eax, eax
je 0x425842
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00403c58
mov eax, dword [0x4429cc]
cmp byte [eax], 0
jne 0x425873
mov eax, ebx
call fcn.0042599c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4258a5
call fcn.004030f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425c0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44375c]
cmp dword [eax + 0x24], 0
je 0x425caf
cmp dword [ebx + 0x84], 0
jne 0x425ca9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x425b9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x425ca9
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 0x425c72
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x425ca9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d670
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x425c81
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4266bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4266f1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b10
jmp 0x4266fb
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x427458
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x427490
mov eax, esi
call fcn.00439d34
test al, al
je 0x427490
mov eax, dword [ebx + 0x74]
call fcn.00439a38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x427490
push 0
mov eax, dword [ebx + 0x74]
call fcn.00439a38
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x429f2c
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.00403a28
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x429f7b
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.00403c58
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43180c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4437cc], 0
sete dl
or al, dl
jne 0x43194c
mov eax, dword [0x4437d0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4437cc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x43191b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4437cc]
call fcn.0040d670
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431913
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x431913
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x431913
mov eax, dword [ebp - 0x14]
call fcn.00439a38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431913
push ebp
call fcn.004317c8
pop ecx
test al, al
jne 0x431913
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4318cf
mov eax, dword [ebp - 0x14]
call fcn.004383c4
dec eax
jle 0x431913
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402f94
cmp byte [ebp - 1], 0
je 0x431913
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431913
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4437d0]
call fcn.00431014
inc edi
dec esi
jne 0x431862
mov eax, dword [0x4437d0]
cmp dword [eax + 8], 0
jle 0x431933
mov eax, dword [0x4437d0]
call fcn.004310a4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43194c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00431630
pop ecx
test al, al
jne 0x43194c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4373d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x437401
je 0x43745b
sub eax, 7
je 0x437422
dec eax
je 0x43744c
sub eax, 0x17
je 0x437500
jmp 0x43753e
add eax, 0xffffff00
sub eax, 9
jb 0x4374ec
add eax, 0xffffff09
sub eax, 0xb
jb 0x4374b4
jmp 0x43753e
mov eax, ebx
call fcn.0041e6b0
mov edi, eax
test edi, edi
je 0x43759e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4375a7
jmp 0x43759e
test byte [ebx + 0x44], 0x20
jne 0x4375a7
jmp 0x43759e
mov edx, esi
mov eax, ebx
call fcn.00434a9c
cmp dword [esi + 0xc], 0xffffffff
jne 0x4375a7
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004069d0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004335e8
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004372a8
test eax, eax
je 0x4375a7
mov dword [esi + 0xc], 1
jmp 0x4375a7
mov edx, esi
mov eax, ebx
call fcn.0043733c
test al, al
je 0x43759e
cmp dword [esi + 0xc], 0
jne 0x4375a7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00439a38
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4375a7
mov eax, ebx
call fcn.00434138
test al, al
jne 0x4375a7
jmp 0x43759e
mov eax, ebx
call fcn.00439a38
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x43759e
cmp dword [0x4428d4], 0
je 0x43759e
mov eax, dword [0x4428d4]
cmp ebx, dword [eax + 0x24]
jne 0x43759e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4428d4]
call fcn.004349d0
jmp 0x43759e
mov eax, dword [0x443794]
cmp byte [eax + 0x20], 0
je 0x43759e
mov eax, dword [0x443794]
cmp dword [eax + 0x1c], 0
je 0x43759e
mov eax, dword [esi]
mov edx, dword [0x443794]
cmp eax, dword [edx + 0x1c]
jne 0x43759e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0041e5f4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402f94
jmp 0x4375a7
mov edx, esi
mov eax, ebx
call fcn.00434a9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437a68
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 + 0x1e8], 0
je 0x437a84
cmp dword [esi + 4], 0
je 0x437ab1
test byte [ebx + 0x45], 1
jne 0x437aa3
mov eax, ebx
call fcn.00436a0c
test eax, eax
jne 0x437aa3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x437bc1
mov edx, esi
mov eax, ebx
call fcn.004376e0
jmp 0x437bc1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x437bba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00439a38
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.004349d0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00437a68
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.00439a38
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437bc1
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 0x43e838
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e5c
mov eax, dword [ebp - 8]
call fcn.00403e5c
xor eax, eax
push ebp
push 0x43e966
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
mov edx, 0x44
call fcn.00406978
lea eax, [ebp - 0x64]
mov edx, pe_nt_image_headers32
call fcn.00406978
mov dword [ebp - 0x54], 0x44
lea edx, [ebp - 0x6c]
xor eax, eax
call fcn.00402918
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00407e48
push dword [ebp - 0x68]
push 0x43e97c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403d68
push dword [ebp - 0x10]
push 0x43e988
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403d68
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00402918
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00407e48
mov eax, dword [ebp - 0x70]
call fcn.004027cc
call fcn.00402790
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 8
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403e6c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403e6c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x43e932
xor ebx, ebx
jmp 0x43e935
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e96d
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.00403a4c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403a4c
ret

Function at 0x4407e4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00403e6c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x440857
xor edx, edx
push ebp
push 0x440850
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440857
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeregisterEventSource
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x440f68
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [0x442c10]
mov byte [eax], 1
mov eax, 0x440e28
call fcn.004060a8
push 0x441010
push 2
push 0
mov ecx, 0x441028
mov dl, 1
mov eax, dword [0x440d50]
call fcn.0043e6c8
mov ebx, eax
mov byte [ebx + 0x28], 1
lea eax, [ebx + 0x20]
mov edx, 0x44103c
call fcn.00403a7c
lea eax, [ebx + 0x24]
mov edx, 0x441050
call fcn.00403a7c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x34]
test al, al
jne 0x440ff8
mov eax, ebx
call fcn.00440920
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x440ff8
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 0x5c], eax
mov eax, ebx
call fcn.00402db8
pop ebx
call fcn.004038f0
add byte [eax], al
add bh, bh
invalid

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x4024f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404fbd
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x114], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x150], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
push 0x1f
push str.SOFTWAREMicrosoftCryptography
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
call fcn.00402060
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x12c]
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
push str.MachineGuid
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
call fcn.00402060
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp dword [ebp - 0x130], 0x10
lea ecx, [ebp - 0x148]
push ecx
push 0x20019
lea eax, [ebp - 0x144]
mov dword [ebp - 0x14c], 1
cmovae eax, dword [ebp - 0x144]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402675
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], pe_nt_image_headers32
push ecx
push 0
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push 0
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402669
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402651
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.004037b0
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x4026ab
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026f2
push ecx
push edx
call fcn.00404032
add esp, 8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp ecx, 0x10
jb 0x402702
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404032
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f42
mov esp, ebp
pop ebp
ret
Function at 0x403040
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x408008]
xor eax, esp
mov dword [esp + 0x22c], eax
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4030ee
lea eax, [esp + 0x24]
mov dword [esp + 0x24], pe_nt_image_headers32
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [esp]
test eax, eax
je 0x4030e8
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4030e5
lea eax, [esp + 4]
push eax
push dword [esp + 4]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x403102
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00403f42
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
push dword [esp + 4]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
test eax, eax
je 0x4030df
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
mov al, 1
xor ecx, esp
call fcn.00403f42
mov esp, ebp
pop ebp
ret