joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467847
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46787f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004658fb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004658d3
jmp 0x46788b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468f39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468f7b
call fcn.0046eba8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468f7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468f72
xor eax, eax
jmp 0x468f83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468f89
pop edi
pop esi
pop ebx
ret 4

Function at 0x46f0d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46f106
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f124
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f03e
jmp 0x46f124
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f124
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f03e
test edi, edi
mov eax, edi
jne 0x46f10e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
call fcn.0041957f
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push 0x4222b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
mov dword [edx], ebx
mov al, 1
pop ebx
ret

Function at 0x402ed0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push str.sftdm__UnregServer
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x425cf8
lea ecx, [esp + 0xc]
call fcn.0041668f
push str._sftdm.exe
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], 0
push eax
call fcn.00416804
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov byte [esp + 0x20], 1
call fcn.00402630
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00416665
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00416665
push 0
push str.sftdm__RegServer
call esi
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x403300
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0xc]
push str.Administrator
push edx
call fcn.00404370
add esp, 8
test eax, eax
je 0x403351
push 0
push 4
push 6
call fcn.00418a1e
cmp eax, 6
je 0x403351
xor al, al
pop esi
add esp, 0x108
ret
mov eax, dword [esi + 0x5c]
push ebx
mov bl, 1
mov byte [esp + 0xb], 1
test eax, eax
mov byte [esp + 0xa], bl
je 0x403381
push 2
push str.Tdmd
push str.Tdmd
push 0x89
call fcn.004031b0
add esp, 0x10
mov byte [esp + 0xb], al
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4033a3
push 1
push str.Sense3
push str.Sense3
push 0x88
call fcn.004031b0
add esp, 0x10
mov bl, al
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4033c7
push 7
push 0x4223b8
push 0x4223b8
push 0x82
call fcn.004031b0
add esp, 0x10
mov byte [esp + 0xa], al
mov al, byte [esp + 0xb]
test al, al
je 0x4033e3
test byte [esp + 0xa], bl
je 0x4033e3
pop ebx
mov eax, 1
pop esi
add esp, 0x108
ret
pop ebx
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x40829d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423090
cmp edx, dword [eax]
je 0x4082bf
add eax, 8
inc ecx
cmp eax, 0x423120
jl 0x4082b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423090]
jne 0x4083ed
mov eax, dword [0x427df8]
cmp eax, 1
je 0x4083c7
test eax, eax
jne 0x4082f0
cmp dword [0x422ab4], 1
je 0x4083c7
cmp edx, 0xfc
je 0x4083ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408327
lea eax, [ebp - 0x1a4]
push 0x41e110
push eax
call fcn.00409620
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40836a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e10c
push edi
call fcn.0040b7a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41e0f0
push eax
call fcn.00409620
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409630
lea eax, [ebp - 0xa0]
push 0x41e0ec
push eax
call fcn.00409630
push dword [esi + 0x423094]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409630
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41e0c4
push eax
call fcn.0040b8e0
add esp, 0x2c
pop edi
jmp 0x4083ed
lea eax, [ebp + 8]
lea esi, [esi + 0x423094]
push 0
push eax
push dword [esi]
call fcn.00405560
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x410960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call 0x404840
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x410a2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x410a2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4109de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4109e9
or bh, 8
and edi, 0x8000000
je 0x410a04
mov eax, dword [0x42959c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x410a2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x410e2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x410e4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x410e6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x414214
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x414256
call fcn.0041957f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414256
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41424d
xor eax, eax
jmp 0x41425e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00414264
pop edi
pop esi
pop ebx
ret 4

Function at 0x415ff9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41ba34
call fcn.004047b4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041957f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x416038
call fcn.0041957f
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416046
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x416054
or eax, 0xffffffff
jmp 0x41613c
mov ecx, esi
call fcn.00415f6f
mov dword [ebp - 0x14], eax
call fcn.0041285a
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41608b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41608b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041280e
push dword [ebp - 0x14]
call fcn.0041235c
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00415d07
cmp eax, edi
je 0x4160fe
test byte [esi + 0x24], 0x10
je 0x4160cc
push 4
mov ecx, esi
pop ebx
call fcn.00416f03
test ah, 1
je 0x4160c4
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00414366
cmp dword [esi + 0x1c], edi
je 0x4160fe
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00416f5e
jmp 0x4160fe
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x416112
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41612b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41612b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00415fa9
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x416d34
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x416d64
push edi
call ebx
push eax
call fcn.00417512
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x416d8e
test byte [ebp - 4], 1
je 0x416d8e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416d8e
push edi
call ebx
push eax
call fcn.00417512
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x416e34
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00416c81
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x416dc0
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00416c81
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x416dd6
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00416c81
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416e00
push 0
call ebx
push eax
call fcn.00417512
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x416e1e
push eax
call ebx
push eax
call fcn.00417512
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x416e32
push eax
call ebx
push eax
call fcn.00417512
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x416e5b
test byte [ebp - 4], 1
jne 0x416e5b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416e5b
push edi
call ebx
push eax
call fcn.00417512
pop edi
pop ebx
leave
ret 8

Function at 0x41a08d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a0bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a0d9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419ff3
jmp 0x41a0d9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a0d9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419ff3
test edi, edi
mov eax, edi
jne 0x41a0c3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4028fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0x402667
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0xb8
call fcn.00402c80
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x45fd88], eax
mov dword [0x45fda0], 1
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
add eax, 0xb8
push eax
push 0x402697
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x40319e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0x44f180
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4031c7
xor eax, eax
jmp 0x40321e
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4031e2
xor eax, eax
jmp 0x40321e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4031f9
xor eax, eax
jmp 0x40321e
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00403003
test eax, eax
jne 0x403219
xor eax, eax
jmp 0x40321e
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x403bdd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push edi
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0xe8], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0xe7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x84], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x83]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x168], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x167]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1e8], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x1e7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x98], 0
xor eax, eax
mov dword [ebp - 0x97], eax
mov dword [ebp - 0x93], eax
mov dword [ebp - 0x8f], eax
mov dword [ebp - 0x8b], eax
mov word [ebp - 0x87], ax
mov byte [ebp - 0x85], al
lea ecx, [ebp - 0x1f4]
push ecx
push 3
push 0
push 0x44f2e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403cdb
push 0x26
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x8c
call fcn.0040a160
jmp 0x403d98
mov dword [ebp - 0x1ec], 0x3c
lea edx, [ebp - 0x1ec]
push edx
mov eax, dword [ebp - 0x1f8]
add eax, 0x144
push eax
lea ecx, [ebp - 0x1f0]
push ecx
push 0
push 0x44f2fc
mov edx, dword [ebp - 0x1f4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1ec], 4
lea eax, [ebp - 0x1ec]
push eax
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x124
push ecx
lea edx, [ebp - 0x1f0]
push edx
push 0
push 0x44f304
mov eax, dword [ebp - 0x1f4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403d78
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 0x124]
push edx
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x8c
call fcn.0040a160
jmp 0x403d8b
push 0x26
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x8c
call fcn.0040a160
mov eax, dword [ebp - 0x1f4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40d126
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
push 3
push 0
push 0x45ac08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d1d0
lea ecx, [ebp - 0xc]
push ecx
push 0x20006
push 0
push 0x45ac38
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d192
jmp 0x40d224
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.ModemOnHold
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d1c6
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d224
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x2b0]
add edx, 0xc0
push edx
push 4
push 0
push 0x45ac68
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x2b0]
add edx, 0xc4
push edx
push 4
push 0
push 0x45ac70
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40d604
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x110], 0x7f
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10c], 0x7f
lea edx, [ebp - 0xc]
push edx
push 3
push 0
push 0x45ac84
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d65a
jmp 0x40d6cb
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10c
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x45aca0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d68e
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10c], 0x7f
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x110
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x45aca8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d6c1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x110], 0x7f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40d6cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push 0x45acb4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d715
jmp 0x40d7b8
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x10c
push ecx
push 4
push 0
push str.MicGain
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov eax, dword [ebp - 0x14]
add eax, 0x110
push eax
push 4
push 0
push str.SpkrGain
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x10c]
cmp edx, dword [ecx + 0x114]
je 0x40d78a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10c]
push ecx
push 5
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x104]
call fcn.00418810
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x110]
cmp edx, dword [ecx + 0x118]
je 0x40d7b8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x110]
push ecx
push 6
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x104]
call fcn.00418810
mov esp, ebp
pop ebp
ret