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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c35a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1005f470]
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, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.10023ab5
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10002840
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1002719f
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x1005e2a4
push eax
call fcn.10027d1a
push edi
push esi
call fcn.10023dfd
add esp, 8
mov eax, esi
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.10024cb4
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ba70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c4b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005f470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10024ec4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10023cfa
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c4b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005f470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10024ec4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10023cfa
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10010540
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_Mutex_.0
test edi, edi
je 0x100105a9
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov dword [edi], 0
test ebx, ebx
je 0x100105a0
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
jne 0x100105a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100105a0
push ebx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi], eax
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1013b675
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
push ebx
push eax
push esi
jmp 0x101ec245
ror dword [ebp*2 + 0x14d14441], 1
cmc
push eax
cmp edx, ecx
and edx, dword [0x4bebbb3d]
xor byte [edx + 0x171fc9d6], 0xba
cli
enter 0xffffffffffffd697, 0x5e
std
scasd eax, dword es:[edi]
mov dword [eax], eax
add byte [eax], al
add byte [esi - 0x64], dh
pushfd
push ebp
push edi
call fcn.10107b34
jno 0x101ec220
or dh, byte [ebp + esi*4 - 0x371197ce]
popfd
dec ecx
cmp ecx, edx
xor eax, 0xb5c46b2b
xor eax, 0xd6a71089
push esi
push es
sbb eax, 0x27f44cf
mov ch, 0x9c
invalid
Function at 0x4012cc
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x48edec
push 1
xor esi, esi
push esi
push 0x48eebc
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x401339
push edi
push 0x48a958
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4ce374
push esi
push esi
push esi
push esi
push esi
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x401325
call fcn.00401282
mov dword [0x4c507c], esi
jmp 0x40132f
mov dword [0x4c507c], 1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
jmp 0x401343
mov dword [0x4c507c], 2
pop esi
leave
ret

Function at 0x4017a8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x480760
call fcn.0040f970
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
lea ecx, [ebp + 8]
test eax, eax
mov dword [ebp - 0x10], esp
mov eax, esp
push ecx
je 0x4017e7
push str.file_exists__
push eax
call fcn.004014bb
add esp, 0xc
call fcn.004015c7
mov bl, 1
jmp 0x4017fa
push str.file_does_not_exist__
push eax
call fcn.004014bb
add esp, 0xc
call fcn.004015c7
pop ecx
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401cb3
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4807aa
call fcn.0040f970
mov eax, 0x1074
call fcn.0040f8c0
push ebx
push esi
mov dword [ebp - 4], 1
call fcn.00401c08
lea ecx, [ebp - 0x14]
mov byte [0x4ce3b8], al
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.in_RunIt____s
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
xor ebx, ebx
add esp, 0xc
cmp byte [0x4ce3b8], bl
je 0x401d1c
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004015c7
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x1080]
push 0x808
push eax
call fcn.0040120a
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCR71.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x70], esi
call sub.MSVCR71.dll_memset
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1080]
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401d92
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.failed_to_open_process
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
call fcn.004015c7
pop ecx
push 0x65
pop esi
jmp 0x401e04
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push esi
lea eax, [ebp - 0x10]
push str.return_from_RunIt___i
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
cmp byte [0x4ce3b8], bl
je 0x401dfb
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004015c7
pop ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401e93
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x480760
call fcn.0040f970
sub esp, 0xa4
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00401c08
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Entering_WriteOutput...
mov byte [0x4ce3b8], al
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
call fcn.004015c7
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004015c7
call fcn.00401850
mov esi, 0x80
push esi
lea eax, [ebp - 0xb0]
push edi
push eax
call sub.MSVCR71.dll_memset
xor ebx, ebx
inc ebx
push ebx
push 0x4ce2c0
call fcn.00401b25
push esi
push eax
lea eax, [ebp - 0xb0]
push eax
call sub.MSVCR71.dll_memcpy
push 0x81
push edi
mov edi, 0x4ce2f0
push edi
call sub.MSVCR71.dll_memset
push 0x20
lea eax, [ebp - 0x30]
push edi
push eax
call sub.MSVCR71.dll_memcpy
push 0x48a744
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__wfopen]
mov edi, eax
add esp, 0x44
test edi, edi
je 0x401fa8
push edi
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fwrite]
lea eax, [ebp - 0xb0]
push ebx
push eax
call esi
push edi
push 0x20
lea eax, [ebp - 0x30]
push ebx
push eax
call esi
push edi
push 0x40
push ebx
push 0x4ce378
call esi
add esp, 0x2c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.WriteOutput..._UUID
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
call fcn.004015c7
lea eax, [ebp - 0xb0]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
call fcn.004015c7
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop ecx
xor ebx, ebx
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4064dc
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x480c12
call fcn.0040f970
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x4ce610
mov dword [0x4ce3f0], ebx
mov dword [0x4ce608], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
movsx eax, byte [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x4ce618
push 3
push str._c_c_c
push 0x10000
push esi
call fcn.00402973
mov ecx, dword [0x4ce604]
add esp, 0x18
push 3
push esi
call fcn.00468220
push str.GlobalRR_User_Interface
push ebx
push 0x80100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
cmp edi, ebx
je 0x406631
push 0x48b000
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 4], ebx
je 0x406591
sub eax, 4
je 0x406585
dec eax
je 0x40657c
dec eax
jne 0x4065e9
cmp byte [ebp + 0xc], bl
jne 0x40659b
push 0x7d
jmp 0x406598
cmp byte [ebp + 0xc], bl
jne 0x40659b
push 0x7c
jmp 0x406598
cmp byte [ebp + 0xc], bl
jne 0x40659b
mov esi, 0x80
jmp 0x4065aa
cmp byte [ebp + 0xc], bl
jne 0x40659b
push 0x7e
pop esi
jmp 0x4065aa
xor eax, eax
cmp byte [ebp + 0xc], 1
sete al
lea eax, [eax + eax + 0x77]
mov esi, eax
cmp byte [0x4ce614], bl
jne 0x4065c1
push 0x40
push ebx
push esi
push ebx
call fcn.00467280
add esp, 0x10
jmp 0x4065e9
lea eax, [ebp + 0xc]
push eax
push 0x93
mov ecx, 0x4e31b8
call fcn.00465800
push dword [ebp + 0xc]
push 0x2710
push 0x40
push ebx
push esi
push ebx
call fcn.00457960
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406626
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.SendEndMessage
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x48c67c
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ebx
mov byte [ebp - 4], bl
call fcn.00458010
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x406670
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x406670
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OpenMutex
mov dword [ebp - 4], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.00458010
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov byte [0x4de61c], bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40681d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40687b
cmp dword [ebp + 0x10], 1
je 0x406859
cmp dword [ebp + 0x10], 2
jne 0x406870
test edi, edi
mov eax, dword [ebp - 4]
je 0x406875
test al, 1
jne 0x406870
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x406875
push 0xd
pop eax
jmp 0x40687b
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x406881
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x406eb7
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.00406e36
test eax, eax
jne 0x406ecc
inc eax
jmp 0x406f6f
mov ecx, dword [esi + 0x264]
push ebp
xor ebp, ebp
cmp ecx, ebp
je 0x406ee9
call fcn.0046d1c0
test al, al
je 0x406ee9
xor eax, eax
jmp 0x406f6e
push ebx
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, ebp
jne 0x406f12
push ebp
add esi, 0x38
push esi
push str.Couldnt_open_service_manager
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x406f6d
push edi
push 0x10020
lea edi, [esi + 0x38]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x406f42
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push edi
push str.Couldnt_open_service
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x406f6c
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
xor eax, eax
cmp edi, ebp
setne al
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x1c
ret
Function at 0x4074c4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00403d54
lea eax, [ebp - 0x204]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x34], esi
je 0x407528
add eax, 0x38
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x407536
push esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x407536
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCR71.dll__putws]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40bddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x481354
call fcn.0040f970
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x4c5080]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x424], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x18], ebx
jne 0x40be34
call fcn.004066e7
mov esi, eax
jmp 0x40bf05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x40bed8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x40bed8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
cmp eax, 0x400
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x40be92
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ce8f
jmp 0x40bea5
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x40bea5
cmp dword [ebp - 0x424], edi
mov dword [ebp - 4], 1
jne 0x40bebb
mov esi, 0x8007000e
jmp 0x40befc
call dword [0x4c5080]
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40bedf
call fcn.004066e7
jmp 0x40befa
mov eax, dword [ebp - 0x424]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.0040bf46
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40bf1e
lea ecx, [ebp - 0x424]
call fcn.0040ce85
lea ecx, [ebp - 0x14]
call fcn.0040710b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x40c9d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004067e8
cmp eax, esi
jne 0x40ca4b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40ca14
lea eax, [ebp - 0x210]
push eax
call fcn.0040c9d3
cmp eax, esi
jne 0x40ca4a
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x40ca04
call fcn.00406783
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00406783
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40cd87
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40cd92
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40f648
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x48ed38
call fcn.0040f918
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x40f688
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f688
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f6a0
cmp eax, 0x20b
je 0x40f68d
mov dword [ebp - 0x1c], edi
jmp 0x40f6b4
cmp dword [ecx + 0x84], 0xe
jbe 0x40f688
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40f6ae
cmp dword [ecx + 0x74], 0xe
jbe 0x40f688
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4e43ec], 0xffffffff
or dword [0x4e43f0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4deb28]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4deb24]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4e43e8], eax
call fcn.0040fc34
call fcn.0040fcd4
cmp dword [0x4c51f0], edi
jne 0x40f714
push fcn.0040fcd4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040fcc2
push 0x4c5060
push 0x4c505c
call sub.MSVCR71.dll__initterm
push 0x40fc78
call fcn.0040f88a
mov eax, dword [0x4deb20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4deb1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x40f768
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4c5058
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40f792
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40f84c
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x40f801
cmp ax, di
je 0x40f7a8
cmp dword [ebp - 0x20], edi
jne 0x40f801
mov ax, word [esi]
cmp ax, di
je 0x40f7bd
cmp ax, 0x20
ja 0x40f7bd
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40f7a8
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x40f7d9
movzx eax, word [ebp - 0x54]
jmp 0x40f7dc
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0040d343
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x40f7f9
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40f846
cmp ax, 0x22
jne 0x40f812
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40f792
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040f953
ret