joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405450
Capabilities:
Delete file

Disassembly:
sub esp, 0xb0c
mov dl, byte [0x421d68]
push ebx
push ebp
push edi
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x605]
mov byte [esp + 0x604], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov ebx, dword [esp + 0xb20]
mov ebp, dword [esp + 0xb1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 2
push ebx
push ebp
stosb byte es:[edi], al
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x405654
push esi
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x208]
xor esi, esi
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20c], 0x31c
mov dword [esp + 0x210], 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004057e0
cmp al, 1
jne 0x4054ff
lea eax, [esp + 0x208]
mov dword [esp + 0x208], 0x30c
push eax
jmp 0x405512
lea ecx, [esp + 0x208]
mov dword [esp + 0x208], 0x31c
push ecx
push esi
push 2
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoA]
test eax, eax
je 0x405653
push 0
lea edx, [esp + 0x800]
push 0x31d
lea eax, [esp + 0x210]
push edx
push eax
push ebx
push ebp
mov dword [esp + 0x814], 0x31d
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailA]
lea edi, [esp + 0x914]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x14]
sub ecx, 3
lea edi, [esp + 0x608]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x608]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x418ee8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x608]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x14]
push ecx
call esi
inc dword [esp + 0x10]
call fcn.004057e0
cmp al, 1
jne 0x405624
mov esi, dword [esp + 0x10]
mov ecx, 0xc3
xor eax, eax
lea edi, [esp + 0x208]
rep stosd dword es:[edi], eax
mov dword [esp + 0x208], 0x30c
mov dword [esp + 0x20c], 2
jmp 0x4054e1
mov esi, dword [esp + 0x10]
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x208]
rep stosd dword es:[edi], eax
mov dword [esp + 0x208], 0x31c
mov dword [esp + 0x20c], 2
jmp 0x4054e1
pop esi
push 2
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
pop edi
pop ebp
pop ebx
add esp, 0xb0c
ret
Function at 0x4057e0
Capabilities:
Get common file path

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x104
push 0x43934c
mov dword [0x54e098], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [0x54e098]
mov edx, ecx
and edx, 0xff
cmp edx, 4
jb 0x405822
test eax, eax
je 0x405822
and ecx, 0x80000000
neg ecx
sbb cl, cl
add ecx, 2
mov al, cl
ret
mov eax, dword [0x548160]
push 0x10
push str.Initialize
push str.Windows_version_or_directory_error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x548160]
push 0x81
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
or al, 0xff
ret
Function at 0x40ade0
Capabilities:
Delete file
Delete registry key
Delete service

Disassembly:
sub esp, 0x84
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [esp + 0x94]
mov edi, eax
test edi, edi
je 0x40ae2d
push ebp
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40ae29
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebp
push edi
call ebp
pop ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ae61
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
mov edi, 0x43934c
xor eax, eax
push 0x54e530
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x54e530
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.SYSTEM32DRIVERS_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, 0x54e530
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x54e530
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..SYS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x54e530
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push ebx
jne 0x40af4d
lea eax, [esp + 0x14]
push str.Failed_in_deleting_driver__s
push eax
call fcn.0040cce6
mov edx, dword [0x548160]
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x10
push str._Uninstall_Driver
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret
push str.Uninstall_driver__s_completed.
push 0x54e3a8
call fcn.0040cce6
mov eax, dword [0x548160]
add esp, 0xc
push 0x40
push str._Uninstall_Driver
push 0x54e3a8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x84
ret
Function at 0x40d46f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4152a0
push 0x40fb00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x54e6b8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x54e6b4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x54e6b0], ecx
shr eax, 0x10
mov dword [0x54e6ac], eax
xor esi, esi
push esi
call fcn.0040f9a8
pop ecx
test eax, eax
jne 0x40d4db
push 0x1c
call 0x40d58a
pop ecx
mov dword [ebp - 4], esi
call fcn.0040f688
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xfffffca8], eax
dec bh
imul ecx, esi, 0xd50f8930
cmp edx, edx
jne 0x40d502
lea edx, [0x95582ffe]
xchg ch, cl
cmp esi, 0x73fc
jb 0x40d518
imul edi, ebx, 0xc41f9987
test bh, cl
test esi, 0x2feddb7c
jae 0x40d522
mov bl, dl
movzx ecx, bl
movzx ecx, dx
and edx, edx
or bl, bl
or edx, 0x252d801c
mov esi, 0x812246a3
mov edi, 0
test ah, 0xd6
add edi, 0x15bbbe
jae 0x40d548
imul ebx, eax, 0xf41d7e54
add edi, 0x8dd
movzx edx, ch
and dl, al
xadd eax, edi
adc dl, bl
sub eax, 0x911
cmp ebp, 0xb065
jo 0x40d56b
Function at 0x4010b0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4011de
xor ecx, ecx
xor edx, edx
jmp 0x4011b6
cmp al, 0x5c
jne 0x401238
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4011d3
cmp al, 9
je 0x4011be
cmp al, 0x20
jne 0x4011a0
test ecx, ecx
je 0x4011d3
xor edx, edx
jmp 0x4011ab
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4011d0
cmp al, 0x20
je 0x4011d0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4011f9
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x4011c2
and edx, 1
jne 0x4011c2
xor ecx, 1
jmp 0x4011ab
Function at 0x100bc53
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0xc00]
push ecx
push 0x2001f
xor esi, esi
push esi
push ebx
push eax
mov dword [ebp - 0xc08], eax
call fcn.01002171
add esp, 0x14
cmp eax, esi
je 0x100bc9e
cmp eax, 2
sete al
jmp 0x100bda8
push edi
lea ecx, [ebp - 0xbfc]
call fcn.01008d3a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100bcc9
push dword [ebp - 0xbfc]
push dword [ebp - 0xc00]
call fcn.0100bc53
pop ecx
pop ecx
test al, al
je 0x100bd08
mov eax, dword [ebp - 0xbf8]
push esi
push esi
push esi
push esi
mov dword [ebp - 0xc04], eax
lea eax, [ebp - 0xc04]
push eax
push dword [ebp - 0xbfc]
push esi
push dword [ebp - 0xc00]
call edi
cmp eax, esi
je 0x100bcb2
push dword [ebp - 0xc00]
cmp eax, 0x103
je 0x100bd10
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100bd71
push dword [ebp - 0xc00]
jmp 0x100bd00
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0xc08]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x100bd8d
xor eax, eax
push 0x800
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push esi
push eax
call sub.msvcrt.dll_memset
push ebx
push 0x100bdb8
lea eax, [ebp - 0x808]
push 0x401
push eax
call fcn.01008f12
add esp, 0x1c
test eax, eax
jl 0x100bd71
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.0100b355
pop ecx
pop ecx
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x100bd89
push dword [ebp - 0xbfc]
call fcn.01008836
pop ecx
xor al, al
jmp 0x100bda7
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x100bda5
push dword [ebp - 0xbfc]
call fcn.01008836
pop ecx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret

Function at 0x100dcf4
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
not cl
wait
wait
nop
xchg al, ch
lea eax, [ebx]
xchg ecx, eax
sbb word [edx + 0x1013c00], 0x2451
mov eax, 0xe6c0430b
jmp 0x100dc51
not ecx
test eax, edi
not cl
nop
test ch, cl
mov ah, 0x45
not ch
lea ecx, [0x3c5145f0]
not ecx
cmp cl, dl
xor cl, ah
xchg ah, cl
not ecx
and ecx, 0x79479100
jmp 0x100dd5d
nop
jge 0x100dc04
nop
jmp loc.0101a362
dec ecx
stc
mov ecx, 0x45feda4
push 0x6a30
clc
pop edx
mov cl, bl
mov ch, ah
jmp 0x100dc04
inc eax
add al, dl
adc ecx, ebx
sbb cl, bl
mov ecx, 0x811f33b8
sub edx, 2
jmp 0x100dcc7
Function at 0x10004780
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], esi
test edi, edi
jg 0x100047bc
jl 0x1000496c
test esi, esi
je 0x1000496c
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x100047d0
xor esi, esi
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10004801
test al, 1
je 0x100047fa
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x100047f4
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x100047e1
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10004840
test al, 1
je 0x10004839
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10004833
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x10004820
nop dword [eax]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10004890
test al, 1
je 0x10004889
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10004883
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x10004870
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x100048d0
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x100048ce
nop
test bl, 1
je 0x100048c7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x100048c0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x10004966
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10004910
test al, 1
je 0x10004909
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10004903
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x100048f0
mov esi, dword [ebp - 0x108]
mov eax, esi
and eax, 1
or eax, 0
je 0x10004950
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x1000494e
nop
test bl, 1
je 0x10004947
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x10004940
mov ebx, ecx
shrd esi, edi, 1
sar edi, 1
mov eax, esi
or eax, edi
mov dword [ebp - 0x108], esi
jne 0x10004860
xor ebx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e60
mov esp, ebp
pop ebp
ret
Function at 0x100064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x18], esi
push edi
mov edi, ecx
cmp ebx, 8
ja 0x10006583
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10006583
push ebx
cmp ebx, 4
ja 0x10006529
push dword [ebp - 0x18]
mov esi, dword [edi]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call fcn.10024290
add esp, 0xc
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10006561
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0xc], ecx
call fcn.10024290
add esp, 0xc
mov esi, dword [edi]
mov eax, dword [edi + 4]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange64]
cmp eax, esi
jne 0x10006541
cmp edx, dword [ebp - 0x18]
jne 0x10006541
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10021e60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e60
mov esp, ebp
pop ebp
ret
Function at 0x1000f8c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x100e0075
call fcn.10021e20
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
push 0x40
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10021df0
push edx
mov ecx, ebp
push eax
lea edx, [0x1000f944]
call fcn.10021d90
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.10021df0
mov esp, ebp
pop ebp
ret

Function at 0x1001ddc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac990
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x4d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100e02d0
call fcn.10021e20
mov eax, dword [ebp + 8]
push eax
push str._SDLLP__Loading_library__s.
call fcn.1001df30
add esp, 8
mov esi, esp
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.10021df0
push 0x100ae1e4
lea eax, [ebp - 0x118]
push eax
call fcn.1001d110
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.1001d110
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.1000bad0
mov dword [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.10021df0
mov esi, eax
lea edx, [ebp - 0x1fc]
push edx
mov ecx, 0x100de898
call fcn.1001d9a0
mov dword [eax], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fc]
call fcn.1000c7f0
mov eax, dword [ebp + 8]
push eax
call fcn.1001db90
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x1001ded4
mov eax, dword [ebp + 8]
push eax
push str._SDLLP__Unable_to_load_library__s.
call fcn.1001df30
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x1001df10]
call fcn.10021d90
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021e60
add esp, 0x200
cmp ebp, esp
call fcn.10021df0
mov esp, ebp
pop ebp
ret
Function at 0x1001df30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
lea edi, [ebp - 0x424]
mov ecx, 0x109
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100e02d0
call fcn.10021e20
lea eax, [ebp + 0xc]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x408]
push edx
call fcn.1001ec60
add esp, 0xc
mov dword [ebp - 0x414], 0
mov esi, esp
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.10021df0
push edx
mov ecx, ebp
push eax
lea edx, [0x1001dfd4]
call fcn.10021d90
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021e60
add esp, 0x664
cmp ebp, esp
call fcn.10021df0
mov esp, ebp
pop ebp
ret
Function at 0x1001f050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac9fd
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x234
push ebx
push esi
push edi
lea edi, [ebp - 0x184]
mov ecx, 0x5d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x100e030c
call fcn.10021e20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10014640
mov byte [ebp - 4], 1
mov esi, esp
lea eax, [ebp - 0x40]
push eax
push 1
push 0
push str.SoftwareValveSteam
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.10021df0
test eax, eax
jne 0x1001f12c
mov dword [ebp - 0x158], 0x104
mov esi, esp
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push 0
push str.InstallPath
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.10021df0
mov esi, esp
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.10021df0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x34]
call fcn.1001ecb0
lea ecx, [ebp - 0x34]
call fcn.1000ec20
push eax
push str._sgameoverlayrenderer.dll
call fcn.100200a0
add esp, 8
mov dword [ebp - 0x244], eax
mov esi, esp
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.10021df0
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x1001f1ab
mov esi, esp
push str.SetNotificationPosition
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021df0
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
je 0x1001f1ab
mov esi, esp
push 1
call dword [ebp - 0x170]
add esp, 4
cmp esi, esp
call fcn.10021df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1000c7f0
jmp 0x1001f1bf
mov dword [ebp - 4], 0xffffffff
jmp 0x1001f1cf
push edx
mov ecx, ebp
push eax
lea edx, [0x1001f20c]
call fcn.10021d90
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10021e60
add esp, 0x244
cmp ebp, esp
call fcn.10021df0
mov esp, ebp
pop ebp
ret
Function at 0x1001fbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100da0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
mov ecx, 0x100e0384
call fcn.10021e20
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push fcn.1001fbf0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
cmp esi, esp
call fcn.10021df0
mov esi, esp
push 0x100
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.10021df0
mov dword [ebp - 0x18], eax
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.10021df0
mov dword [ebp - 0x24], eax
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.10021df0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov esi, esp
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.10021df0
push eax
lea ecx, [ebp - 0x54]
call fcn.1001f980
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.10021df0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
call fcn.10014450
mov ecx, dword [ebp - 0x120]
or ecx, 1
mov dword [ebp - 0x120], ecx
lea ecx, [ebp - 0x54]
call fcn.1000c7f0
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001fd20]
call fcn.10021d90
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021e60
add esp, 0x124
cmp ebp, esp
call fcn.10021df0
mov esp, ebp
pop ebp
ret