joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403640
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec78
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x45]
push eax
mov ebx, ecx
push str.FNCCSM1201Mutex
lea ecx, [ebp - 0x44]
call fcn.004136e0
mov esi, eax
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x14]
lea edi, [edi + edi + 2]
cmp edi, dword [esi + 0x24]
jae 0x40369b
cmp dword [esi + 0x20], 0
jne 0x4036ba
mov ecx, dword [esi + 0x20]
push ecx
call fcn.0043097b
shr edi, 6
inc edi
shl edi, 6
push edi
mov dword [esi + 0x24], edi
call fcn.00430986
add esp, 8
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push 3
push edx
push eax
mov ecx, esi
call fcn.00401bb0
mov esi, dword [esi + 0x20]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x44]
mov dword [ebx], eax
call fcn.004026f0
mov ecx, dword [ebx]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret

Function at 0x403c30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ccdb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0054ecbf
push 4
mov dword [ebp - 4], 0
call fcn.0043094c
mov edi, eax
add esp, 4
test edi, edi
je 0x403cb0
call fcn.0054f068
mov dword [edi], eax
call fcn.0054ee27
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0054ed5c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403ca6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0054ed84
jmp 0x403cb2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e577
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x403d6e
mov dword [ebx], 0x58dcc0
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00403720
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00403b80
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x403dba
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00405d50
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00403c30
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x5c1aa8]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x405b41
cmp byte [edi + 0x49], bl
je 0x405b41
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x405b35
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x405a95
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x405aad
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x405ad6
dec eax
je 0x405ada
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x405b30
jmp 0x405b3c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x405aea
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x405b13
cmp ebx, 0x10
jae 0x405af9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00532189
add esp, 0x10
cmp esi, eax
jne 0x405b2d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x405b39
test esi, esi
jne 0x405aa1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405970
jmp 0x405a9b
lea ecx, [ebp - 0x2c]
call fcn.00405610
xor al, al
jmp 0x405b43
lea ecx, [ebp - 0x2c]
call fcn.00405610
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret
Function at 0x4067e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec4f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x58dcc8
mov dword [esi + 0x38], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 7
mov dword [esi + 0x20], edi
xor eax, eax
mov word [esi + 0x10], ax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 4]
mov edx, dword [eax + esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], edi
mov dword [esi + 0x40], 0x58dcc8
mov dword [esi + 0x6c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x70], eax
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], edi
xor eax, eax
mov word [esi + 0x44], ax
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx + 4]
mov edx, dword [eax + esi + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
push 1
lea eax, [ebp + 0xb]
push eax
push str.H:mm:ss
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 2
call fcn.004136e0
push 1
lea ecx, [ebp + 0xb]
push ecx
push str.MM_dd_yy
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 3
call fcn.004136e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406d60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fa36
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Clearing_custom_database_parameter
push 0x200
call fcn.004060b0
add esp, 8
push 1
lea eax, [ebp - 0xad]
push eax
push str.SOFTWAREFLEXnetConnect_
lea ecx, [ebp - 0x44]
call fcn.004136e0
push 1
lea ecx, [ebp - 0xad]
push ecx
xor ebx, ebx
push 0x58e008
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004136e0
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00408b50
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.004026f0
push 1
lea ecx, [ebp - 0xad]
push ecx
push str.Database
lea ecx, [ebp - 0x78]
call fcn.004136e0
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
lea esi, [esi + esi + 2]
cmp esi, dword [ebp - 0x20]
jae 0x406e35
cmp eax, ebx
jne 0x406e54
push eax
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
add esp, 4
push esi
mov dword [ebp - 0x20], esi
call fcn.00430986
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x20]
push 3
push edx
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bb0
mov eax, dword [ebp - 0x24]
push 0xf003f
push eax
push SysReAllocString
lea ecx, [ebp - 0xbc]
call fcn.004019f0
mov edi, dword [ebp - 0xbc]
test eax, eax
jne 0x406ed2
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x58]
lea esi, [esi + esi + 2]
cmp esi, dword [ebp - 0x54]
jae 0x406e99
cmp eax, ebx
jne 0x406eb8
push eax
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
add esp, 4
push esi
mov dword [ebp - 0x54], esi
call fcn.00430986
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
push 3
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.00401bb0
mov edx, dword [ebp - 0x58]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp edi, ebx
je 0x406edd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x78]
call fcn.004026f0
lea ecx, [ebp - 0x44]
call fcn.004026f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret
Function at 0x408620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560358
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push str.Beginning_background_thread_update
push 0x200
mov dword [ebp - 4], esi
call fcn.004060b0
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [ebp - 0x28]
push ecx
push 0x407d40
push esi
push esi
call fcn.00533661
add esp, 0x20
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x40875b
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ecx]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x44]
push edx
call esi
test eax, eax
je 0x4086d0
lea eax, [ebp - 0x44]
push eax
call edi
lea ecx, [ebp - 0x44]
push ecx
call ebx
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x44]
push edx
call esi
test eax, eax
jne 0x4086b2
push 0
push 0x4bf
push 0x7530
lea eax, [ebp - 0x14]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
je 0x4086ff
cmp eax, 0x102
je 0x4086ff
cmp eax, 0x80
je 0x4086ff
cmp eax, 0xffffffff
jne 0x4086a0
push eax
push str.Thread_wait_result:__d
push 0x200
call fcn.004060b0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
call fcn.004091d0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408747
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push edx
push ecx
call fcn.0040a9b0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043097b
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x40877b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
push ecx
push edx
call fcn.0040a9b0
mov eax, dword [ebp - 0x28]
push eax
call fcn.0043097b
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ca40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x40ca53
lea eax, [esi + 0xd]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40ca60
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40d250
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.004019f0
mov ebx, eax
cmp ebx, esi
je 0x40d2ca
mov eax, dword [ebp - 0x118]
cmp eax, esi
je 0x40d2b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x118]
push esi
push esi
push esi
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x10c]
push edx
push esi
push eax
mov dword [ebp - 0x11c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40d34c
mov edi, edi
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040d250
mov ebx, eax
cmp ebx, esi
jne 0x40d2a4
lea edx, [ebp - 0x128]
push edx
mov edx, dword [ebp - 0x118]
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push esi
push edx
mov dword [ebp - 0x11c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40d300
mov eax, dword [ebp - 0x118]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40d365
push eax
call ebx
mov dword [ebp - 0x118], esi
mov eax, dword [ebp - 0x120]
push eax
mov ecx, edi
mov dword [ebp - 0x114], esi
call fcn.0040d450
mov edi, eax
mov eax, dword [ebp - 0x118]
cmp eax, esi
je 0x40d388
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005319a6
mov esp, ebp
pop ebp
ret 4
Function at 0x40feb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d86b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.is::file.0
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0x58dcc8
mov dword [esi + 0x38], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 7
mov dword [esi + 0x20], ebx
xor eax, eax
mov word [esi + 0x10], ax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 4]
mov edx, dword [eax + esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 4
mov dword [ebp - 4], ebx
call fcn.0043094c
add esp, 4
cmp eax, ebx
je 0x40ff47
mov dword [eax], 1
jmp 0x40ff49
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410340
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x5b7f60]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
je 0x41039a
test eax, eax
je 0x41036b
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4103d5
push 1
add esi, 0xc
push esi
lea ecx, [esp + 0x10]
call fcn.0040fd20
push 0x5ab154
lea eax, [esp + 0xc]
push eax
call fcn.00533fcd
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4103d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4103d5
push 1
push eax
add esi, 0xc
push esi
lea ecx, [esp + 0x14]
call fcn.0040faf0
push 0x5ab0d8
lea edx, [esp + 0xc]
push edx
call fcn.00533fcd
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 4
Function at 0x412d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x5b7f60]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x412d49
mov eax, 1
cmp dword [esi + 4], 0
je 0x412d87
mov ecx, dword [esi + 4]
mov edi, dword [ecx]
lea ebx, [esp + 0x13]
push ebx
lea ebx, [esp + 0x18]
push ebx
push eax
mov eax, dword [edi + 0x20]
push edx
call eax
test al, al
jne 0x412dbc
push 1
add esi, 0xc
push esi
lea ecx, [esp + 0x20]
call fcn.0040fd20
push 0x5ab154
lea ecx, [esp + 0x1c]
push ecx
call fcn.00533fcd
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412dbc
push 1
add esi, 0xc
push esi
lea ecx, [esp + 0x20]
call fcn.0040f9e0
push 0x5ab0d8
lea eax, [esp + 0x1c]
push eax
call fcn.00533fcd
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 8
Function at 0x4201e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d918
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], edi
lea ebx, [ecx + 0x64]
mov dword [esi], 0x58dcc8
mov dword [esi + 0x2c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30], eax
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x420233
lea eax, [ebx + 4]
jmp 0x420235
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 4]
push edi
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push eax
mov word [ecx], dx
call fcn.004021c0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5606f5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5b7f60]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5b7f60]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
push str.Loading_registered_products
push 0x200
mov dword [esp + 0x18], esi
call fcn.004060b0
xor ebx, ebx
add esp, 8
mov byte [esi + 0x75], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x6c], 1
call fcn.00408790
add esp, 4
mov byte [esp + 0x68], bl
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
sub eax, edi
sar eax, 3
cmp eax, ebx
jne 0x4211bd
push str.No_products_in_the_list_to_evaluate
push 0x200
call fcn.004060b0
add esp, 8
jmp 0x4211d0
push eax
push str.Evaluating__d_potential_registered_products
push 0x200
call fcn.004060b0
add esp, 0xc
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
cmp eax, ecx
je 0x421200
mov edx, dword [esp + 0x10]
push edx
push ecx
call fcn.004223a0
mov ebx, dword [esi + 0x7c]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
mov eax, edi
call fcn.0040ac20
mov dword [esi + 0x7c], edi
mov edi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea eax, [esi + 0x78]
call fcn.004213d0
mov ebx, edi
cmp edi, dword [esp + 0x18]
je 0x4212c8
mov edi, 8
mov edi, edi
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push edx
call fcn.00406910
add eax, 4
mov byte [esp + 0x68], 2
cmp dword [eax + 0x14], edi
jb 0x42123b
mov eax, dword [eax]
push eax
push str.Adding_product__s_to_the_registered_products_list
push 0x200
call fcn.004060b0
mov byte [esp + 0x74], 0
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 4]
add esp, 0xc
lea esi, [esp + esi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0043097b
mov edx, dword [esp + 0x50]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call esi
cmp dword [esp + 0x3c], edi
jb 0x42128d
mov eax, dword [esp + 0x28]
push eax
call esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], cx
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x24]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
add ebx, edi
cmp ebx, dword [esp + 0x18]
jne 0x421220
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x75], 1
mov dword [esp + 0x68], 0xffffffff
test edi, edi
je 0x4212f8
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
push edx
mov eax, edi
call fcn.0040ac20
add esp, 4
push edi
call fcn.0043097b
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005319a6
mov esp, ebp
pop ebp
ret