joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045a6c4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045fd5a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461276
test eax, eax
je 0x43a47c
mov ecx, dword [esp + 0x3c]
call fcn.0045fd87
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a440
push edi
mov ecx, esi
call fcn.0045d3eb
mov ecx, esi
call fcn.0043a5e0
cmp dword [esp + 0x38], 1
jne 0x43a475
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045d526
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43cea0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ced3
push esi
call fcn.0043ff90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43cecc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43cf59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43cf42
mov eax, dword [esi + 8]
test eax, eax
je 0x43cef7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43cf3e
cmp eax, 2
je 0x43cf42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ceea
cmp eax, 3
je 0x43cf1d
cmp eax, 1
jne 0x43ceea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43ceea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ceea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043cf80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43cf68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043cf80
add esp, 4
pop esi
ret

Function at 0x45b4ba
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45b4f2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045956e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00459546
jmp 0x45b4fe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45cba8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45cbea
call fcn.00462661
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45cbea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45cbe1
xor eax, eax
jmp 0x45cbf2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045cbf8
pop edi
pop esi
pop ebx
ret 4

Function at 0x462b91
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x462bbf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462bdd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00462af7
jmp 0x462bdd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462bdd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00462af7
test edi, edi
mov eax, edi
jne 0x462bc7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x4010b0
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x41f8a0], ecx
inc eax
cmp eax, 0x100
jb 0x4010b0
cmp eax, 0x800
jae 0x401183
lea esp, [esp]
mov edx, dword [eax*4 + 0x41f4a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x41f8a0]
inc eax
mov dword [eax*4 + 0x41f89c], edx
cmp eax, 0x800
jb 0x401160
lea ecx, [ebp - 0x20]
mov dword [0x41e7c4], 0x401240
call fcn.00404ff0
test eax, eax
je 0x401238
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x41ced0
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x4011d7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x4011d7
cmp dword [eax], ebx
je 0x4011e6
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x4011c0
or ecx, 0xffffffff
sub ecx, 0
je 0x40121f
dec ecx
je 0x40120e
dec ecx
jne 0x401238
cmp esi, 6
jb 0x401238
jne 0x40122e
cmp edi, 0xf
jb 0x401238
mov dword [0x41e7c4], 0x4012e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x401238
jne 0x40122e
cmp edi, 6
jb 0x401238
cmp edi, 0xa
jmp 0x40122c
cmp esi, 6
jb 0x401238
jne 0x40122e
cmp edi, 0x100c
je 0x401238
mov dword [0x41e7c4], 0x4012e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x401ebf
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x401ec8
test ecx, ecx
je 0x401ebf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x401e80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, ecx
xor ebx, ebx
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x404e74
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push edi
add edx, 0xfffffffc
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 8], edx
add esi, ebx
mov dword [ebp - 0xc], esi
cmp esi, edx
jae 0x404ea2
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x404e9f
inc esi
cmp esi, edx
jb 0x404e90
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x404fc7
cmp ecx, 3
jbe 0x404ebc
xor eax, eax
jmp 0x404efa
dec ecx
shl eax, cl
and eax, 7
je 0x404efa
movzx ecx, byte [eax + 0x419490]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x419488], 0
mov cl, byte [edx + 4]
je 0x404ee4
test cl, cl
je 0x404ee4
cmp cl, 0xff
jne 0x404ef7
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x404e84
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x404f1c
cmp cl, 0xff
je 0x404f1c
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x404e84
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
je 0x404f4d
lea edx, [edi + ebx]
add edx, esi
jmp 0x404f53
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x404f91
movzx edi, byte [eax + 0x419490]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x404f7d
cmp cl, 0xff
jne 0x404f91
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x404f40
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp - 8]
mov byte [esi + 2], cl
mov esi, dword [ebp - 4]
add ebx, 5
jmp 0x404e84
pop edi
cmp ecx, 3
jbe 0x404fdc
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
pop esi
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4197f8
mov esi, eax
push 0x86
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4070b5
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a51f
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push esi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4070e4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a51f
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x58]
push edi
push eax
call fcn.00410d50
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x5c]
push 0x10
mov dword [ebp - 0x58], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x407142
lea ecx, [esi + 4]
push ecx
push dword [ebp - 0x58]
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x407144
xor esi, esi
mov dword [0x41e7a0], esi
test esi, esi
je 0x407219
lea eax, [ebp - 0x58]
push eax
push dword [esi + 4]
mov dword [ebp - 0x58], 0
call dword [sym.imp.gdiplus.dll_GdipImageGetFrameDimensionsCount]
test eax, eax
je 0x40716d
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x407219
mov ecx, dword [0x41e7a0]
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x407219
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ae59
mov ecx, dword [0x41e7a0]
add esp, 4
mov dword [0x41e7a4], eax
push esi
push eax
call fcn.00406d70
push 0x27
lea eax, [ebp - 0x54]
push eax
push dword [0x41e7a4]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push dword [0x41e7a4]
mov ecx, dword [0x41e7a0]
call fcn.00406da0
push ecx
mov ecx, dword [0x41e7a0]
mov dword [0x41e7a8], eax
call fcn.00406dd0
mov esi, eax
push esi
call fcn.0040a566
add esp, 4
mov dword [0x41e7b0], eax
push eax
push esi
push ecx
mov ecx, dword [0x41e7a0]
call fcn.00406e10
mov dword [0x41e7b4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040a51f
mov esp, ebp
pop ebp
ret 8
Function at 0x408420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push str.293SETUP
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408497
push dword [ebp + 0x10]
push 0x41df68
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x41e794
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
push 0x4084b0
push 0
push 0x87
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.0040d9a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
mov ecx, esi
cmp eax, 0x102
ja 0x40a317
lea eax, [ebp - 0x20c]
push eax
call fcn.00408a00
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a51f
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x419854
mov word [esi], ax
call fcn.00409050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a51f
mov esp, ebp
pop ebp
ret

Function at 0x40a350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov esi, ecx
mov dword [ebp - 0x218], 0
call fcn.0040d9a0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x40a3b1
movzx eax, word [ebp - 0x214]
jmp 0x40a3b3
xor eax, eax
mov word [ebp - 0xc], ax
xor eax, eax
mov dword [ebp - 0xa], 0x3a
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0xc], ax
jne 0x40a3db
xor ecx, ecx
jmp 0x40a3f0
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3e1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.00409050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a51f
mov esp, ebp
pop ebp
ret
Function at 0x40f4f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c3c9
mov dword [ebp - 0x14], eax
cmp dword [0x41decc], edi
jne 0x40f5e2
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f56f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f6c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f6c2
push 0x41517c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f6c2
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41decc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41ded0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41ded4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41dedc], eax
test eax, eax
je 0x40f5df
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41ded8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f607
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f5fa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f61c
push 4
pop eax
jmp 0x40f6c4
cmp dword [ebp - 0x14], edi
je 0x40f61c
push dword [0x41decc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f601
mov eax, dword [0x41ded8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f67a
cmp dword [0x41dedc], esi
je 0x40f67a
push eax
call ebx
push dword [0x41dedc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f67a
test eax, eax
je 0x40f67a
call ecx
test eax, eax
je 0x40f66f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f66f
test byte [ebp - 8], 1
jne 0x40f67a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f6aa
mov eax, dword [0x41ded0]
cmp eax, esi
je 0x40f6a7
push eax
call ebx
test eax, eax
je 0x40f6a7
call eax
mov edi, eax
test edi, edi
je 0x40f6a7
mov eax, dword [0x41ded4]
cmp eax, esi
je 0x40f6a7
push eax
call ebx
test eax, eax
je 0x40f6a7
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41decc]
call ebx
test eax, eax
je 0x40f6c2
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f6c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a51f
leave
ret
Function at 0x565e84
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00566034
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x565f82
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x565f25
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x565f68
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x565f3c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x565f57
test al, 0x40
je 0x565f4e
mov ecx, dword [edi + 0x20]
jmp 0x565f55
test al, 0x80
je 0x565f68
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x565f68
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x565ef4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x58c700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49a4c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00587600
test eax, eax
jne 0x58c76c
push ebp
push 0x502f94
mov ecx, edi
call fcn.0058b980
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00587180
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0057afb0
push ebx
mov dword [esp + 0x4c], ebp
call fcn.005877b0
add esp, 4
test eax, eax
je 0x58c80f
add esi, 0x18
push esi
call fcn.0057ba00
add esi, eax
push esi
call fcn.0057ba00
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x58cb12
jmp dword [ecx*4 + 0x43cb50]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0058bac0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.0057ba00
add esi, eax
push esi
call fcn.0057ba00
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x58c860
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x49e430]
test eax, eax
je 0x58c860
mov eax, 1
jmp 0x58c862
xor eax, eax
cmp ebx, 8
jge 0x58cac7
cmp ebx, 7
ja 0x58cb12
jmp dword [ebx*4 + 0x43cb60]
test eax, eax
jne 0x58cada
mov ecx, dword [esp + 0x10]
push eax
push 0x502f80
call fcn.0058b980
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0058d020
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4ec698
call fcn.0057b1b0
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10