joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4478b5
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x44794d
push edi
push 0x6b2350
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x638750]
test edi, edi
je 0x447921
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44791a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x638750
call fcn.0048ff01
pop ecx
pop ecx
jmp 0x44791c
mov edi, dword [edi]
test edi, edi
jne 0x4478f1
pop ebx
mov eax, dword [0x633d80]
mov esi, eax
inc eax
push 0x10
push 0x638750
mov dword [0x633d80], eax
call fcn.0048ff41
pop ecx
pop ecx
push 0x6b2350
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x44b691
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x44b6e6
push dword [esp + 0x10]
push 0x44b610
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x638800]
test esi, esi
je 0x44b73f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x44b6de
cmp byte [esi + 0x10], 0
je 0x44b6de
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x44b6ba
jmp 0x44b73f
mov esi, dword [0x638800]
test esi, esi
je 0x44b73f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x44b738
cmp byte [esi + 0x11], 0
je 0x44b714
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x44b72b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x638800
call fcn.0048ff01
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x44b6f3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x44bf23
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x44bfe2
cmp dword [esp + 0x24], 2
je 0x44bfe2
push 0x2000
push ebp
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x44bfb1
cmp dword [esp + 0x18], 2
jne 0x44bfcd
cmp dword [esp + 0x28], 0xffffffff
je 0x44bf75
cmp ebp, dword [esp + 0x28]
jae 0x44bfcd
add ebp, 2
test ebx, ebx
jne 0x44bf9a
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x44bfcd
cmp ax, 0xd
je 0x44bfb1
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44bf61
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00529650
jmp 0x44c074
push eax
push 0
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x44c000
cmp ebp, dword [esp + 0x28]
jae 0x44c058
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c058
cmp dword [esp + 0x18], 1
jne 0x44c058
inc ebp
test ebx, ebx
jne 0x44c045
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x44c058
cmp al, 0xd
je 0x44bff3
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x44bff3
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x44c06f
call fcn.005296a0
jmp 0x44c074
call fcn.00529850
push esi
push 0
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x44d091
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x44d0f3
cmp word [esi], di
je 0x44d0f3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004b7200
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004b7410
add esp, 0x10
test eax, eax
jne 0x44d0f2
push 0x24
push 8
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x46dd90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b0b38], 0
jne 0x46dd9e
call fcn.0046dc10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b0b3c]
call esi
test eax, eax
jne 0x46ddc1
call fcn.0046dc10
push dword [0x6b0b3c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x46ddd0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x46de30
mov ebx, 0x10
test edi, edi
jns 0x46de39
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x46de02
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46de50
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b0b38], 0
jne 0x46de5e
call fcn.0046dc10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b0b3c]
call esi
mov edx, eax
test edx, edx
jne 0x46de85
call fcn.0046dc10
push dword [0x6b0b3c]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x46deb8
mov ebx, 0x10
test esi, esi
jns 0x46dec1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x46ded0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46e299
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x46e334
cmp word [eax], di
je 0x46e334
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e32f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46e327
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x46e318
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.0046e786
mov ebp, eax
push edi
push 0
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x46e336
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x472377
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x6b26d4]
call fcn.0048f592
xor ebp, ebp
mov esi, eax
cmp dword [0x6b0e40], ebp
jne 0x472453
xor ebx, ebx
inc ebx
mov dword [0x6b0e40], ebx
call fcn.004768bf
mov edi, 0xa4
push edi
push ebp
push 0x6b0e48
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6b0e48], 0x13
lea eax, [esp + 0x10]
mov dword [0x6b0e4c], edi
mov dword [0x6b0e58], 0x4722c2
mov dword [0x6b0e5c], 0x47260d
push eax
mov dword [0x6b0eb0], 0x47229d
mov dword [0x6b0eb4], 0x472558
mov dword [0x6b0e54], 0x472278
mov dword [0x6b0ed8], 0x4722dd
mov dword [0x6b0eec], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x472453
cmp dword [esp + 0x20], ebx
je 0x47243b
cmp dword [esp + 0x20], 2
jne 0x472453
cmp dword [esp + 0x14], 5
jae 0x472443
mov dword [0x6b0eec], ebp
jmp 0x472453
jne 0x472453
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x6b0eec], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0047b30d
mov eax, dword [esp + 0x140]
push ebp
push dword [0x637cb4]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x472529
push dword [esp + 0x128]
push dword [0x6b26f0]
call fcn.0048fc11
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4724f8
push edi
call fcn.0048a3d5
test eax, eax
je 0x4724f8
push ebp
push ebp
push edi
call fcn.0048a044
mov dword [esi + 0x18], eax
jmp 0x4724fb
mov dword [esi + 0x18], ebp
push 0x471fc7
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6b0e48
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x6b0e44], eax
call fcn.00476c80
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x474091
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x474103
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4740ba
mov ebx, eax
push dword [ebp]
call fcn.00473813
push ebx
push dword [ebp]
mov edi, eax
call fcn.004737ea
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.00474123
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x474c11
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x474c2b
inc esi
push 2
call edi
test bx, ax
je 0x474c37
or esi, 2
push 4
call edi
test bx, ax
je 0x474c43
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4751d9
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x475211
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00476a7d
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x475302
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x475302
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x475330
test ebp, ebp
jle 0x475330
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x475330
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4752f9
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4752a3
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4752b8
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x475330
cmp dword [edi + 0x10], ebx
je 0x47531c
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x475330
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.00476a5b
cmp dword [esp + 0x10], 0
je 0x47534a
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x475352
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00476c51
push eax
call fcn.00477828
push dword [0x6b1294]
mov dword [esp + 0x24], eax
call fcn.0048f6e2
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4753c6
inc ebx
push 0x12
call esi
test di, ax
je 0x4753d2
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4753de
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00474c11
push 0x475433
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0047a5a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4761f3
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x6b26d4]
call fcn.0048f592
xor ebx, ebx
mov ebp, eax
cmp dword [0x6b1370], ebx
jne 0x476287
mov esi, 0xa4
push esi
push ebx
push 0x6b1378
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6b137c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x6b1378], 0xa
mov dword [0x6b1380], 0x475d88
push 0x7f89
push ebx
mov dword [0x6b13f0], 0x476e6a
mov dword [0x6b13f4], 0x476e44
mov dword [0x6b1384], 0x475da7
mov dword [0x6b1408], 0x475dc7
call esi
mov dword [0x6b1370], eax
test eax, eax
jne 0x476287
push 0x7f00
push ebx
call esi
mov dword [0x6b1370], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0047b30d
push ebx
push dword [0x637cb4]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x476353
push edi
push dword [esp + 0x14]
push dword [0x6b26f0]
call fcn.0048fc11
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x637cb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x6b1378
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00476c80
push 0x475ead
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x47740d
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x47743e
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x4774c0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x47749a
mov eax, dword [ebp + 8]
sub eax, 0
je 0x477492
dec eax
je 0x47748a
dec eax
je 0x477482
dec eax
je 0x47747a
dec eax
je 0x477472
dec eax
jne 0x47749a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x4774c2
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x4774c2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x4774c2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x4774c2
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x4774c2
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x4774c2
cmp dword [ebp + 8], 7
jne 0x4774be
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x4774be
mov eax, dword [ebp - 0x68]
jmp 0x4774c0
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x4775b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x477726
mov eax, dword [esp + 0x24]
dec eax
je 0x477709
dec eax
jne 0x477726
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00477569
pop ecx
test eax, eax
je 0x477667
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x47762a
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x477705
dec ebx
je 0x477701
dec ebx
je 0x4776e0
dec ebx
je 0x47769a
sub ebx, 4
jne 0x477726
test edi, edi
jne 0x477726
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x477726
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x47762a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x477625
sub edi, 0
je 0x4776d2
dec edi
je 0x4776c4
dec edi
je 0x4776b6
dec edi
jne 0x477726
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x477726
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x477726
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x477726
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x477726
sub edi, 0
je 0x4776fd
dec edi
je 0x4776f9
dec edi
jne 0x477726
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x477726
push 0x3c
jmp 0x477725
push 0x32
jmp 0x477725
push 0x14
jmp 0x477725
push 5
jmp 0x477725
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x477723
cmp eax, 0xa
je 0x47771f
cmp eax, 0x5a
jne 0x477726
push 0x28
jmp 0x477725
push 0x1e
jmp 0x477725
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x477dc4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6b2700]
call fcn.0048fbd2
mov esi, eax
test esi, esi
je 0x477e9e
cmp dword [ebp + 0xc], 0
je 0x477e10
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x477e01
cmp dword [esi + 0x1c], 0
jne 0x477e01
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x477e9e
test byte [ebp + 0x10], 3
je 0x477e2b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0047891e
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x477e50
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x477e64
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x477e81
test ebx, ebx
je 0x477e75
push 8
jmp 0x477e87
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x477e94
test ebx, ebx
je 0x477e8a
push 3
pop ecx
jmp 0x477e94
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc