joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40443f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push ebx
push esi
xor ebx, ebx
mov esi, 0xff
push esi
lea eax, [ebp - 0x21f]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x220], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push ebx
jmp 0x404654
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
call fcn.0040ad42
add esp, 0xc
test eax, eax
jne 0x404647
push esi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x120], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push ebx
jmp 0x40462b
push 0x1ff
lea eax, [ebp - 0x727]
push ebx
push eax
mov byte [ebp - 0x728], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x728]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x728]
push str.Device_Parameters
push eax
call sub.msvcrt.dll_strcat
push esi
lea eax, [ebp - 0x527]
push ebx
push eax
mov byte [ebp - 0x528], bl
call sub.msvcrt.dll_memset
add esp, 0x1c
push esi
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
push str.Driver
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 4]
call fcn.0040add2
lea eax, [ebp - 0x428]
push eax
push str.HardwareID
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 4]
call fcn.0040add2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x728]
push eax
push dword [ebp - 4]
call fcn.0040ad42
add esp, 0x2c
test eax, eax
jne 0x40461e
push 0x100
lea eax, [ebp - 0x327]
push ebx
push eax
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 0x328], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.EDID
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404615
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp byte [ebp - 0x328], bl
mov byte [ebp - 0x228], bl
jne 0x404615
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x328]
call fcn.00404117
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040ae18
add esp, 0xc
test eax, eax
je 0x4044bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.0040ae18
add esp, 0xc
test eax, eax
je 0x404478
pop esi
pop ebx
leave
ret 8

Function at 0x404b83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x404d0a
Capabilities:
Get common file path

Disassembly:
cmp byte [0x416270], 0
push esi
mov esi, 0x416270
jne 0x404d2a
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x416378], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x416378]
pop ecx
pop ecx
pop esi
ret

Function at 0x404e5b
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40d3de
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40517f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4051d9
cmp byte [ebp - 0x114], 0x2e
jne 0x4051c1
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4051a4
jmp 0x4051d2
mov edi, dword [ebp + 0xc]
push 0x50
pop ecx
lea esi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4051e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x3ff]
push 0
push eax
mov byte [ebp - 0x400], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x416380], 0
mov esi, 0x416380
jne 0x405227
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x416488], eax
lea eax, [ebp - 0x400]
push esi
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x400]
call fcn.00404982
mov edi, str.Dxva2.dll
mov eax, esi
push edi
push eax
call sub.msvcrt.dll_strcat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x405262
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x4055ac
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4055d8
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x4055f3
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x4055fa
call fcn.00405644
cmp dword [esp + 4], 0
je 0x40563d
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x405637
push ebx
push esi
mov eax, edi
call fcn.00404ce6
pop ecx
pop ecx
jmp 0x40563a
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x40576e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x405823
mov esi, 0xff
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [edi + 0x44]
cmp byte [eax], bl
je 0x4057d5
push eax
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x40581f
mov dword [ebp - 4], 1
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [edi + 0x84]
cmp byte [eax], bl
je 0x405823
push eax
lea eax, [ebp - 0x204]
call fcn.004049a4
pop ecx
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x405826
xor eax, eax
jmp 0x405826
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x40582a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
imul ebx, ebx, 0x1e6
push ebp
add ebx, 0x410820
cmp dword [ebx + 0x34], 0
push esi
push edi
je 0x405971
test byte [ebx + 0x38], 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
je 0x405867
push 0x12
call esi
test di, ax
jne 0x405867
xor eax, eax
jmp 0x405974
test byte [ebx + 0x38], 2
je 0x40587f
push 0x5c
call esi
test di, ax
jne 0x40587f
push 0x5b
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 4
je 0x40589d
push 0xa1
call esi
test di, ax
jne 0x40589d
push 0xa0
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 8
mov ebp, 0xa2
je 0x4058bc
push 0xa3
call esi
test di, ax
jne 0x4058bc
push ebp
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 0x10
je 0x4058ce
push 0xa0
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 0x40
je 0x4058e0
push 0xa1
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 0x20
je 0x4058f2
push ebp
call esi
test di, ax
je 0x405860
test byte [ebx + 0x38], 0x80
je 0x405908
push 0xa3
call esi
test di, ax
je 0x405860
test word [ebx + 0x38], 0x100
je 0x40591d
push 1
call esi
test di, ax
je 0x405860
test word [ebx + 0x38], 0x200
je 0x405932
push 2
call esi
test di, ax
je 0x405860
test word [ebx + 0x38], 0x400
je 0x405947
push 4
call esi
test di, ax
je 0x405860
test word [ebx + 0x38], 0x800
je 0x40595c
push 5
call esi
test di, ax
je 0x405860
test word [ebx + 0x38], 0x1000
je 0x405971
push 6
call esi
test di, ax
je 0x405860
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4070cf
Capabilities:
Read .ini file

