joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x807b24]
jne 0x4053b2
repz ret
jmp fcn.00407e4c

Function at 0x407529
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a4f
and dword [ebp - 4], 0
cmp dword [0x80c3bc], 0
mov ebx, eax
jne 0x4075da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40768b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40768b
push eax
call fcn.004029dd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80c3bc], eax
call esi
push eax
call fcn.004029dd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80c3c0], eax
call esi
push eax
call fcn.004029dd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80c3c4], eax
call esi
push eax
call fcn.004029dd
pop ecx
mov dword [0x80c3cc], eax
test eax, eax
je 0x4075da
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004029dd
pop ecx
mov dword [0x80c3c8], eax
mov eax, dword [0x80c3c8]
cmp eax, ebx
je 0x407632
cmp dword [0x80c3cc], ebx
je 0x407632
push eax
call fcn.00402a58
push dword [0x80c3cc]
mov esi, eax
call fcn.00402a58
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407632
test edi, edi
je 0x407632
call esi
test eax, eax
je 0x407629
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407629
test byte [ebp - 0xc], 1
jne 0x407632
or dword [ebp + 0x10], 0x200000
jmp 0x40766b
mov eax, dword [0x80c3c0]
cmp eax, ebx
je 0x40766b
push eax
call fcn.00402a58
pop ecx
test eax, eax
je 0x40766b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40766b
mov eax, dword [0x80c3c4]
cmp eax, ebx
je 0x40766b
push eax
call fcn.00402a58
pop ecx
test eax, eax
je 0x40766b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80c3bc]
call fcn.00402a58
pop ecx
test eax, eax
je 0x40768b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40768d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402980
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
movzx eax, word [esp + 0x24]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
push esi
push 0x402c40
push 0
push eax
push ecx
mov word [esi + 0x20], 1
mov dword [esi + 4], ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [esi + 0x21], 0
mov dword [esp + 0x24], eax
jne 0x402a7d
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call ebp
test eax, eax
je 0x402a7a
cmp eax, 0xffffffff
je 0x402a7a
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x402a74
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x34]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402a74
lea eax, [esp + 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402a74
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call ebx
cmp byte [esi + 0x21], 0
je 0x402a16
pop edi
pop ebp
pop ebx
cmp dword [esp + 8], 0x12
jne 0x402a8e
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_PostQuitMessage]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [esi + 0x20], 0
je 0x402aa7
mov eax, dword [esi + 0x24]
pop esi
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x1c
ret 0x10
Function at 0x412020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x41204b
jl 0x41203e
test ecx, ecx
jne 0x41204b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x38], 0
je 0x412124
mov dword [esp + 0xc], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, edi
call fcn.0040c570
mov ecx, edx
mov esi, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jl 0x4120bb
jg 0x41207b
test esi, esi
je 0x4120bb
mov eax, dword [esp + 0xc]
cmp eax, ecx
jg 0x41208f
jl 0x412089
cmp ebx, esi
jae 0x41208f
mov esi, ebx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x18]
call fcn.004afa60
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
sub ebx, esi
sbb ecx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [edi + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x4120de
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x41210d
mov eax, dword [esp + 0x10]
add ebx, 0xffffffff
mov esi, 1
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
adc ecx, 0xffffffff
add eax, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jg 0x412062
jl 0x412111
test ebx, ebx
jne 0x412062
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ebx
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ebx
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, ecx
mov ebx, dword [eax]
test ebx, ebx
je 0x41216f
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x412176
cmp eax, ecx
jb 0x41214d
mov eax, ecx
mov dword [esp + 0x14], ecx
push eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004afa60
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
add ebx, ecx
sub esi, ecx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x412179
lea eax, [edi + 0x2c]
mov dword [esp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x4c], 0
je 0x4121e7
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x4121a3
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp esi, 0xfff
jbe 0x4121d2
jmp 0x4121b0
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.004ba106
add esp, 0x10
add ebx, eax
sub esi, eax
cmp eax, 0xfff
jne 0x4121e7
cmp esi, eax
ja 0x4121b0
test esi, esi
je 0x4121e7
push dword [edi + 0x4c]
push esi
push 1
push ebx
call fcn.004ba106
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8ee0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5021c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.004acccd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00495070
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.00413920
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x507bc0]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x507bc4]
mov dword [ebx], 0
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d917d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5021c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x415d9d
mov ecx, 2
xor ebx, ebx
mov eax, edi
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004ad065
push ebx
mov ebx, eax
mov dword [ebp - 0x10], eax
push 0
push ebx
call fcn.004affe0
add esp, 0x10
mov dword [ebp - 0x10], ebx
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415d94
cmp eax, edi
jbe 0x415d5b
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004ad06e
add esp, 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov ecx, 2
test edi, edi
jne 0x415cf6
jmp 0x415d9d
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov ecx, esi
push ebx
call fcn.00403450
push ebx
call fcn.004ad06e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004ad06e
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415dd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x415e98
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x415e11
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x415e98
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x415e26
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x415e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x415e91
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00415660
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00415dd0
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004027a0
test bl, bl
je 0x415e91
lea ebx, [edi + 5]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x415e6f
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x415e86
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
dec ebx
test eax, eax
je 0x415e91
test edi, edi
je 0x415e65
test edi, edi
setne al
jmp 0x415e9a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004accbf
mov esp, ebp
pop ebp
ret

