joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f754
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x9b4400]
call fcn.00558e32
cmp dword [0x9b0278], 0
mov edi, eax
mov esi, 0x50010000
jne 0x52f8bc
mov ebx, 0xa4
push ebx
push 0
push 0x9b0280
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9b0280], 0x1b
mov dword [0x9b0284], ebx
mov dword [0x9b0288], 0x52f0ce
mov dword [0x9b028c], 0x52f409
mov dword [0x9b02a4], 0x52ee4b
mov dword [0x9b02b4], 0x52f3ff
mov dword [0x9b02ac], 0x52f3aa
mov dword [0x9b02a8], 0x52fa4e
mov dword [0x9b0294], 0x52ff35
mov dword [0x9b0290], 0x52f650
mov dword [0x9b0298], 0x52f69a
mov dword [0x9b029c], 0x52ff66
mov dword [0x9b02c0], 0x52f5c7
mov dword [0x9b02c4], 0x52feee
mov dword [0x9b02b8], 0x52f536
mov dword [0x9b02bc], 0x52fd9b
mov dword [0x9b02f8], 0x52fbe8
mov dword [0x9b02fc], 0x52f44e
mov dword [0x9b0300], 0x52fc3b
mov dword [0x9b0304], 0x52f4da
mov dword [0x9b0308], 0x52fcad
mov dword [0x9b030c], 0x52f514
mov dword [0x9b02f0], 0x52f4a9
mov dword [0x9b0320], 0x52fccf
call fcn.0053f13d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x52f8b2
cmp dword [esp + 0x24], 2
jne 0x52f8b2
cmp dword [esp + 0x18], 6
jb 0x52f8b2
mov eax, dword [0x9b0058]
mov dword [0x9b027c], eax
mov dword [0x9b0278], 1
test byte [esp + 0x140], 2
jne 0x52f8cb
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x52f8d8
or esi, 5
test byte [esp + 0x140], 0x20
je 0x52f8e5
or esi, 0x20
push 0x1f4
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00544e9f
test ebp, ebp
je 0x52fa1e
push 0
push dword [0x9aa648]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x52fa22
push dword [esp + 0x12c]
push dword [0x9b441c]
call fcn.00558ec3
push 0x52ffaf
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x9b0324], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x9b0280
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.0053ea69
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x52fa22
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x52fa22
push edi
call fcn.0052f2e6
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x52fa0e
push eax
push dword [edi]
call fcn.0053f214
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x52fa22
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x52f783
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x9b4400]
call fcn.00558e32
cmp dword [0x9b0278], 0
mov edi, eax
mov esi, 0x50010000
jne 0x52f8bc
mov ebx, 0xa4
push ebx
push 0
push 0x9b0280
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9b0280], 0x1b
mov dword [0x9b0284], ebx
mov dword [0x9b0288], 0x52f0ce
mov dword [0x9b028c], 0x52f409
mov dword [0x9b02a4], 0x52ee4b
mov dword [0x9b02b4], 0x52f3ff
mov dword [0x9b02ac], 0x52f3aa
mov dword [0x9b02a8], 0x52fa4e
mov dword [0x9b0294], 0x52ff35
mov dword [0x9b0290], 0x52f650
mov dword [0x9b0298], 0x52f69a
mov dword [0x9b029c], 0x52ff66
mov dword [0x9b02c0], 0x52f5c7
mov dword [0x9b02c4], 0x52feee
mov dword [0x9b02b8], 0x52f536
mov dword [0x9b02bc], 0x52fd9b
mov dword [0x9b02f8], 0x52fbe8
mov dword [0x9b02fc], 0x52f44e
mov dword [0x9b0300], 0x52fc3b
mov dword [0x9b0304], 0x52f4da
mov dword [0x9b0308], 0x52fcad
mov dword [0x9b030c], 0x52f514
mov dword [0x9b02f0], 0x52f4a9
mov dword [0x9b0320], 0x52fccf
call fcn.0053f13d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x52f8b2
cmp dword [esp + 0x24], 2
jne 0x52f8b2
cmp dword [esp + 0x18], 6
jb 0x52f8b2
mov eax, dword [0x9b0058]
mov dword [0x9b027c], eax
mov dword [0x9b0278], 1
test byte [esp + 0x140], 2
jne 0x52f8cb
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x52f8d8
or esi, 5
test byte [esp + 0x140], 0x20
je 0x52f8e5
or esi, 0x20
push 0x1f4
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00544e9f
test ebp, ebp
je 0x52fa1e
push 0
push dword [0x9aa648]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x52fa22
push dword [esp + 0x12c]
push dword [0x9b441c]
call fcn.00558ec3
push 0x52ffaf
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x9b0324], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x9b0280
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.0053ea69
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x52fa22
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x52fa22
push edi
call fcn.0052f2e6
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x52fa0e
push eax
push dword [edi]
call fcn.0053f214
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x52fa22
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x53196f
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x9b441c]
call fcn.00558e9b
mov ebx, eax
test ebx, ebx
je 0x5319d3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x531998
push dword [esp + 0xc]
push ebx
call eax
jmp 0x5319d3
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.005599e0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00559ab0
pop edi
pop esi
pop ebx
ret 8
Function at 0x53293b
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 0x532955
inc esi
push 2
call edi
test bx, ax
je 0x532961
or esi, 2
push 4
call edi
test bx, ax
je 0x53296d
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x532f4f
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x532f87
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x53306c
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x53306c
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x53309a
test ebp, ebp
jle 0x53309a
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x53309a
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x533063
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x53300d
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 0x533022
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
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 + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x53309a
cmp dword [edi + 0x10], ebx
je 0x533086
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 0x53309a
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [esp + 0x10], 0
je 0x5330aa
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5330b2
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.0053ea3a
push eax
call fcn.00540a9a
push dword [0x9b06cc]
mov dword [esp + 0x24], eax
call fcn.00559072
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 0x533126
inc ebx
push 0x12
call esi
test di, ax
je 0x533132
or ebx, 2
push 0x11
call esi
test di, ax
je 0x53313e
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0053293b
push 0x533193
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.00543ded
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x535b33
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x9b4400]
call fcn.00558e32
xor ebp, ebp
mov esi, eax
cmp dword [0x9b0900], ebp
jne 0x535c0f
xor ebx, ebx
inc ebx
mov dword [0x9b0900], ebx
call fcn.0053f13d
mov edi, 0xa4
push edi
push ebp
push 0x9b0908
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9b0908], 0x13
lea eax, [esp + 0x10]
mov dword [0x9b090c], edi
mov dword [0x9b0918], 0x535a7e
mov dword [0x9b091c], 0x535dc9
push eax
mov dword [0x9b0970], 0x535a59
mov dword [0x9b0974], 0x535d14
mov dword [0x9b0914], 0x535a34
mov dword [0x9b0998], 0x535a99
mov dword [0x9b09ac], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x535c0f
cmp dword [esp + 0x20], ebx
je 0x535bf7
cmp dword [esp + 0x20], 2
jne 0x535c0f
cmp dword [esp + 0x14], 5
jae 0x535bff
mov dword [0x9b09ac], ebp
jmp 0x535c0f
jne 0x535c0f
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x9b09ac], 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.00544e9f
mov eax, dword [esp + 0x140]
push ebp
push dword [0x9aa648]
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 0x535ce5
push dword [esp + 0x128]
push dword [0x9b441c]
call fcn.00558ec3
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x535cb4
push edi
call fcn.00552b9b
test eax, eax
je 0x535cb4
push ebp
push ebp
push edi
call fcn.005527e5
mov dword [esi + 0x18], eax
jmp 0x535cb7
mov dword [esi + 0x18], ebp
push 0x535783
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x9b0908
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x9b0904], eax
call fcn.0053ea69
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x536257
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x9b4400]
call fcn.00558e32
xor ebx, ebx
mov ebp, eax
cmp dword [0x9b09b0], ebx
jne 0x5362eb
mov esi, 0xa4
push esi
push ebx
push 0x9b09b8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x9b09bc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x9b09b8], 0xa
mov dword [0x9b09c0], 0x535dec
push 0x7f89
push ebx
mov dword [0x9b0a30], 0x53f4d8
mov dword [0x9b0a34], 0x53f4b2
mov dword [0x9b09c4], 0x535e0b
mov dword [0x9b0a48], 0x535e2b
call esi
mov dword [0x9b09b0], eax
test eax, eax
jne 0x5362eb
push 0x7f00
push ebx
call esi
mov dword [0x9b09b0], 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.00544e9f
push ebx
push dword [0x9aa648]
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 0x5363b7
push edi
push dword [esp + 0x14]
push dword [0x9b441c]
call fcn.00558ec3
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 [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x9b09b8
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.0053ea69
push 0x535f11
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 0x53dfa4
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 0x53e016
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x53dfcd
mov ebx, eax
push dword [ebp]
call fcn.0053d770
push ebx
push dword [ebp]
mov edi, eax
call fcn.0053d747
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.0053e036
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x540038
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x54007d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5400f9
cmp dword [0x9b3310], 1
je 0x5400f9
push ebx
mov ebx, 0x9b3318
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x9b3334]
and dword [0x9b333c], 0
mov dword [0x9b3338], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x9b3330]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x9b3334]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5400f1
push 0
push dword [0x9b3314]
mov dword [0x9b3310], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x5403ba
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x9b2e38], 0
jne 0x54048b
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x9b4428
mov dword [0x9b2e38], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x9aa644]
mov dword [0x9b32fc], eax
mov dword [0x9b2e3c], 0x1f4
call esi
mov dword [0x9b330c], eax
mov eax, dword [0x9b2e3c]
add eax, eax
push eax
push 8
push dword [0x9aa644]
call esi
xor ebx, ebx
mov dword [0x9b3308], eax
push 0x9b3318
mov dword [0x9b3300], ebx
mov dword [0x9b3304], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x9b3330], eax
call esi
mov dword [0x9b3334], eax
cmp dword [0x9b3330], ebx
je 0x540482
test eax, eax
je 0x540482
lea eax, [esp + 0xc]
mov dword [0x9b3310], ebx
push eax
push ebx
push ebx
push 0x53fe3d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x9b3314], eax
jmp 0x540488
mov dword [0x9b3310], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x54048d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x540532
cmp dword [esp + 0xc], 0
je 0x540532
cmp dword [0x9b3310], 1
je 0x540532
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x540531
push ebp
mov ebp, 0x9b3318
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x9b3334]
mov dword [0x9b3338], esi
mov dword [0x9b333c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x9b3330]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x9b3334]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x540529
push 0
push dword [0x9b3314]
mov dword [0x9b3310], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x540620
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 0x540796
mov eax, dword [esp + 0x24]
dec eax
je 0x540779
dec eax
jne 0x540796
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.005405d9
pop ecx
test eax, eax
je 0x5406d7
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x54069a
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x540775
dec ebx
je 0x540771
dec ebx
je 0x540750
dec ebx
je 0x54070a
sub ebx, 4
jne 0x540796
test edi, edi
jne 0x540796
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x540796
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 0x54069a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x540695
sub edi, 0
je 0x540742
dec edi
je 0x540734
dec edi
je 0x540726
dec edi
jne 0x540796
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x540796
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x540796
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x540796
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x540796
sub edi, 0
je 0x54076d
dec edi
je 0x540769
dec edi
jne 0x540796
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x540796
push 0x3c
jmp 0x540795
push 0x32
jmp 0x540795
push 0x14
jmp 0x540795
push 5
jmp 0x540795
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x540793
cmp eax, 0xa
je 0x54078f
cmp eax, 0x5a
jne 0x540796
push 0x28
jmp 0x540795
push 0x1e
jmp 0x540795
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x540849
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 0x54087a
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x5408fc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x5408d6
mov eax, dword [ebp + 8]
sub eax, 0
je 0x5408ce
dec eax
je 0x5408c6
dec eax
je 0x5408be
dec eax
je 0x5408b6
dec eax
je 0x5408ae
dec eax
jne 0x5408d6
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x5408fe
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x5408fe
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x5408fe
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x5408fe
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x5408fe
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x5408fe
cmp dword [ebp + 8], 7
jne 0x5408fa
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 0x5408fa
mov eax, dword [ebp - 0x68]
jmp 0x5408fc
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x5413cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x9b4444]
call fcn.00558e9b
mov esi, eax
test esi, esi
je 0x5414a6
cmp dword [ebp + 0xc], 0
je 0x541418
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x541409
cmp dword [esi + 0x1c], 0
jne 0x541409
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5414a6
test byte [ebp + 0x10], 3
je 0x541433
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00541f68
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x541458
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 0x54146c
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 0x541489
test ebx, ebx
je 0x54147d
push 8
jmp 0x54148f
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x54149c
test ebx, ebx
je 0x541492
push 3
pop ecx
jmp 0x54149c
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