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

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b918b
cmp byte [ebx + 0xd3], 0
jne 0x4b918b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407904
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b9178
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b9198
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004077c8
jmp 0x4b9198
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004077c8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ba9c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4baa2e
mov eax, esi
call fcn.00492e38
test al, al
je 0x4baa2e
mov eax, dword [ebx + 0x84]
call fcn.00492a8c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4baa2e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4baa22
push 0
mov eax, dword [ebx + 0x84]
call fcn.00492a8c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00489a60
jmp 0x4baa2e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ba7f8
pop esi
pop ebx
ret

Function at 0x4bc22c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bc273
push dword fs:[eax]
mov dword fs:[eax], esp
nop
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004bc180
mov eax, dword [ebp - 4]
call fcn.00407854
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc27a
lea eax, [ebp - 4]
call fcn.004077b8
ret

Function at 0x4bc280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
nop
mov eax, ebx
call fcn.00407854
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bc29a
test al, 0x10
je 0x4bc29e
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4bc2d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
nop
mov eax, ebx
call fcn.00407854
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bc2ef
test al, 0x10
je 0x4bc2ef
test ah, 4
je 0x4bc2f3
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4bc2f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004077b0
xor eax, eax
push ebp
push 0x4bc3ee
push dword fs:[eax]
mov dword fs:[eax], esp
nop
lea eax, [ebp - 4]
call fcn.00408264
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.00407904
cmp dword [ebp + 0xc], 0
je 0x4bc378
mov eax, dword [ebp + 0xc]
call fcn.00407854
push eax
push ebx
mov eax, edi
call fcn.0040826c
push eax
mov eax, dword [ebp - 4]
call fcn.00407854
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407854
push eax
mov eax, dword [ebp - 8]
call fcn.00407854
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x4bc3a3
push ebx
mov eax, edi
call fcn.0040826c
push eax
mov eax, dword [ebp - 4]
call fcn.00407854
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407854
push eax
mov eax, dword [ebp - 8]
call fcn.00407854
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x4bc3b5
mov eax, dword [edi]
call fcn.00407854
call fcn.00413524
mov esi, eax
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x4bc3c6
cmp ebx, 0x10000
jl 0x4bc3d1
mov eax, edi
mov edx, esi
call fcn.00407b3c
jmp 0x4bc3d8
add ebx, ebx
jmp 0x4bc331
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc3f5
lea eax, [ebp - 4]
call fcn.004077b8
ret

Function at 0x4bc4c4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4bc50e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00407854
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00407854
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00407854
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x4bc532
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00407854
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00407854
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bc5a4
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
nop
mov word [esp], 0
test ebx, ebx
je 0x4bc5e3
mov eax, ebx
call fcn.00407854
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x4bc614
push 0
mov eax, esi
call fcn.00407854
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x4bc601
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x4bc614
push 0
mov eax, esi
call fcn.00407854
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4bc9e8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bca80
push dword fs:[eax]
mov dword fs:[eax], esp
nop
test esi, esi
jne 0x4bca34
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407904
jmp 0x4bca6a
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x4bca4d
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040781c
jmp 0x4bca60
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004bc834
mov ebx, eax
test esi, esi
je 0x4bca60
dec esi
jmp 0x4bca3b
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004077c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bca87
lea eax, [ebp - 4]
call fcn.004077b8
ret

Function at 0x4bce64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
nop
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.004138e4
add esp, 0x208
pop ebx
ret

Function at 0x4bce90
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
nop
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.004138e4
add esp, 0x208
pop ebx
ret

Function at 0x4bcf68
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bcfe8
push dword fs:[eax]
mov dword fs:[eax], esp
nop
test bl, bl
je 0x4bcfc4
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x4bcfc4
lea eax, [ebp - 8]
call fcn.004bce90
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004bb98c
lea eax, [ebp - 4]
mov edx, 0x4bd004
call fcn.00407bd4
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.004bbdb8
jmp 0x4bcfcd
mov eax, esi
xor edx, edx
call fcn.004077c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcfef
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077c0
ret
Function at 0x4bd260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4bd399
push dword fs:[eax]
mov dword fs:[eax], esp
nop
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4bd383
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x4bd2be
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4bd383
cmp dword [ebp - 0x18], 0
jne 0x4bd2d5
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.004077c8
mov bl, 1
jmp 0x4bd383
cmp dword [ebp - 0x18], 0x70000000
jb 0x4bd2e3
call fcn.004171ec
mov esi, dword [ebp - 0x18]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407904
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.0040826c
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x4bd287
test eax, eax
jne 0x4bd383
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x4bd331
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4bd383
mov esi, dword [ebp - 0x18]
shr esi, 1
jmp 0x4bd339
dec esi
test esi, esi
je 0x4bd348
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x4bd338
cmp dword [ebp - 0x14], 7
jne 0x4bd353
test esi, esi
je 0x4bd353
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00407b3c
cmp dword [ebp - 0x14], 7
jne 0x4bd376
test esi, esi
je 0x4bd376
lea eax, [ebp - 4]
call fcn.0040826c
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004077c8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd3a0
lea eax, [ebp - 4]
call fcn.004077b8
ret

Function at 0x4bd3c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
nop
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x4bd441
test esi, esi
je 0x4bd3f2
cmp word [esi], 0
jne 0x4bd441
mov eax, dword [0x55a4bc]
cmp dword [eax], 2
je 0x4bd441
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x4bd42f
cmp edi, 0xea
jne 0x4bd441
test edi, edi
jne 0x4bd43e
cmp word [esp], 0
jne 0x4bd43e
mov bl, 1
jmp 0x4bd441
inc esi
jmp 0x4bd400
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bd4ac
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
nop
cmp al, 2
je 0x4bd4c1
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x5602bc], 0
jne 0x4bd4e4
push 0x4bd508
push 0x4bd528
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040c7d4
mov dword [0x5602bc], eax
cmp dword [0x5602bc], 0
je 0x4bd4fe
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x5602bc]
jmp 0x4bd503
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x4bd544
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4bd6b8
push dword fs:[eax]
mov dword fs:[eax], esp
nop
cmp dword [ebp - 0x10], 0
je 0x4bd579
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x4bd583
mov ebx, 0x57
jmp 0x4bd6a2
mov eax, dword [0x55a4bc]
cmp dword [eax], 2
jne 0x4bd691
push 0
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.004bd484
test eax, eax
jne 0x4bd691
xor eax, eax
push ebp
push 0x4bd68a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00407904
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4bd5de
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.0040826c
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x4bd649
mov edi, dword [ebp - 4]
test edi, edi
je 0x4bd619
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x4bd673
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4bd638
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407904
jmp 0x4bd5d2
test esi, esi
jne 0x4bd673
mov eax, dword [ebp - 4]
call fcn.00407854
mov ecx, eax
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 5]
call fcn.004bd544
test eax, eax
je 0x4bd5d2
inc dword [ebp - 0x18]
jmp 0x4bd5d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd691
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.004bd4ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd6bf
lea eax, [ebp - 4]
call fcn.004077b8
ret
Function at 0x4bd754
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
nop
mov eax, dword [0x55a4bc]
cmp dword [eax], 2
je 0x4bd772
mov byte [ebp - 1], 1
jmp 0x4bd940
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x5591a8
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x4bd940
xor eax, eax
push ebp
push 0x4bd939
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x4bd7d4
push 0x4bd94c
push 0x4bd978
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040c7d4
mov ebx, eax
test ebx, ebx
je 0x4bd7fb
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x4bd922
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x4bd922
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x4bd84c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
je 0x4bd82d
call fcn.00405ed4
jmp 0x4bd940
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4bd84c
call fcn.00405ed4
jmp 0x4bd940
xor eax, eax
push ebp
push 0x4bd91b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4bd88f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x4bd88f
call fcn.00405ed4
call fcn.00405ed4
jmp 0x4bd940
mov eax, dword [ebp - 0x14]
call fcn.0040426c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4bd8c1
call fcn.00405ed4
call fcn.00405ed4
jmp 0x4bd940
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x4bd8fc
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4bd8f8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x4bd8f8
mov byte [ebp - 1], 1
jmp 0x4bd8fc
inc ebx
dec esi
jne 0x4bd8ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd922
mov eax, dword [ebp - 0x18]
call fcn.00404288
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd940
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be414
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4be4bc
push dword fs:[eax]
mov dword fs:[eax], esp
nop
mov eax, dword [0x55a4bc]
cmp dword [eax], 2
jne 0x4be458
push 1
mov eax, esi
call fcn.00407854
push eax
mov eax, edi
call fcn.00407854
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4be4a6
mov eax, esi
call fcn.00407854
mov edx, eax
lea eax, [ebp - 4]
call fcn.00407984
mov eax, dword [ebp - 4]
call fcn.00407854
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4be48b
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
jne 0x4be4a6
mov eax, esi
call fcn.00407854
push eax
mov eax, edi
call fcn.00407854
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be4c3
lea eax, [ebp - 4]
call fcn.004077b8
ret
Function at 0x4cc360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x4cc510
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.004caf74
pop ecx
test al, al
jne 0x4cc3a7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004cc644
xor ebx, ebx
jmp 0x4cc510
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x4cc3c5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004cc644
xor ebx, ebx
jmp 0x4cc510
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.004e3f4c
test eax, eax
jne 0x4cc3fc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004cc644
xor ebx, ebx
jmp 0x4cc510
test byte [edi + 4], 1
je 0x4cc509
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.004caf74
pop ecx
test al, al
jne 0x4cc430
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004cc644
xor ebx, ebx
jmp 0x4cc510
mov edx, dword [0x4c82d4]
mov eax, 0xc
call fcn.00408a20
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cc4db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004070b0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00406e44
mov edx, dword [ebp - 4]
call fcn.004caf74
pop ecx
test al, al
jne 0x4cc49e
mov edx, dword [0x4c82d4]
mov eax, dword [ebp - 8]
call fcn.00408a34
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004cc644
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cc510
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004c1da0
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.004c21b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cc509
dec esi
jne 0x4cc37e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d7acd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004c2498
mov eax, dword [ebp - 4]
call fcn.004c1da0
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 0xc]
dec ebx
cmp ebx, 0
jl 0x4d7ab4
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jne 0x4d7aae
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00406d48
je 0x4d7ab7
dec ebx
cmp ebx, 0xffffffff
jne 0x4d7a91
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7ad4
lea eax, [ebp - 4]
call fcn.004065a8
ret
Function at 0x4e98a4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e98f0
cmp dword [ebp - 0x104], 2
jne 0x4e98f0
cmp dword [ebp - 0x110], 5
ja 0x4e98ee
cmp dword [ebp - 0x110], 5
jne 0x4e98f0
cmp dword [ebp - 0x10c], 1
jb 0x4e98f0
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e98f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004138e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ec50c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004138e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4efff4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004138e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f0670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004138e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f06a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4f07bc
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x56054c]
cmp dword [0x560548], 0
jne 0x4f0797
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x4f0797
lea eax, [ebp - 8]
call fcn.004f0670
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004bb98c
lea eax, [ebp - 4]
mov edx, 0x4f07d8
call fcn.00407bd4
mov eax, dword [ebp - 4]
call fcn.00407854
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x560548], eax
cmp dword [0x560548], 0
je 0x4f0797
push 0x4f07f4
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x56052c], eax
push 0x4f0814
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x560530], eax
push 0x4f083c
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x560534], eax
push 0x4f0850
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x560538], eax
push 0x4f0868
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x56053c], eax
push 0x4f087c
mov eax, dword [0x560548]
push eax
call fcn.0040c7d4
mov dword [0x560540], eax
cmp dword [0x560548], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f07c3
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077c0
ret