joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407caa
Capabilities:
Get graphical window text

Disassembly:
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [0x41be10], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [0x41be14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [0x41be18], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [0x41b094]
mov dword [0x41be0c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [0x41be0c]
push 0
push 0x1001
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
ret

Function at 0x407eb1
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5c
pop eax
push 8
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x24]
mov word [ebp - 0x26], ax
mov ebx, ecx
pop ecx
xor eax, eax
push 0
rep stosd dword es:[edi], eax
push 9
mov edi, 0x110a
lea eax, [ebp - 0x830]
push edi
push dword [0x41b080]
mov dword [ebp - 0x1040], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
push 3
push edi
push dword [0x41b080]
mov dword [ebp - 0x103c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
mov edi, eax
call fcn.00407dc7
mov ecx, dword [ebp - 0x103c]
lea edx, [ebp - 0x830]
push 0x401
mov esi, eax
call fcn.0040b28d
xor eax, eax
cmp esi, dword [0x41b0dc]
setne al
mov dword [ebp - 0x1048], eax
je 0x407f60
push 0x10
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.0040b28d
jmp 0x407f7b
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1044], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp edi, esi
jne 0x407f88
and dword [ebp - 0x1040], 0
jmp 0x407fa0
push edi
push 3
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, esi
jne 0x407fa4
xor esi, esi
jmp 0x407fc5
mov ecx, dword [0x41b080]
lea eax, [ebp - 0x1038]
push 0
push 0x401
push eax
mov edx, edi
call fcn.0040af0b
lea esi, [ebp - 0x1038]
mov ecx, dword [ebp - 0x103c]
call fcn.00407de8
lea ecx, [ebp - 0x104c]
mov edx, esi
push ecx
mov ecx, dword [ebp - 0x1040]
push ebx
push eax
push dword [ebp - 0x1048]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d88d
test eax, eax
jne 0x408015
push dword [ebp - 0x104c]
push ebx
call dword [sym.imp.ACLUI.dll_EditSecurity]
mov ecx, dword [0x41b080]
call fcn.00409a6c
jmp 0x408032
push 0
push 0x10
push 0x1b58
push 0x1b8c
push ebx
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x409c27
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea edx, [ebp - 0x1004]
push esi
push ecx
xor edi, edi
xor ecx, ecx
inc edi
call fcn.004098c6
test eax, eax
je 0x409c8f
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409c8f
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x40ae55
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0x800
lea eax, [ebp - 0x1008]
mov esi, ecx
mov ecx, dword [0x41b080]
push eax
call fcn.0040af0b
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae94
sub ecx, edx
sar ecx, 1
push esi
lea edi, [ecx*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40aefb
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40aef5
push edi
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00419cc0
mov esp, ebp
pop ebp
ret

Function at 0x40b053
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push 3
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40b174
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
push 0x400
push eax
mov edx, edi
mov ecx, esi
call fcn.0040af0b
lea ecx, [ebp - 0x80c]
push ecx
push 8
push ebx
lea ecx, [ebp - 0x808]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b0c1
xor eax, eax
jmp 0x40b177
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b0ca
sub ecx, edx
mov eax, 0x3ff
sar ecx, 1
sub eax, ecx
push eax
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x808]
push eax
push 0
jmp 0x40b149
lea eax, [ebp - 0x810]
inc ebx
push eax
push 9
push 0
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b122
lea ecx, [ebp - 0x810]
call fcn.0040b188
jmp 0x40b124
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x808]
mov edx, edi
push eax
push 0xffff0001
mov ecx, esi
call fcn.0040b005
push dword [ebp - 0x814]
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40b0f2
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push 0x1113
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x40b2e4
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x41be1c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xffff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push edi
push 0x4017f8
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x41be20], eax
call fcn.0040b72c
cmp eax, 2
jne 0x40b350
call fcn.0040b2cd
jmp 0x40b46e
mov ecx, eax
call fcn.0040b476
sub eax, 1
je 0x40b453
sub eax, 1
je 0x40b46e
mov eax, dword [0x41be20]
test eax, eax
je 0x40b3c5
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b390
push 9
push dword [0x41be20]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40b46e
push dword [0x41be20]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [0x41be20]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
cmp esi, dword [0x41be20]
je 0x40b3b9
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40b46e
call fcn.00404c80
test eax, eax
je 0x40b46e
call fcn.00402778
test eax, eax
je 0x40b46e
push 0x64
push dword [0x41be1c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, eax
test esi, esi
je 0x40b46e
call fcn.00404d0e
mov dword [0x41be20], eax
test eax, eax
je 0x40b46e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
jmp 0x40b43f
cmp dword [0x45e21c], edi
jne 0x40b429
lea eax, [esp + 0x14]
push eax
push esi
push dword [0x41be20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40b43f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40b40b
jmp 0x40b46e
mov eax, dword [0x41be20]
test eax, eax
je 0x40b46e
push edi
push 0x288
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40b72c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
push 0x401a58
push MenuHelp
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40b7b5
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x401acc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b7ab
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0040bd9d
test eax, eax
jne 0x40b7ab
cmp dword [ebp - 8], edi
jne 0x40b7ab
cmp dword [ebp - 4], edi
jne 0x40b7ab
mov eax, dword [ebp - 0xc]
sub eax, esi
je 0x40b7ab
sub eax, 1
je 0x40b7a8
sub eax, 1
jne 0x40b7ab
push 2
pop esi
jmp 0x40b7ab
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b95a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 8]
xor esi, esi
push eax
push ecx
lea eax, [ebp - 4]
inc esi
push eax
push ecx
lea eax, [ebp - 0xc]
mov edi, ecx
push eax
push 0x41c628
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ba51
inc edi
cmp dword [ebp - 4], 1
mov dword [ebp - 0x1c], edi
je 0x40b9b5
cmp dword [ebp - 4], 2
je 0x40b9b5
cmp dword [ebp - 4], 7
je 0x40b9b5
xor ecx, ecx
jmp 0x40b9b8
push 2
pop ecx
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40ba1c
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0x41c628
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ba11
lea eax, [ebp - 8]
mov edx, edi
push eax
lea ecx, [ebp - 4]
call fcn.0040bd9d
test eax, eax
jne 0x40ba11
push dword [ebp - 8]
push edi
push dword [ebp - 4]
push eax
push 0x41c628
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40ba13
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40ba1e
xor esi, esi
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x400
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x41c628
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40b99b
test esi, esi
je 0x40bacc
xor edi, edi
push 0x400
push 0x41be28
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc edi
test eax, eax
jne 0x40bacc
lea eax, [ebp - 0x14]
push eax
push 9
push 0
push 0x41be28
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bac8
lea eax, [ebp - 0x10]
push eax
push 0x41be28
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40babf
push dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040b89f
push dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040b95a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ba53
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bcb1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 9
push esi
mov ebx, edx
mov dword [ebp - 0xc], esi
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bce2
push ebx
push edi
jmp 0x40bd90
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x40bd24
cmp edi, 0xea
je 0x40bd24
cmp edi, 0x7a
jne 0x40bd40
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40bd4d
push 8
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40bd96
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40bd6f
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0040bcb1
test eax, eax
je 0x40bd70
inc esi
cmp eax, 0x103
je 0x40bd7c
cmp esi, dword [ebp - 0x10]
jb 0x40bd4d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb0c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x220], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
mov dword [eax], edi
mov dword [ebp - 0x214], edi
cmp dword [ebx + 0x10], edi
jne 0x40cb58
mov eax, dword [ebx + 0x2c]
mov ebx, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
jmp 0x40cbc1
mov esi, 0x8007000e
call fcn.0040c78a
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40cbad
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 8]
push edi
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x40cb90
movzx esi, si
or esi, 0x80070000
mov ebx, dword [ebp - 0x218]
mov eax, esi
push dword [ebp - 0x21c]
not eax
shr eax, 0x1f
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40cbb3
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x40cc4c
mov eax, dword [ebp - 0x214]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jle 0x40cbfc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40cc32
cmp dword [ebp - 0x218], edi
je 0x40cc2e
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jle 0x40cc30
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40cc4c
cmp esi, 0x80070005
je 0x40cc4c
cmp dword [ebx], edi
je 0x40cc52
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cc52
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40eddd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x45ce6c]
mov ebx, ecx
push edi
mov edi, dword [0x45ce74]
cmp esi, edi
jne 0x40eeff
xor esi, esi
lea eax, [ebp - 4]
cmp dword [0x41b1ec], 1
push esi
push eax
jne 0x40ee45
push 0x10000
push 0x43ce68
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ee37
mov dword [0x41be24], 0x82
xor eax, eax
jmp 0x40ef19
mov ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x40ee8d
mov edi, 0x10000
push edi
push 0x41ce68
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ee26
mov eax, dword [0x45e220]
push edi
push 0x43ce68
push dword [ebp - 4]
neg eax
push 0x41ce68
sbb eax, eax
and eax, 0xfde6
push 1
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [0x45ce7c]
add eax, ecx
mov dword [0x45ce74], edi
mov ecx, dword [0x45ce78]
mov dword [0x45ce6c], esi
mov dword [0x45ce7c], eax
test ecx, ecx
je 0x40eeb8
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x40eebb
push 0x64
pop eax
cmp dword [0x45ce80], eax
je 0x40eefd
mov ecx, dword [0x41be00]
mov dword [0x45ce80], eax
test ecx, ecx
je 0x40eefd
push esi
push eax
push 0x402
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x41be00]
call fcn.0040bad7
test eax, eax
jne 0x40eee2
mov edi, dword [0x45ce74]
mov esi, dword [0x45ce6c]
cmp esi, edi
jge 0x40ee30
mov cx, word [esi*2 + 0x43ce68]
xor eax, eax
mov word [ebx], cx
inc dword [0x45ce6c]
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ef66
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x85c], 0
push ebx
push esi
push edi
push 0
push 9
push 0x110a
push dword [0x41b080]
mov edi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41be24], 0x88
mov esi, eax
test edi, edi
je 0x40efd8
push 0
push edi
mov ecx, esi
call fcn.00407dc7
lea edx, [ebp - 0x85c]
mov ecx, eax
call fcn.0040dd4f
test eax, eax
je 0x40efd8
mov dword [0x41be24], 0x89
jmp 0x40f0fd
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45ce68], eax
cmp eax, 0xffffffff
je 0x40f0e3
and dword [0x45ce6c], 0
lea ecx, [ebp - 0x860]
and dword [0x45ce70], 0
push 0
push ecx
push 2
push 0x401d9c
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x401c60
call fcn.0040f59e
mov ecx, 0x401d64
call fcn.0040f59e
mov ecx, 0x401ca0
call fcn.0040f59e
mov ecx, 0x401d68
call fcn.0040f59e
test edi, edi
je 0x40f068
push edi
mov edx, 0x428
lea ecx, [ebp - 0x858]
call fcn.00404881
mov ecx, dword [ebp - 0x85c]
jmp 0x40f0c5
mov ecx, esi
call fcn.00407dc7
push dword [0x401278]
mov ebx, 0x428
lea ecx, [ebp - 0x858]
mov edx, ebx
mov esi, eax
call fcn.00404881
lea edx, [ebp - 0x858]
mov ecx, esi
call fcn.0040dc53
lea edx, [ebp - 0x858]
mov ecx, eax
call fcn.0040f311
push dword [0x401284]
mov edx, ebx
lea ecx, [ebp - 0x858]
call fcn.00404881
lea edx, [ebp - 0x858]
mov ecx, esi
call fcn.0040dc53
mov ecx, eax
lea edx, [ebp - 0x858]
call fcn.0040f311
call fcn.0040f7a7
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f0ed
mov dword [0x41be24], 0x8a
test edi, edi
je 0x40f0fd
push dword [ebp - 0x85c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret

Function at 0x40f10e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 9
push 0x110a
push dword [0x41b080]
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41be24], 0x88
test edi, edi
je 0x40f165
push ebx
push edi
mov ecx, eax
call fcn.00407dc7
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0040dd4f
test eax, eax
je 0x40f165
mov dword [0x41be24], 0x89
jmp 0x40f1c1
xor edx, edx
mov edi, 0x401d70
inc edx
mov ecx, edi
call fcn.0040bdf3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x40f1b8
cmp eax, 6
je 0x40f1a7
xor ecx, ecx
cmp eax, 0x522
sete cl
add ecx, 0x8d
mov dword [0x41be24], ecx
jmp 0x40f1b1
mov dword [0x41be24], 0x8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov ecx, edi
call fcn.0040bdf3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f5c1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
push 0x22
jmp 0x40f638
movzx eax, si
lea edi, [edi + 2]
cmp eax, 0xa
je 0x40f625
cmp eax, 0xd
je 0x40f607
cmp eax, 0x22
je 0x40f5e5
cmp eax, 0x5c
jne 0x40f5ed
push 0x5c
pop ecx
call fcn.0040f759
movzx ecx, si
call fcn.0040f759
movzx esi, word [edi]
test si, si
jne 0x40f5cb
push 0x22
pop ecx
pop edi
pop esi
jmp fcn.0040f759
cmp dword [0x45da10], 0
je 0x40f61d
push 0x5c
pop ecx
call fcn.0040f759
push 0x72
pop eax
jmp 0x40f620
movzx eax, si
movzx ecx, ax
jmp 0x40f5f0
cmp dword [0x45da10], 0
je 0x40f5ed
push 0x5c
pop ecx
call fcn.0040f759
push 0x6e
pop ecx
jmp 0x40f5f0

Function at 0x40f715
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1c
pop esi
push 0x30
mov edi, ecx
pop ebx
mov ecx, esi
mov eax, edi
shr eax, cl
and eax, 0xf
movzx ecx, word [eax*2 + 0x401cd0]
test edx, edx
jne 0x40f73c
cmp cx, bx
je 0x40f744
call fcn.0040f759
xor edx, edx
inc edx
sub esi, 4
jns 0x40f722
pop edi
pop esi
test edx, edx
jne 0x40f757
mov ecx, ebx
pop ebx
jmp fcn.0040f759
pop ebx
ret

Function at 0x40f759
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov si, cx
cmp si, 0xa
je 0x40f76d
inc dword [0x45ce70]
jmp 0x40f77c
push 0xd
pop ecx
call fcn.0040f759
and dword [0x45ce70], 0
mov eax, dword [0x45ce6c]
mov ecx, 0x10000
cmp eax, ecx
jae 0x40f79d
mov word [eax*2 + 0x43ce68], si
mov eax, dword [0x45ce6c]
inc eax
mov dword [0x45ce6c], eax
pop esi
cmp eax, ecx
je fcn.0040f7a7
ret

Function at 0x40f7a7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45ce6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x40f832
cmp dword [0x41b0e0], 4
jne 0x40f7ff
push edi
push ebx
push ebx
push 0x20000
mov edi, 0x41ce68
push edi
push eax
push 0x43ce68
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x40f828
cmp esi, dword [ebp - 4]
jmp 0x40f826
push ebx
lea ecx, [ebp - 4]
add eax, eax
push ecx
push eax
push 0x43ce68
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f828
mov eax, dword [0x45ce6c]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x40f832
mov dword [0x41be24], 0x8d
pop esi
mov dword [0x45ce6c], ebx
pop ebx
mov esp, ebp
pop ebp
ret