Disassembly:
push 0x411f08
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x40d3de
push dword [esp + 0x14]
push 0x412010
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x4070f3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040c5a0
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x411f08
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40d3de
push dword [ebp + 8]
push 0x412010
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x40715f
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x407163
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040c5a0
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x411f08
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x40d3de
push dword [ebp + 8]
mov esi, 0x412010
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x4071cb
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x4071cd
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40747e
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404b83
test eax, eax
pop ecx
je 0x407505
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x411f08
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x412010
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x40da70
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x412058
mov dword [0x412054], eax
call fcn.004070cf
push 0x3f
push str.TranslatorName
mov esi, 0x4120a0
call fcn.004070cf
push 0xff
push str.TranslatorURL
mov esi, 0x4120e0
call fcn.004070cf
add esp, 0x18
pop edi
pop esi
ret
Function at 0x408faf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
add eax, 0x8a9
push eax
mov ebx, 0x104
lea edi, [ebp - 0x350]
mov dword [ebp - 0x568], 0x40de14
mov byte [ebp - 0x560], 0
mov byte [ebp - 0x45b], 0
call fcn.00404a37
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
pop ecx
jne 0x40904b
lea eax, [ebp - 0x350]
push eax
call fcn.00404b83
test eax, eax
pop ecx
je 0x409122
push 0x13c
lea eax, [ebp - 0x13c]
push ebx
push eax
mov dword [ebp - 0x140], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.0040517f
test eax, eax
pop ecx
pop ecx
je 0x40904b
cmp dword [ebp - 0x120], ebx
je 0x409122
push ebx
lea eax, [ebp - 0x350]
push eax
lea esi, [ebp - 0x568]
call fcn.0040aeb5
test eax, eax
je 0x40906c
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.00408d16
cmp edi, ebx
je 0x409122
lea eax, [ebp + 0xc]
push eax
call fcn.0040ad5c
test eax, eax
pop ecx
jne 0x409122
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2094], ebx
je 0x40910b
push 0x104
lea eax, [ebp - 0x247]
push ebx
push eax
mov byte [ebp - 0x248], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x123
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x248]
add esp, 0xc
push eax
call fcn.00404b98
mov dword [esp], str._nodlg
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x128]
push str.__s___s
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x128]
push eax
push str._Volumouse_
push dword [ebp + 0xc]
call fcn.0040ae43
add esp, 0x1c
jmp 0x409119
push str._Volumouse_
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ac75
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040c5a0
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40acc9
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00404f61
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40ad0e
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x40d3de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.00404fda
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40ad11
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40ad2f
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ac29
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40ad5c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor eax, eax
push eax
push 0xf003f
push eax
push 0x40d3de
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
leave
ret

Function at 0x40ae43
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.msvcrt.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40b00e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040afdf
xor ebx, ebx
cmp dword [0x4121ec], ebx
je 0x40b039
call fcn.00404c8c
push ebx
push 0x1c
push esi
push ebx
call dword [0x4121ec]
jmp 0x40b0a5
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040ad42
add esp, 0x18
cmp eax, ebx
jne 0x40b08f
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040adaf
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push esi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [esi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret
Function at 0x40c138
Capabilities:
Get graphical window text

Disassembly:
push edi
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push ebx
mov dword [esi + 4], eax
call edi
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x828], eax
call edi
mov dword [esi + 0x82c], eax
mov edi, 0x3ff
push edi
lea eax, [esi + 0x408]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
push edi
lea eax, [esi + 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esi + 0x808]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esi + 0x808]
push eax
lea edi, [esi + 0x818]
push edi
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push edi
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [edi]
mov eax, dword [esi + 0x820]
mov edx, dword [esi + 0x81c]
mov ecx, dword [esi + 0x824]
sub eax, edi
mov dword [esi + 0x830], eax
mov dword [esi + 0x838], eax
xor eax, eax
push eax
push eax
sub ecx, edx
push 0x31
push ebx
mov dword [esi + 0x834], ecx
mov dword [esi + 0x83c], ecx
mov dword [esi + 0x840], edi
mov dword [esi + 0x844], edx
mov dword [esi + 0x848], eax
mov dword [esi + 0x84c], 5
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x850], eax
pop edi
ret

Function at 0x40c210
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x4101f0]
lea eax, [esi + 8]
push dword [esi + 0x848]
push dword [esi + 4]
push dword [esi + 0x834]
push dword [esi + 0x830]
push dword [esi + 0x844]
push dword [esi + 0x840]
push dword [esi + 0x82c]
push eax
lea eax, [esi + 0x408]
push eax
push dword [esi + 0x828]
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push dword [esi + 0x850]
mov dword [esi], eax
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 0x84c]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
ret
Function at 0x40c35a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40d3b0
call fcn.0040c548
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c397
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c397
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c3af
cmp eax, 0x20b
je 0x40c39c
mov dword [ebp - 0x1c], ebx
jmp 0x40c3c3
cmp dword [ecx + 0x84], 0xe
jbe 0x40c397
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40c3bd
cmp dword [ecx + 0x74], 0xe
jbe 0x40c397
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4164dc], 0xffffffff
or dword [0x4164e0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4101ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4101e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4164d8], eax
call fcn.0040c544
cmp dword [section..data], ebx
jne 0x40c41e
push fcn.0040c544
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040c532
push 0x40d388
push 0x40d384
call sub.msvcrt.dll__initterm
mov eax, dword [0x4101e4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4101e0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40d380
push 0x40d358
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40c4b4
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40c488
cmp al, 0x22
jne 0x40c47a
cmp byte [esi], 0x22
jne 0x40c491
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40c49b
cmp al, 0x20
jbe 0x40c48d
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x40c4bf
movzx eax, word [ebp - 0x48]
jmp 0x40c4c2
cmp byte [esi], 0x20
jbe 0x40c491
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40c4b4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40c4df
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40c514
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040c581
ret
Function at 0x403824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40389c
xor eax, eax
push ebp
push 0x403895
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40389c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x460020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x404731
cmp word [0x46221c], 0xd7b2
jne 0x4046f9
cmp dword [0x462224], 0
jbe 0x4046f9
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46002c], 0
jne 0x40474d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret