joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5329d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x532aa9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x532a7a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004075d4
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404cb4
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00415a7c
mov eax, dword [ebp - 0x48]
call fcn.0040760c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
call fcn.0040760c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExW
mov ebx, dword [ebp - 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x532a86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x532ab0
lea eax, [ebp - 0x48]
call fcn.00407570
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret

Function at 0x532abc
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x532ba4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
xor ecx, ecx
mov edx, 0x1fe
call fcn.00404cb4
push 0
mov eax, dword [0x642ae4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x532b89
push 0xff
lea eax, [ebp - 0x20a]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x532b7b
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
lea eax, [ebp - 8]
lea edx, [ebp - 0x20a]
mov ecx, 0xff
call fcn.00407778
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004080c8
test eax, eax
je 0x532b7b
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_TerminateProcess
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x532b11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x532bab
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret
Function at 0x5334e4
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407580
push 0x104
lea eax, [esp + 4]
push eax
mov eax, esi
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_QueryDosDeviceW
test eax, eax
jle 0x533522
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00407778
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x53352c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb88
push ebx
xor eax, eax
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53367f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x466]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
lea edx, [ebp - 4]
lea eax, [ebp - 0x466]
call fcn.0041640c
xor eax, eax
push ebp
push 0x53364d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x46c]
mov ecx, 0x53369c
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x46c]
call fcn.00416008
lea eax, [ebp - 0x470]
mov ecx, 0x53369c
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x470]
call fcn.00415fec
mov byte [ebp - 9], 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x474]
mov ecx, 0x53369c
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x474]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53361b
lea eax, [ebp - 8]
lea edx, [ebp - 0x28]
mov ecx, 0xe
call fcn.00407778
cmp dword [ebp - 8], 0
setne byte [ebp - 9]
push ebx
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533654
lea eax, [ebp - 0x478]
mov ecx, 0x53369c
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x478]
call fcn.00416008
ret

Function at 0x5336b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
mov eax, dword [ebp - 8]
call fcn.00407568
mov eax, dword [ebp - 0xc]
call fcn.00407568
xor eax, eax
push ebp
push 0x53377a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_DeleteFileW
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.0040760c
push eax
mov ecx, dword [0x645c40]
mov dl, 1
mov eax, dword [0x431974]
call fcn.0043d94c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x53374e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0043d240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533755
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.004054a4
ret
Function at 0x533c0c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
mov eax, dword [ebp - 8]
call fcn.00407568
xor eax, eax
push ebp
push 0x533ceb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 1
push dword [ebp - 4]
push 0x533d08
push 0x533d08
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x2c]
call fcn.0040760c
mov dword [ebp - 0x1e], eax
push dword [ebp - 8]
push 0x533d08
push 0x533d08
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x30]
call fcn.0040760c
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], pe_nt_image_headers32
cmp bl, 1
cmc
sbb eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
je 0x533cc1
xor ebx, ebx
jmp 0x533cc3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533cf2
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00407578
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret

Function at 0x533d0c
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
mov eax, dword [ebp - 8]
call fcn.00407568
xor eax, eax
push ebp
push 0x533deb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 2
push dword [ebp - 4]
push 0x533e08
push 0x533e08
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x2c]
call fcn.0040760c
mov dword [ebp - 0x1e], eax
push dword [ebp - 8]
push 0x533e08
push 0x533e08
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x30]
call fcn.0040760c
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], pe_nt_image_headers32
cmp bl, 1
cmc
sbb eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
je 0x533dc1
xor ebx, ebx
jmp 0x533dc3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533df2
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00407578
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret
Function at 0x533e0c
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00407568
mov eax, dword [ebp - 8]
call fcn.00407568
mov eax, dword [ebp - 0xc]
call fcn.00407568
xor eax, eax
push ebp
push 0x534042
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 1
mov bl, 1
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
mov ecx, 0x534064
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x270]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x534010
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0xffffffff
je 0x533ff9
jmp 0x533ff1
cmp word [ebp - 0x240], 0x2e
je 0x533fdb
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x240]
mov ecx, 0x104
call fcn.00407778
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004080c8
test eax, eax
jne 0x533fdb
test esi, esi
je 0x533f0a
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.00530d34
test al, al
jne 0x533fdb
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.004075d4
push dword [ebp - 8]
push 0x534078
push dword [ebp - 0x10]
lea eax, [ebp - 0x274]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x274]
call fcn.005322c0
test al, al
je 0x533f6f
push dword [ebp - 0x14]
push 0x534088
mov eax, 0x64
call fcn.005337e4
lea edx, [ebp - 0x278]
call fcn.00414e24
push dword [ebp - 0x278]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407b30
push dword [ebp - 8]
push 0x534078
push dword [ebp - 0x14]
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x27c]
call fcn.0040760c
push eax
push dword [ebp - 4]
push 0x534078
push dword [ebp - 0x10]
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00407b30
mov eax, dword [ebp - 0x280]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_MoveFileW
test eax, eax
jne 0x533fdb
cmp dword [ebp + 8], 0
je 0x533fd7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0x15], 0
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_FindNextFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x533ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534017
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_FindClose
ret
Function at 0x53408c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x53416a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, 0x534184
mov edx, dword [ebp - 4]
call fcn.00407a4c
mov eax, dword [ebp - 0x260]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x53413e
jmp 0x53413a
cmp word [ebp - 0x230], 0x2e
je 0x534127
lea eax, [ebp - 8]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call fcn.00407778
test dword [ebp - 0x25c], edi
je 0x534127
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x25c]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5340f7
push esi
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534171
lea eax, [ebp - 0x260]
call fcn.00407570
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret

Function at 0x534284
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
mov eax, dword [ebp - 8]
call fcn.00407568
xor eax, eax
push ebp
push 0x5342e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040760c
push eax
mov eax, dword [ebp - 4]
call fcn.0040760c
push eax
call sub.KERNEL32.DLL_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5342f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407578
ret
Function at 0x53f598
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53f609
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x63eb40]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x53f5f3
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0053f580
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x53b814]
call fcn.00540520
mov dword [0x63eba8], eax
mov eax, dword [ebp - 4]
call fcn.0053f408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f610
lea eax, [ebp - 8]
call fcn.0040a6ac
ret

Function at 0x53f6a8
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffd4c
mov esi, 0x4008
test cl, cl
je 0x53f6bb
or esi, 2
test dl, dl
je 0x53f6c4
or esi, 0
jmp 0x53f6c7
or esi, 1
push esi
push 0x2b4
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [esp + 4]
add esp, 0x2b4
pop esi
ret
Function at 0x54034c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x540500
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x53b44c]
call fcn.0042b028
test eax, eax
jl 0x5403b6
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.0053f68c
and eax, 0x7f
mov eax, dword [eax*4 + 0x63eb40]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x540472
mov eax, dword [ebx]
test eax, eax
je 0x5403d0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5403d0
mov edx, dword [ebx]
mov eax, ebx
call fcn.0040693c
test eax, eax
je 0x5403d9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x540472
mov eax, dword [ebx]
test eax, eax
je 0x5403fb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5403fb
mov edx, dword [ebx]
mov eax, ebx
call fcn.0040693c
test eax, eax
je 0x540404
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x3a
jne 0x54041a
mov eax, ebx
mov edx, 0x54051c
call fcn.0040798c
mov eax, dword [ebx]
test eax, eax
je 0x540434
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x540434
mov edx, dword [ebx]
mov eax, ebx
call fcn.0040693c
test eax, eax
je 0x54043d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
call fcn.00408ae4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.0053f580
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x5404bd
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x642488]
call fcn.0040ac18
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.004165b4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407580
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40f5a4]
call fcn.0041a6d8
call fcn.00405f7c
mov eax, dword [ebp - 0xc]
call fcn.005402c4
mov ebx, eax
test edi, edi
je 0x5404d2
mov eax, edi
call fcn.004054a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540507
lea eax, [ebp - 0x1c]
call fcn.00407570
lea eax, [ebp - 0x18]
call fcn.0040a6ac
lea eax, [ebp - 8]
call fcn.00407570
lea eax, [ebp - 4]
call fcn.00407570
ret
Function at 0x5478ac
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1210], eax
mov dword [ebp - 0x120c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x547a19
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0x32
lea eax, [ebp - 0x1208]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
lea eax, [ebp - 0x120c]
lea edx, [ebp - 0x1208]
mov ecx, 0xff
call fcn.00407778
mov edx, dword [ebp - 0x120c]
mov eax, 0x547a34
call fcn.004080c8
test eax, eax
je 0x54792f
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_PostMessageW
jmp 0x5479f3
lea eax, [ebp - 0x100a]
xor ecx, ecx
mov edx, 0x200
call fcn.00404cb4
lea ecx, [ebp - 8]
lea eax, [ebp - 0x808]
mov edx, 0x200
call fcn.00546f50
mov edi, dword [ebp - 8]
shr edi, 2
dec edi
test edi, edi
jb 0x5479f3
inc edi
lea esi, [ebp - 0x808]
mov eax, dword [esi]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x5479e9
push 0x802
lea ecx, [ebp - 0x100a]
xor edx, edx
mov eax, ebx
call fcn.00546f74
lea eax, [ebp - 4]
lea edx, [ebp - 0x100a]
mov ecx, 0x401
call fcn.00407778
lea edx, [ebp - 0x1210]
mov eax, dword [ebp - 4]
call fcn.00415a40
lea eax, [ebp - 0x1210]
mov edx, 0x547a4c
call fcn.0040798c
mov eax, dword [ebp - 0x1210]
call fcn.004155f8
test al, al
je 0x5479e3
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x5479f3
push ebx
call sub.KERNEL32.DLL_CloseHandle
add esi, 4
dec edi
jne 0x54796a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547a20
lea eax, [ebp - 0x1210]
mov edx, 2
call fcn.00407578
lea eax, [ebp - 4]
call fcn.00407570
ret
Function at 0x547cf4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd60
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x298], ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x547e67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407580
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x547e38
xor edx, edx
push ebp
push 0x547e31
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
je 0x547d76
call fcn.00406070
jmp 0x547e38
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x547d90
call fcn.00406070
jmp 0x547e38
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x547d9c
cmp dword [ebx], 0
jne 0x547da6
call fcn.00406070
jmp 0x547e38
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x298]
call fcn.004163f4
mov edx, dword [ebp - 0x298]
mov eax, esi
call fcn.00407794
cmp byte [ebp - 1], 0
je 0x547dd4
call fcn.00406070
jmp 0x547e38
add ebx, 4
jmp 0x547e18
push dword [esi]
push 0x547e84
push dword [edi]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2a0]
call fcn.004163f4
mov edx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
call fcn.00407794
push dword [ebp - 0x29c]
mov eax, esi
mov edx, 3
call fcn.00407b30
add ebx, 4
mov edi, dword [ebx]
test edi, edi
jne 0x547dd9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547e38
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547e6e
lea eax, [ebp - 0x2a0]
call fcn.0040678c
lea eax, [ebp - 0x29c]
call fcn.00407570
lea eax, [ebp - 0x298]
call fcn.0040678c
ret

Function at 0x549440
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5494e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp eax, 0x82
jge 0x5494cf
mov ecx, 0x549500
xor edx, edx
mov eax, esi
call fcn.00548ea0
test eax, eax
setne bl
test bl, bl
jne 0x5494cf
lea eax, [ebp - 0xde]
push eax
push 0x64
push 0xd
push esi
call sub.user32.dll_SendMessageW
lea eax, [ebp - 4]
lea edx, [ebp - 0xde]
mov ecx, 0x65
call fcn.00407778
test bl, bl
jne 0x5494cb
mov eax, dword [ebp - 4]
mov edx, 0x549514
call fcn.00407cf0
je 0x5494cb
xor eax, eax
jmp 0x5494cd
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5494ec
lea eax, [ebp - 4]
call fcn.00407570
ret
Function at 0x54fe10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x54fe61
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x54fe48
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x54fe38
jmp 0x54fe61
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x54fe49
pop ebx
mov esp, ebp
pop ebp
ret