joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410500
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 8], 0
push ebx
push esi
test ecx, ecx
jne 0x410520
mov eax, 0xc0000030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x41064a
push 0
push 0
push 0x60
push 1
push 1
push 0x80
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x2c]
push 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
push 0x100081
lea eax, [ebp - 0x10]
mov dword [ebp - 0x40], 0x40
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x41064a
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x64]
push 5
push 0x18
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x4105be
mov esi, eax
jmp 0x4105cc
mov eax, dword [ebp - 0x5c]
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x410635
push ebx
push 0x8000000
push 2
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf001f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
js 0x410635
mov eax, dword [ebp - 0x1c]
push 2
push 0
push 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov esi, eax
test esi, esi
js 0x410635
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x410643
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411b30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x454abc]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x411b4b
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi]
cmp eax, 0x40
jae 0x411b5d
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
ret
cmp dword [esi + 0x10c], 0
jne 0x411b89
push 0x100
push 4
push dword [0x454e50]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10c], eax
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
cmp ecx, eax
jne 0x411bc5
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
push dword [esi + 0x10c]
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax + ecx*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
ret
Function at 0x413790
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov eax, dword [edi]
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
mov esi, eax
push dword [edi + 4]
push esi
call fcn.00441e40
mov ecx, dword [edi]
add esp, 0xc
xor eax, eax
push esi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x413804
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [ebp - 4]
test eax, eax
je 0x413807
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x413807
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push dword [0x454abc]
mov esi, ecx
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x138]
push eax
push dword [0x454abc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x413881
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 8], eax
test esi, esi
je 0x4138be
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x40000000
je 0x4138e7
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4138a3
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 4]
push eax
or dword [eax + 4], 0x400
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
mov ebx, eax
test ebx, ebx
jne 0x413908
test esi, esi
je 0x4138de
push 1
push esi
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4138b8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, eax
je 0x413904
push 0
push esi
call edi
test eax, eax
je 0x4138be
xor esi, esi
jmp 0x4138be
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
test edi, edi
je 0x41398a
mov edi, edi
cmp edi, 0xffffffff
je 0x413986
lea eax, [ebp - 0x24]
push eax
push 0
push 0x475
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x41394f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x138]
call fcn.00411a70
push 0
push 0
push 0x476
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x413986
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
test edi, edi
jne 0x413920
jmp 0x41398a
test edi, edi
jne 0x413993
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edi, dword [ebp - 4]
cmp dword [edi + 8], 0
je 0x4139af
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, ebx
jne 0x4139af
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
test esi, esi
je 0x4139bc
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [ebp - 8]
test esi, esi
je 0x4139d5
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4139d5
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x138]
call fcn.00411a10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4175c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov eax, edi
and eax, 0xfff0000
cmp eax, 0x70000
je 0x417615
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x140012
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x44ec2c
push eax
push 0
push 0
call dword [sym.imp.ntdll.dll_LdrGetDllHandle]
xor esi, esi
test eax, eax
push edi
cmovns esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, esi
push eax
call fcn.00417530
jmp 0x41761d
movzx ecx, di
call fcn.00417710
mov esi, eax
test esi, esi
je 0x41762c
cmp dword [esi], 0
je 0x41762c
xor al, al
jmp 0x41762e
mov al, 1
test al, al
jne 0x4176ff
mov ecx, dword [esi + 4]
call fcn.00411ec0
add eax, eax
mov dword [esi], eax
cmp eax, 4
jb 0x417681
mov ecx, dword [esi + 4]
mov edx, eax
shr edx, 1
cmp word [ecx + edx*2 - 4], 0xd
jne 0x417681
cmp word [ecx + edx*2 - 2], 0xa
jne 0x417681
lea edx, [eax - 4]
call fcn.004123d0
mov ecx, esi
mov esi, eax
test ecx, ecx
je 0x417681
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x417681
call fcn.00411970
mov eax, dword [esi + 4]
cmp word [eax], 0x7b
jne 0x4176ff
lea eax, [ebp - 0xc]
mov edx, 0xa
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00412360
test al, al
je 0x4176ff
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x4176b2
call fcn.00412420
mov edi, eax
jmp 0x4176e4
mov edx, dword [0x454e8c]
lea ecx, [ebx + 0xa]
call fcn.00411890
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4176e4
push ebx
push eax
push dword [edi + 4]
call fcn.00441e40
add esp, 0xc
mov ecx, esi
mov esi, edi
test ecx, ecx
je 0x4176ff
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4176ff
call fcn.00411970
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417710
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0x1a0018
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], str.kernel32.dll
push eax
push 0
push 0
mov edi, ecx
call dword [sym.imp.ntdll.dll_LdrGetDllHandle]
xor esi, esi
test eax, eax
push edi
cmovns esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, esi
push eax
call fcn.00417530
mov esi, eax
test esi, esi
je 0x4177ad
mov ecx, dword [esi + 4]
call fcn.00411ec0
add eax, eax
mov dword [esi], eax
cmp eax, 4
jb 0x4177ab
mov ecx, dword [esi + 4]
mov edx, eax
shr edx, 1
cmp word [ecx + edx*2 - 4], 0xd
jne 0x4177ab
cmp word [ecx + edx*2 - 2], 0xa
jne 0x4177ab
lea edx, [eax - 4]
call fcn.004123d0
mov edi, eax
test esi, esi
je 0x4177ad
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4177ad
call fcn.00411970
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 2
push 0
push edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4180dc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], 0x10
push eax
push 3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 1
push eax
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4180d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x4180d5
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push edi
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov edi, eax
push esi
push edi
call fcn.00441e40
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4180dc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x417f6a
mov eax, dword [ebp - 4]
movzx esi, word [eax]
movzx eax, word [eax + 2]
shl esi, 0x10
add esi, eax
jmp 0x417f6f
mov esi, 0x40904e4
push 0x44ed14
mov edx, esi
mov ecx, edi
call fcn.00417d30
push 0x44ed2c
mov edx, esi
mov dword [ebx], eax
mov ecx, edi
call fcn.00417d30
push 0x44ed4c
mov edx, esi
mov dword [ebx + 4], eax
mov ecx, edi
call fcn.00417d30
cmp dword [ebx], 0
mov dword [ebx + 0xc], eax
jne 0x418004
cmp dword [ebx + 4], 0
jne 0x418004
test eax, eax
jne 0x418004
and esi, 0xffff0000
mov edx, edi
add esi, 0x4e4
mov ecx, ebx
push esi
call fcn.00417e50
cmp dword [ebx], 0
jne 0x418004
cmp dword [ebx + 4], 0
jne 0x418004
cmp dword [ebx + 0xc], 0
jne 0x418004
push 0x40904e4
mov edx, edi
mov ecx, ebx
call fcn.00417e50
cmp dword [ebx], 0
jne 0x418004
cmp dword [ebx + 4], 0
jne 0x418004
cmp dword [ebx + 0xc], 0
jne 0x418004
push 0x4090000
mov edx, edi
mov ecx, ebx
call fcn.00417e50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x44ed64
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4180b8
cmp dword [ebp - 0x18], 0
je 0x4180b8
mov edx, dword [ebp - 0x1c]
mov esi, 0x2e
push 0x1e
mov dword [ebp - 0xd0], 8
mov dword [ebp - 0xb8], 0
mov ecx, dword [edx + 8]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0xc0], eax
movzx eax, cx
mov ecx, dword [edx + 0xc]
lea edx, [esi - 0x27]
mov dword [ebp - 0x90], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x60], eax
movzx eax, cx
lea ecx, [ebp - 0xd0]
mov word [ebp - 0xa8], si
mov dword [ebp - 0xa0], 8
mov dword [ebp - 0x88], 0
mov word [ebp - 0x78], si
mov dword [ebp - 0x70], 8
mov dword [ebp - 0x58], 0
mov word [ebp - 0x48], si
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x30], eax
call fcn.004234e0
jmp 0x4180ba
xor eax, eax
push edi
push 0
mov dword [ebx + 8], eax
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4181f0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x454ae8]
test ecx, ecx
je 0x418210
mov eax, dword [0x454ae4]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x7ffe0030
call fcn.00411ec0
add eax, eax
cmp word [eax + 0x7ffe002e], 0x5c
jne 0x418229
add eax, 0xfffffffe
mov dword [esi], eax
xor ecx, ecx
mov dword [0x454ae4], eax
lea eax, [ebp - 4]
mov dword [esi + 4], 0x7ffe0030
lock or dword [eax], ecx
mov dword [0x454ae8], 0x7ffe0030
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418250
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov ebx, edx
mov esi, ecx
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x418295
test esi, esi
je 0x4182b9
cmp dword [eax + 0x18], esi
je 0x4182b9
mov eax, dword [eax]
cmp eax, ecx
jne 0x418286
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x41830b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x418295
movzx ecx, word [eax + 0x24]
test cx, cx
jne 0x4182cf
call fcn.00412420
mov esi, eax
jmp 0x418297
mov eax, dword [eax + 0x28]
mov edi, ecx
mov edx, dword [0x454e8c]
mov dword [ebp - 4], eax
lea ecx, [edi + 0xa]
call fcn.00411890
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], edi
mov word [eax + edi], cx
mov eax, dword [ebp - 4]
test eax, eax
je 0x418297
push edi
push eax
push dword [esi + 4]
call fcn.00441e40
add esp, 0xc
jmp 0x418297
mov ecx, esi
call fcn.0041a730
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x418327
call fcn.00411970
test ebx, ebx
je 0x41834d
push ecx
mov edx, 0x5c
mov ecx, edi
call fcn.004121b0
cmp eax, 0xffffffff
je 0x418349
inc eax
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
push esi
push edi
test eax, eax
je 0x418442
mov ecx, eax
call fcn.00411ec0
mov ebx, eax
add ebx, ebx
jmp 0x418444
xor ebx, ebx
mov edx, dword [0x454e8c]
lea esi, [ebx + 0x208]
lea ecx, [esi + 0xa]
call fcn.00411890
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
push dword [edi + 4]
push eax
push eax
push dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4184b1
mov ecx, dword [edi + 4]
call fcn.00411ec0
mov edx, eax
mov eax, dword [ebp - 8]
add edx, edx
mov dword [edi], edx
test eax, eax
je 0x4184a8
lea ecx, [ebx + 2]
shr edx, 1
push ecx
push eax
mov eax, dword [edi + 4]
lea eax, [eax + edx*2]
push eax
call fcn.00441e40
add esp, 0xc
add dword [edi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4184c4
call fcn.00411970
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x20]
push esi
push 5
push 0x18
push eax
lea eax, [ebp - 8]
mov esi, edx
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
test ecx, ecx
js 0x41a00f
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ac90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
push ebx
mov ebx, 0x10
push esi
push edi
test edx, edx
je 0x41accf
movzx eax, word [edx]
mov word [ebp - 0x10], ax
add eax, 2
cmp dword [edx], 0xfffe
mov word [ebp - 0xe], ax
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jbe 0x41acd7
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push 0x100
push 4
push dword [0x454e50]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x41ad3f
push edi
push 0
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0x80000005
jne 0x41ad44
push dword [ebp - 4]
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
jne 0x41acf3
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c180
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push 0
mov edi, ecx
mov esi, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x41c362
mov eax, dword [ebp - 4]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
or eax, dword [ebp - 0x10]
je 0x41c362
cmp dword [esi + 0x1b4], 0
jg 0x41c220
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov eax, dword [esi + 0x1b8]
test eax, eax
jne 0x41c1e9
mov dword [esi + 0x1b8], ebx
jmp 0x41c1fb
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x41c362
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi + 0x20], 0x200000
je 0x41c2d4
cmp dword [esi + 0x180], 0
jne 0x41c2d4
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x41c2d4
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x180], eax
test eax, eax
je 0x41c2d4
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x18c], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x194]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x188], eax
test eax, eax
jne 0x41c2b3
push dword [esi + 0x180]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x180], 0
jmp 0x41c2d4
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 0x188]
push dword [esi + 0x180]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x184], eax
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
je 0x41c362
mov ecx, dword [ebp - 0x48]
mov edx, esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x180]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 8], ecx
test eax, eax
je 0x41c34d
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004204a0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x180]
sub eax, edx
push eax
mov eax, dword [ebp - 8]
sub eax, ecx
push eax
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004204a0
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret