joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48868a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x234]
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.004aa1b0
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4886fa
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004aa1b0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push ebx
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00404c23
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x48875e
dec eax
jne 0x488773
cmp dword [ebp - 0x74], 4
jbe 0x48873c
cmp dword [ebp - 0x74], 5
jne 0x488727
cmp dword [ebp - 0x70], eax
je 0x48873c
push ebx
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00404c23
add esp, 0x10
jmp 0x48874a
push ebx
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00404c23
add esp, 0xc
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
call fcn.00488381
jmp 0x488770
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9399
add ebp, 0x228
leave
ret 8
Function at 0x489e6a
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 0x610]
push eax
mov edi, 0x200
lea eax, [ebp - 0x78]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004aaf1c
lea eax, [ebp - 0x78]
push eax
call fcn.004a9fb0
lea eax, [ebp + eax - 0x78]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x489eca
mov byte [eax], 0x5c
mov byte [eax + 1], bl
lea eax, [esi + 0xa10]
push eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00404cb7
lea eax, [ebp - 0x78]
push eax
push str._WinNT_bCreateService__szDestName___s_n
push esi
call fcn.0048800f
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x78]
push ecx
xor edi, edi
inc edi
push edi
push 3
push edi
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x489f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CreateService_failed__error_code___d_n
push esi
mov dword [ebp - 0x7c], eax
call fcn.0048800f
mov eax, dword [ebp - 0x7c]
add esp, 0xc
sub eax, 5
je 0x489f44
sub eax, 0x42b
je 0x489f44
dec eax
je 0x489f48
xor edi, edi
jmp 0x489f72
mov dword [ebp - 0x7c], ebx
jmp 0x489f72
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
jne 0x489f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CloseServiceHandle_failed__errorcode___d_n
push esi
mov dword [ebp - 0x7c], eax
call fcn.0048800f
add esp, 0xc
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x188]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9399
add ebp, 0x18c
leave
ret 4

Function at 0x489f96
Capabilities:
Delete service

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push dword [esi + 0x208]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x489fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_dwDeleteService__Openservice_failed__errorcode___d_n
push esi
call fcn.0048800f
add esp, 0xc
jmp 0x48a018
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x489ff9
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__DeleteService_failed__errorcode___d_n
push esi
call fcn.0048800f
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x48a017
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.0048800f
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x48a01e
Capabilities:
Start service

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
push 0xf01ff
lea eax, [edi + 0xb10]
push eax
push dword [edi + 0x208]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [esp + 8], eax
test eax, eax
jne 0x48a06a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._WinNT_bStartService__OpenService_failed__error_code___d_n
push edi
call fcn.0048800f
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
pop edi
mov dword [ecx], esi
pop esi
pop ecx
ret 4
push ebx
push ebp
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x48a0ad
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__StartService_failed__error_code___d_n
push edi
call fcn.0048800f
add esp, 0xc
mov eax, esi
dec eax
dec eax
je 0x48a0ab
sub eax, 0x23f
je 0x48a0ab
sub eax, 0x1df
je 0x48a0d4
dec eax
xor ebx, ebx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x48a0ce
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__CloseServiceHandle_failed__errorcode___d_n
push edi
call fcn.0048800f
add esp, 0xc
pop ebp
mov eax, ebx
pop ebx
jmp 0x48a05e
xor ebx, ebx
xor esi, esi
inc ebx
jmp 0x48a0ad
Function at 0x48a0db
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x48a128
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_dwStopService__OpenService_failed__errorcode___d_n
push esi
call fcn.0048800f
add esp, 0xc
mov eax, edi
jmp 0x48a1ea
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x24]
push eax
push 4
push edi
call ebx
test eax, eax
je 0x48a1a9
push dword [ebp - 0x20]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__status__0x_X_n
push esi
call fcn.0048800f
add esp, 0xc
cmp dword [ebp - 0x20], 1
je 0x48a1c1
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call ebx
test eax, eax
je 0x48a19b
push dword [ebp - 0x20]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__status__0x_X_n
push esi
call fcn.0048800f
add esp, 0xc
cmp dword [ebp - 0x20], 3
jne 0x48a1c1
lea edi, [esi + 0x204]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
call ebx
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__pending__result___d_n
jmp 0x48a1b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__errorcode___d_n
jmp 0x48a1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__failed__errorcode___d_n
mov dword [ebp - 4], eax
push esi
call fcn.0048800f
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
test eax, eax
jne 0x48a1e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__CloseServiceHandle_failed__errorcode___d_n
push esi
mov dword [ebp - 4], eax
call fcn.0048800f
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x48a27b
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 8]
push eax
lea edi, [esi + 0x210]
push edi
xor ebx, ebx
mov dword [ebp - 8], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movzx eax, word [ebp - 0xc]
push edi
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push str._WinNT_bInstallDriver__02d:_02d:_02d__szMachineName___s_n
push esi
call fcn.0048800f
add esp, 0x18
cmp byte [edi], bl
je 0x48a2ce
mov ebx, edi
push 0xf003f
xor edi, edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esi + 0x208], eax
cmp eax, edi
jne 0x48a30a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_bInstallDriver__OpenSCManager_failed__error_code___d_n
push esi
call fcn.0048800f
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edi
xor eax, eax
jmp 0x48a3c7
cmp dword [esi + 0x20c], edi
je 0x48a35b
cmp dword [esi + 0xb5c], edi
je 0x48a322
push dword [esi + 0xd84]
jmp 0x48a338
cmp dword [esi + 0xb60], edi
je 0x48a332
push dword [esi + 0xd88]
jmp 0x48a338
push dword [esi + 0xd80]
mov ecx, esi
call fcn.0048a833
cmp eax, edi
jne 0x48a35b
push str._WinNT_bInstallDriver__Unable_to_extract_driver_file_n
push esi
call fcn.0048800f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [eax], 0x5001
jmp 0x48a303
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00489e6a
mov ebx, eax
cmp ebx, edi
je 0x48a384
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0048a01e
mov ebx, eax
cmp ebx, edi
jne 0x48a384
mov ecx, esi
call fcn.00489f96
mov eax, dword [esi + 0x208]
cmp eax, edi
je 0x48a3ae
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x48a3ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bInstallDriver__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.0048800f
add esp, 0xc
cmp dword [esi + 0x20c], edi
je 0x48a3bd
mov ecx, esi
call fcn.0048a4d8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48a4d8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp + 0x198], eax
and dword [ebp - 0x6c], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esi + 0xa10]
push eax
lea edi, [esi + 0x610]
push edi
push str._s_s
lea eax, [ebp - 0x68]
push 0x200
push eax
call fcn.00404c23
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x48a544
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
movzx eax, word [ebp - 0x74]
push dword [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
push str._bDeleteFile__02d:_02d:_02d__DeleteFile_returned___d__error___d__n
push esi
call fcn.0048800f
lea eax, [esi + 0x410]
push eax
call fcn.004a9fb0
push edi
mov ebx, eax
call fcn.004a9fb0
add esp, 0x24
cmp eax, ebx
jbe 0x48a5b9
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x48a595
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
movzx eax, word [ebp - 0x74]
push ebx
push edi
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
push str._bDeleteFile__02d:_02d:_02d__RemoveDirectory__s_returned___d__error___d__n
push esi
call fcn.0048800f
add esp, 0x20
jmp 0x48a5bc
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004a9399
add ebp, 0x19c
leave
ret
Function at 0x48b259
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x48b2f0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x48b2f0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
jbe 0x48b2e9
push eax
call fcn.00498aad
mov esi, eax
pop ecx
test esi, esi
jne 0x48b298
mov eax, 0x8007000e
jmp 0x48b2f5
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x48b2e2
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x519990
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48b2e2
mov eax, dword [ebp + 8]
test eax, eax
je 0x48b2e2
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.00498aa2
pop ecx
xor eax, eax
jmp 0x48b2f5
push esi
call fcn.00498aa2
pop ecx
mov eax, 0x80004005
jmp 0x48b2f5
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x48c655
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push reloc.OLEAUT32.dll_SysReAllocString
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48c6bd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.EnableFirewall
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c6ae
cmp dword [ebp - 0xc], 4
jne 0x48c6ae
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
je 0x48c6bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x48c74b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.HTTP_shellopencommand
push SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48c779
xor eax, eax
jmp 0x48c7cc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0x51a038
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x48c7b9
cmp dword [ebp - 8], 1
jne 0x48c7b9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x48c7c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x494604
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 2
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x494625
xor eax, eax
jmp 0x4946cc
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x49464a
cmp eax, 0x80010119
je 0x49464a
mov ecx, edi
call fcn.004942de
jmp 0x49461e
lea eax, [edi + 0x20]
push eax
push 0x532bfc
push 1
push esi
push 0x532cbc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x494641
push ebx
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [edi + 0x20]
lea ebx, [edi + 0x1c]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [edi + 0x2c], eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x4946c2
mov eax, dword [ebx]
cmp eax, esi
je 0x4946c2
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x532b2c
push eax
call dword [ecx]
test eax, eax
jl 0x4946c2
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebx]
mov ebx, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
call ebx
test eax, eax
jge 0x4946d2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.004942de
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebp - 4]
call ebx
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jl 0x4946c2
lea ebx, [edi + 0x24]
push ebx
push 0x532c8c
push 1
push esi
push 0x532d2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4946c2
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [edi + 0x28]
push ecx
push 0x532cac
push ebx
call dword [eax]
test eax, eax
jl 0x4946c2
xor eax, eax
inc eax
jmp 0x4946cb
Function at 0x4965fc
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov dword [ebp - 0x18], eax
call esi
push 0x52d0b8
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
push 2
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x496799
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x49666b
cmp eax, 0x80010119
jne 0x49674e
lea eax, [ebp - 4]
push eax
push 0x532bfc
push 1
push esi
push 0x532cbc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x49674e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x49674e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x49674e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xfa0
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], 1
jne 0x49674e
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x38]
push edx
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
mov eax, 0x2011
cmp word [ebp - 0x38], ax
jne 0x49674e
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x49674d
cmp edi, 0x4000
jle 0x496734
push dword [ebx + 0xc]
call fcn.00498aa2
push edi
call fcn.00498aad
pop ecx
pop ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x24]
push edi
push dword [eax + 0xc]
push dword [ebx + 0xc]
call fcn.004aa230
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov word [eax + 6], di
pop edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x49675e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x49676e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x49677e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x49b8ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x49b8de
cmp dword [edi + 0x54], 0
jne 0x49b8de
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0049948d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0049b87b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x49bc9e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x516ffc
call fcn.004ab43d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x49bcc3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x49bd09
lea ecx, [ebp - 0x10]
call fcn.00401980
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049955c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a50
mov eax, esi
call fcn.004ab515
ret 8

Function at 0x4a3a79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a3ac0
call fcn.0049948d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a3ac0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a3adc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a35f1
mov esi, eax
test edi, edi
je 0x4a3ada
test ebx, ebx
je 0x4a3ada
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a3ff2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4a408a
push 0x52fa74
push 4
push eax
call fcn.004aa9b1
push eax
call fcn.004020e0
add esp, 0x10
push ebx
push edi
call fcn.004abf19
mov edi, dword [eax]
call fcn.004abf19
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004ab036
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004abf19
cmp dword [eax], ebx
je 0x4a40a1
call fcn.004abf19
push dword [eax]
call fcn.00499646
pop ecx
jmp 0x4a40a8
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4a4035
jmp 0x4a412f
call fcn.004abf19
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4a412b
cmp dword [ebp - 0x234], esi
jae 0x4a412b
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004aa1b0
add esp, 0xc
push 0x52dc74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4a411a
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4a411a
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4a411a
push ebx
push ebx
push esi
jmp 0x4a4123
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4a412d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a9399
leave
ret

Function at 0x4a9399
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56bbe0]
jne 0x4a93a3
repz ret
jmp fcn.004aefc6