joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4966c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 4]
push eax
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0049c07c
add esp, 0xc
mov word [ebp - 0x14], 2
push ebx
call fcn.00496684
pop ecx
mov esi, eax
mov edi, esi
mov eax, dword [ebx + 0x20]
push eax
call fcn.00416dfc
pop ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x2000
mov eax, dword [edi + 0x14]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.DLL_recvfrom
mov dword [edi + 0x18], eax
mov ecx, dword [ebx + 0x20]
push ecx
call fcn.00416e0c
cmp dword [edi + 0x18], 0
pop ecx
jle 0x496777
mov eax, dword [ebp - 0x10]
push eax
call sub.WS2_32.DLL_inet_ntoa
mov ebx, eax
test ebx, ebx
je 0x496767
push esi
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov ax, word [ebp - 0x12]
push eax
call sub.WS2_32.DLL_ntohs
mov word [edi + 0x10], ax
jmp 0x496783
push esi
push ebx
call fcn.004966a8
add esp, 8
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a16c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4a1726
call fcn.004a1674
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049c15c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0049c15c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a17a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4e3a54], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a187e
cmp dword [0x4e3a50], 0
jne 0x4a187e
cmp dword [0x4e3c34], 0
je 0x4a1838
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a1574
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a181e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a1574
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a181e
lea ebx, [ebp - 0x84]
jmp 0x4a181f
inc ebx
call fcn.004a1760
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a18b9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e3a58
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049c15c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e3a5b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a18b9
cmp dword [0x4e3a50], 0
je 0x4a1898
cmp dword [0x4e3a50], 0xffffffff
je 0x4a18b9
push esi
call dword [0x4e3a50]
pop ecx
mov eax, dword [0x4e3a54]
test eax, eax
je 0x4a18b9
cmp dword [0x4e3a54], 0xffffffff
je 0x4a18b9
cmp byte [eax], 0
je 0x4a18b9
push esi
push eax
call fcn.004a16c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a20b4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4ef99c], 0
jne 0x4a2135
cmp dword [0x4ef9bc], 0
jne 0x4a20e4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4ef9bc], eax
test eax, eax
jne 0x4a20e4
push str.GetEnvironmentStrings_failed
call fcn.004a18d0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4ef9bc]
jmp 0x4a20f8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0049c15c
pop ecx
mov edi, eax
test eax, eax
jne 0x4a20f0
lea edi, [ebp + 1]
push edi
call fcn.0049bbbc
pop ecx
mov ebx, eax
mov dword [0x4ef9a0], ebx
test ebx, ebx
jne 0x4a2122
xor eax, eax
jmp 0x4a21f8
push edi
mov edx, dword [0x4ef9bc]
push edx
push ebx
call fcn.0049c00c
add esp, 0xc
jmp 0x4a2155
xor esi, esi
mov ebx, dword [0x4ef99c]
jmp 0x4a214f
push eax
call fcn.0049c15c
pop ecx
test eax, eax
jne 0x4a214b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a213f
lea ebx, [esi + 4]
push 4
mov dword [0x4ef9a4], ebx
inc ebx
push ebx
call fcn.0049b698
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4a2178
xor eax, eax
jmp 0x4a21f8
cmp dword [0x4ef99c], 0
jne 0x4a21a9
xor esi, esi
mov ebx, dword [0x4ef9a0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4a219a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0049c15c
pop ecx
mov edi, eax
test eax, eax
jne 0x4a2190
jmp 0x4a21da
xor esi, esi
mov ebx, dword [0x4ef99c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4a21d4
push eax
call fcn.0049c15c
pop ecx
test eax, eax
je 0x4a21c9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4a21cd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a21b8
mov eax, dword [0x4ef99c]
test eax, eax
je 0x4a21ea
push eax
call fcn.0049bbcc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4ef99c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a2cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4a2cd6
test esi, esi
je 0x4a2cd6
call fcn.004a172c
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4a2d48
call fcn.004a29c8
mov ebx, eax
test eax, eax
jne 0x4a2cf1
call fcn.004a172c
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4a2d48
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x4a2c0c
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4a2d3c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4a2d35
push 0x59
call fcn.0049db70
pop ecx
jmp 0x4a2d48
call fcn.0049dbdc
jmp 0x4a2d48
mov dword [ebx + 8], eax
test edi, edi
je 0x4a2d48
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a82f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
mov ax, 0x202
lea edx, [ebp - 0x190]
push edx
push eax
call sub.WS2_32.DLL_WSAStartup
test eax, eax
jne 0x4a8338
mov cl, byte [ebp - 0x190]
and cl, 0xff
cmp cl, 2
jne 0x4a832e
movzx eax, word [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x4a832e
xor eax, eax
jmp 0x4a8338
call sub.WS2_32.DLL_WSACleanup
mov eax, 0x276c
mov esp, ebp
pop ebp
ret

Function at 0x4a8348
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call fcn.00414b04
pop ecx
push 0x80
lea ecx, [ebp - 0x80]
push ecx
call sub.WS2_32.DLL_gethostname
test eax, eax
jne 0x4a83d5
lea eax, [ebp - 0x80]
push eax
call fcn.0049c15c
pop ecx
inc eax
push eax
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
call fcn.004147a4
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
call sub.WS2_32.DLL_gethostbyname
mov esi, eax
xor ebx, ebx
jmp 0x4a83c8
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx]
push ecx
call sub.WS2_32.DLL_inet_ntoa
mov edi, eax
push edi
call fcn.0049c15c
pop ecx
inc eax
push eax
push edi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call fcn.004147a4
add esp, 0xc
inc ebx
test esi, esi
je 0x4a83d5
mov ecx, dword [esi + 0xc]
cmp dword [ecx + ebx*4], 0
jne 0x4a839e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a83dc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
je 0x4a842e
mov eax, dword [ebp + 0xc]
push eax
call sub.WS2_32.DLL_gethostbyname
mov esi, eax
test esi, esi
je 0x4a842e
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call sub.WS2_32.DLL_inet_ntoa
push esi
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov bl, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a897c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
mov eax, 0x4e5720
call fcn.0049c448
mov word [ebp - 0x1c], 8
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4a89bf
mov word [ebp - 0x1c], 0x20
mov edx, dword [ebp - 4]
push edx
call fcn.0049a014
pop ecx
mov word [ebp - 0x1c], 0x14
mov ecx, dword [ebp - 4]
jmp 0x4a89c2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4a89f1
mov word [ebp - 0x1c], 0x38
mov edx, dword [ebp - 8]
push edx
call fcn.0049a014
pop ecx
mov word [ebp - 0x1c], 0x2c
mov ecx, dword [ebp - 8]
jmp 0x4a89f4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
push 0x4001
push 0x160
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x4e56ec
call sub.SHELL32.DLL_SHGetFileInfoA
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push edx
call fcn.0049a0b0
add esp, 8
lea ecx, [ebp - 0x18c]
push 0x4000
push 0x160
push ecx
push 0
push 0x4e56ed
call sub.SHELL32.DLL_SHGetFileInfoA
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call fcn.0049a0b0
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4a8a64
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
mov ebx, 0x94
push ebx
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.0049c07c
add esp, 0xc
mov dword [ebp - 0x94], ebx
lea edx, [ebp - 0x94]
push edx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x84], 2
sete al
and eax, 1
cmp dword [ebp - 0x90], 5
jne 0x4a8abd
cmp dword [ebp - 0x8c], 1
jne 0x4a8abd
mov eax, 1
jmp 0x4a8ad1
cmp dword [ebp - 0x90], 4
jne 0x4a8ad1
cmp dword [ebp - 0x8c], 0
jne 0x4a8ad1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a8af0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a8b01
mov dword [eax + 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
or edx, 0x4000
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
pop ebp
ret

Function at 0x4a9d70
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call sub.WININET.DLL_InternetGetConnectedState
test eax, eax
setne al
and eax, 1
pop ebp
ret
Function at 0x4ac3a8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x4ac3ff
lea edx, [ebp - 0x10]
push edx
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_CloseHandle
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.USER32.DLL_ExitWindowsEx
mov esp, ebp
pop ebp
ret
Function at 0x4b1418
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x1d], 0
push edi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.00414ee8
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b15c2
push edi
mov edx, dword [ebp - 4]
push edx
call fcn.00415880
add esp, 8
test eax, eax
je 0x4b15bb
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push ebx
call fcn.004b0534
add esp, 0xc
mov esi, eax
test esi, esi
je 0x4b15c2
push edi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.004150fc
add esp, 8
cmp eax, dword [ebx + 0xf8]
jne 0x4b14e5
push esi
mov edx, dword [ebx]
push edx
call fcn.004137fc
add esp, 8
mov edi, eax
push esi
mov eax, dword [ebx]
push eax
call fcn.004138cc
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
push edx
push edi
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x4e5ced
mov eax, dword [ebp + 0x14]
push eax
call sub.SHELL32.DLL_ShellExecuteA
push edi
call fcn.0049b6d4
pop ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0049b6d4
pop ecx
push 1
push esi
push ebx
call fcn.004bd154
add esp, 0xc
jmp 0x4b15ae
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0041627c
add esp, 0x10
test al, al
je 0x4b15ae
push 0
push 0
mov ecx, dword [ebp + 0x18]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004aaeec
add esp, 0x18
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push edx
push esi
push ecx
push eax
mov edx, dword [ebx + 0x9c]
push edx
call fcn.004ab078
add esp, 0x18
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049b6d4
pop ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push edx
push 7
push 1
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9dc4
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9c68
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x45c]
mov eax, dword [ecx]
push eax
call fcn.004965d8
add esp, 0x14
mov edx, dword [ebp - 0x14]
push edx
call fcn.0049b6d4
pop ecx
push esi
call fcn.0049b6d4
pop ecx
mov byte [ebp - 0x1d], 1
jmp 0x4b15c2
push ebx
call fcn.004bc414
pop ecx
mov al, byte [ebp - 0x1d]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2d70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x11], 0
push esi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.00414ee8
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b2f32
push esi
mov edx, dword [ebp - 4]
push edx
call fcn.00415880
add esp, 8
test eax, eax
je 0x4b2f2b
push esi
push eax
call fcn.0048fff0
add esp, 8
mov edi, eax
test edi, edi
je 0x4b2f22
push esi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.004150fc
add esp, 8
cmp eax, dword [ebx + 0xf8]
jne 0x4b2e80
mov edx, dword [ebp + 0x10]
push edx
push edi
call sub.KERNEL32.DLL_SetVolumeLabelA
test eax, eax
je 0x4b2f22
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push edi
call fcn.0049c15c
pop ecx
add eax, 2
push eax
call fcn.0049b898
mov esi, eax
pop ecx
push esi
xor eax, eax
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e5cfc
push esi
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x174]
push pe_nt_image_headers32
push 0x160
push eax
push 0
push esi
call sub.SHELL32.DLL_SHGetFileInfoA
push esi
call fcn.0049b6d4
pop ecx
push edi
lea edx, [ebp - 0x168]
push edx
push ebx
call fcn.004b2970
mov byte [ebp - 0x11], 1
add esp, 0xc
jmp 0x4b2f22
push esi
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x184]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0041627c
add esp, 0x10
test al, al
je 0x4b2f22
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push ecx
push edi
push eax
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004ab278
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push edx
push 0xc
push 1
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9dc4
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9c68
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x45c]
mov eax, dword [ecx]
push eax
call fcn.004965d8
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
call fcn.0049b6d4
pop ecx
push edi
call fcn.0049b6d4
pop ecx
jmp 0x4b2f32
push ebx
call fcn.004bc414
pop ecx
mov al, byte [ebp - 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2f3c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x11], 0
push esi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.00414ee8
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b3102
push esi
mov edx, dword [ebp - 4]
push edx
call fcn.00415880
add esp, 8
test eax, eax
je 0x4b30fb
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push ebx
call fcn.004b0534
add esp, 0xc
mov edi, eax
test edi, edi
je 0x4b30f2
push esi
mov eax, dword [ebx + 0xe0]
push eax
call fcn.004150fc
add esp, 8
cmp eax, dword [ebx + 0xf8]
jne 0x4b3050
mov edx, dword [ebp + 0x14]
push edx
push edi
call sub.KERNEL32.DLL_SetVolumeLabelA
test eax, eax
je 0x4b30f2
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push edi
call fcn.0049c15c
pop ecx
add eax, 2
push eax
call fcn.0049b898
mov esi, eax
pop ecx
push esi
xor eax, eax
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e5cfe
push esi
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x174]
push pe_nt_image_headers32
push 0x160
push eax
push 0
push esi
call sub.SHELL32.DLL_SHGetFileInfoA
push esi
call fcn.0049b6d4
pop ecx
push edi
lea edx, [ebp - 0x168]
push edx
push ebx
call fcn.004b2970
mov byte [ebp - 0x11], 1
add esp, 0xc
jmp 0x4b30f2
push esi
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x184]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0041627c
add esp, 0x10
test al, al
je 0x4b30f2
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push ecx
push edi
push eax
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004ab278
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push edx
push 0xc
push 1
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9dc4
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebx + 0x9c]
push ecx
call fcn.004a9c68
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx + 0x45c]
mov eax, dword [ecx]
push eax
call fcn.004965d8
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
call fcn.0049b6d4
pop ecx
push edi
call fcn.0049b6d4
pop ecx
jmp 0x4b3102
push ebx
call fcn.004bc414
pop ecx
mov al, byte [ebp - 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b97e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push eax
push edi
push ebx
call fcn.004ad474
pop ecx
push eax
push ebx
call fcn.004ad658
add esp, 0x10
test al, al
je 0x4b992b
push 0
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
call fcn.004bbec4
add esp, 0x10
mov eax, dword [ebx + 0xe8]
push eax
call fcn.004c26a4
pop ecx
mov esi, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
mov edx, dword [0x4e5cac]
push edx
lea ecx, [ebp - 0x104]
push ecx
call fcn.0049c255
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4b9892
mov eax, dword [0x4e5cac]
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.0049c120
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call fcn.0049c15c
pop ecx
mov ebx, eax
lea eax, [ebp - 0x104]
add ebx, eax
jmp 0x4b98a1
mov edx, dword [0x4e5cac]
push edx
call fcn.0049c15c
pop ecx
add ebx, eax
push 0xa
lea ecx, [ebp - 0x208]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0049fa64
add esp, 0xc
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e5ded
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.0049c120
add esp, 8
push 0x4e5def
push ebx
call fcn.0049c120
add esp, 8
mov eax, dword [0x4e5cb0]
mov dl, byte [eax]
mov cl, byte [eax + 2]
mov byte [eax], cl
mov byte [eax + 2], dl
push eax
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x104]
push eax
push esi
call sub.USER32.DLL_SetWindowTextA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bda98
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4e7bc8
call fcn.0049c448
mov word [ebp - 0x1c], 8
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4bdadc
mov word [ebp - 0x1c], 0x20
mov edx, dword [ebp - 4]
push edx
call fcn.00412da8
pop ecx
mov word [ebp - 0x1c], 0x14
mov ecx, dword [ebp - 4]
jmp 0x4bdadf
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
push 0x28
call fcn.0049b6f8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4bdb19
mov word [ebp - 0x1c], 0x38
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.004126a0
add esp, 8
mov word [ebp - 0x1c], 0x2c
mov ecx, dword [ebp - 8]
jmp 0x4bdb1c
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
mov dword [eax + 0x40], ecx
mov edx, dword [ebx]
xor eax, eax
mov dword [edx + 8], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x14], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x1c], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x20], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x24], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x28], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x2c], eax
mov edx, dword [ebx]
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret