joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1029274b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x102b6174]
add ecx, 0xffffea42
mov dword [0x102b6178], ecx
mov dword [ebp - 0x10], eax
call fcn.10292adb
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x102b6174], 0x1516
mov esi, dword [eax + esi + 0x78]
mov dword [0x102b6174], 0x11d0
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x102b6178], 0x6c2
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x102928c2
mov eax, 0xffffefb4
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
jmp 0x102927e7
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10292896
jmp 0x1029285a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x31], cl
je 0x102927da
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x31]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10292807
jmp 0x102927da
mov eax, 0xffffeebe
xor ecx, ecx
mov dword [0x102b6174], 0x10da
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x38]
add esi, 1
mov edi, dword [ebp - 0x18]
cmp esi, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], ecx
jb 0x102927e7
jmp 0x102928c2
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x40]
mov dword [0x102b6178], edx
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
add esi, dword [esi + edi + 0x1c]
mov ebx, dword [ebp - 0x1c]
add ebx, dword [esi + ecx*4]
mov dword [0x102b6174], 0x1a69
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10292c59
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x4207
mov dword [0x102b617c], 0
mov dword [0x102b6180], 0
mov dword [0x102b618c], 0
mov dword [0x102b6178], 0x222c
mov dword [0x102b6174], 0x4207
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10292e1a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 1
add edx, 0xfffff351
mov ebx, esi
add ebx, 1
mov dword [0x102b6174], edx
mov dword [ebp - 0x30], eax
mov eax, ecx
cdq
idiv edi
mov dword [0x102b617c], edx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x102b6180], edx
mov dword [0x102b6174], 0x1bda
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
mov cl, byte [ecx + edi]
mov byte [0x102b6184], cl
mov dword [0x102b6174], 0x297
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov dword [0x102b6174], 0x2f0
mov cl, byte [0x102b6184]
mov edx, dword [0x102b6180]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov edx, dword [0x102b617c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x102b6180]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x102b6178], 0xffffe4ab
and ecx, 0xff
mov dword [0x102b618c], ecx
mov dword [0x102b6174], 0x1696
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov ch, byte [edx + esi]
mov byte [0x102b6191], ch
mov byte [0x102b6192], cl
xor ch, cl
mov byte [0x102b6190], ch
mov dword [0x102b6178], 0xffffef26
mov dword [0x102b6174], 0x15f1
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x38], ebx
je 0x10292e1a
mov eax, dword [0x102b6174]
mov ecx, dword [0x102b617c]
mov edx, dword [0x102b6180]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], esi
jmp 0x10292cce
mov dword [0x102b6178], 0x23ec
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10292e2c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.1000106e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x10292f8a
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call fcn.10291b05
lea ecx, [0x102928cd]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], edx
mov dword [0x102b6178], 0x1082
mov dword [esp + 0x70], 0x140e00
mov edx, dword [0x102b6160]
mov dword [esp + 0x7c], edx
mov edx, dword [0x102b6164]
mov dword [esp + 0x50], edx
mov edx, dword [0x102b6168]
mov dword [esp + 0x44], edx
mov edx, dword [0x102b616c]
mov dword [esp + 0x74], edx
mov edx, dword [0x102b6170]
mov dword [esp + 0x9c], edx
mov dword [0x102b6174], 0xffffe113
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
jne 0x10292ef5
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + ecx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
cmp eax, 0x4550
je 0x10292f11
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jmp 0x10292ec9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [0x102b6174], 0x1516
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x98], edx
mov dword [0x102b6178], 0x3a6
call fcn.10292296
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10292f82
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1029213c
mov dword [0x102b6178], 0x2491
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov esp, ebp
pop ebp
ret
Function at 0x401068
Capabilities:
Check if file exists
Delete file
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40121f
push ebx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
je 0x40121e
push esi
push str._sdesktop.ini
push 0x103
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401006
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401217
test al, 0x10
jne 0x401217
push 0x4213f4
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa14], ebx
push eax
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa10], ebx
push eax
call fcn.00406796
add esp, 0xc
test eax, eax
jne 0x40120a
mov ecx, dword [ebp - 0xa10]
call fcn.00402fe6
mov ebx, eax
test ebx, ebx
jle 0x40118c
lea eax, [ebx + 1]
push eax
call fcn.0040aed7
mov edi, eax
pop ecx
test edi, edi
je 0x40118c
push dword [ebp - 0xa10]
mov byte [edi + ebx], 0
push 1
push ebx
push ebx
push edi
call fcn.00406e58
add esp, 0x14
cmp eax, 1
jne 0x401185
push 0x7b
push edi
call fcn.00404050
pop ecx
pop ecx
test eax, eax
jne 0x40117b
lea eax, [ebx + 1]
push eax
push edi
call fcn.00406c31
pop ecx
pop ecx
xor ebx, ebx
push dword [ebx + 0x421724]
push edi
call fcn.00403de0
pop ecx
pop ecx
test eax, eax
jne 0x40117b
add ebx, 4
cmp ebx, 0x1c
jb 0x40115f
jmp 0x401185
mov dword [ebp - 0xa14], 1
push edi
call fcn.0040adc1
pop ecx
push dword [ebp - 0xa10]
call fcn.004069e9
cmp dword [ebp - 0xa14], 0
pop ecx
je 0x40120a
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
mov edi, str..ShellClassInfo
push ebx
push str.IconFile
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push str.IconIndex
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push str.IconResource
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x40121e
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push edi
call esi
jmp 0x40121e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnmakeSystemFolderW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040326e
leave
ret
Function at 0x4024e1
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00403199
call fcn.00401552
push 0x4219b8
mov edi, 0x425460
push edi
call fcn.0040417b
pop ecx
xor esi, esi
pop ecx
test eax, eax
je 0x4025af
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004047b0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x402536
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
push eax
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040b3d8
add esp, 0x10
test eax, eax
jne 0x4025af
lea eax, [ebp - 0x210]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x228], eax
mov eax, 0x654
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21e], esi
mov dword [ebp - 0x21a], esi
mov dword [ebp - 0x216], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4025bf
test al, 0x10
jne 0x4025c2
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040326e
leave
ret
Function at 0x4025d2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov ebx, 0x100
push ebx
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
jne 0x40262f
push str.Folcolor.exe
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.0040ba30
add esp, 0xc
push esi
push 2
mov dword [esp + 0x20], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4026fd
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x4026a5
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402684
test dl, dl
je 0x402680
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402684
add eax, 2
add ecx, 2
test dl, dl
jne 0x402664
mov eax, esi
jmp 0x402689
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402699
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x4026ab
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402659
jmp 0x4026f6
push esi
push esi
push esi
jmp 0x4026c9
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
je 0x4026d8
push esi
push esi
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, eax
test edi, edi
jne 0x4026b0
jmp 0x4026f3
test edi, edi
je 0x4026f3
push 1
push edi
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040326e
mov esp, ebp
pop ebp
ret

