joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b49d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x4b4a70
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4b49fa
mov eax, dword [edi + 0x30]
push eax
push 0
mov ecx, edi
call fcn.004b5140
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x4b4a4e
test esi, esi
js 0x4b4a79
cmp esi, dword [edi + 0xc]
jge 0x4b4a79
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x4b4a40
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x4b4a12
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4b6cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x580124]
xor eax, esp
mov dword [esp + 0x838], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b6dcf
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004e8ae0
push 0x800
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 0x30
push 0
push eax
mov dword [esp + 0x34], 0x400000
call fcn.004e8ae0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Q360SoftMgrMsgDelegateWnd_d
lea eax, [esp + 0x40]
push 0x400
push eax
call fcn.0048fd40
add esp, 0x10
mov dword [esp + 0x10], 0x4b70f0
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b6de7
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret
Function at 0x4b87f0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x577f98
push 0x4ec5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x4b8834
mov dword [edx], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test edi, edi
je 0x4b89a3
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x4b89a3
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4b88ad
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4b88ad
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
cmovne ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x4b8951
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x20], edi
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4b8924
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4b8924
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b8924
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4b8924
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x4b891c
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x4b8929
mov edi, 0xd
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b8956
mov edi, 0xd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b8964
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b8974
push eax
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4b897f
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4b89a3
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b89c0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x577fb8
push 0x4ec5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp dword [sym.imp.KERNEL32.dll_CreateFileW], eax
je 0x4b8a25
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], eax
je 0x4b8a25
cmp dword [ebp + 8], 2
jae 0x4b8a39
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x2c], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4b8aa2
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4b8aa2
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x24], ebx
xor eax, eax
test ebx, ebx
cmovne eax, ebx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b8b5b
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b8b59
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
test ecx, ecx
je 0x4b8b59
mov dword [ebp - 4], esi
movzx esi, word [ecx]
mov dword [ebp - 0x2c], esi
lea eax, [esi*2 + 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jbe 0x4b8b04
mov esi, edx
shr esi, 1
sub esi, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 1
jmp 0x4b8b0b
mov dword [ebp - 0x1c], 0
push esi
push ecx
push dword [ebp + 0xc]
call fcn.004e8560
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + eax], 0x58324546
cmp dword [ebp - 0x1c], 0
je 0x4b8b2b
mov word [eax], si
mov esi, 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b8b5b
xor esi, esi
test ebx, ebx
je 0x4b8b66
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4b8b73
push edi
call ebx
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b8b7e
push eax
call ebx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd290
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4bd2c7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004e8ae0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x4bd2fa
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4bd30a
push esi
push 0x562f08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x854]
push 0
push eax
call fcn.004e8ae0
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x828], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x814]
mov dword [ebp - 0x858], 0x44
movups xmmword [ebp - 0x814], xmm0
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x82c], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4bd2b2
cmp dword [ebp + 0x10], 0
je 0x4bd399
push dword [ebp + 0x14]
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x814]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x810]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4c11
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4bd3d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x4bd49d
mov eax, dword [0x564794]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.004e8ae0
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4bd49d
cmp dword [ebp + 0x10], 0
je 0x4bd47c
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4c11
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c3b40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549124
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x5832d0]
test esi, esi
jne 0x4c3ba5
push 0x138
call fcn.004e4542
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4c3b96
mov ecx, eax
call fcn.004c3400
mov esi, eax
jmp 0x4c3b98
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5832d0], esi
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c3c62
push 1
mov ecx, esi
call fcn.0042a090
push 0xa8
call fcn.004e4542
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4c3be5
mov ecx, eax
call fcn.0041f370
mov edi, eax
jmp 0x4c3be7
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0041f000
push 2
mov ecx, edi
call fcn.0041fcc0
movaps xmm0, xmmword [0x54dfb0]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.0041fdf0
push edi
mov ecx, esi
call fcn.0042a0b0
push 0
mov ecx, esi
call fcn.004288e0
movaps xmm0, xmmword [0x54dfc0]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocStringLen
push 0x562f5c
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00427050
push 1
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0042a1a0
push eax
call fcn.0046d1c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret
Function at 0x4c7850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549696
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4c78fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4c78fc
call fcn.00496780
mov esi, eax
jmp 0x4c79ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4c791f
call fcn.00496780
jmp 0x4c79df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4c793d
call fcn.00496780
jmp 0x4c79df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4c795e
mov esi, 0x8007000e
jmp 0x4c79e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004c6690
jmp 0x4c7988
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4c799f
mov esi, 0x8007000e
jmp 0x4c79e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4c79bf
call fcn.00496780
jmp 0x4c79df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004c76f0
mov esi, eax
test edi, edi
je 0x4c79ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4c7a10
lea ecx, [ebp - 0x418]
call fcn.004c6bf0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c8b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4c8b99
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8ba5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4c8ba0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c8be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c8bf5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8c00
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5283c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00527fcc

Function at 0x5283d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052814d

Function at 0x53132e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00530b08

Function at 0x531339
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00530d43

Function at 0x5317a5
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053152c
Function at 0x40206c
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x460282
call fcn.00456faa
push dword [ebp + 8]
lea eax, [ebp + 8]
xor ebx, ebx
push eax
inc ebx
call fcn.00405099
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4020b1
lea edx, [eax - 1]
test edx, edx
jl 0x4020c1
cmp edx, eax
jg 0x4020c1
cmp word [ecx + edx*2], 0x5c
je 0x4020b1
push 0x5c
lea eax, [ebp + 8]
call fcn.00405058
push 0x5c
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0040502d
mov esi, eax
jmp 0x402116
push 0x80070057
call fcn.00405399
mov ecx, esi
lea edx, [ebp - 0x10]
lea eax, [ebp + 8]
call fcn.00404ff1
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4020ff
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402130
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esi + 1]
push 0x5c
lea esi, [ebp + 8]
call fcn.0040502d
mov esi, eax
lea eax, [edi - 0x10]
call fcn.00404929
cmp esi, 0xffffffff
jne 0x4020cb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404929
mov eax, ebx
call fcn.00457082
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402143
call fcn.0040535f
mov esi, eax
jmp 0x402148
mov esi, 0x80004005
lea eax, [edi - 0x10]
call fcn.00404929
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404929
mov eax, esi
jmp 0x402128

Function at 0x402606
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402684
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x50
jb 0x40267a
push edi
lea eax, [ebp - 4]
push eax
push 0x50
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40267a
cmp dword [ebp - 4], 0x50
jne 0x40267a
cmp dword [esi], 0x424b4c48
jne 0x40267a
cmp dword [esi + 0x18], ebx
jne 0x40267a
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x40267a
mov ecx, dword [esi + 0x28]
add ecx, eax
cmp ecx, ebx
ja 0x40267a
inc edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
leave
ret 4
Function at 0x40282e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
jne 0x40283d
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4028b0
push eax
call fcn.004567b5
mov esi, eax
test esi, esi
pop ecx
je 0x4028b0
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4028a9
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x467230
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4028a9
mov eax, dword [ebp + 8]
test eax, eax
je 0x4028a9
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push esi
mov dword [edi + 4], ecx
mov dword [edi], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
jmp 0x4028b2
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
pop esi
leave
ret
Function at 0x403d1c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [edx]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x4675e8
push dword [eax]
call dword [sym.imp.MSVCR80.dll_swscanf]
mov eax, dword [edi]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push 0x4675f0
push eax
call esi
add esp, 0x14
test eax, eax
jne 0x403d73
cmp ebx, dword [ebp + 8]
sbb eax, eax
neg eax
jmp 0x403df9
mov eax, dword [edi]
push 0x4675f4
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x403d8b
cmp dword [ebp + 8], ebx
sbb eax, eax
inc eax
jmp 0x403df9
mov eax, dword [edi]
push 0x4675fc
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x403da0
cmp dword [ebp + 8], ebx
jmp 0x403d6a
mov eax, dword [edi]
push 0x467600
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x403db5
cmp ebx, dword [ebp + 8]
jmp 0x403d86
mov eax, dword [edi]
push 0x467608
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x403df1
mov eax, dword [edi]
push 0x46760c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x403df1
mov edi, dword [edi]
push 0x467614
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x403ded
cmp ebx, dword [ebp + 8]
setne al
jmp 0x403df9
xor eax, eax
jmp 0x403df9
xor eax, eax
cmp ebx, dword [ebp + 8]
sete al
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4041ef
Capabilities:
Check if file exists

Disassembly:
push 0x88
mov eax, 0x45f38a
call fcn.00456fdd
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40428b
cmp dword [ebp + 0xc], edi
je 0x40428b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40428b
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x40427c
push dword [ebp + 0xc]
lea esi, [ebp - 0x94]
call fcn.004045aa
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x404264
push dword [ebp - 0x94]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
add eax, eax
cmp esi, edi
pop ecx
je 0x40427c
push eax
push dword [ebp + 0x10]
call esi
pop ecx
pop ecx
cmp dword [ebp + 8], 0
je 0x40428b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
call fcn.00457082
ret

Function at 0x4042d3
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov eax, dword [esi + 0x1c]
push 0x467710
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x404312
cmp dword [0x483888], 0
jne 0x404312
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404312
mov eax, dword [esi + 0x1c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [0x483888], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x10
call fcn.00404929
mov ecx, esi
jmp fcn.0044b971