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

Disassembly:
push 0xffffffffffffffff
push 0x1009c18c
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x14], 2
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.1003dd60
mov eax, 1
mov dword [esp + 4], eax
mov byte [esp + 0x14], al
cmp dword [esp + 0x34], 8
jb 0x1003d948
mov edx, dword [esp + 0x20]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov byte [esp + 0x14], al
lea ecx, [esp + 0x38]
push ecx
call fcn.10034030
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret

Function at 0x100418a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1009fa56
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x2008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x2024]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2034]
xor eax, eax
push 0x1ffe
mov edi, ecx
push eax
lea ecx, [esp + 0x26]
push ecx
mov esi, edx
mov word [esp + 0x28], ax
call fcn.10079c60
mov edi, dword [edi]
add esp, 0xc
push edi
push ecx
call fcn.1006c580
add esp, 4
push eax
call fcn.1006c900
test eax, eax
je 0x10041a2a
mov ecx, dword [eax + 0xc]
mov ebp, dword [ebp]
test ecx, ecx
je 0x10041947
mov edx, dword [ecx]
push 0x1000
lea eax, [esp + 0x20]
push eax
push 0x100a6f30
push 0x100a652c
push ebp
push ecx
mov ecx, dword [edx + 0x18]
call ecx
jmp 0x10041965
mov eax, dword [eax]
push eax
push 0x1000
lea edx, [esp + 0x24]
push edx
push 0x100a6f30
push 0x100a652c
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10041970
sub eax, edx
sar eax, 1
je 0x10041a2a
lea eax, [esp + 0x14]
push eax
mov ecx, 0x100a650c
call fcn.10002500
mov dword [esp + 0x202c], 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.10002500
mov byte [esp + 0x202c], 1
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.1006d160
add esp, 0xc
mov byte [esp + 0x202c], 0
lea ecx, [esp + 0x18]
call fcn.100025b0
mov dword [esp + 0x202c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.100025b0
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x100419fa
call fcn.100759ec
mov ebp, dword [esi + 0xc]
mov edi, dword [esi]
cmp ebp, dword [esi + 0x10]
jbe 0x10041a09
call fcn.100759ec
mov esi, dword [esi]
test edi, edi
je 0x10041a13
cmp edi, esi
je 0x10041a18
call fcn.100759ec
mov ecx, ebx
sub ecx, ebp
sar ecx, 2
push ecx
push ebx
push ebp
call fcn.10045090
add esp, 0xc
mov ecx, dword [esp + 0x2024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.100755ed
add esp, 0x201c
ret 4
Function at 0x10041cc0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2008
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2014]
push esi
push edi
xor eax, eax
push 0x1ffe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov edi, edx
mov word [esp + 0x1c], ax
call fcn.10079c60
mov esi, dword [esi]
add esp, 0xc
push esi
push ecx
call fcn.1006c580
add esp, 4
push eax
call fcn.1006c900
test eax, eax
je 0x10041d81
mov ecx, dword [eax + 0xc]
mov edi, dword [edi]
test ecx, ecx
je 0x10041d3f
mov edx, dword [ecx]
push 0x1000
lea eax, [esp + 0x14]
push eax
push 0x100a6f30
push 0x100a651c
push edi
push ecx
mov ecx, dword [edx + 0x18]
call ecx
jmp 0x10041d5d
mov edx, dword [eax]
push edx
push 0x1000
lea eax, [esp + 0x18]
push eax
push 0x100a6f30
push 0x100a651c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10041d64
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.10002d60
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x2008
ret 4
Function at 0x10043450
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x808
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
push esi
push edi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov edi, edx
mov word [esp + 0x1c], ax
call fcn.10079c60
mov esi, dword [esi]
add esp, 0xc
push esi
push ecx
call fcn.1006c580
add esp, 4
push eax
call fcn.1006c900
test eax, eax
je 0x1004350d
mov ecx, dword [eax + 0xc]
mov edi, dword [edi]
test ecx, ecx
je 0x100434cb
mov edx, dword [ecx]
push 0x400
lea eax, [esp + 0x14]
push eax
push 0x100a6f30
push 0x100a6588
push edi
push ecx
mov ecx, dword [edx + 0x18]
call ecx
jmp 0x100434e9
mov edx, dword [eax]
push edx
push 0x400
lea eax, [esp + 0x18]
push eax
push 0x100a6f30
push 0x100a6588
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100434f0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.10002d60
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x808
ret 4
Function at 0x100472b0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1009d93d
mov eax, dword fs:[0]
push eax
mov eax, 0x10a8
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x10a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x10bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x10cc]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ecx, 0x21
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0x7fe
lea ecx, [esp + 0x8ba]
movsw word es:[edi], word [esi]
xor eax, eax
push ebx
mov edi, 1
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], edi
mov word [esp + 0x8c0], ax
call fcn.10079c60
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x8b8]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x3c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x1004744c
lea eax, [esp + 0x8b4]
push 0x5c
push eax
call fcn.10076063
add eax, 2
xor ecx, ecx
mov word [eax], cx
push 0x7fe
lea eax, [esp + 0xc2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xc8], dx
call fcn.10079c60
add esp, 0x14
cmp word [esp + 0x8b4], 0x25
lea ecx, [esp + 0xb4]
jne 0x100473cd
push 0x400
push ecx
lea edx, [esp + 0x8bc]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1004740d
lea esi, [esp + 0x8b4]
mov edx, 0x400
lea eax, [esp + 0xb4]
sub esi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x10047401
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x10047401
mov word [eax], cx
add eax, 2
sub edx, edi
jne 0x100473e2
jmp 0x10047405
cmp edx, ebx
jne 0x10047408
sub eax, 2
xor edx, edx
mov word [eax], dx
push str.SoftMgr_somkernl.dll
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004744c
push ebp
lea ecx, [esp + 0xb8]
call fcn.10002500
mov dword [esp + 0x10c4], ebx
mov dword [esp + 0x1c], edi
jmp 0x100474a4
lea edx, [esp + 0x18]
push edx
call fcn.10003ff0
add esp, 4
mov dword [esp + 0x10c4], edi
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x10047485
push str.SoftMgr_somkernl.dll
lea esi, [esp + 0x1c]
call fcn.1006c300
add esp, 4
mov ecx, esi
push ecx
push ebp
call fcn.100024a0
jmp 0x10047490
push ebp
mov ecx, 0x100a6f30
call fcn.10002500
mov dword [esp + 0x1c], edi
mov byte [esp + 0x10c4], bl
lea ecx, [esp + 0x18]
call fcn.100025b0
mov eax, ebp
mov ecx, dword [esp + 0x10bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10a0]
xor ecx, esp
call fcn.100755ed
add esp, 0x10b4
ret
Function at 0x10047890
Capabilities:
Get disk information

Disassembly:
sub esp, 0x214
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea esi, [ebp + 0x43]
jmp 0x100478c0
mov eax, dword [0x100ad27c]
mov cx, word [0x100ad280]
mov dword [esp + 0xc], eax
xor eax, eax
push 0x206
mov word [esp + 0x14], cx
push eax
lea ecx, [esp + 0x1e]
xor edx, edx
push ecx
mov word [esp + 0x1e], dx
mov word [esp + 0x18], si
mov word [esp + 0x20], ax
call fcn.10079c60
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x10047922
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.10075d21
add esp, 8
test eax, eax
je 0x1004792b
inc esi
cmp si, 0x5a
jbe 0x100478c0
jmp 0x10047940
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, 1
je 0x10047942
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100755ed
add esp, 0x214
ret
Function at 0x100497a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x24]
push edi
push ecx
push edx
push 0
push eax
or edi, 0xffffffff
call fcn.10083a10
push 0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x2c]
push eax
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x100497ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100497ef
or eax, edi
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, 1
jne 0x10049815
mov eax, edi
pop edi
add esp, 0x10
ret

Function at 0x10049c90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi + 7]
movzx esi, byte [edi + 6]
movzx ebx, al
add ebx, edi
mov dword [esp + 0xc], 0
test esi, esi
je 0x10049ced
test al, al
je 0x10049ced
cmp word [ebx], 0
je 0x10049ced
lea eax, [esi + esi + 2]
push eax
call fcn.100774c5
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x10049d1b
push esi
push ebx
lea ecx, [esi + 1]
push ecx
push eax
call fcn.10078b6c
mov eax, dword [esp + 0x1c]
add esp, 0x10
xor edx, edx
mov word [eax + esi*2], dx
movzx ecx, word [edi + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, dword [edi + 0x10]
push edx
movzx edx, word [edi + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push edx
push ecx
call fcn.10049be0
mov eax, dword [esp + 0x20]
add esp, 0x14
push eax
call fcn.100773e8
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004aa80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x46c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
mov ebp, dword [esp + 0x47c]
push esi
mov esi, dword [esp + 0x47c]
push edi
mov edi, ecx
test esi, esi
je 0x1004ac38
movzx eax, word [esi]
push eax
call fcn.10076e7b
add esp, 4
test eax, eax
je 0x1004ac38
push 0x24c
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0
call fcn.10079c60
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x272]
push eax
mov word [esp + 0x274], dx
call fcn.10079c60
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push esi
lea ecx, [esp + 0x26c]
push ecx
call ebx
push 0x100adb74
lea edx, [esp + 0x26c]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1004ac34
cmp dword [edi], 0
jne 0x1004ac38
mov ebx, dword [esp + 0x18]
test bl, 0x10
jne 0x1004ab65
push ebp
push ebx
push edi
lea ecx, [esp + 0x50]
mov ebx, esi
call fcn.1004ac60
jmp 0x1004ac15
mov ecx, 0x100a8024
lea eax, [esp + 0x44]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004ab96
test dx, dx
je 0x1004ab92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004ab96
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004ab70
xor eax, eax
jmp 0x1004ab9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004ac15
mov ecx, 0x100a8028
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004abce
test dx, dx
je 0x1004abca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004abce
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004aba8
xor eax, eax
jmp 0x1004abd3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004ac15
push ebp
push ebx
push edi
lea ecx, [esp + 0x50]
mov ebx, esi
call fcn.1004ac60
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea edx, [esp + 0x26c]
push edx
call ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push ecx
call ebx
push ebp
lea edx, [esp + 0x26c]
push edx
mov ecx, edi
call fcn.1004aa80
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004ab40
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1004ac3b
or eax, 0xffffffff
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x46c
ret 8
Function at 0x1004bf80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, str._SECURE
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 8], str._MFT
mov dword [esp + 0xc], str.WINDOWSSYSTEM32CONFIGSYSTEM
mov dword [esp + 0x10], str.WINDOWSSYSTEM32CONFIGSOFTWARE
mov dword [esp + 0x14], str.IO.SYS
mov dword [esp + 0x18], str.MSDOS.SYS
mov dword [esp + 0x1c], str.IBMBIO.COM
mov dword [esp + 0x20], str.IBMDOS.COM
mov dword [esp + 0x24], str.DRBIOS.SYS
mov dword [esp + 0x28], 0x100acbcc
mov dword [esp + 0x2c], str.GOBACKIO.BIN
mov dword [esp + 0x30], str.PGPWDE0
mov dword [esp + 0x34], str.BOOTWIZ
mov dword [esp + 0x38], str.BOOTAUTH
mov dword [esp + 0x3c], str._DCSYS_
mov dword [esp + 0x40], str.BOOTSTAT.DAT
mov dword [esp + 0x44], str.BOOTSQM.DAT
mov dword [esp + 0x48], str.SAFEBOOT.FS
mov dword [esp + 0x4c], str.SAFEBOOT.CSV
mov dword [esp + 0x50], str.AFEBOOT.RSV
mov dword [esp + 0x54], str.HIBERFIL.SYS
mov dword [esp + 0x58], str.MEMORY.DMP
mov dword [esp + 0x5c], str.PAGEFILE.SYS
mov dword [esp + 0x60], str._BITMAP
mov dword [esp + 0x64], str._EXTEND_OBJID
mov dword [esp + 0x68], str._EXTEND_USNJRNL
mov dword [esp + 0x6c], str._LOGFILE
mov dword [esp + 0x70], str._MFT::_BITMAP
mov dword [esp + 0x7c], 0
xor esi, esi
mov eax, str._MFT
nop
push eax
mov eax, dword [edi + 0xc]
push eax
call ebx
test eax, eax
jne 0x1004c0c8
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x1004c080
mov eax, dword [edi + 0x28]
test eax, eax
je 0x1004c0c8
mov ecx, dword [edi + 0x18]
or ecx, dword [edi + 0x1c]
je 0x1004c0c8
cmp dword [eax], eax
jne 0x1004c0af
mov edx, dword [eax + 0x18]
or edx, dword [eax + 0x1c]
je 0x1004c0c8
call fcn.1006c390
test eax, eax
je 0x1004c0bd
cmp dword [eax], 1
jl 0x1004c0c8
pop esi
mov eax, 1
pop ebx
add esp, 0x78
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x78
ret
Function at 0x10050600
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10096548
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWARE360Safe_softmgrdio
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100506a6
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x2c], edi
push str.raid
mov dword [esp + 0x34], esi
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x100506a6
cmp dword [esp + 0x18], 4
jne 0x100506a6
cmp dword [esp + 0x10], 1
sete bl
mov dword [esp + 0x2c], 0xffffffff
cmp edi, esi
je 0x100506bd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], esi
mov eax, ebx
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x100506e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a10bb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.10003310
test eax, eax
jne 0x100508ab
call fcn.10050600
test eax, eax
jne 0x100508ab
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, ebx
jne 0x1005077a
push 0xf910
call fcn.10075af5
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x1005075c
mov ecx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.10053b00
mov esi, eax
jmp 0x1005075e
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ebp + 0x14]
cmp esi, eax
je 0x10050777
cmp eax, ebx
je 0x10050777
push eax
call fcn.10050ed0
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0xf908]
cmp edi, ebx
je 0x10050794
call fcn.100316e0
test eax, eax
jne 0x100508ab
call fcn.100508d0
test eax, eax
jne 0x100508a0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.10050b30
test eax, eax
je 0x100508a0
mov ebx, ebp
call fcn.10050940
mov esi, dword [ebp + 0x14]
xor ebx, ebx
call fcn.10054060
mov esi, eax
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, ebx
jne 0x10050831
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
mov ecx, ebp
call fcn.100551a0
mov edi, eax
cmp edi, ebx
je 0x100508ab
push str.PowerSpeed.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1005081d
push str.InterfaceCallDGAnyway
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005081d
mov edx, ebp
call fcn.100502e0
test eax, eax
je 0x100508ab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
or edx, ecx
je 0x10050831
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xf0b8]
mov dword [ebp + 0x18], ecx
mov ebx, 1
test esi, esi
je 0x1005084b
mov dword [ebp + 0x10], ebx
jmp 0x1005085e
mov edx, ebp
mov dword [ebp + 0x10], 2
call fcn.100502e0
cmp eax, 2
jne 0x10050861
mov dword [ebp + 0xc], ebx
test edi, edi
je 0x100508ab
mov edx, ebp
call fcn.100502e0
cmp eax, 2
jne 0x100508ab
lea esi, [esp + 0x1c]
call fcn.10013340
mov edx, dword [eax]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0x100a64ac
push 0x100a6464
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x100508ab
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10050940
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1009f948
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.1000ffe0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0xc]
push ecx
push 0x66
call fcn.1006bcb0
push str.optconfig.ini
lea esi, [esp + 0x18]
call fcn.1006c300
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
push ecx
call fcn.1006c580
add esp, 4
push eax
call fcn.1006c900
mov esi, eax
test esi, esi
je 0x10050afb
mov eax, dword [0x100adf74]
mov ecx, dword [0x100adf78]
mov edx, dword [0x100adf7c]
mov dword [esp + 0x20], eax
mov eax, dword [0x100adf80]
mov dword [esp + 0x24], ecx
mov ecx, dword [str.start]
mov dword [esp + 0x18], edx
mov edx, dword [0x100adf88]
mov dword [esp + 0x1c], eax
mov eax, dword [0x100adf8c]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x100adf90]
mov dword [esp + 0x2c], edx
mov edx, dword [0x100adf94]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.1006c390
test eax, eax
je 0x10050a8d
cmp dword [eax], 3
jge 0x10050a8d
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x10050a48
mov ecx, dword [eax]
push 0xfa
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
jmp 0x10050a5c
mov eax, dword [esi]
push eax
push 0xfa
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
call edi
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10050a7f
mov ecx, dword [eax]
push 0x320
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
jmp 0x10050af8
mov esi, dword [esi]
push esi
push 0x320
lea edx, [esp + 0x28]
jmp 0x10050af0
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x10050ab0
mov ecx, dword [eax]
push 0x64
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
jmp 0x10050ac1
mov eax, dword [esi]
push eax
push 0x64
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
call edi
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10050ae4
mov ecx, dword [eax]
push 0x258
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
jmp 0x10050af8
mov esi, dword [esi]
push esi
push 0x258
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.100025b0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100755ed
add esp, 0x38
ret