Function at 0x402714
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004047b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.http:__www.folcolor.com_
mov dword [ebp - 0x38], 0x100000
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x402d2e
Capabilities:
Check if file exists
Check os version
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
call fcn.004025d2
test eax, eax
je 0x402d5a
xor eax, eax
inc eax
jmp 0x402ece
push edi
xor edi, edi
push edi
push 0x26
push 0x425460
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
js 0x402ede
push str.Folcolor_
push 0x104
push 0x425460
call fcn.0040aee2
add esp, 0xc
test eax, eax
je 0x402da3
push str.Path_size_limit_error_
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllermain.cpp
mov ecx, 0x19a
jmp 0x402f24
lea eax, [ebp - 0xc9c]
mov dword [ebp - 0xc9c], edi
push eax
push 0x20019
push edi
push str.Directory_shellFolcolor
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
inc edi
test eax, eax
jne 0x402ddd
push dword [ebp - 0xc9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402ddf
xor eax, eax
push 0x425460
mov dword [0x425680], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402df8
test al, 0x10
jne 0x402dfa
xor edi, edi
or dword [0x425680], edi
lea eax, [ebp - 0xc8c]
xor edi, edi
mov dword [ebp - 0xc98], 0x94
push 0x88
push edi
push eax
mov dword [ebp - 0xc94], edi
mov dword [ebp - 0xc90], edi
call fcn.004047b0
add esp, 0xc
lea eax, [ebp - 0xc98]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [ebp - 0xc94], 0xa
jb 0x402e5a
cmp dword [ebp - 0xc8c], 0x55f0
sbb eax, eax
and eax, 0xffffffe4
add eax, 0x1e
mov dword [0x4248c0], eax
cmp dword [0x425680], edi
je 0x402eba
test esi, esi
je 0x402eba
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402e6b
sub ecx, edx
sar ecx, 1
je 0x402eba
push str.__index
push esi
call fcn.0040417b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x402eb6
push str.__folder
push esi
call fcn.0040417b
pop ecx
pop ecx
test eax, eax
je 0x402eb6
lea esi, [eax + 0x12]
lea eax, [edi + 0x10]
push eax
call fcn.0040b9f1
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040122d
xor eax, eax
jmp 0x402ecd
push edi
push 0x4029e2
push edi
push 0x1f4
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret 0x10
movzx esi, ax
lea edx, [ebp - 0x404]
mov ecx, esi
call fcn.00402f2a
push eax
push esi
push 0x421b4c
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0xc04]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0xc04]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllermain.cpp
mov ecx, 0x198
push eax
call fcn.00402f79
int3
Function at 0x403034
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, 0x80000000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x403133
lea eax, [ebp - 0xd0c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push edi
push esi
mov dword [ebp - 0xd0c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403092
cmp eax, 2
je 0x403133
xor eax, eax
jmp 0x403136
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403097
sub ecx, edx
lea esi, [ecx + edi]
cmp byte [esi - 1], 0x5c
je 0x4030de
mov byte [esi], 0x5c
inc esi
mov byte [esi], bl
jmp 0x4030de
lea eax, [ebp - 0x108]
mov byte [esi], bl
push eax
push 0x800
push edi
call fcn.0040c815
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x403145
mov edx, edi
mov ecx, 0x80000000
call fcn.00403034
test eax, eax
je 0x403111
lea eax, [ebp - 0xd18]
mov dword [ebp - 0xd10], 0x104
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd10]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0xd0c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4030b1
mov byte [esi - 1], bl
push dword [ebp - 0xd0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x403136
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret
push ebx
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0040ae34
lea eax, [ebp - 0x508]
push eax
push ebx
push str.strcat_s
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0xd08]
push 0x800
push eax
call fcn.00401037
add esp, 0x28
lea eax, [ebp - 0xd08]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerUtility.cpp
mov ecx, 0xcb
push eax
call fcn.00402f79
int3

Function at 0x403a9e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403add
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403add
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403add
cmp dword [ecx + 0x74], 0xe
jbe 0x403add
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40c1f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a6e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040e2aa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40c23b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40c397
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a630
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x424fa8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041152e
mov ecx, dword [esi*4 + 0x424fa8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40c390
cmp eax, dword [ecx + edi + 0x24]
jne 0x40c390
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c390
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041152e
add esp, 0x14
test edx, edx
jl 0x40c390
jg 0x40c306
test eax, eax
jb 0x40c390
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40c390
jl 0x40c320
cmp dword [ebp - 0x1008], eax
ja 0x40c390
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40c33e
test ebx, ebx
je 0x40c377
cmp ecx, edi
jae 0x40c377
mov al, byte [ecx]
cmp al, 0xd
jne 0x40c358
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40c364
cmp byte [ecx + 1], 0xa
jne 0x40c364
inc ecx
jmp 0x40c364
movzx eax, al
movsx eax, byte [eax + 0x4241d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40c33e
cmp edx, ebx
jne 0x40c33e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40c395
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret
Function at 0x40f402
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x424fa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f442
cmp byte [ebx], 0xa
jne 0x40f442
or byte [edi + eax + 0x28], 4
jmp 0x40f447
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40f546
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f529
inc eax
cmp dl, 0xd
je 0x40f473
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f499
cmp eax, ecx
jae 0x40f4a7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40f45b
jmp 0x40f546
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f524
cmp dword [ebp - 0x10], 0
je 0x40f524
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x424fa8]
test byte [eax + edi + 0x28], 0x48
je 0x40f4fe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f4e9
mov byte [esi], dl
jmp 0x40f4fa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x424fa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f546
cmp byte [ebp - 1], 0xa
jne 0x40f50d
cmp esi, ebx
jne 0x40f50d
mov byte [esi], 0xa
jmp 0x40f545
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041154c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f546
mov byte [esi], 0xd
jmp 0x40f545
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x424fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f543
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f546
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret