joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cf610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67dd09
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x50], esi
call fcn.0041231e
xor edi, edi
push ebx
lea ecx, [esi + 0x28]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CXTPReportRecordItemControl.0
call fcn.00401480
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], vtable.CFont.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
push 0xa
lea ecx, [esi + 0x64]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
call fcn.0047a0e1
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 3
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.0053d410
add esp, 4
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x34], eax
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x40], eax
xor edx, edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 4
Function at 0x5d1870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x5d19d3
cmp dword [esi + 0x20], eax
je 0x5d19d3
mov eax, dword [ebp + 8]
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea edi, [esi + 0x10]
mov edi, edi
cmp dword [esi + 0x20], 0
je 0x5d18d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x14
jbe 0x5d18d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0x18]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x24]
je 0x5d18fa
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
push 1
push edi
call edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5d18b0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x5d197f
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200
ja 0x5d1964
je 0x5d194f
cmp eax, 0x1f
je 0x5d1991
cmp eax, 0x100
jne 0x5d1970
cmp dword [ebp - 0x18], 0x1b
jne 0x5d18b0
jmp 0x5d1991
mov eax, dword [ebp - 0x14]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
jmp 0x5d18b0
sub eax, 0x202
je 0x5d198b
sub eax, 2
je 0x5d1991
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5d18b0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5d1991
mov ecx, dword [esi + 0x24]
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x24], 0
call fcn.005d1540
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
push 0
push 0
call eax
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x5d19d3
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push 0
mov ecx, esi
call eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d1a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67de82
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x71d5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [esi], vtable.CXTPTabManager.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea ebx, [esi + 0x24]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x54]
mov dword [ebp - 4], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call fcn.0058fff0
lea ecx, [esi + 0x68]
call fcn.005d0f80
mov eax, 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetRectEmpty]
mov byte [ebp - 4], 2
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x84], 0x14
call ebx
lea eax, [esi + 0x34]
push eax
call ebx
lea eax, [esi + 0x44]
push eax
call ebx
push 0xc
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], edi
call fcn.00407dd2
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
cmp eax, edi
je 0x5d1b3e
push esi
mov ecx, eax
call fcn.005d0ff0
jmp 0x5d1b40
xor eax, eax
push 0x30
mov byte [ebp - 4], 2
mov dword [esi + 0x80], eax
call fcn.00407dd2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 4
cmp ebx, edi
je 0x5d1b76
push 1
push edi
push esi
mov ecx, ebx
call fcn.005d17c0
mov dword [ebx], vtable.CXTPTabManager::CNavigateButtonArrowLeft.0
mov ecx, ebx
jmp 0x5d1b78
xor ecx, ecx
mov eax, dword [esi + 0x74]
push ecx
push eax
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.005d8190
push 0x30
call fcn.00407dd2
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
cmp eax, edi
je 0x5d1bb5
push 1
push 1
push esi
mov ecx, eax
call fcn.005d17c0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.CXTPTabManager::CNavigateButtonArrowRight.0
jmp 0x5d1bb7
xor ecx, ecx
mov eax, dword [esi + 0x74]
push ecx
push eax
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.005d8190
push 0x30
call fcn.00407dd2
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
cmp eax, edi
je 0x5d1c1d
push edi
push 2
push esi
mov ecx, eax
call fcn.005d17c0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 7
mov dword [eax], vtable.CXTPTabManager::CNavigateButtonClose.0
call fcn.00591530
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 8]
add ecx, 0x28
push 0x264a
push ecx
mov ecx, eax
call edx
push eax
call fcn.005cceb0
mov eax, dword [ebp - 0x10]
add esp, 4
jmp 0x5d1c1f
xor eax, eax
push eax
mov eax, dword [esi + 0x74]
push eax
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.005d8190
mov dword [esi + 0x88], edi
mov eax, esi
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 0x5d2340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67df39
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x71d5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041231e
xor edi, edi
mov dword [esi], vtable.CXTPTabManagerItem.0
lea ebx, [esi + 0x44]
mov dword [ebp - 4], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
call fcn.004089b9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x5d23a3
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x54], eax
mov byte [ebp - 4], 1
call fcn.004089b9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x5d23d0
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x58], eax
lea ecx, [esi + 0x6c]
call fcn.005d0f80
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004ff028
mov eax, 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
or eax, 0xffffffff
push ebx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esi + 0x64], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x68], 1
mov dword [esi + 0x60], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov eax, esi
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 0x5d3020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, 1
push ebx
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5d31b7
mov eax, dword [esi + 0xc0]
push edi
push eax
mov dword [esi + 0x68], ebx
call fcn.005d2de0
mov edi, eax
mov edx, dword [edi]
mov eax, dword [esi + 0x134]
mov edx, dword [edx]
add esp, 4
push eax
mov ecx, edi
call edx
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov eax, 0xcccccccd
mul ecx
push 0
shr edx, 2
push edx
mov edx, dword [esi + 0xc0]
mov eax, dword [edx + 0x20]
push 0x459d
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 0x20]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0040cf29
lea ebx, [ebx]
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x5d30be
xor ebx, ebx
jmp 0x5d30c1
mov ebx, dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, ebx
jne 0x5d317a
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
xor ebx, ebx
push ebx
mov ecx, esi
call eax
test eax, eax
je 0x5d317c
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x5d316f
mov eax, dword [ebp - 0x1c]
cmp eax, 0x113
jne 0x5d314f
cmp dword [ebp - 0x18], 0x459d
jne 0x5d3156
mov edx, dword [edi]
mov eax, dword [esi + 0x134]
mov edx, dword [edx]
push eax
mov ecx, edi
call edx
cmp dword [ebp - 4], ebx
je 0x5d3147
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
push ebx
shr edx, 3
push edx
mov edx, dword [esi + 0xc0]
mov eax, dword [edx + 0x20]
push 0x459d
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], ebx
jmp 0x5d30b0
cmp eax, 0x202
je 0x5d317c
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5d30b0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00419f2e
jmp 0x5d317c
xor ebx, ebx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0x20]
push 0x459d
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
push ebx
mov ecx, esi
mov dword [esi + 0x68], ebx
call edx
pop edi
test eax, eax
jne 0x5d31af
mov dword [esi + 0x64], ebx
push ebx
mov ecx, esi
call fcn.00559e20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d5670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67fb60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00559980
mov ebx, eax
lea eax, [ebx + 0x114]
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0053d760
mov edx, dword [ebx]
mov eax, dword [edx + 0x74]
push esi
mov ecx, ebx
mov dword [ebp - 4], 0
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
push 1
mov ecx, edi
call fcn.004137e2
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x28], edx
mov edx, dword [esi + 0x8c]
add eax, 4
mov dword [ebp - 0x24], edx
add edx, 0xfffffffb
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
add ecx, 7
mov dword [ebp - 0x14], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], ecx
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push 0x20
lea esi, [ebp - 0x20]
push esi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
mov byte [ebp - 4], 1
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5d5761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x130]
mov ecx, ebx
call eax
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
push ecx
push edx
add eax, 0xfffffffa
push eax
push esi
push edi
mov ecx, ebx
call fcn.00526870
mov edx, dword [ebx]
mov eax, dword [edx + 0x130]
mov ecx, ebx
call eax
mov ecx, dword [eax + 0x38]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push ecx
push edx
push eax
push esi
push edi
mov ecx, ebx
call fcn.00526870
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0053d7e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 4
Function at 0x5d7a00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0057bf60
mov esi, dword [eax + 0xa0]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004155c9
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
push ebx
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0x46000000
push ebx
push ebx
push ebx
push eax
push ebx
call fcn.00410190
push eax
mov ecx, edi
call fcn.0040bfd8
cmp edi, ebx
je 0x5d7a66
lea ecx, [edi + 0x74]
jmp 0x5d7a68
xor ecx, ecx
cmp esi, ebx
jne 0x5d7a70
xor eax, eax
jmp 0x5d7a73
mov eax, dword [esi + 0x20]
push ecx
push eax
call fcn.0059f950
mov ecx, eax
call fcn.0059f620
cmp edi, ebx
je 0x5d7a8a
lea eax, [edi + 0x74]
jmp 0x5d7a8c
xor eax, eax
push eax
mov ecx, edi
call fcn.0057bf60
mov ecx, eax
call fcn.0051f860
mov ecx, eax
call fcn.0058ebd0
mov ecx, edi
call fcn.005d6fd0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x18c]
call fcn.004e2fe7
mov edx, dword [esi + 0x20]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x5d7b23
lea ebx, [ebx]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0xe81b
je 0x5d7b14
cmp esi, dword [edi + 0x20]
je 0x5d7b14
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x18000000
cmp eax, 0x10000000
jne 0x5d7b14
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x194]
push esi
push eax
lea ecx, [edi + 0x18c]
call fcn.004e3122
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x5d7ad0
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, edi
xor esi, esi
call fcn.0057c8c0
test eax, eax
jle 0x5d7b7e
lea ebx, [ebx]
push esi
mov ecx, edi
call fcn.0057c8d0
mov ecx, eax
call fcn.00559a80
mov ecx, edi
test eax, eax
jne 0x5d7b70
inc esi
call fcn.0057c8c0
cmp esi, eax
jl 0x5d7b40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push esi
call fcn.0057c8d0
push eax
mov ecx, edi
call fcn.005d7520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x5d94a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x88], 0
push edi
mov dword [ebp - 8], esi
je 0x5d95ed
cmp dword [esi + 0x70], 0
jne 0x5d94d5
cmp dword [esi + 0x84], 0
je 0x5d94d5
cmp dword [esi + 0x24], 0
jne 0x5d94d5
call fcn.005d92f0
mov eax, dword [esi + 0x88]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 4], ecx
jle 0x5d95b1
jmp 0x5d94f3
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x5d9500
mov eax, dword [eax]
mov dword [eax + 0x2c], 1
mov eax, dword [esi + 0x88]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [eax]
cmp dword [ecx + edx*4 + 0x28], 0
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x3c]
je 0x5d9532
mov eax, dword [ecx + 0x90]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
or eax, 2
push eax
call edx
jmp 0x5d9546
mov edx, dword [ecx + 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
and edx, 0xfffffffd
push edx
call eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edi
mov dword [eax + 0x7c], ebx
cmp dword [esi + 0x28], 0
jne 0x5d958c
mov edi, dword [esi]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esi + 4]
mov dword [eax + 4], edi
mov edi, dword [esi + 8]
mov dword [eax + 8], edi
mov edi, dword [esi + 0xc]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov dword [ecx + 0x54], edx
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x88]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [eax + 4]
jl 0x5d94f0
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x10], 0
je 0x5d95d0
cmp dword [esi + 0x70], 0
jne 0x5d95d0
mov edx, dword [esi + 0x5c]
mov dword [edx + 0x244], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
push ecx
call fcn.00407e01
mov edx, dword [esi + 0x88]
push edx
call fcn.00407e01
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f2f00
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67f77e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x71d5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041231e
xor edi, edi
mov dword [esi], vtable.CXTPTabPaintManager.0
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
lea ebx, [esi + 0x40]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
lea ecx, [esi + 0xf0]
mov dword [ebp - 4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
call fcn.005f11d0
mov eax, vtable.CFont.0
mov dword [esi + 0x118], edi
mov dword [esi + 0x114], eax
mov dword [esi + 0x120], edi
mov dword [esi + 0x11c], eax
mov dword [esi + 0x128], edi
mov dword [esi + 0x124], eax
mov dword [esi + 0x130], edi
mov dword [esi + 0x12c], eax
push edi
mov ecx, esi
mov byte [ebp - 4], 5
mov dword [esi + 0x134], 1
mov dword [esi + 0xec], edi
mov dword [esi + 0xe8], edi
call fcn.005f2200
push edi
push edi
push edi
mov eax, 1
push edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetRect]
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], eax
mov dword [esi + 0xac], eax
call ebx
push edi
push edi
push edi
push edi
lea eax, [esi + 0x50]
push eax
call ebx
push edi
push edi
push edi
push edi
lea eax, [esi + 0x60]
push eax
call ebx
mov eax, 0x10
mov ecx, eax
mov dword [esi + 0x88], eax
push edi
mov eax, 1
push 6
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0xa8], eax
mov eax, 2
push edi
mov dword [esi + 0xe0], eax
mov dword [esi + 0xb0], eax
push 6
lea eax, [esi + 0x70]
push eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0x8c], ecx
mov dword [esi + 0xdc], 0x46
mov dword [esi + 0xd8], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
call ebx
mov edx, 1
mov ecx, 0xf
mov eax, 0xe
mov dword [esi + 0xcc], ecx
mov ecx, esi
mov dword [esi + 0xc4], edx
mov dword [esi + 0x9c], 4
mov dword [esi + 0xc8], eax
mov dword [esi + 0xd0], edx
mov dword [esi + 0xe4], edx
call fcn.004ff028
mov ecx, esi
call fcn.005f2610
mov eax, esi
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 0x5fb0f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov bl, byte [edx + 8]
push esi
mov dword [ebp - 0x18], eax
cmp bl, 3
je 0x5fb2bc
mov ecx, dword [edx]
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x5fb155
movzx eax, byte [edx + 9]
movzx edi, byte [esi]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 2]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov edi, 3
jmp 0x5fb167
movzx edi, byte [esi + 3]
movzx ebx, byte [edx + 9]
sub ebx, edi
mov dword [ebp - 0x14], ebx
mov edi, 1
test byte [edx + 8], 4
je 0x5fb17c
movzx esi, byte [esi + 4]
movzx ebx, byte [edx + 9]
sub ebx, esi
mov dword [ebp + edi*4 - 0x14], ebx
inc edi
xor esi, esi
test edi, edi
jle case.0x5fb1c5.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x5fb197
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x5fb19e
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x5fb186
cmp word [ebp - 0x1c], 0
je case.0x5fb1c5.3
movzx esi, byte [edx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x5fb1c5.3
movzx esi, byte [esi + 0x5fb2e0]
jmp dword [esi*4 + 0x5fb2cc]
mov edx, dword [edx + 4]
test edx, edx
je case.0x5fb1c5.3
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
dec edx
jne 0x5fb1d7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 4]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, 0xf0
sar edx, cl
mov ebx, 0xf
sar ebx, cl
and dl, 0xf0
or dl, bl
test edi, edi
je case.0x5fb1c5.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x5fb220
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
imul ecx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je case.0x5fb1c5.3
mov edi, edi
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
cmp ebx, dword [ebp - 0x18]
jb 0x5fb250
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
imul ecx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je case.0x5fb1c5.3
xor edx, edx
mov eax, ebx
div edi
movzx eax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc ebx
add esi, 2
movzx ecx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp - 0x18]
jb 0x5fb283
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret