joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472f98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x473002
mov eax, ebx
call fcn.00475374
test al, al
jne 0x473002
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004056ac
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x472fef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47300f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405610
jmp 0x47300f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405610
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x474498
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x474506
mov eax, esi
call fcn.0045c6fc
test al, al
je 0x474506
mov eax, dword [ebx + 0x84]
call fcn.0045c35c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x474506
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4744fa
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045c35c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0045418c
jmp 0x474506
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004742d4
pop esi
pop ebx
ret

Function at 0x475564
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a3c
xor eax, eax
push ebp
push 0x4755bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405a4c
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
test ebx, 1
jbe 0x4755a5
dec ebx
push ebx
push esi
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4755c2
lea eax, [ebp - 4]
call fcn.004055bc
ret
Function at 0x4755c8
Capabilities:
Create process on windows
Create process suspended
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a3c
xor eax, eax
push ebp
push 0x4756c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b20
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 2
mov eax, 0x4756d4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405654
mov eax, dword [ebp - 0xc]
call fcn.0040b1b8
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.00475564
push 0
push 0x4756d4
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405a4c
push eax
push 0
push 0x4000000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405a4c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x10], 0
jne 0x4756a0
mov bl, 1
jmp 0x4756a2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4756cc
lea eax, [ebp - 0x68]
call fcn.004055bc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004055e0
ret

Function at 0x4756f4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4757a1
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x475778
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x11c]
call fcn.0040c7b8
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov ecx, 0xff
call fcn.00405858
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x16]
mov cl, 5
call fcn.004039d8
mov eax, ebx
lea edx, [ebp - 0x16]
call fcn.00405820
jmp 0x475788
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, ebx
call fcn.004055bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757a8
lea eax, [ebp - 0x11c]
call fcn.004055bc
ret
Function at 0x4757b0
Capabilities:
Create process on windows
Create process suspended
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x475953
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b20
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x1c], 4
mov word [ebp - 0x18], 5
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
mov ecx, 0x475968
mov edx, dword [ebp - 4]
call fcn.004058d4
mov eax, dword [ebp - 0x5c]
call fcn.00405a4c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
push 0x475970
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0x475970
push 0
call sub.user32.dll_FindWindowA
mov esi, eax
push 0
push 0x47598c
push 0
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405a4c
push eax
push 1
push 0xc2
push ebx
call sub.user32.dll_SendMessageA
push 0x475994
push 0x4759b4
push 0
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
push 0x4759bc
push 0x4759b4
push 0
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_PostMessageA
push 0x4759c8
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0x32
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x56d45c]
mov eax, dword [eax]
call fcn.004733f4
test ebx, ebx
je 0x4758d3
push 0x4759dc
push 0x4759e0
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
push 3
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47595a
lea eax, [ebp - 0x5c]
call fcn.004055bc
lea eax, [ebp - 4]
call fcn.004055bc
ret
Function at 0x4764f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476567
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004055bc
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x476547
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040582c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47656e
lea eax, [ebp - 4]
call fcn.004055bc
ret

Function at 0x4765c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476637
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004055bc
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x476617
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040582c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47663e
lea eax, [ebp - 4]
call fcn.004055bc
ret

Function at 0x493b1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x493bb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.00405cdc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405a4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040587c
test eax, eax
jns 0x493b63
call fcn.00404504
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jns 0x493b72
call fcn.00404504
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405cdc
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [0x477f5c]
call fcn.00477078
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493bba
lea eax, [ebp - 0xc]
call fcn.004055bc
ret

Function at 0x497b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497b91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00497afc
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00494f88
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.004949e4
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b98
lea eax, [ebp - 0x14]
call fcn.004055bc
ret
Function at 0x4a11b8
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x56b9bc]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4a11f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4a1208
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4a1201
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403b20
xor edx, edx
mov eax, 0x56bbbc
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4a126f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4a1226
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4a14b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4a14c9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4a14c2
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4a14db
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4a14d4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004a10a8
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4a14f5
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.004a11b8
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4a157d
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4a159b
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004a1138
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4a15c5
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a15dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4a15f5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4a15ee
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4a1609
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a0fa8
test bl, bl
jne 0x4a16e3
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x573c24
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4a1641
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4a1656
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a14b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4a1689
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x4a1636
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4a16ad
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4a16bf
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4a16d4
jmp 0x4a17a4
cmp bl, 1
jne 0x4a17a4
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x573c7e
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4a1703
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4a1718
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a14b0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4a174b
sub ebx, 6
inc dword [ebp - 8]
jne 0x4a16f8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4a1773
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4a1785
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4a179a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a1028
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4a27d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a29e0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov esi, eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10c]
call fcn.0040b410
mov eax, dword [ebp - 0x110]
mov edx, 0x4a29f8
call fcn.004059e4
je 0x4a289a
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10c]
call fcn.0040b410
mov eax, dword [ebp - 0x114]
mov edx, 0x4a2a08
call fcn.004059e4
je 0x4a289a
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x10c]
call fcn.0040b410
mov eax, dword [ebp - 0x118]
mov edx, 0x4a2a20
call fcn.004059e4
jne 0x4a29b5
xor ebx, ebx
xor eax, eax
mov dword [0x573c8c], eax
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x10c]
call fcn.0040b410
mov eax, dword [ebp - 0x11c]
mov edx, 0x4a29f8
call fcn.004059e4
jne 0x4a2982
push 0x104
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 4]
lea eax, [ebp - 0x10c]
call fcn.0040b410
push 0
push 0x4a2a38
push 0
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4a2a40
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
cmp byte [0x573c88], 0
je 0x4a294a
push 0
push 0x4a2a50
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4a2a60
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4a2a6c
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
jmp 0x4a2982
push 0
push 0x4a1f38
push esi
call sub.user32.dll_EnumChildWindows
cmp dword [0x573c8c], 0
je 0x4a29b5
push 0
push 0x4a2a74
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4a2a6c
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4a29b5
lea eax, [ebp - 0x10c]
push eax
push 0x104
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10c]
call fcn.0040b410
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004a201c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a29e7
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.004055e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055e0
ret
Function at 0x4a3ee8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x410f10]
call fcn.00406104
xor eax, eax
push ebp
push 0x4a4089
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x56bc34], 0
jne 0x4a3f43
mov ecx, dword [0x56cf08]
mov dl, 1
mov eax, dword [0x408f2c]
call fcn.0040ec98
call fcn.00404ef0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b20
mov eax, ebx
call fcn.00405f6c
mov dword [ebp - 0x24], eax
mov esi, 0x4a4098
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040732c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405f7c
test eax, eax
jle 0x4a402c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a4018
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0040582c
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4a3fbe
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405844
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4a3fd4
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405844
mov eax, dword [ebp - 0x54]
call fcn.00405a4c
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0040582c
mov eax, dword [ebp - 0x58]
call fcn.00405a4c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4a401a
xor eax, eax
test al, al
je 0x4a4025
mov ebx, 0x15
jmp 0x4a4031
mov ebx, 0x10
jmp 0x4a4031
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x56bc34]
call fcn.004a3d68
mov eax, dword [ebp - 4]
call fcn.004a3d68
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4090
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004055e0
lea eax, [ebp - 0xc]
mov edx, dword [0x410f10]
call fcn.004061d4
ret