Function at 0x415f20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x415f9c
lea ecx, [ebp - 0x28]
call fcn.00415cb0
cmp dword [ebp - 0x18], 0
je 0x415f83
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x415f6b
mov eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x415f75
mov ecx, dword [esi]
push eax
push ecx
call fcn.004b4661
add esp, 8
test eax, eax
je 0x415f94
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x415f8d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x28]
call fcn.004027a0
mov ecx, esi
call fcn.004027a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004accbf
mov esp, ebp
pop ebp
ret
Function at 0x417130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x40], 0
je 0x417191
cmp dword [esi + 0x58], 7
lea edx, [esi + 0x44]
mov eax, dword [edx + 0x10]
jbe 0x41714f
mov edx, dword [edx]
cmp dword [ebx + 0x14], 7
mov ebp, ebx
mov edi, dword [ebx + 0x10]
jbe 0x41715c
mov ebp, dword [ebx]
cmp edi, eax
jne 0x417191
test edi, edi
je 0x41717a
sub ebp, edx
movzx ecx, word [edx + ebp]
movzx eax, word [edx]
cmp cx, ax
jne 0x417191
add edx, 2
sub edi, 1
jne 0x417166
cmp byte [esi + 0x41], 0
jne 0x417191
pop edi
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
lea ecx, [esi + 0x44]
lea ebp, [esi + 0x44]
cmp ecx, ebx
je 0x4171ad
cmp dword [ebx + 0x14], 7
mov eax, dword [ebx + 0x10]
jbe 0x4171a6
mov ebx, dword [ebx]
push eax
push ebx
call fcn.00403a40
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x20]
or ecx, 0x20006
mov dword [esp + 0x18], 0
cmp dword [eax + 0x14], 7
mov dword [esp + 0x10], 0
jbe 0x4171d4
mov eax, dword [eax]
lea ebp, [esi + 0x44]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x41722b
mov eax, dword [esi]
mov ecx, esi
push ebp
push dword [esp + 0x1c]
call dword [eax + 0x14]
cmp dword [esi + 0x38], 0
jne 0x417212
mov byte [esi + 0x40], 1
mov byte [esi + 0x42], 1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x417650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d93dd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
cmp dword [ebx + 0x1c], 7
lea esi, [ebx + 8]
mov ecx, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
jbe 0x4176a4
mov eax, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x4177d6
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004ad065
push ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
push 0
push ebx
call fcn.004affe0
add esp, 0x10
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 7
jbe 0x4176ff
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x38], eax
test eax, eax
jne 0x4177cd
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417740
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403450
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x417797
mov ecx, edi
call fcn.004027a0
mov eax, dword [ebp - 0x28]
mov ecx, 7
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov word [ebp - 0x28], ax
jmp 0x41779a
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4177cd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4177c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177f4
push ecx
push edx
call fcn.004accfd
add esp, 8
push ebx
call fcn.004ad06e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004accbf
mov esp, ebp
pop ebp
ret 8
call fcn.004b306f
int3
Function at 0x4193f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, ecx
push esi
mov esi, edx
mov dword [esp + 0xc], ebx
push edi
mov dword [esp + 0x14], esi
xor edi, edi
jmp 0x419410
test edi, edi
jle 0x419425
lea ecx, [edi - 1]
mov eax, 1
shl eax, cl
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41949d
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, ebx
lea ecx, [esi + 2]
jmp 0x419440
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419440
sub esi, ecx
sar esi, 1
lea eax, [esi*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x419493
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419493
push dword [esp + 0x10]
inc esi
push esi
push eax
call fcn.004b30c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4194b1
call ebp
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc edi
cmp edi, 8
jl 0x419410
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
call ebp
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x419ab0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4c4
mov eax, dword [0x5021c0]
xor eax, esp
mov dword [esp + 0x4c0], eax
mov eax, dword [0x507a08]
test eax, eax
jne 0x419b3a
push esi
push 4
call fcn.004acccd
mov esi, eax
mov dword [esp + 0xc], 0
push 0x2b0
lea eax, [esp + 0x14]
mov dword [esp + 0xc], esi
push 0
push eax
mov dword [esi], 0
call fcn.004affe0
add esp, 0x10
lea eax, [esp + 0x2bc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x2cc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi], eax
mov eax, esi
mov dword [0x507a08], esi
pop esi
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004accbf
add esp, 0x4c4
ret
Function at 0x419e50
Capabilities:
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x419f20
cmp byte [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
je 0x419eea
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
push eax
call ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x419ee1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call ebx
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [ebp + 8]
push 0
push 0x8000000
push 2
push 0
push 1
push 0x40000000
push eax
call ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x419f20
push 0
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419f2b
push esi
call ebx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
je 0x419f47
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8