joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c150
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x24
push ebx
mov ebx, dword [ecx + 0xb4]
push esi
push edi
xor edi, edi
test ebx, ebx
jne 0x47c16e
mov ebx, dword [ecx + 0xe4]
mov esi, dword [0x550f44]
test esi, esi
je 0x47c237
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0xc], eax
nop
cmp dword [ecx + 0xb4], 0
je 0x47c1b1
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x47c1b1
push ebx
push eax
call fcn.004c9380
add esp, 8
test eax, eax
je 0x47c1c9
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x47c224
push ebx
push eax
call fcn.004c9380
add esp, 8
test eax, eax
jne 0x47c224
push dword [esi + 0x338]
call fcn.004c8c7f
add esp, 4
cmp word [edi], 0
je 0x47c1e8
push edi
call fcn.004c8c20
add esp, 4
jmp 0x47c1ea
xor eax, eax
mov dword [esi + 0x338], eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
push 0x1053
push dword [0x555ecc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, 0xffffffff
je 0x47c224
push 0xffffffffffffffff
push eax
push 0x7eb
push dword [0x555ec8]
call dword [ebp - 0xc]
mov esi, dword [esi + 0x5c0]
mov ecx, dword [ebp + 8]
test esi, esi
jne 0x47c190
xor edi, edi
mov ecx, dword [0x555a20]
test ecx, ecx
je 0x47c278
cmp dword [ecx], 0
je 0x47c278
xor eax, eax
nop dword [eax + eax]
push ebx
push dword [eax + ecx]
call fcn.004c9380
add esp, 8
test eax, eax
je 0x47c30d
mov ecx, dword [0x555a20]
inc edi
lea eax, [edi*8]
cmp dword [eax + ecx], 0
jne 0x47c250
mov esi, dword [ebp + 0xc]
shl edi, 3
test ecx, ecx
je 0x47c288
cmp dword [edi + ecx], 0
jne 0x47c2c6
lea eax, [edi + 0x10]
push eax
push ecx
call fcn.004c8ca5
push ebx
mov dword [0x555a20], eax
call fcn.004c8c20
mov ecx, dword [0x555a20]
push esi
mov dword [edi + ecx], eax
call fcn.004c8c20
mov ecx, dword [0x555a20]
add esp, 0x10
mov dword [edi + ecx + 4], eax
mov eax, dword [0x555a20]
mov dword [edi + eax + 8], 0
lea eax, [ebp - 4]
push eax
push 0x50f528
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x47c371
mov edx, dword [0x555a20]
add edx, edi
mov esi, dword [edx + 4]
cmp word [esi], ax
jne 0x47c33c
push dword [edx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov eax, dword [0x555a20]
push dword [eax + edi*8 + 4]
call fcn.004c8c7f
mov esi, dword [ebp + 0xc]
push esi
call fcn.004c8c20
mov ecx, dword [0x555a20]
add esp, 8
mov dword [ecx + edi*8 + 4], eax
mov ecx, dword [0x555a20]
jmp 0x47c27b
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c341
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [edx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10050
call fcn.004c38f0
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47c40b
lea eax, [ebp - 0x10050]
mov dword [ebp - 0x10050], 5
push eax
push 0
push 0x104d
push edi
mov dword [ebp - 0x1004c], SysReAllocStringLen
mov dword [ebp - 0x1003c], 0x50f3a4
mov dword [ebp - 0x10030], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret
mov eax, dword [0x556380]
test eax, eax
jne 0x47c425
push 0x7f02
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x556380], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
mov dword [ebp - 0x10014], eax
lea eax, [ebp - 0x10010]
push eax
push 0x10008
lea eax, [ebp - 0x1000c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c4b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [eax]
mov eax, dword [ebp - 0x10010]
test eax, eax
je 0x47c4b2
push eax
lea eax, [ebp - 0x1000c]
push eax
push 3
push edi
call fcn.00478f70
add esp, 0x10
cmp dword [ebp - 0x10010], 0x10008
jne 0x47c492
push 1
push 0
push 0xfffffffffffffffe
push esi
call ebx
push 0
lea eax, [ebp - 0x10010]
push eax
push 0x10008
lea eax, [ebp - 0x1000c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47c460
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10014]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004c3287
mov esp, ebp
pop ebp
ret
Function at 0x47d0f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x555c2c], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
jne 0x47d1f9
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x10]
call fcn.004c8c9a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x47d1d5
push edi
xor edi, edi
cmp edi, dword [ebx]
jae 0x47d1cd
lea esi, [ebx + 8]
nop dword [eax + eax]
push dword [esi - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x47d1c3
mov eax, dword [esi]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x47d1cb
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x47d1a0
cmp edi, dword [ebx]
setne byte [0x555c2d]
pop edi
push ebx
call fcn.004c8c7f
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov byte [0x555c2c], 1
pop ebx
mov ecx, dword [ebp - 4]
mov al, byte [0x555c2d]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret

Function at 0x47e0a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7c65
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x5100fc
push 0x510118
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0045b0b0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00481e80
push 0x50fae0
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00481ee0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00481870
push 0x50fae0
lea ecx, [ebp - 0x34]
call fcn.00481890
test eax, eax
setne byte [0x555c30]
test eax, eax
je 0x47e18b
push 1
push 0x510138
call fcn.0042f9d0
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x555c30], 0
je 0x47e18b
mov eax, dword [0x555c38]
mov ecx, dword [0x555c3c]
push 0x555c38
mov dword [0x555c40], eax
mov dword [0x555c44], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x50ffc0
push 0
mov ecx, 0x555c5c
call fcn.00481ee0
lea ecx, [ebp - 0x18]
call fcn.00481ea0
lea ecx, [ebp - 0x24]
call fcn.0045b250
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 0x481ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x58
push dword [edi]
call fcn.004c3279
add esp, 8
mov dword [edi], 0
test esi, esi
je 0x481f31
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x4820bc
jmp 0x481f3b
mov dword [ebp - 0x20c], reloc.OLEAUT32.dll_SysReAllocStringLen
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x4820bc
push ebx
call fcn.004c8c20
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
push ecx
push 0x503b14
push eax
lea ebx, [ebp - 0x204]
mov dword [ebp - 0x210], 0
call fcn.004d99c0
add esp, 0x10
mov dword [ebp - 0x214], eax
test eax, eax
je 0x481fde
mov ecx, dword [edi + 4]
push eax
call fcn.0045b280
lea ecx, [ebp - 4]
sub ecx, ebx
sar ecx, 1
test eax, eax
je 0x481fa3
push eax
push 0x510c84
jmp 0x481fae
push dword [ebp - 0x214]
push 0x510c8c
push ecx
push ebx
call fcn.00415290
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x210]
add esi, esi
push eax
push 0x503b14
push 0
call fcn.004d99c0
add esp, 0xc
mov dword [ebp - 0x214], eax
add ebx, esi
test eax, eax
jne 0x481f87
push dword [ebp - 0x218]
call fcn.004c8c7f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x208]
add esp, 4
mov dword [ebp - 0x208], 0
xor esi, esi
mov dword [edi], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call ebx
test eax, eax
je 0x482081
nop dword [eax]
cmp eax, 0xea
jne 0x4820ac
push dword [edi]
call fcn.004c3453
mov eax, dword [ebp - 0x208]
add esp, 4
cmp eax, esi
jbe 0x482047
lea esi, [eax + 0x1000]
jmp 0x48204d
add esi, 0x1000
push esi
call fcn.004c393e
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4820ac
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], esi
push ecx
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call ebx
test eax, eax
jne 0x482020
mov eax, dword [edi]
cmp dword [eax], 0x450050
jne 0x4820ac
cmp dword [eax + 4], 0x460052
jne 0x4820ac
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret 8
push dword [edi]
call fcn.004c3453
add esp, 4
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret 8
Function at 0x4828d0
Capabilities:
Hide graphical window
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x55528c], 0
je 0x4828ee
push dword [0x555ec8]
call fcn.0047b810
add esp, 4
xor eax, eax
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [0x555ec8]
call fcn.00473fd0
add esp, 8
mov esi, 1
push esi
push edi
call fcn.0047c720
inc esi
add esp, 8
cmp esi, 8
jl 0x482911
push dword [0x5563ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
mov ecx, 0x550a60
call fcn.0047f9c0
push 0
push dword [0x5563e8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x482990
Capabilities:
Hide graphical window
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [0x555ec8]
call fcn.00473fd0
add esp, 8
mov esi, 1
push esi
push edi
call fcn.0047c720
inc esi
add esp, 8
cmp esi, 8
jl 0x4829b6
push dword [0x5563ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
mov ecx, 0x550a60
call fcn.0047f9c0
push 0
push dword [0x5563e8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x483760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x2c
push eax
push dword [0x555ec8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
xor eax, eax
cmp dword [ebp - 0x28], 2
sete al
lea eax, [eax*4 + 5]
push eax
push dword [0x555ec8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x555ec8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [0x555ec8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov byte [0x555f26], 1
mov byte [0x555f1d], 0
call fcn.004c3287
mov esp, ebp
pop ebp
ret

Function at 0x486a40
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x555ee0]
test eax, eax
je 0x486a6d
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x555ee0]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [0x555ee0]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
ret
push esi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push 0
push 0x48a8d0
mov esi, eax
call fcn.004d5fba
add esp, 0xc
push 0xffffffffffffffff
push dword [0x5563e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
xor eax, eax
ret
Function at 0x488020
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8025
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.0042dbe0
mov ecx, eax
test ecx, ecx
je 0x4881b1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp + 8]
lea esi, [edi + 4]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], 1
imul ecx, eax, 0x1000193
movzx eax, dh
mov dword [ebp - 0x10], esi
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004464d0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4880c6
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
or esi, 0xffffffff
cmp eax, dword [edi + 8]
je 0x48810e
lea edi, [eax + 0xc]
test edx, edx
jne 0x4880e8
xor eax, eax
mov ecx, edi
push eax
push edx
call fcn.0042f4b0
jmp 0x488188
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4880f0
sub eax, dword [ebp + 8]
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.0042f4b0
jmp 0x488188
test edx, edx
jne 0x488116
xor ecx, ecx
jmp 0x48812f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488120
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.0042f4b0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebx - 0x10]
push eax
call fcn.0043d610
add eax, 0x10
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call fcn.004668a0
mov edx, dword [ebp - 0x28]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488188
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48819d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0042d2e0
int3
Function at 0x48af69
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 4
push 0x5554be
push 0x511910
mov dword [ebp - 4], 0
call fcn.004c94d0
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
add esp, 0xc
test eax, eax
jne 0x48afb0
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x5552b4
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.004c8c9a
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push 0x5552b4
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48afa5
cmp dword [ebx + 0x30], 0x60000
jae 0x48afa5
cmp dword [ebp + 8], 0
push 0
push 0x453640
push 0
jne 0x48af98
push 0x51191c
jmp 0x48af9d
push 0x511944
push dword [0x5509e8]
call edi
push ebx
call fcn.004c8c7f
add esp, 4
pop esi
pop ebx
cmp byte [0x5554bc], 0
jne 0x48aff9
cmp dword [0x55b150], 0
je 0x48afcc
cmp word [0x5554be], 0
jne 0x48aff9
push 0
push 0x453640
push 0
push 0x51191c
push dword [0x5509e8]
call edi
push 1
push dword [0x555ec8]
mov byte [0x5554bc], 1
call fcn.00473fd0
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48ce30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor edi, edi
movzx eax, ax
mov dword [ebp - 0x20], eax
cmp eax, 1
jbe 0x48ce78
lea eax, [ebp - 0x1c]
push eax
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadGroupAffinity]
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
nop word [eax + eax]
mov bl, 1
cmp si, ax
jae 0x48ceee
cmp ax, 1
jbe 0x48ceb7
cmp edi, dword [0x555f60]
jge 0x48cef4
xor eax, eax
mov dword [ebp - 0x10], 0xffffffff
push eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xc], si
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
push esi
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov ebx, eax
push 0
lea eax, [ebx + ebx*2]
shl eax, 4
push eax
lea eax, [edi + edi*2]
shl eax, 4
add eax, dword [ebp - 0x24]
push eax
push 8
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x48ceec
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
add edi, ebx
inc esi
jmp 0x48ce80
xor bl, bl
cmp ax, 1
jbe 0x48cf07
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret
Function at 0x48cf20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor edi, edi
movzx eax, ax
mov dword [ebp - 0x20], eax
cmp eax, 1
jbe 0x48cf68
lea eax, [ebp - 0x1c]
push eax
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadGroupAffinity]
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
nop word [eax + eax]
mov bl, 1
cmp si, ax
jae 0x48cfde
cmp ax, 1
jbe 0x48cfa7
cmp edi, dword [0x555f60]
jge 0x48cfe4
xor eax, eax
mov dword [ebp - 0x10], 0xffffffff
push eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xc], si
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
push esi
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov ecx, dword [ebp - 0x24]
mov ebx, eax
push 0
lea eax, [ebx + ebx*2]
shl eax, 3
push eax
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8]
push eax
push 0x17
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x48cfdc
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
add edi, ebx
inc esi
jmp 0x48cf70
xor bl, bl
cmp ax, 1
jbe 0x48cff7
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret
Function at 0x48d010
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor edi, edi
movzx eax, ax
mov dword [ebp - 0x20], eax
cmp eax, 1
jbe 0x48d058
lea eax, [ebp - 0x1c]
push eax
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadGroupAffinity]
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
nop word [eax + eax]
mov bl, 1
cmp si, ax
jae 0x48d0cc
cmp ax, 1
jbe 0x48d097
cmp edi, dword [0x555f60]
jge 0x48d0d2
xor eax, eax
mov dword [ebp - 0x10], 0xffffffff
push eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xc], si
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
push esi
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov ebx, eax
push 0
lea eax, [ebx*8]
push eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + edi*8]
push eax
push 0x6c
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x48d0ca
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
add edi, ebx
inc esi
jmp 0x48d060
xor bl, bl
cmp ax, 1
jbe 0x48d0e5
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret