joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR80.dll__mbstok_s_l
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter
Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__mbstok_s_l
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__mbstok_s_l
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__mbstok_s_l
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret
Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__mbstok_s_l
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret

Function at 0x78169bd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x78169be8
pop dword [ebp - 0x14]
mov eax, 0xff3fd0d8
sub eax, 0x872934f0
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x40b28
push 0
mov eax, 0xd7284c02
sub eax, 0x5f0f0b42
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x41a4
xor esi, esi
add esi, eax
mov edi, 0x95304ea9
sub edi, 0x1d139ea9
add edi, dword [ebp - 0x14]
mov edx, 0x13b7c0ef
add edx, 0x5c119965
mov ebx, dword [edi]
xor ebx, edx
add dword [ebp - 8], 0x1f86b455
mov dword [esi], ebx
add esi, 0xaef3c5c1
add esi, 0x510c3a43
add edi, 4
loop 0x78169c43
add eax, 0xe3111d54
add eax, 0x1cefdc0f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x54d54a12
add ecx, 0x233db5ee
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x405c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x464608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4845f4]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov ecx, dword [0x4845f4]
mov dword [esp + 0x10], 0
mov dword [esi + 8], ecx
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 1
call fcn.0042b660
mov edx, dword [0x4845f4]
mov dword [esi + 0x30], edx
mov eax, dword [0x4845f4]
mov dword [esi + 0x34], eax
mov ecx, dword [0x4845f4]
mov dword [esi + 0x38], ecx
mov edx, dword [0x4845f4]
mov dword [esi + 0x3c], edx
mov eax, dword [0x4845f4]
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 7
call fcn.0041bce0
mov ecx, dword [0x4845f4]
mov dword [esi + 0x1bc], ecx
mov edx, dword [0x4845f4]
mov dword [esi + 0x1c0], edx
mov eax, dword [0x4845f4]
mov dword [esi + 0x1c4], eax
mov ecx, dword [0x4845f4]
mov dword [esi + 0x1c8], ecx
mov edx, dword [0x4845f4]
mov dword [esi + 0x1d0], edx
mov eax, dword [0x4845f4]
mov dword [esi + 0x1dc], eax
mov ecx, dword [0x4845f4]
mov dword [esi + 0x1e0], ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0x46cbbc
mov dword [esi + 0xc], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405fb0
Capabilities:
Check mutex on windows

Disassembly:
push str.Music_DVD_Creator
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x4071d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x110]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
je 0x407225
push 0
lea eax, [esp + 0x10]
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
lea esi, [edi + 0x30]
push ecx
mov ecx, esi
call fcn.0045b0ff
push 0x48150c
mov ecx, esi
call fcn.0045b352
push str.BlazeVideo
mov ecx, esi
call fcn.0045b352
mov esi, dword [esp + 0x114]
add edi, 0x30
push edi
mov ecx, esi
call fcn.0045aceb
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret 8

Function at 0x4073b0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x41c]
push esi
test eax, eax
mov dword [esp + 4], 0
je 0x4073f4
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x41c]
push eax
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push 0x400
push ecx
push 0x488690
push eax
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x407453
mov ecx, dword [ecx + 8]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40741a
push 0x488690
jmp 0x407458
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x420]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x401
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x41c]
mov ecx, esi
call fcn.0045afe4
mov eax, esi
pop esi
add esp, 0x410
ret 0xc

Function at 0x407480
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp], 0
test eax, eax
je 0x4074b1
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
push eax
push 0
mov ecx, dword [ecx]
push ecx
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
ret 8
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4074d8
xor eax, eax
add esp, 0xc
ret 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret 8
Function at 0x407520
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx + 8]
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40754a
xor eax, eax
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret 0xc

Function at 0x407590
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov eax, dword [esi + 8]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4075cb
mov esi, dword [esi + 8]
lea edx, [esp + 4]
push edx
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4075f6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x407600
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x404
test eax, eax
push esi
mov esi, ecx
je 0x40763e
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x410]
push eax
mov eax, dword [esp + 0x410]
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push ecx
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
add esp, 0x404
ret 0xc
mov eax, dword [esi + 8]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407675
mov esi, dword [esi + 8]
lea eax, [esp + 4]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4076c1
mov esi, dword [esp + 0x410]
push 0x400
lea edx, [esp + 0xc]
mov ecx, dword [esi]
push ecx
push edx
call fcn.00444340
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x40c]
inc ecx
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xc]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x404
ret 0xc
Function at 0x4076d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x464b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
mov esi, ecx
je 0x407757
mov eax, dword [0x4845f4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push 0x481520
push edx
mov dword [esp + 0x1c], 0
call fcn.004551c6
mov eax, dword [esp + 0x24]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [eax]
push esi
push ecx
push eax
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.0045af76
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 8]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40778e
mov esi, dword [esi + 8]
lea eax, [esp + 4]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4077b6
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 4
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0xc]
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40e530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
sub esp, 0x10
mov esi, esp
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], esp
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.0045aceb
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x40]
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.0040eed0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0045af76
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x10
Function at 0x40eed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465d89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov dword [esp + 0x20], 0
jl 0x40f086
lea ebx, [edi + 1]
test ebx, ebx
jne 0x40ef4c
mov esi, dword [ebp + 4]
test esi, esi
je 0x40ef3f
mov ecx, eax
dec eax
test ecx, ecx
je 0x40ef2c
lea ebx, [eax + 1]
push 0
mov ecx, esi
call fcn.0040f640
add esi, 0x10
dec ebx
jne 0x40ef1d
mov eax, dword [ebp + 4]
push eax
call fcn.0045b503
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x40f086
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40efae
mov edi, ebx
shl edi, 4
push edi
call fcn.0045b4da
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x40ef94
mov ecx, esi
call fcn.0040f0e0
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x40ef80
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x40f082
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x40efeb
cmp eax, ebx
jge 0x40efd1
mov edx, ebx
sub edx, eax
shl eax, 4
add eax, ecx
push edx
push eax
call fcn.0040f120
mov dword [ebp + 8], ebx
jmp 0x40f086
jle 0x40efe3
sub eax, ebx
push eax
mov eax, ebx
shl eax, 4
add eax, ecx
push eax
call fcn.0040f0f0
mov dword [ebp + 8], ebx
jmp 0x40f086
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40f016
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x40f009
mov ecx, 4
jmp 0x40f016
cmp ecx, 0x400
jle 0x40f016
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x40f025
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
shl ecx, 4
push ecx
call fcn.0045b4da
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.0040f120
mov eax, dword [ebp + 4]
push eax
call fcn.0045b503
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x2c]
shl edi, 4
add edi, ecx
push edx
mov esi, edi
mov ecx, esi
call fcn.0045b0af
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc], edx
call fcn.0045af76
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x410d50
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4663f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
push fcn.0045af76
push 0x2710
lea eax, [esi + 0xa7ec]
push 4
push eax
mov dword [esp + 0x30], 0x1a
call fcn.0044481e
push fcn.0045af76
push 0x2710
lea ecx, [esi + 0xbac]
push 4
push ecx
mov byte [esp + 0x30], 0x19
call fcn.0044481e
push fcn.0045af76
push 0x64
lea edx, [esi + 0xa1c]
push 4
push edx
mov byte [esp + 0x30], 0x18
call fcn.0044481e
lea ecx, [esi + 0xa18]
mov byte [esp + 0x20], 0x17
call fcn.0045af76
lea ecx, [esi + 0xa14]
mov byte [esp + 0x20], 0x16
call fcn.0045af76
lea ecx, [esi + 0xa10]
mov byte [esp + 0x20], 0x15
call fcn.0045af76
lea ecx, [esi + 0xa0c]
mov byte [esp + 0x20], 0x14
call fcn.0045af76
lea edi, [esi + 0x8d4]
mov dword [esp + 0x14], edi
mov dword [edi], 0x46d328
mov eax, dword [edi + 0x114]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x20], 0x1b
je 0x410e35
mov dword [edi + 0x114], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 8]
mov dword [edi], 0x46d338
cmp eax, ebx
je 0x410e49
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x8d0]
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov byte [edi + 0xc], bl
mov byte [esp + 0x20], 0x12
call fcn.0045af76
lea ecx, [esi + 0x8c4]
mov byte [esp + 0x20], 0x11
call fcn.0045af76
lea ecx, [esi + 0x884]
mov byte [esp + 0x20], 0x10
call fcn.0045fe99
lea ecx, [esi + 0x848]
mov byte [esp + 0x20], 0xf
call fcn.0045599c
lea ecx, [esi + 0x80c]
mov byte [esp + 0x20], 0xe
call fcn.0045fe99
lea ecx, [esi + 0x7d0]
mov byte [esp + 0x20], 0xd
call fcn.0045fe99
lea ecx, [esi + 0x794]
mov byte [esp + 0x20], 0xc
call fcn.0045ff5e
lea ecx, [esi + 0x6bc]
mov byte [esp + 0x20], 0xb
call fcn.0042bc40
lea ecx, [esi + 0x5e4]
mov byte [esp + 0x20], 0xa
call fcn.0042bc40
lea ecx, [esi + 0x50c]
mov byte [esp + 0x20], 9
call fcn.0042bc40
lea ecx, [esi + 0x434]
mov byte [esp + 0x20], 8
call fcn.0042bc40
lea ecx, [esi + 0x35c]
mov byte [esp + 0x20], 7
call fcn.0042bc40
lea ecx, [esi + 0x284]
mov byte [esp + 0x20], 6
call fcn.0042bc40
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x20], 5
call fcn.0042bc40
lea ecx, [esi + 0x15c]
mov byte [esp + 0x20], 4
call fcn.0042c630
lea ecx, [esi + 0x10c]
mov byte [esp + 0x20], 3
call fcn.0042c630
lea ecx, [esi + 0xbc]
mov byte [esp + 0x20], 2
call fcn.0042c630
lea ecx, [esi + 0x6c]
mov byte [esp + 0x20], 1
call fcn.0042c630
cmp esi, ebx
mov byte [esp + 0x20], bl
je 0x410f7c
lea ecx, [esi + 0x5c]
jmp 0x410f7e
xor ecx, ecx
call fcn.004226a0
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00457078
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret