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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax], 0
jne 0x45669d
jmp 0x456778
push str.Thread_Mutex_String
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4566ba
jmp 0x456778
call fcn.00456af0
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x5c]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x1c]
je 0x4566dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4566f7
mov ecx, dword [ebp - 0x10c]
call fcn.004567f5
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x456778
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
push eax
push 0x5040e0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004900c8
add esp, 0xc
push 0x5040e4
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x464
mov edx, dword [ebp - 0x10c]
mov ecx, dword [edx + 0x5c]
call fcn.00403000
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4596ab
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 0x11c], 0
push 0x104
lea eax, [ebp - 0x118]
push eax
call sub.CRCommon.dll_g_GetCurrentUserDataPath
add esp, 8
cmp eax, 0xffffffff
jne 0x45970b
mov ecx, dword [ebp + 8]
call fcn.00402dc0
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp + 8]
jmp 0x4597cc
push str.Cache_
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0049043a
add esp, 8
test eax, eax
je 0x459741
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x14]
call fcn.00402dc0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004597da
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00430bb0
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x10]
call fcn.004a6fb9
mov byte [ebp - 4], 2
push str..udb
lea ecx, [ebp - 0x10]
call fcn.004a7327
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.004a6cc0
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004a6f4b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004a6f4b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45bec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x506840]
push esi
push str.SoftwareFounderApabi_ReaderOption_
lea ecx, [esp + 8]
mov dword [esp + 8], eax
call fcn.004a70d4
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45bf19
lea ecx, [esp + 4]
call fcn.004a6f4b
xor eax, eax
pop esi
add esp, 0x114
ret
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.FaceStyleName
push esi
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x45bf77
test esi, esi
je 0x45bf64
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call fcn.004a6f4b
xor eax, eax
pop esi
add esp, 0x114
ret
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x45bf95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call fcn.004a6f4b
mov eax, 1
pop esi
add esp, 0x114
ret

Function at 0x45cf50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x45d042
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, edi
call fcn.0045d060
test eax, eax
jne 0x45d042
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, edi
call fcn.0045d060
test eax, eax
jne 0x45d042
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00490840
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d013
lea eax, [esp + 0x10]
push 0x5041d8
push eax
call fcn.004907c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d013
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x45d016
mov byte [esi], 0
push 0x50b954
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x45d060
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45d0c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x45d290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d31e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x45d33a
mov eax, dword [0x506840]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004a737b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004a73ca
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004a7327
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x45d321
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x45d321
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a6f4b
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45dcf0
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x558
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x568]
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x464]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x464]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.FaceStyle_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebx + 0x21c]
mov ecx, 0x28a
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x158]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x45dd61
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x558
ret 4
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
test eax, eax
jne 0x45dd7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x558
ret 4
lea edx, [esp + 0x18]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x18]
push edx
push str..dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x45ddbc
lea eax, [esp + 0x158]
push eax
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x558
ret 4
lea eax, [ebx + 0x21c]
xor ebp, ebp
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x25c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x44]
lea eax, [esp + 0x25c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x25c]
push ecx
mov ecx, ebx
call fcn.0045df60
test eax, eax
je 0x45de2a
mov edi, dword [esp + 0x10]
lea esi, [ebx + 0x14]
mov ecx, 0x82
inc ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add ecx, 0x208
cmp ebp, 5
mov dword [esp + 0x10], ecx
jge 0x45de3a
mov esi, dword [esp + 0x56c]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45ddc8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x360]
mov dword [ebx + 0xc44], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x360]
push ecx
call fcn.0045bec0
add esp, 4
test eax, eax
je 0x45de8c
lea edx, [esp + 0x360]
mov ecx, ebx
push edx
call fcn.0045deb0
test eax, eax
jne 0x45de92
mov dword [ebx], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x558
ret 4
Function at 0x45e1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4d32dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045bfd0
mov eax, dword [0x506840]
lea edi, [esi + 0x1ec]
mov dword [esp + 0x18], 0
mov dword [edi], eax
lea ecx, [esi + 0x1f8]
mov byte [esp + 0x18], 1
call fcn.0045dc20
lea ebx, [esi + 0xe40]
mov byte [esp + 0x18], 2
mov ecx, ebx
call fcn.004a3682
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0xe7c]
mov byte [esp + 0x18], 3
mov ecx, ebx
call fcn.004a3682
mov dword [ebx], vtable.CStatic.0
lea ecx, [esi + 0xeb8]
mov byte [esp + 0x18], 4
call fcn.0045a910
lea ecx, [esi + 0xf58]
mov byte [esp + 0x18], 5
call fcn.0045a910
mov dword [esi], 0x4df718
mov eax, dword [esi + 0x204]
push 5
push 0x65
push eax
mov byte [esp + 0x24], 6
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [esi + 0x204]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x20]
push ecx
push eax
mov ecx, esi
call fcn.004a7b1e
mov edx, dword [esp + 0x24]
mov ecx, edi
push edx
call fcn.004a70d4
push 0xd
mov ecx, edi
call fcn.0049f634
push 0xa
mov ecx, edi
call fcn.0049f634
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1f4], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x462229
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2a8], 0
jne 0x462242
xor eax, eax
jmp 0x462290
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x462261
xor eax, eax
jmp 0x462290
push 0
lea eax, [ebp - 4]
push eax
push 0x4c
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x462287
cmp dword [ebp - 4], 0x4c
je 0x46228b
xor eax, eax
jmp 0x462290
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4622df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46230f
xor eax, eax
jmp 0x46235f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24c]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x2b0
call fcn.00461fa3
push 0
lea eax, [ebp - 4]
push eax
push 0x200
mov ecx, dword [ebp - 8]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x462356
cmp dword [ebp - 4], 0x200
je 0x46235a
xor eax, eax
jmp 0x46235f
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x462363
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x462393
xor eax, eax
jmp 0x4623d8
push 0
lea ecx, [ebp - 4]
push ecx
push 0x200
mov edx, dword [ebp - 8]
add edx, 0x4c
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4623c2
cmp dword [ebp - 4], 0x200
je 0x4623c6
xor eax, eax
jmp 0x4623d8
mov edx, dword [ebp - 8]
mov dword [edx + 0x250], 0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x46344e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2a8], 0
je 0x46346b
mov ecx, dword [ebp - 8]
call fcn.00463560
cmp dword [ebp + 8], 0
jne 0x46349e
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x2a8], eax
jmp 0x4634c9
push 0
push 0x8000080
push 3
push 0
push 1
push closesocket
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x2a8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x2a8], 0xffffffff
jne 0x4634e6
mov eax, dword [ebp - 8]
mov dword [eax + 0x2a8], 0
xor eax, eax
jmp 0x46355a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x4c
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x463512
xor eax, eax
jmp 0x46355a
cmp dword [ebp - 4], 0x4c
je 0x46353c
cmp dword [ebp + 8], 0
je 0x463522
xor eax, eax
jmp 0x46355a
mov ecx, dword [ebp - 8]
call fcn.004621e1
mov ecx, dword [ebp - 8]
call fcn.00462229
test eax, eax
jne 0x46353a
xor eax, eax
jmp 0x46355a
jmp 0x463555
mov edx, dword [str.FileLib_1.0_by_J.W._April_1997]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x463555
xor eax, eax
jmp 0x46355a
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x465e8d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.00469bd8
add esp, 8
push 0x50435c
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x50bd2c], 0
je 0x465eeb
mov edx, dword [0x50bd2c]
mov eax, dword [edx]
mov ecx, dword [0x50bd2c]
call dword [eax + 0x14]
push 0x504364
lea ecx, [ebp - 0x114]
push ecx
call fcn.00478714
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4660ef
cmp dword [0x50bd2c], 0
je 0x466035
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [0x50bd2c]
mov edx, dword [ecx]
mov ecx, dword [0x50bd2c]
call dword [edx + 8]
test eax, eax
jne 0x466035
mov eax, dword [ebp - 0x11c]
add eax, 1
push eax
call fcn.004a7fba
add esp, 4
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x124], ecx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [0x50bd2c]
mov eax, dword [edx]
mov ecx, dword [0x50bd2c]
call dword [eax + 8]
mov ecx, dword [ebp - 0x120]
and ecx, 0xffff
cmp ecx, 2
jne 0x466015
cmp dword [ebp + 8], 0
je 0x465ff2
cmp dword [0x50bd1c], 0
je 0x465ff0
push 0
mov edx, dword [ebp - 0x124]
push edx
sub esp, 0xc
mov eax, esp
mov ecx, dword [0x4dfa40]
mov dword [eax], ecx
mov edx, dword [0x4dfa44]
mov dword [eax + 4], edx
mov cx, word [0x4dfa48]
mov word [eax + 8], cx
mov edx, dword [0x50bd1c]
mov eax, dword [edx]
mov ecx, dword [0x50bd1c]
call dword [eax]
jmp 0x466015
cmp dword [0x50bd24], 0
je 0x466015
push 1
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [0x50bd24]
mov eax, dword [edx]
mov ecx, dword [0x50bd24]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
push edx
call fcn.004a7fe3
add esp, 4
jmp 0x465f23
lea ecx, [ebp - 0x118]
call fcn.00402dc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
push 0x8021
call fcn.00469044
add esp, 8
cmp dword [ebp + 8], 0
je 0x4660a9
cmp dword [0x50bd1c], 0
je 0x4660a7
push 0
lea ecx, [ebp - 0x118]
call fcn.00430bb0
push eax
sub esp, 0xc
mov ecx, esp
mov edx, dword [0x4dfa40]
mov dword [ecx], edx
mov eax, dword [0x4dfa44]
mov dword [ecx + 4], eax
mov dx, word [0x4dfa48]
mov word [ecx + 8], dx
mov eax, dword [0x50bd1c]
mov edx, dword [eax]
mov ecx, dword [0x50bd1c]
call dword [edx]
jmp 0x4660d0
cmp dword [0x50bd24], 0
je 0x4660d0
push 1
lea ecx, [ebp - 0x118]
call fcn.00430bb0
push eax
mov eax, dword [0x50bd24]
mov edx, dword [eax]
mov ecx, dword [0x50bd24]
call dword [edx + 0xc]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004a6f4b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4681c0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3de5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00469c50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00402dc0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00402dc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00402dc0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00402dc0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00402dc0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00402dc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00402dc0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.00402dc0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00402dc0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00402dc0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00402dc0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00402dc0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.00402dc0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.00402dc0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00402dc0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00402dc0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00402dc0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00402dc0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.00402dc0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00402dc0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00402dc0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.00402dc0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4dfbf8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x468360
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3ef5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.004a6f4b
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.004a6f4b
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.004a6f4b
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.004a6f4b
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004a6f4b
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004a6f4b
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.004a6f4b
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.004a6f4b
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.004a6f4b
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.004a6f4b
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.004a6f4b
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004a6f4b
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004a6f4b
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004a6f4b
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.004a6f4b
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.004a6f4b
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004a6f4b
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004a6f4b
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004a6f4b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004a6f4b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004a6f4b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00461480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret