joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465cc0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
call fcn.00455ba0
mov ebx, dword [ebp + 8]
push 0x40
push 0
push ebx
call fcn.004ff750
push 0x88
call fcn.004f69f2
mov edi, eax
add esp, 0x10
test edi, edi
je 0x465dde
push esi
push 0x40
lea esi, [edi + 0x48]
mov dword [edi], vtable.CMemInfo.0
push 0
push esi
call fcn.004ff750
add esp, 0xc
mov dword [esi], 0x40
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x54]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x50]
mov dword [edi + 0x14], ecx
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x58]
mov dword [edi + 0x1c], ecx
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x24], ecx
mov ecx, dword [edi + 0x6c]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x68]
mov dword [edi + 0x2c], ecx
mov ecx, dword [edi + 0x74]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x70]
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x78]
mov dword [edi + 0x3c], ecx
mov ecx, dword [edi + 0x84]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x80]
mov dword [edi + 0x44], ecx
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
mov dword [ebx + 0x3c], ecx
mov ecx, edi
mov dword [ebx + 0x38], eax
mov eax, dword [edi]
push 1
call dword [eax]
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret
push 0x40
push 0x63f160
push 0x2d
call fcn.00456de0
push eax
push 0x6419e0
call fcn.00432fe0
add esp, 0x14
xor eax, eax
pop edi
pop ebx
pop ebp
ret
Function at 0x469050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x100
push 0
push eax
call fcn.004ff750
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x108], eax
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x469103
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4690c0
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp + 0x14]
jae 0x469103
lea eax, [ebp - 0x104]
mov ecx, eax
sub ebx, ecx
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [ebx + eax - 2], cx
test cx, cx
jne 0x4690e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x469b60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push 0x589ab4
call esi
mov edi, eax
test edi, edi
jne 0x469b93
push 0x589ad0
call esi
push str.AMD_ADL_not_found_n
mov edi, eax
call fcn.00455a00
add esp, 4
test edi, edi
je 0x469d62
push str.Opened_AMD_ADL_n
call fcn.00455a00
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push str.ADL_Adapter_NumberOfAdapters_Get
push edi
call esi
push str.ADL_Main_Control_Create
push edi
mov dword [0x1b2e51c], eax
call esi
push str.ADL_Adapter_AdapterInfo_Get
push edi
mov dword [0x1b2e520], eax
call esi
push str.ADL_Adapter_Active_Get
push edi
mov dword [0x1b2e524], eax
call esi
push str.ADL_Display_PowerXpressVersion_Get
push edi
mov dword [0x1b2e528], eax
call esi
push str.ADL_Display_PowerXpressActiveGPU_Get
push edi
mov dword [0x1b2e52c], eax
call esi
push str.ADL_ApplicationProfiles_HitLists_Get
push edi
mov dword [0x1b2e530], eax
call esi
push str.ADL_Adapter_Crossfire_Get
push edi
mov dword [0x1b2e534], eax
call esi
push str.ADL_Adapter_Crossfire_Caps
push edi
mov dword [0x1b2e538], eax
call esi
push str.ADL_GRAPHICS_PLATFORM_GET
push edi
mov dword [0x1b2e53c], eax
call esi
cmp dword [0x1b2e51c], 0
mov dword [0x1b2e540], eax
je 0x469c8f
cmp dword [0x1b2e520], 0
je 0x469c8f
cmp dword [0x1b2e524], 0
je 0x469c8f
cmp dword [0x1b2e528], 0
je 0x469c8f
cmp dword [0x1b2e52c], 0
je 0x469c8f
cmp dword [0x1b2e530], 0
je 0x469c8f
cmp dword [0x1b2e534], 0
je 0x469c8f
cmp dword [0x1b2e538], 0
je 0x469c8f
cmp dword [0x1b2e53c], 0
je 0x469c8f
test eax, eax
jne 0x469c8a
push str.AMD_ADL___ADL_Graphics_Platform_Get_failed_n
call fcn.00455a00
add esp, 4
pop edi
mov al, 1
pop esi
ret
push str.AMD_ADL___a_function_failed_to_load_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e51c], 0
jne 0x469cb2
push str.AMD_ADL___ADL_Adapter_NumberOfAdapters_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e520], 0
jne 0x469cc8
push str.AMD_ADL___ADL_Main_Control_Create_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e524], 0
jne 0x469cde
push str.AMD_ADL___ADL_Adapter_AdapterInfo_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e528], 0
jne 0x469cf4
push str.AMD_ADL___ADL_Adapter_Active_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e52c], 0
jne 0x469d0a
push str.AMD_ADL___ADL_Display_PowerXpressVersion_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e530], 0
jne 0x469d20
push str.AMD_ADL___ADL_Display_PowerXpressActiveGPU_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e534], 0
jne 0x469d36
push str.AMD_ADL___ADL_ApplicationProfiles_HitLists_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e538], 0
jne 0x469d4c
push str.AMD_ADL___ADL_Adapter_Crossfire_Get_failed_n
call fcn.00455a00
add esp, 4
cmp dword [0x1b2e53c], 0
jne 0x469d62
push str.AMD_ADL___ADL_Adapter_Crossfire_Caps_failed_n
call fcn.00455a00
add esp, 4
pop edi
xor al, al
pop esi
ret
Function at 0x475d80
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5c9d30
push fcn.004ff8f0
mov eax, dword fs:[0]
push eax
sub esp, 0xa58
mov eax, dword [0x639ac0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa60], 0
push 0x800
push 0
lea eax, [ebp - 0xa5c]
push eax
call fcn.004ff750
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004ff750
push 0x200
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004ff750
add esp, 0x24
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x5c]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x475e10
lea edi, [ebp - 0x5c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x475e25
mov eax, dword [0x56a7e4]
mov dword [edi], eax
push 0x100
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475e57
sub ecx, edx
sar ecx, 1
jne 0x475e9b
call fcn.00455b90
test al, al
je 0x475f15
lea eax, [ebp - 0x5c]
push eax
push 0x58f018
lea eax, [ebp - 0xa5c]
push eax
call fcn.00432fe0
lea eax, [ebp - 0xa5c]
push eax
call fcn.00455a00
add esp, 0x10
jmp 0x475f15
lea ecx, [ecx*2 - 2]
cmp ecx, 0x200
jae 0x476020
xor eax, eax
mov word [ebp + ecx - 0x25c], ax
push eax
push eax
push 3
push eax
push 3
push closesocket
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xa68], edi
cmp edi, 0xffffffff
jne 0x475f35
call fcn.00455b90
test al, al
je 0x475f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push eax
push str.GetVolumeExtents____s_CreateFile_failed___d_
lea eax, [ebp - 0xa5c]
push eax
call fcn.00432fe0
lea eax, [ebp - 0xa5c]
push eax
call fcn.00455a00
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xa60]
push eax
push 0x2000
push esi
push 0
push 0
push 0x70050
push edi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call esi
mov dword [ebp - 0xa64], eax
push 0
lea eax, [ebp - 0xa60]
push eax
push 0x200
push ebx
push 0
push 0
push 0x560000
push edi
call esi
mov esi, eax
mov dword [ebp - 0xa64], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x475fdd
test edi, edi
je 0x475fe8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00455b90
test al, al
je 0x476019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.bResult___d__Last_err:__d_
lea eax, [ebp - 0xa5c]
push eax
call fcn.00432fe0
lea eax, [ebp - 0xa5c]
push eax
call fcn.00455a00
add esp, 0x14
mov eax, esi
jmp 0x475f17
call fcn.004f67fd
int3
Function at 0x4bfc30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0xc]
shld ecx, eax, 1
push ebx
mov ebx, dword [ebp + 8]
add eax, eax
cmp edx, ecx
jb 0x4bfc6a
ja 0x4bfc51
cmp ebx, eax
jbe 0x4bfc6a
sub ebx, eax
mov eax, dword [ebp + 0x30]
sbb edx, ecx
mov ecx, dword [ebp + 0x28]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x2c]
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
xor ecx, ecx
bts ecx, eax
push esi
xor esi, esi
cmp eax, 0x20
push edi
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov dword [ebp + 0x24], ecx
mov eax, 0x3f
cmovae esi, ecx
mov ecx, dword [ebp + 0x10]
sub eax, ecx
mov dword [ebp - 4], esi
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov eax, ebx
cmovae edi, esi
add esi, 0xffffffff
adc edi, 0xffffffff
inc ecx
call fcn.004f7860
mov ecx, dword [ebp + 0x10]
and eax, esi
and edx, edi
call fcn.004f7b60
mov esi, dword [ebp + 0x24]
mov edi, eax
mov ecx, dword [ebp - 4]
add esi, 0xffffffff
mov eax, dword [ebp + 0x30]
adc ecx, 0xffffffff
and esi, ebx
and ecx, dword [ebp + 0xc]
or edi, esi
or edx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax], edi
pop edi
mov dword [eax + 4], edx
pop esi
je 0x4bfd2b
mov eax, dword [ebp + 0x24]
xor edx, edx
or eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
and eax, ebx
or ecx, dword [ebp + 0x1c]
and dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
xor eax, eax
movq xmm1, qword [ebp + 8]
movd xmm0, eax
inc eax
psrlq xmm1, xmm0
movd ecx, xmm1
and ecx, 1
xor edx, ecx
cmp eax, 0x3f
jl 0x4bfd02
mov eax, dword [ebp + 0x2c]
and edx, 1
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
movq xmm1, qword [ebp + 8]
movd xmm0, dword [ebp + 0x10]
mov eax, dword [ebp + 0x2c]
psrlq xmm1, xmm0
pop ebx
movd ecx, xmm1
and ecx, 1
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d40a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00455b90
mov esi, dword [ebp + 0xc]
test al, al
je 0x4d40d0
push dword [ebp + 0x10]
push esi
push str.Install_driver___s____s_
push 0x1b2dd00
call fcn.00432fe0
push 0x1b2dd00
call fcn.00455a00
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push 1
push 3
push 1
push 0xf01ff
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4d412a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00455b90
test al, al
je 0x4d4125
push esi
push str.Install_driver_directio.sys_driver_failed:_CreateService___u_
push 0x1b2dd00
call fcn.00432fe0
push 0x1b2dd00
call fcn.00455a00
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4d4700
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.00455b90
mov esi, dword [ebp + 0xc]
test al, al
je 0x4d472e
push esi
push str.DEBUG:_RemoveDriver:__s
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0xf01ff
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4d4776
call fcn.00455b90
test al, al
je 0x4d4770
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Remove_directio.sys_driver___s__failed:_OpenService___u_
push 0x1b2dd00
call fcn.00432fe0
push 0x1b2dd00
call fcn.00455a00
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test esi, esi
jne 0x4d47af
call fcn.00455b90
test al, al
je 0x4d47af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DEBUG:_StopDriver____DeleteService_failed:__d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4d47c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00455b90
mov edi, dword [ebp + 0xc]
test al, al
je 0x4d47f0
push edi
push str.DEBUG:_StartDriver:__s
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0xf01ff
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4d483d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00455b90
test al, al
je 0x4d4834
push esi
push edi
push str.Load_directio.sys_driver___s__failed:_OpenService___u_
push 0x1b2dd00
call fcn.00432fe0
push 0x1b2dd00
call fcn.00455a00
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
jne 0x4d489b
call fcn.00455b90
mov esi, dword [ebp - 4]
test al, al
je 0x4d4881
push esi
push edi
push str.Load_directio.sys_driver___s__failed:_StartService___u_
push 0x1b2dd00
call fcn.00432fe0
push 0x1b2dd00
call fcn.00455a00
add esp, 0x14
cmp esi, 0x420
je 0x4d489b
push ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d49a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00455b90
test al, al
je 0x4d49df
push esi
push str.DEBUG:_UnloadDeviceDriver:__s
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
test edi, edi
jne 0x4d4a2b
push str.OpenSCManager_failed___schSCManager_is_null
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
call fcn.00455b90
test al, al
je 0x4d4a51
push esi
push str.DEBUG:_StopDriver:__s
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4d4aba
call fcn.00455b90
test al, al
je 0x4d4a91
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.DEBUG:_StopDriver___schService_is_null:__d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
call fcn.004d4700
add esp, 8
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4d4af8
call fcn.00455b90
test al, al
je 0x4d4af8
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.DEBUG:_StopDriver____ControlService_failed:__d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
jmp 0x4d4a97
Function at 0x4d71d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4d71f9
jl 0x4d71f0
test edi, edi
jne 0x4d71f9
xor eax, eax
xor edx, edx
jmp 0x4d72ba
cmp dword [ebx + 0x38], 0
je 0x4d720e
push eax
push edi
push dword [ebp + 8]
call fcn.004d72c0
jmp 0x4d72ba
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4d7255
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4d7255
cmp eax, edi
jb 0x4d722f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004fec50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4d725b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4d72af
mov ecx, ebx
call fcn.004d6900
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4d729a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0052fa66
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4d72af
jmp 0x4d726d
test edx, edx
je 0x4d72af
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0052fa66
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4d7a44
Capabilities:
Encrypt data using chaskey

Disassembly:
jmp 0x4ffa4e
cmp eax, dword [edx + 0x3cff050b]
mov edx, 0x2bdff701
or eax, 0x1ba3e4d

Function at 0x4e6903
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4e6926
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4e6914
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4f616b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00545a65
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4f61aa
sub eax, 1
je 0x4f61a5
sub eax, 1
je 0x4f61a1
xor eax, eax
leave
ret
push 3
jmp 0x4f61ac
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4f82c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f82ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f82ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f82ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f82ff
cmp dword [ecx + 0x74], 0xe
jbe 0x4f82ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5293fa
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x52943d
call fcn.005452cb
mov dword [eax], 0xf
call fcn.005452de
mov dword [eax], 0xd
call fcn.0052a1d7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
leave
ret
test eax, eax
jne 0x529444
inc eax
jmp 0x529431
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x52942f
xor eax, eax
cmp ecx, 1
setne al
jmp 0x529431

Function at 0x52a5fa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x52a639
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52a639
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52a639
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x52a639
cmp dword [ecx + 0x74], 0xe
jbe 0x52a639
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x536c4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005419ff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x536c8e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x536dea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f7260
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1b58698]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0055059e
mov ecx, dword [esi*4 + 0x1b58698]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x536de3
cmp eax, dword [ecx + edi + 0x24]
jne 0x536de3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x536de3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0055059e
add esp, 0x14
test edx, edx
jl 0x536de3
jg 0x536d59
test eax, eax
jb 0x536de3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x536de3
jl 0x536d73
cmp dword [ebp - 0x1008], eax
ja 0x536de3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x536d91
test ebx, ebx
je 0x536dca
cmp ecx, edi
jae 0x536dca
mov al, byte [ecx]
cmp al, 0xd
jne 0x536dab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x536db7
cmp byte [ecx + 1], 0xa
jne 0x536db7
inc ecx
jmp 0x536db7
movzx eax, al
movsx eax, byte [eax + 0x639f60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x536d91
cmp edx, ebx
jne 0x536d91
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x536de8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f66cd
leave
ret