joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450d30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00454218
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.00466f31
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.00454218
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.00466f31
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.00466f31
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.00466f31
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x450e34
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.00466f31
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x450e6f
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x4ac6b8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.00466f31
pop edi
pop esi
pop ebx
add esp, 0x348
ret

Function at 0x46919b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4691d3
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.0046724f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467227
jmp 0x4691df
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46a889
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 0x46a8cb
call fcn.00470347
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a8cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a8c2
xor eax, eax
jmp 0x46a8d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a8d9
pop edi
pop esi
pop ebx
ret 4
Function at 0x470877
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 0x4708a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4708c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004707dd
jmp 0x4708c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4708c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004707dd
test edi, edi
mov eax, edi
jne 0x4708ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [esp + 8]
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401317
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40131d
xor eax, eax
pop edi
ret 0xc
push ebx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov esi, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
mov dword [esp + 0x1c], eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4013ba
mov ecx, dword [esp + 0x1c]
push eax
push 0x80
push 2
push eax
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013ba
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
ret 0xc

Function at 0x4013d0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4013ed
xor eax, eax
pop esi
add esp, 0x54
ret 8
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push 0x230
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 0xa
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
add esp, 0x54
ret 8

Function at 0x401550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push 0x208
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
mov edx, ecx
push 0x444a4c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x10]
push 0x444a68
push eax
call fcn.00420853
add esp, 0x14
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004013d0
pop esi
add esp, 0x208
ret
Function at 0x4019c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4019ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a0e
cmp esi, eax
jae 0x4019e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a00
cmp esi, eax
jae 0x4019e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401e00
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x410
push esi
push 0x208
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x210]
push 0x445124
push edx
call esi
add esp, 0xc
push 0
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x418]
lea ecx, [esp + 4]
push ecx
push 0x445100
push edx
call esi
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x410
ret 4

Function at 0x401ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
push 2
push 2
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
xor eax, eax
test esi, esi
je 0x40207e
mov ecx, 0x8b
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402075
mov edi, dword [ebp + 8]
push edi
call fcn.00420e36
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.00420f08
add esp, 0x10
test eax, eax
je 0x402071
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402037
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402090
Capabilities:
Acquire debug privileges

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402114
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4020ce
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push 0
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40211a
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, 1
add esp, 0x1c
ret
Function at 0x4023d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4419db
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
mov esi, ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
mov eax, dword [esi + 0x2954]
lea edx, [esp + 0x24]
push edx
push eax
call edi
push 1
push 0x18
push 0x78
push 2
push 2
lea ecx, [esi + 0x2938]
call fcn.00433ac3
push 1
push 0x18
push 0x78
push 2
push 0x7c
lea ecx, [esi + 0x2110]
call fcn.00433ac3
push 1
push 0x18
push 0x78
push 2
push 0xf6
lea ecx, [esi + 0x18e8]
call fcn.00433ac3
push 1
push 0x18
push 0x78
push 2
push 0x170
lea ecx, [esi + 0x10c0]
call fcn.00433ac3
push 1
push 0x18
push 0x78
push 2
push 0x1ea
lea ecx, [esi + 0x898]
call fcn.00433ac3
push 1
push 0x18
push 0x78
push 2
push 0x264
lea ecx, [esi + 0x70]
call fcn.00433ac3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x14]
push 1
sub ecx, 0x1c
push ecx
sub edx, eax
add edx, 4
push edx
push 0x1c
lea edi, [esi + 0x3160]
push 0
mov ecx, edi
call fcn.00433ac3
lea ebx, [esi + 0x31b0]
push 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, 0x1c
push eax
sub ecx, dword [esp + 0x1c]
add ecx, 4
push ecx
push 0x1c
push 0
mov ecx, ebx
call fcn.00433ac3
test edi, edi
je 0x4024f9
mov edi, dword [edi + 0x1c]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
test ebx, ebx
je 0x40250b
mov ebx, dword [ebx + 0x1c]
push 0
push ebx
call edi
push 1
push 1
push 1
push 0
push 0
lea ecx, [esi + 0x326c]
call fcn.00433ac3
lea edi, [esi + 0x32c8]
push 0
mov ecx, edi
call fcn.00433b01
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CFont.0
push 0x4451d8
push 0x20
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x1e
mov dword [esp + 0xd0], 0
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
lea ecx, [esp + 0x10]
call fcn.00437474
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00415880
lea ecx, [esp + 0xc]
mov dword [esi + 0x3318], 0xffffff
mov dword [esi + 0x3328], 0
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0xc], vtable.CGdiObject.0
call fcn.004374cb
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret
Function at 0x405410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
add dword [esp + 0x48], 0x1c
xor edi, edi
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0043c28b
call fcn.0043507f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push 0x44524c
lea eax, [esp + 0x44]
push str.ck_W_t
push eax
mov dword [esp + 0x44], edi
call fcn.00404520
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CFont.0
push 0x4451d8
push 0x20
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x2bc
push edi
push edi
push edi
push 0x1e
mov byte [esp + 0x70], 1
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
lea ecx, [esp + 0x14]
call fcn.00437474
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x28]
push 1
mov ecx, esi
call fcn.00436a8b
mov edi, dword [esp + 0x40]
mov eax, dword [edi - 0xc]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
sar ecx, 1
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x50]
sub eax, edx
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
sar ebp, 1
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
add ebx, ecx
add ebp, eax
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call dword [edx + 0x68]
lea ecx, [esp + 0x10]
call fcn.004374cb
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.004374cb
add edi, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40558a
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x406490
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441d58
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4064cd
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], 1
mov word [esp + 0x4c], 0xa
call fcn.00406170
mov esi, dword [esp + 0x70]
test esi, esi
mov dword [esp + 0x64], 0
je 0x40653c
push 0x445360
call fcn.00420e36
add esp, 4
push eax
push 0x445360
lea ecx, [esp + 0x74]
call fcn.004040c0
push esi
call fcn.00420e36
add esp, 4
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.004040c0
mov edx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [edx - 4]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, edi
or ecx, eax
pop edi
jge 0x406573
push 0
lea ecx, [esp + 0x6c]
call fcn.00402d10
mov edx, dword [esp + 0x68]
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x230
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x58]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8

Function at 0x407920
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push 0x208
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
mov edx, ecx
push 0x444a4c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x10]
push 0x444a68
push eax
call fcn.00420853
add esp, 0x14
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00406490
pop esi
add esp, 0x208
ret
Function at 0x40aab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44235b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call ebp
mov esi, eax
xor eax, eax
test esi, esi
mov ecx, 0x7f
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
je 0x40ab38
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40ab10
push 0x1fe
lea eax, [esp + 0x1c]
push eax
push esi
call edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00403180
test eax, eax
jne 0x40ab50
push 2
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x40ab10
xor eax, eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00406170
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x3230]
mov dword [esp + 0x228], 0
call fcn.004079d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x224], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aba2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c4a0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4424a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 8], eax
call fcn.00437169
mov esi, eax
test esi, esi
jne 0x40c4ea
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 8]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push eax
call edi
mov ecx, dword [esi + 8]
push 8
push ecx
call edi
mov edx, dword [esi + 8]
push 0xa
push edx
mov ebx, eax
call edi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00436c8f
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.00437177
mov eax, dword [esi + 4]
push edi
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00437474
test ebp, ebp
je 0x40c553
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call fcn.004374fd
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push esi
push edi
push ebx
push 0
push 0
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x40c585
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.004374fd
lea ecx, [esp + 0x18]
call fcn.004371df
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004371f5
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
pop edi
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40cfc0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push edi
jle 0x40d0fe
mov edi, dword [esp + 0x14]
push ebp
mov edi, edi
xor edx, edx
mov eax, ebx
mov ebp, 3
div ebp
sub edx, 0
je 0x40d0bd
dec edx
je 0x40d068
dec edx
jne 0x40d0f0
mov al, byte [edi]
shr al, 6
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x40d00f
add al, 0x41
jmp 0x40d029
cmp al, 0x34
jae 0x40d017
add al, 0x47
jmp 0x40d029
cmp al, 0x3e
jae 0x40d01f
sub al, 4
jmp 0x40d029
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
inc esi
cmp al, 0x1a
jae 0x40d03d
add al, 0x41
mov byte [esi], al
jmp 0x40d0ee
cmp al, 0x34
jae 0x40d04a
add al, 0x47
mov byte [esi], al
jmp 0x40d0ee
cmp al, 0x3e
jae 0x40d057
sub al, 4
mov byte [esi], al
jmp 0x40d0ee
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
jmp 0x40d0ee
mov al, byte [edi]
shr al, 4
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x40d083
add al, 0x41
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40d0ee
cmp al, 0x34
jae 0x40d095
add al, 0x47
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40d0ee
cmp al, 0x3e
jae 0x40d0a7
sub al, 4
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40d0ee
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x40d0ee
mov al, byte [edi]
shr al, 2
cmp al, 0x1a
jae 0x40d0ca
add al, 0x41
jmp 0x40d0e4
cmp al, 0x34
jae 0x40d0d2
add al, 0x47
jmp 0x40d0e4
cmp al, 0x3e
jae 0x40d0da
sub al, 4
jmp 0x40d0e4
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov cl, byte [edi]
and cl, 3
shl cl, 4
inc esi
inc edi
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x40cfe0
pop ebp
cdq
mov edi, 3
idiv edi
test edx, edx
je 0x40d145
and cl, 0x3f
cmp cl, 0x1a
jae 0x40d117
add cl, 0x41
jmp 0x40d135
cmp cl, 0x34
jae 0x40d121
add cl, 0x47
jmp 0x40d135
cmp cl, 0x3e
jae 0x40d12b
sub cl, 4
jmp 0x40d135
setne cl
lea ecx, [ecx*4 + 0x2b]
mov byte [esi], cl
inc esi
cmp edx, 1
jne 0x40d141
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
mov byte [esi], 0
pop esi
sub eax, ecx
pop ebx
ret