joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402870
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41b154]
sub esp, 0x10
test eax, eax
push esi
je 0x4029a2
mov esi, dword [esp + 0x18]
mov edx, dword [0x41be44]
mov eax, dword [esi + 0x14]
cmp edx, eax
mov eax, dword [0x41be48]
jae 0x4028d8
test eax, eax
je 0x4028b6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x41be48], 0
mov dword [0x41be44], 0
mov eax, dword [esi + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x41be48], eax
je 0x402993
mov edx, dword [esi + 0x14]
mov dword [0x41be44], edx
test eax, eax
je 0x402993
push edi
mov ecx, 0xa
mov edi, 0x41ba30
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov ecx, edx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x41ba38]
mov ecx, dword [0x41ba34]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x41b154]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
sbb eax, eax
lea ecx, [esp + 8]
neg eax
push eax
push 0xcf0000
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub edx, edi
push 0x216
mov ecx, dword [0x41b154]
push edx
mov edx, dword [esp + 0x10]
sub eax, edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x41b154]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41b154]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [0x41b154]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x10
ret

Function at 0x402ae0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
test esi, esi
je 0x402b21
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push edi
push ebx
call ebp
test eax, eax
je 0x402b25
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402b25
cmp ecx, esi
ja 0x402b25
add edi, ecx
sub esi, ecx
jne 0x402afa
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402bf0
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push esi
xor esi, esi
lea edx, [esp + 8]
push edi
mov dword [0x41af90], esi
mov dword [0x41b14c], esi
mov dword [0x41ae68], esi
mov dword [0x41abc8], esi
mov ecx, dword [eax]
push edx
push 0x419460
push eax
xor edi, edi
mov dword [esp + 0x18], esi
call dword [ecx]
test eax, eax
jl 0x402d68
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [0x41af9c], eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push 1
push esi
mov dword [esp + 0x1c], esi
call ebx
cmp eax, esi
mov dword [0x41af90], eax
je 0x402d68
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x41b14c], eax
je 0x402d68
mov dword [0x41b144], eax
mov ecx, 6
xor eax, eax
mov edi, 0x41aef0
rep stosd dword es:[edi], eax
mov eax, dword [0x414460]
mov ecx, dword [0x414464]
mov dword [0x41aef0], eax
mov eax, dword [0x414468]
mov edx, dword [0x41af90]
mov dword [0x41aef8], eax
mov dword [0x41aef4], ecx
mov ecx, dword [0x41446c]
xor eax, eax
mov dword [0x41aefc], ecx
mov dword [0x41bd68], eax
xor ecx, ecx
mov dword [0x41bd6c], eax
mov dword [esp + 0x10], ecx
mov dword [0x41bd70], eax
mov dword [0x41b148], edx
mov dword [0x41bd6c], edx
mov dword [0x41bd74], eax
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push edx
push eax
mov dword [esp + 0x24], ecx
push 0x10
push 0x41bd68
mov dword [esp + 0x30], ecx
mov ecx, dword [0x41af9c]
push 0x18
push 0x41aef0
push 0x2f0007
push ecx
mov dword [0x41af00], esi
mov dword [0x41af04], 1
mov dword [0x41bd68], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x402d68
push 0x41abc8
push esi
push esi
push 0x402df0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x41ae68], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret
call fcn.00402d80
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x407780
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x130
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x4077d7
cmp byte [esp + 0x2d], dl
jne 0x4077d7
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x4077cf
cmp cl, dl
je 0x4077cf
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x4077c0
cmp byte [eax], 0
je 0x4077df
inc eax
jmp 0x4077db
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x4077f4
cmp cl, dl
je 0x4077f4
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x4077e5
cmp byte [eax], 0
je 0x407801
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40786e
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40786e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x407853
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0xa
call fcn.00412ee0
pop edi
pop esi
add esp, 0x130
ret
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40789d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x407b80
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407bab
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.00412ea0
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x407be5
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407bf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x407c31
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x407c63
cmp dword [esp + 0x18], 2
jne 0x407c63
cmp dword [esp + 0xc], 5
jne 0x407c63
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407c55
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne 0x407c63
pop edi
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x407fe0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
push 0
push 0
push pe_nt_image_headers32
push 0x3f3
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov esi, 0x3eb
dec edi
lea ebx, [esp + 0x10]
neg edi
sbb edi, edi
and edi, 0xfffffffa
add edi, 0x10
push 0
push 0
push 0xe
push esi
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
push 0xd
push esi
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x20]
push edx
push eax
call sub.msvcrt.dll_strtol
add esp, 0xc
inc esi
mov dword [ebx], eax
add ebx, 4
lea ecx, [esi - 0x3eb]
cmp ecx, 2
jl 0x408023
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00407e00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret

Function at 0x4080a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
push 0
push 0
push pe_nt_image_headers32
push 0x3f3
push edi
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
mov esi, eax
push 0
dec esi
push 0
neg esi
sbb esi, esi
push 0xe
and esi, 0xfffffffa
push 0x3eb
push edi
add esi, 0x10
call ebx
push eax
call ebp
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
push 0xd
push 0x3eb
push edi
call ebx
push eax
call ebp
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edx
push eax
call sub.msvcrt.dll_strtoul
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00407c70
add esp, 0x14
cmp esi, 0x10
jne 0x40812d
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push esi
push edx
push eax
jmp 0x408138
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push esi
push ecx
push edx
call sub.msvcrt.dll__ltoa
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
push 0xc
push 0x3ec
push edi
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4089f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x90
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
push 0
push 0
push pe_nt_image_headers32
push 0x3f3
push edi
mov dword [esp + 0x28], 0x3f4
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
mov dword [esp + 0x18], eax
mov esi, 0x3eb
mov dword [esp + 0x10], 0x41bd7c
push 0
push 0
push 0xe
push esi
push edi
call ebx
push eax
call ebp
lea ecx, [esp + 0x20]
inc eax
push ecx
push eax
push 0xd
push esi
push edi
call ebx
push eax
call ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
dec eax
neg eax
sbb eax, eax
and al, 0xfa
add eax, 0x10
push eax
lea eax, [esp + 0x24]
push edx
push eax
call sub.msvcrt.dll_strtol
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc esi
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x10], ecx
lea ecx, [esi - 0x3eb]
cmp ecx, 2
jl 0x408a3a
mov esi, 1
mov dword [esp + 0x10], 0x10
mov eax, dword [0x41bd80]
push 0
test esi, eax
jle 0x408ab7
mov edx, dword [esp + 0x18]
push 1
push 0xf1
push edx
jmp 0x408ac3
mov eax, dword [esp + 0x18]
push 0
push 0xf1
push eax
push edi
call ebx
push eax
call ebp
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edx
shl esi, 1
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x408a9e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x408af0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
xor eax, eax
push edi
push eax
push eax
push pe_nt_image_headers32
push 0x3f3
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov esi, 0x3eb
dec edi
mov ebp, 0x41bd7c
neg edi
sbb edi, edi
and edi, 0xfffffffa
add edi, 0x10
push 0
push 0
push 0xe
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
push 0xd
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x20]
push edx
push eax
call sub.msvcrt.dll_strtol
add esp, 0xc
inc esi
mov dword [ebp], eax
add ebp, 4
lea ecx, [esi - 0x3eb]
cmp ecx, 2
jl 0x408b3c
mov edi, dword [sym.imp.USER32.dll_SetDlgItemInt]
xor esi, esi
inc esi
push 0
push esi
push 0x407
push ebx
call edi
mov edx, dword [0x41bd7c]
mov eax, dword [0x41bd80]
push edx
push eax
call fcn.00407e00
mov ecx, dword [0x41bd7c]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00407c70
mov eax, dword [0x41bd80]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
je 0x408bd9
inc dword [esp + 0x10]
cmp esi, 0x64
jl 0x408b96
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x408c04
push 1
push str.PASS
push str._ALL_PASS_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x10c
ret
push eax
lea ecx, [esp + 0x90]
push str._d_out_of_100_fail_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x8c]
push 1
push str.Result
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x10c
ret

Function at 0x408c90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push str.SOFTWARESM370Default
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
lea eax, [esp + 8]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408cf1
push 1
push str.Waring
push str.Could_not_create_the_registry_key.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x10c
ret
push esi
mov esi, dword [esp + 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push str.DataPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x408d39
push 1
push str.Waring
push str.Could_not_set_data.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x10c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10c
ret
Function at 0x40bab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2f8
push ebp
push esi
mov esi, dword [esp + 0x304]
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x54]
lea eax, [esp + 0xa0]
xor edi, edi
push ecx
mov dword [esp + 0x58], 0x4c
mov dword [esp + 0x5c], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x104
mov dword [esp + 0x64], 0x419b1c
mov dword [esp + 0x70], 1
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], 0x1800
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
je 0x40bc78
lea edx, [esp + 0xa0]
push 0x419b18
push edx
call sub.msvcrt.dll_fopen
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x40bb89
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
push eax
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x1ac]
push 0x419af8
push ecx
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea edx, [esp + 0x1a4]
push 0x10
push edi
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
add esp, 0x2f8
ret
push ebx
mov esi, 0x419990
push ebp
lea eax, [esp + 0x1ac]
push 0x15e
push eax
call sub.msvcrt.dll_fgets
add esp, 0xc
lea eax, [esp + 0x1a8]
lea edi, [esp + 0x14]
mov ebx, 0x11
lea ecx, [esp + 0x10]
push 0x10
push ecx
push eax
call sub.msvcrt.dll_strtol
add esp, 0xc
cmp eax, 0x8000
mov dword [edi], eax
jle 0x40bbd5
add eax, 0xffff0000
mov dword [edi], eax
mov edx, dword [esp + 0x10]
add edi, 4
dec ebx
lea eax, [edx + 1]
jne 0x40bbb5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x10], 0
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
add esi, 0x48
cmp esi, 0x419af8
jl 0x40bb8f
push ebp
call sub.msvcrt.dll_fclose
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2f8
ret
Function at 0x40bc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2f4
push ebp
push esi
mov esi, dword [esp + 0x300]
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
lea eax, [esp + 0x9c]
xor edi, edi
push ecx
mov dword [esp + 0x54], 0x4c
mov dword [esp + 0x58], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x104
mov dword [esp + 0x60], 0x419b1c
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], 0x1800
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x40be66
lea edx, [esp + 0x9c]
push 0x419b38
push edx
call sub.msvcrt.dll_fopen
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x40bd66
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
push eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1a8]
push 0x419af8
push ecx
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea edx, [esp + 0x1a0]
push 0x10
push edi
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
add esp, 0x2f4
ret
push ebx
mov esi, 0x419998
mov eax, dword [esi - 8]
mov ecx, dword [esi - 4]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x18], edx
jne 0x40bdc1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jmp 0x40bdf2
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea edi, [esp + 0x10]
mov ebx, 0x11
xor eax, eax
mov ax, word [edi]
push eax
push str.0x_04x_
push ebp
call sub.msvcrt.dll_fprintf
add esp, 0xc
add edi, 4
dec ebx
jne 0x40be25
push 0x419850
push ebp
call sub.msvcrt.dll_fprintf
add esi, 0x48
add esp, 8
cmp esi, 0x419b00
jl 0x40bd6c
push ebp
call sub.msvcrt.dll_fclose
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2f4
ret
Function at 0x40eab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x238
mov eax, dword [str.ColorChecker24Rect]
push ebx
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARESMISM370v2
lea edi, [esp + 0x2c]
mov edx, dword [0x419ff8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x419ff4]
mov dword [esp + 0x18], eax
mov eax, dword [0x419ffc]
mov dword [esp + 0x1c], ecx
mov cx, word [0x41a000]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
mov word [esp + 0x28], cx
push eax
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dl, byte [0x41a002]
push 0
push ecx
push SysStringLen
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x3e], dl
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40eb35
mov esi, 0xfffffffe
jmp 0x40ebdb
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40eb69
mov esi, 0xfffffffd
jmp 0x40ebdb
cmp dword [esp + 0x14], 3
je 0x40eb77
mov esi, 0xfffffffc
jmp 0x40ebdb
mov eax, dword [esp + 0x10]
cmp eax, 4
jge 0x40eb87
mov esi, 0xffffff98
jmp 0x40ebdb
mov ecx, dword [esp + 0x44]
mov dword [0x419b60], ecx
lea ecx, [eax - 4]
cmp ecx, 4
jge 0x40eba0
mov esi, 0xffffff98
jmp 0x40ebdb
mov edx, dword [esp + 0x48]
sub ecx, 4
mov dword [0x419b64], edx
lea edx, [esp + 0x4c]
mov eax, str.____22
cmp ecx, 8
jl 0x40eb80
mov esi, edx
mov edi, eax
add eax, 8
add edx, 8
mov ebx, dword [esi]
sub ecx, 8
mov dword [edi], ebx
cmp eax, 0x419b60
mov esi, dword [esi + 4]
mov dword [edi + 4], esi
jl 0x40ebb6
xor esi, esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ebea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
setge al
add esp, 0x238
ret
Function at 0x40ec00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x230
mov eax, dword [str.ColorChecker24Rect]
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARESMISM370v2
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x419ff4]
mov dword [esp + 0xc], eax
mov eax, dword [0x419ffc]
mov edx, dword [0x419ff8]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push 0
mov dword [esp + 0x14], ecx
mov cx, word [0x41a000]
push eax
push 0
push 0xf003f
mov word [esp + 0x2c], cx
push 0
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], edx
mov dl, byte [0x41a002]
push 0
push ecx
push SysStringLen
mov byte [esp + 0x42], dl
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40ec8c
mov esi, 0xfffffffe
jmp 0x40ece7
mov eax, dword [0x419b64]
mov edx, dword [0x419b60]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x40]
mov eax, str.____22
mov edx, eax
mov esi, ecx
add eax, 8
add ecx, 8
mov edi, dword [edx]
cmp eax, 0x419b60
mov dword [esi], edi
mov edx, dword [edx + 4]
mov dword [esi + 4], edx
jl 0x40eca8
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
push 0x28
push eax
push 3
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffd
mov eax, dword [esp + 8]
test eax, eax
je 0x40ecf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
setge al
pop esi
add esp, 0x230
ret