joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490710
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cead2
push eax
mov dword fs:[0], esp
push ebx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x10], 1
call fcn.004906c0
lea ecx, [esp + 0x34]
push ecx
call fcn.004906c0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.msvcp71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0x10
lea ecx, [esp + 0x14]
mov bl, al
mov byte [esp + 0xc], 0
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x495e60
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x238
mov eax, dword [0x4fee70]
mov dword [esp + 0x234], eax
mov eax, dword [0x5135ac]
test eax, eax
jne 0x495f24
push edi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x495f1e
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], 0x224
call sub.kernel32.dll_Module32First
test eax, eax
mov ecx, dword [0x4dead8]
mov edx, dword [0x4deadc]
mov dword [esp + 4], ecx
mov ecx, dword [0x4deae0]
mov dword [esp + 8], edx
mov dl, byte [0x4deae4]
mov dword [esp + 0xc], ecx
mov byte [esp + 0x10], dl
je 0x495f17
push esi
mov esi, dword [sym.imp.kernel32.dll_CompareStringA]
nop
push 0xc
lea eax, [esp + 0xc]
push eax
push 0xc
lea ecx, [esp + 0x44]
push ecx
push 1
push 0x400
call esi
cmp eax, 2
je 0x495f0d
lea edx, [esp + 0x18]
push edx
push edi
call sub.kernel32.dll_Module32Next
test eax, eax
jne 0x495ee0
jmp 0x495f16
mov eax, dword [esp + 0x34]
mov dword [0x5135ac], eax
pop esi
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x5135ac]
pop edi
mov ecx, dword [esp + 0x234]
call fcn.004c0057
add esp, 0x238
ret
Function at 0x496468
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ceef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x15bc]
mov dword [esp + 0x14], 1
call fcn.0049cb60
lea ecx, [esi + 0x1464]
mov byte [esp + 0x14], 0
call fcn.0049d8b0
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x4965ca
push ebx
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x4964d4
mov ecx, dword [esi + 0x1440]
cmp ecx, eax
mov eax, 0x4fc548
ja 0x4964d9
mov eax, 0x51395c
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x4fc4f0
lea ebx, [esi + 0x1c]
call fcn.0049e6c0
add esp, 4
push eax
push ebx
call dword [sym.imp.msvcr71.dll_sprintf]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1438]
not ecx
dec ecx
test eax, eax
mov edi, ecx
je 0x496580
test edi, edi
jle 0x496592
push ebp
mov ebp, 0xffffffe4
mov eax, ebx
sub ebp, esi
mov ecx, dword [esi + 0x1438]
add ecx, 2
mov dword [esi + 0x1438], ecx
mov dl, byte [eax]
add cl, 0x43
xor dl, cl
mov byte [eax], dl
inc eax
lea edx, [eax + ebp]
cmp edx, edi
jl 0x49655d
pop ebp
jmp 0x496592
push ebx
push ebx
lea eax, [esi + 0x1030]
push edi
push eax
call fcn.0049e070
add esp, 0x10
cmp dword [esi + 0x143c], 0x3e7
je 0x4965b0
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebx
add esi, 4
push esi
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x498790
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.004c0110
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
cmp dword [esi], 0xffffffff
je 0x4988fd
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x4987d8
mov ecx, dword [esp + 0x101c]
cmp byte [ecx], 0x21
je 0x4987d8
mov ecx, dword [esi + 0x1440]
cmp ecx, eax
ja 0x4988fd
inc ecx
mov dword [esi + 0x1440], ecx
lea ebp, [esi + 4]
push ebp
mov dword [esp + 0x10], ebp
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x101c]
lea edx, [esp + 0x1020]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.msvcr71.dll_vsprintf]
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov edi, dword [sym.imp.msvcr71.dll_sprintf]
cmp byte [edi], 0xcc
je 0x4988f6
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
cmp byte [eax], 0xcc
je 0x4988f6
xor edx, edx
lea ecx, [esp + 0x14]
mov dx, word [esi + 0x102a]
push ebx
push ecx
xor eax, eax
mov ax, word [esi + 0x1028]
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x1026]
mov dx, word [esi + 0x1024]
push eax
push ecx
push edx
push 0x4fcc84
lea ebx, [esi + 0x1c]
call fcn.0049e6c0
add esp, 4
push eax
push ebx
call edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1438]
not ecx
dec ecx
test eax, eax
mov edi, ecx
je 0x4988be
test edi, edi
jle 0x4988d0
mov ebp, 0xffffffe4
mov eax, ebx
sub ebp, esi
mov ecx, 2
mov edx, dword [esi + 0x1438]
add edx, ecx
mov dword [esi + 0x1438], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [eax + ebp]
cmp edx, edi
jl 0x49889d
mov ebp, dword [esp + 0x10]
jmp 0x4988d0
push ebx
push ebx
lea eax, [esi + 0x1030]
push edi
push eax
call fcn.0049e070
add esp, 0x10
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebp
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1008
ret
push ebp
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1008
ret
Function at 0x498e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
push 0x4fcf5c
call fcn.0049e730
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0x4fcf48
mov esi, eax
call fcn.0049e730
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x498ec9
push 0x4fcf30
call fcn.0049e730
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x498ec9
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x498eb6
jne 0x498ecd
cmp dword [esp + 0x14], 1
jae 0x498ecd
pop edi
mov byte [ebp + 0x1684], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x498f03
cmp eax, 5
mov byte [0x513922], 1
jne 0x498ef7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x498ef7
mov ecx, dword [0x4fc4d8]
lea edx, [ecx + ecx]
mov dword [0x4fc4d8], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x499610
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x49961e
mov al, 1
pop esi
ret
push edi
push 0x4fd1f4
lea edi, [esi + 0x20]
call fcn.0049e730
add esp, 4
push eax
push edi
call fcn.00498790
mov ecx, dword [esi + 0x1604]
lea eax, [esi + 0x1630]
push eax
push ecx
call dword [esi + 0x168c]
mov eax, dword [esi + 0x14]
add esp, 0x10
test eax, eax
mov byte [esi + 0x1c], 0
je 0x49965f
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [esi + 0x162c]
push 0x7d0
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49969e
push 0x4fd1dc
call fcn.0049e730
add esp, 4
push eax
push edi
call fcn.00498790
mov eax, dword [esi + 0x162c]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi + 0x162c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x1628]
test eax, eax
je 0x4996bc
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 0x4fd1c8
mov dword [esi + 0x1688], 0
mov dword [esi + 0x168c], 0
call fcn.0049e730
add esp, 4
push eax
push edi
call fcn.00498790
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x4997e0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x49982b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x49982b
lea edi, [esp + 0x10]
push 0x4fd24c
call fcn.0049e730
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x499893
push 0x4fd240
call fcn.0049e730
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x499893
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x4fd21c
call fcn.0049e730
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00498790
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4998b3
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4998d9
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x4998f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x49993b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x49993b
lea edi, [esp + 0x10]
push 0x4fcfd8
call fcn.0049e730
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4999a3
push 0x4fcfcc
call fcn.0049e730
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4999a3
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x4fd27c
call fcn.0049e730
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00498790
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4999f0
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4999f0
push 0x4fd260
call fcn.0049e730
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00498790
add esp, 8
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x499a10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x513921]
test al, al
je 0x499a23
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1671]
mov dword [ebp - 4], 0
test al, al
je 0x499a4b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x49ad10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cef2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.004a2040
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.004a2110
test al, al
jne 0x49adb2
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
mov eax, dword [0x513924]
test eax, eax
je 0x49adb2
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x4fd978
call fcn.0049e730
mov ecx, dword [0x513924]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00498790
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4fd944
call fcn.0049e730
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x49ae59
cmp dword [esp + 0xc], 2
jne 0x49ae19
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.0049e730
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x49ae88
mov edx, dword [0x513924]
test edx, edx
je 0x49aebf
push ecx
push eax
push 0x4fd92c
call fcn.0049e730
add esp, 4
push eax
mov eax, dword [0x513924]
add eax, 0x20
push eax
jmp 0x49aeb7
mov ecx, dword [0x513924]
test ecx, ecx
je 0x49ae84
push eax
push 0x4fd914
call fcn.0049e730
mov ecx, dword [0x513924]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00498790
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x49aeea
mov edx, dword [0x513924]
test edx, edx
je 0x49aebf
push ecx
push eax
push 0x4fd8fc
call fcn.0049e730
mov edx, dword [0x513924]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.00498790
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.004a2080
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.004a2080
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x49bf50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call dword [sym.imp.msvcr71.dll_wcslen]
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call dword [sym.imp.msvcr71.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x49bfc1
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x4fdc08
call fcn.0049e730
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49c138
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.advapi32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x49c120
push esi
push edi
test eax, eax
jne 0x49c0ee
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call dword [sym.imp.msvcr71.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x49c06b
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call dword [sym.imp.msvcr71.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x49c0ee
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x49c0ee
mov eax, dword [0x513924]
test eax, eax
je 0x49c0d5
lea edx, [esp + 0x1c]
push edx
push 0x4fdbf0
call fcn.0049e730
add esp, 4
push eax
mov eax, dword [0x513924]
add eax, 0x20
push eax
call fcn.00498790
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
test eax, eax
jne 0x49c0ee
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x49c023
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret
Function at 0x49c150
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x4fdc68
xor bl, bl
call fcn.0049e730
add esp, 4
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49c1b1
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x4fdc50
call fcn.0049e730
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x49c1a6
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x49c300
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x49c315
call fcn.0049c4c0
push ebp
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x4fcc64
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
push 0
push 0x4fdcb4
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x150]
push esi
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c473
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp word [esp + 0x14], 0x5a4d
jne 0x49c46c
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x54], 0x4550
jne 0x49c46c
cmp dword [esp + 0x88], 0x80000000
jbe 0x49c46c
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push edi
mov dword [esp + 0x98], 0x10000000
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExA]
push 8
push 0
push esi
call edi
test eax, eax
mov dword [ebx], eax
pop ebp
je 0x49c498
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x240
ret 4
mov eax, dword [esp + 0x250]
push 8
push 0
push eax
mov byte [esi], 0
call edi
xor ecx, ecx
pop edi
test eax, eax
setne cl
mov dword [ebx], eax
pop esi
mov eax, ecx
pop ebx
add esp, 0x240
ret 4
Function at 0x49c930
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x284
push ebx
push esi
lea eax, [esp + 0xa4]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ebx, dword [esp + 0x290]
push ebx
call fcn.0049c670
lea ecx, [esp + 0xa8]
mov esi, eax
push ecx
call fcn.0049c670
add esi, eax
add esp, 8
cmp esi, 0x104
jb 0x49c987
pop esi
xor eax, eax
pop ebx
add esp, 0x284
ret
push ebp
push edi
mov edi, 0x4fcc64
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xb0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push 1
lea eax, [esp + 0xc0]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x49caf7
lea ecx, [esp + 0x78]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x9c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x49caf0
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x49caf0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x49cae4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jne 0x49cae4
lea edx, [esp + 0x10]
lea eax, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push esi
call fcn.0049c6e0
add esp, 0x14
test al, al
je 0x49cae4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.0049c770
add esp, 0x10
push eax
push 0
call ebx
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x49cae4
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x1b8]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push esi
call fcn.0049c800
add esp, 0x18
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x284
ret